| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586 |
- @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;
- }
- }
- }
|