@use 'sass:math'; .c-dialog { display: flex; flex-direction: column; width: 640px; min-height: 320px; max-height: 88%; margin-top: 6vh !important; margin-bottom: 0; border-radius: 16px; &.fixed { height: 88%; } &.lg { width: 960px + 2 * $spacing; min-width: 960px; min-height: 480px; } &.medium { width: 720px + 2 * $spacing; min-height: 360px; } .el-dialog__header, .el-dialog__footer { flex: none; padding: $spacing $spacing--lg; } .el-dialog__header { border-bottom: 1px solid $border; } .el-dialog__title { color: $black; font-weight: bold; } .el-dialog__body { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; padding: $spacing; border-radius: $radius; overflow: auto; } .el-dialog__footer { border-top: 1px solid $border; } } .c-dialog--full { .el-dialog__header { display: none; } .el-dialog__body { padding: 0; height: 100%; } &__close { position: absolute; top: 0; right: 0; padding: $spacing--xs $spacing; color: #fff; font-size: $font-size--xl; z-index: 9; } } .c-dialog--preview { display: flex; flex-direction: column; justify-content: center; width: 960px; height: 100%; min-height: 540px; margin-top: 0 !important; margin-bottom: 0; box-shadow: none; background-color: transparent; &.program { width: auto; height: auto; min-height: 100%; .el-dialog__body { align-self: center; min-height: 300px; max-height: min-content; } } &__close { position: absolute; top: 0; right: 0; padding: $padding--md; color: $black; font-size: $font-size--xl; z-index: 9; } .el-dialog__header { display: none; } .el-dialog__body { display: flex; flex-direction: column; position: relative; min-height: 540px; max-height: 84%; padding: 0; background-color: #fff; } } .c-dialog--transparent { display: flex; flex-direction: column; justify-content: center; width: 60%; height: 80%; margin-top: 10vh !important; margin-bottom: 0; box-shadow: none; background-color: transparent; .el-dialog__header { display: none; } .el-dialog__body { flex: 1 0 none; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 0; padding: 0; } } .c-table { &.mini { flex: none; .c-table__main, .el-table__body-wrapper { min-height: 0; } } &__header { display: flex; flex-wrap: wrap; row-gap: $spacing--sm; column-gap: $spacing--xs; min-height: $height; margin-bottom: $spacing--sm; &:empty { margin-bottom: 0; } } &__btn { display: inline-block; position: relative; color: $blue; font-size: $font-size--sm; cursor: pointer; &:hover { color: $primary; } &.disabled { color: $gray; cursor: not-allowed; } & + & { margin-left: $spacing; } & + &::before { content: ""; display: inline-block; position: absolute; top: 50%; left: math.div(-$spacing, 2); height: 50%; border-left: 1px solid $gray; transform: translateY(-50%); } } &__filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: inherit; } &.prevent-copy { .el-table__body-wrapper { .el-table__row { user-select: none; cursor: pointer; &.disabled { color: $gray; pointer-events: none; cursor: not-allowed; } .copy { user-select: text; } } } } &__main { min-height: 300px; &.el-table.with-content::before { display: none; } } thead.has-gutter th.el-table__cell { background-color: #f4f7fb; } .el-table__header-wrapper { flex: none; } .el-table__body-wrapper { flex: 1 1 auto; min-height: 300px; overflow-y: auto; } } .c-grid-form { display: inline-grid; grid-template-columns: max-content minmax(400px, min-content); grid-row-gap: $spacing--sm; grid-column-gap: $spacing; align-items: flex-start; &.sm { grid-template-columns: max-content minmax(300px, min-content); } &.auto { grid-template-columns: max-content max-content; } &__row { grid-column: span 2; } &__label { color: $black; font-size: $font-size--sm; line-height: $height; text-align: right; } &__text { line-height: 1.4; word-break: break-all; } &__option { min-height: $height; } &__auto { align-self: center; min-height: 0; line-height: normal; } } .c-sibling-item { & + & { margin-left: $spacing--sm !important; } & + &.nearest { margin-left: $spacing--3xs !important; } & + &.nearer { margin-left: $spacing--2xs !important; } & + &.near { margin-left: $spacing--xs !important; } & + &.far { margin-left: $spacing !important; } & + &.farther { margin-left: $spacing--lg !important; } & + &.farthest { margin-left: $spacing--2xl !important; } &--v { & + & { margin-top: $spacing--sm !important; } & + &.nearest { margin-top: $spacing--3xs !important; } & + &.nearer { margin-top: $spacing--2xs !important; } & + &.near { margin-top: $spacing--xs !important; } & + &.far { margin-top: $spacing !important; } } } .c-tabs { flex: none; .el-tabs__header { margin-bottom: 0; } &.padding { .el-tabs__nav-wrap { padding: 0 $spacing; } } .el-tabs__item { padding: 0; color: $info--dark; font-size: $font-size; font-weight: bold; user-select: none; &.is-active { color: $blue; } &::before, &::after { content: ''; padding-left: $spacing--md; } } .el-tabs__active-bar { background-color: $blue; } .el-tabs__nav-wrap::after { height: 1px; background-color: $gray--light; } } .c-thumbnail-column:not(.is-leaf) { padding: $padding--xs !important; .cell { display: flex; justify-content: center; align-items: center; } } .c-edit-column:not(.is-leaf) { padding: $padding--xs 0 !important; .cell { padding: 0 !important; } } .c-info { color: $black; line-height: 1; &__block { padding: $spacing--md $spacing--2xl; background-color: #f5f7f9; & + & { margin-top: $spacing--xs; } } &__item + &__item { margin-left: $spacing; } &__title { display: inline-flex; align-items: center; width: 120px; color: $info--dark; font-size: $font-size--sm; line-height: 1; } &__value { font-size: $font-size--md; font-weight: bold; &.primary { color: $blue; } } &__edit { color: $blue; font-size: $font-size--sm; } } .c-tags { display: grid; grid-template-columns: repeat(auto-fit, minmax(auto, 80px)); grid-template-rows: max-content; grid-row-gap: $spacing--xs; grid-column-gap: $spacing--xs; } .c-sidebar { flex: none; width: 200px; padding-right: $spacing; border-right: 1px solid $border; &.large { width: 240px; } &.auto-width { flex: 1 1 0; min-width: 200px; } } @media screen and (min-width: 1600px) { .c-sidebar.auto-width { min-width: 280px; } } @media screen and (min-width: 1920px) { .c-sidebar.auto-width { min-width: 400px; } } .c-tree { color: $black; font-size: $font-size; &__title { margin: 0 0 $spacing--sm; color: $black; font-size: $font-size--lg; font-weight: bold; } &__content { display: flex; align-items: center; padding: $padding--xs; &.sub { padding-left: $spacing--3xl; } &:hover { background-color: $blue--light; } &.selected { color: #fff; background-color: $blue; } } &__expand { flex: none; display: inline-flex; justify-content: center; align-items: center; width: $spacing--3xl - $padding--xs; transition: transform 0.4s; &.expand { transform: rotate(90deg); } } &__empty { padding: $spacing; color: $black; font-size: $font-size; font-weight: bold; text-align: center; } &__empty--content { padding: $padding--xs $padding--xs $padding--xs $spacing--3xl; color: $info; font-size: $font-size--xs; } } .c-footer { position: absolute; left: 0; bottom: 0; width: 100%; padding: $spacing--lg $spacing $spacing; color: #fff; line-height: 1; background-image: linear-gradient(to bottom, rgba(#000, 0) 0%, rgba(#000, 0.6) 100%); } .c-step { &__header { padding-bottom: $spacing--sm; margin-bottom: $spacing--sm; border-bottom: 1px solid $border; .hidden { visibility: hidden; } } &__column { box-sizing: content-box; min-width: 200px; color: $black; & + & { padding-left: $spacing--sm; margin-left: $spacing--sm; border-left: 1px solid $border; } &.large { min-width: 300px; max-width: 300px; } } }