| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433 |
- .c-dialog {
- display: flex;
- flex-direction: column;
- width: 60%;
- min-width: 600px;
- min-height: 50%;
- max-height: 80%;
- margin-top: 10vh !important;
- border-radius: 16px;
- &.large {
- width: 80%;
- }
- &.medium {
- width: 40%;
- }
- &.mini {
- width: 600px;
- min-height: 100px;
- }
- .el-dialog__header,
- .el-dialog__footer {
- flex: none;
- padding: 16px 24px;
- }
- .el-dialog__header {
- border-bottom: 1px solid $gray--light;
- }
- .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 $gray--light;
- .o-button + .o-button {
- margin-left: $spacing;
- }
- }
- }
- .c-lock {
- .el-loading-spinner > i {
- font-size: 48px;
- }
- .el-loading-text {
- margin: 10px;
- color: #fff;
- font-size: 18px;
- }
- &.success {
- .el-loading-spinner > i {
- color: $success;
- }
- }
- &.warning {
- .el-loading-spinner > i {
- color: $warning;
- }
- }
- &.error {
- .el-loading-spinner > i {
- color: $error;
- }
- }
- }
- .c-table {
- &__header {
- padding-bottom: $spacing;
- &:empty {
- padding-bottom: 0;
- }
- }
- &__main {
- flex: 0 1 auto;
- min-height: 0;
- min-width: 0;
- }
- &.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;
- }
- }
- }
- }
- 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: 0;
- overflow-y: auto;
- }
- &__btn {
- display: inline-block;
- position: relative;
- padding: 0 8px;
- color: $blue;
- font-size: 14px;
- & + &::before {
- content: "";
- display: inline-block;
- position: absolute;
- top: 50%;
- left: 0;
- height: 12px;
- border-left: 1px solid $gray;
- transform: translateY(-50%);
- }
- }
- }
- .c-grid {
- display: grid;
- grid-template-columns: repeat(4, minmax(100px, 1fr));
- grid-template-rows: max-content;
- grid-row-gap: $spacing;
- grid-column-gap: $spacing;
- min-height: 0;
- min-width: 0;
- overflow-y: auto;
- }
- .c-info-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
- grid-template-rows: max-content;
- grid-row-gap: $spacing;
- grid-column-gap: $spacing;
- align-items: start;
- &.medium {
- grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
- }
- &.small {
- grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
- }
- &.mini {
- grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
- }
- }
- .c-grid-form {
- display: inline-grid;
- grid-template-columns: max-content minmax(400px, min-content);
- grid-row-gap: 10px;
- grid-column-gap: 10px;
- align-items: flex-start;
- &.medium {
- grid-template-columns: max-content minmax(300px, min-content);
- }
- &.mini {
- grid-template-columns: max-content max-content;
- }
- &.col {
- grid-template-columns: min-content;
- grid-row-gap: 8px;
- .c-grid-form__label {
- text-align: left;
- line-height: 1;
- }
- .c-grid-form__label ~ .c-grid-form__label {
- padding-top: 2px;
- }
- }
- &__row {
- grid-column: span 2;
- }
- &__label {
- color: $black;
- font-size: 14px;
- line-height: 40px;
- text-align: right;
- &.required::before {
- content: '*';
- color: #ff0000;
- }
- }
- &__option {
- min-height: 40px;
- }
- &__info {
- position: relative;
- margin-bottom: 18px;
- &::after {
- content: attr(data-info);
- position: absolute;
- left: 0;
- bottom: -18px;
- color: $gray;
- font-size: 12px;
- line-height: 1;
- }
- }
- &__auto {
- align-self: center;
- min-height: 0;
- line-height: normal;
- }
- }
- .c-sibling-item {
- & + & {
- margin-left: 10px !important;
- }
- & + &.far {
- margin-left: $spacing !important;
- }
- }
- .c-tabs {
- flex: none;
- .el-tabs__header {
- margin-bottom: 0;
- }
- &.padding {
- .el-tabs__nav-wrap {
- padding: 0 16px;
- }
- }
- .el-tabs__item {
- padding: 0;
- color: $info--dark;
- font-size: 16px;
- font-weight: bold;
- user-select: none;
- &.is-active {
- color: $blue;
- }
- &::before,
- &::after {
- content: '';
- padding-left: 20px;
- }
- }
- .el-tabs__active-bar {
- background-color: $blue;
- }
- .el-tabs__nav-wrap::after {
- height: 1px;
- background-color: $gray--light;
- }
- }
- .c-progress > .el-dialog {
- top: 20%;
- box-shadow: none;
- background-color: transparent;
- }
- .c-preview {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 80%;
- max-height: 80%;
- margin-top: 10vh !important;
- box-shadow: none;
- background-color: transparent;
- &.schedule {
- min-width: 800px;
- align-items: stretch;
- .el-dialog__body {
- display: flex;
- background-color: #fff;
- }
- }
- .el-dialog__header {
- display: none;
- }
- .el-dialog__body {
- flex: 0 1 auto;
- min-height: 0;
- padding: 0;
- text-align: center;
- }
- &__img {
- max-width: 100%;
- max-height: 80vh;
- }
- &__video {
- width: 100%;
- max-height: 80vh;
- }
- }
- .el-table__body .c-thumbnail-col .cell {
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .c-info {
- color: $black;
- line-height: 1;
- &.large {
- .c-info__title {
- width: 180px;
- }
- }
- &__block {
- padding: 20px 32px;
- background-color: #f5f7f9;
- & + & {
- margin-top: 8px;
- }
- }
- &__item + &__item {
- margin-left: 20px;
- }
- &__title {
- width: 120px;
- color: $info--dark;
- }
- &__value {
- font-size: 18px;
- font-weight: bold;
- &.primary {
- color: $blue;
- }
- }
- &__edit {
- color: $blue;
- font-size: 14px;
- }
- }
- .c-tags {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(auto, 80px));
- grid-template-rows: max-content;
- grid-row-gap: 8px;
- grid-column-gap: 10px;
- justify-content: center;
- }
- .c-tree-sidebar {
- flex: none;
- width: 200px;
- padding-right: $spacing;
- margin-right: $spacing;
- border-right: 1px solid $gray--light;
- &.large {
- width: 240px;
- }
- &__main {
- min-height: 100%;
- overflow-x: auto;
- }
- }
|