_component.scss 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. @use 'sass:math';
  2. .c-dialog {
  3. display: flex;
  4. flex-direction: column;
  5. width: 640px;
  6. min-height: 320px;
  7. max-height: 88%;
  8. margin-top: 6vh !important;
  9. margin-bottom: 0;
  10. border-radius: 16px;
  11. &.fixed {
  12. height: 88%;
  13. }
  14. &.lg {
  15. width: 960px + 2 * $spacing;
  16. min-width: 960px;
  17. min-height: 480px;
  18. }
  19. &.medium {
  20. width: 720px + 2 * $spacing;
  21. min-height: 360px;
  22. }
  23. .el-dialog__header,
  24. .el-dialog__footer {
  25. flex: none;
  26. padding: $spacing $spacing--lg;
  27. }
  28. .el-dialog__header {
  29. border-bottom: 1px solid $border;
  30. }
  31. .el-dialog__title {
  32. color: $black;
  33. font-weight: bold;
  34. }
  35. .el-dialog__body {
  36. flex: 1 1 auto;
  37. display: flex;
  38. flex-direction: column;
  39. min-height: 0;
  40. padding: $spacing;
  41. border-radius: $radius;
  42. overflow: auto;
  43. }
  44. .el-dialog__footer {
  45. border-top: 1px solid $border;
  46. }
  47. }
  48. .c-dialog--full {
  49. .el-dialog__header {
  50. display: none;
  51. }
  52. .el-dialog__body {
  53. padding: 0;
  54. height: 100%;
  55. }
  56. &__close {
  57. position: absolute;
  58. top: 0;
  59. right: 0;
  60. padding: $spacing--xs $spacing;
  61. color: #fff;
  62. font-size: $font-size--xl;
  63. z-index: 9;
  64. }
  65. }
  66. .c-dialog--preview {
  67. display: flex;
  68. flex-direction: column;
  69. justify-content: center;
  70. width: 960px;
  71. height: 100%;
  72. min-height: 540px;
  73. margin-top: 0 !important;
  74. margin-bottom: 0;
  75. box-shadow: none;
  76. background-color: transparent;
  77. &.program {
  78. width: auto;
  79. height: auto;
  80. min-height: 100%;
  81. .el-dialog__body {
  82. align-self: center;
  83. min-height: 300px;
  84. max-height: min-content;
  85. }
  86. }
  87. &__close {
  88. position: absolute;
  89. top: 0;
  90. right: 0;
  91. padding: $padding--md;
  92. color: $black;
  93. font-size: $font-size--xl;
  94. z-index: 9;
  95. }
  96. .el-dialog__header {
  97. display: none;
  98. }
  99. .el-dialog__body {
  100. display: flex;
  101. flex-direction: column;
  102. position: relative;
  103. min-height: 540px;
  104. max-height: 84%;
  105. padding: 0;
  106. background-color: #fff;
  107. }
  108. }
  109. .c-dialog--transparent {
  110. display: flex;
  111. flex-direction: column;
  112. justify-content: center;
  113. width: 60%;
  114. height: 80%;
  115. margin-top: 10vh !important;
  116. margin-bottom: 0;
  117. box-shadow: none;
  118. background-color: transparent;
  119. .el-dialog__header {
  120. display: none;
  121. }
  122. .el-dialog__body {
  123. flex: 1 0 none;
  124. display: flex;
  125. flex-direction: column;
  126. justify-content: center;
  127. align-items: center;
  128. min-height: 0;
  129. padding: 0;
  130. }
  131. }
  132. .c-table {
  133. &.mini {
  134. flex: none;
  135. .c-table__main,
  136. .el-table__body-wrapper {
  137. min-height: 0;
  138. }
  139. }
  140. &__header {
  141. display: flex;
  142. flex-wrap: wrap;
  143. row-gap: $spacing--sm;
  144. column-gap: $spacing--xs;
  145. min-height: $height;
  146. margin-bottom: $spacing--sm;
  147. &:empty {
  148. margin-bottom: 0;
  149. }
  150. }
  151. &__btn {
  152. display: inline-block;
  153. position: relative;
  154. color: $blue;
  155. font-size: $font-size--sm;
  156. cursor: pointer;
  157. &:hover {
  158. color: $primary;
  159. }
  160. &.disabled {
  161. color: $gray;
  162. cursor: not-allowed;
  163. }
  164. & + & {
  165. margin-left: $spacing;
  166. }
  167. & + &::before {
  168. content: "";
  169. display: inline-block;
  170. position: absolute;
  171. top: 50%;
  172. left: math.div(-$spacing, 2);
  173. height: 50%;
  174. border-left: 1px solid $gray;
  175. transform: translateY(-50%);
  176. }
  177. }
  178. &__filters {
  179. display: flex;
  180. flex-wrap: wrap;
  181. justify-content: flex-end;
  182. gap: inherit;
  183. }
  184. &.prevent-copy {
  185. .el-table__body-wrapper {
  186. .el-table__row {
  187. user-select: none;
  188. cursor: pointer;
  189. &.disabled {
  190. color: $gray;
  191. pointer-events: none;
  192. cursor: not-allowed;
  193. }
  194. .copy {
  195. user-select: text;
  196. }
  197. }
  198. }
  199. }
  200. &__main {
  201. min-height: 300px;
  202. &.el-table.with-content::before {
  203. display: none;
  204. }
  205. }
  206. thead.has-gutter th.el-table__cell {
  207. background-color: #f4f7fb;
  208. }
  209. .el-table__header-wrapper {
  210. flex: none;
  211. }
  212. .el-table__body-wrapper {
  213. flex: 1 1 auto;
  214. min-height: 300px;
  215. overflow-y: auto;
  216. }
  217. }
  218. .c-grid-form {
  219. display: inline-grid;
  220. grid-template-columns: max-content minmax(400px, min-content);
  221. grid-row-gap: $spacing--sm;
  222. grid-column-gap: $spacing;
  223. align-items: flex-start;
  224. &.sm {
  225. grid-template-columns: max-content minmax(300px, min-content);
  226. }
  227. &.auto {
  228. grid-template-columns: max-content max-content;
  229. }
  230. &__row {
  231. grid-column: span 2;
  232. }
  233. &__label {
  234. color: $black;
  235. font-size: $font-size--sm;
  236. line-height: $height;
  237. text-align: right;
  238. }
  239. &__text {
  240. line-height: 1.4;
  241. word-break: break-all;
  242. }
  243. &__option {
  244. min-height: $height;
  245. }
  246. &__auto {
  247. align-self: center;
  248. min-height: 0;
  249. line-height: normal;
  250. }
  251. }
  252. .c-sibling-item {
  253. & + & {
  254. margin-left: $spacing--sm !important;
  255. }
  256. & + &.nearest {
  257. margin-left: $spacing--3xs !important;
  258. }
  259. & + &.nearer {
  260. margin-left: $spacing--2xs !important;
  261. }
  262. & + &.near {
  263. margin-left: $spacing--xs !important;
  264. }
  265. & + &.far {
  266. margin-left: $spacing !important;
  267. }
  268. & + &.farther {
  269. margin-left: $spacing--lg !important;
  270. }
  271. & + &.farthest {
  272. margin-left: $spacing--2xl !important;
  273. }
  274. &--v {
  275. & + & {
  276. margin-top: $spacing--sm !important;
  277. }
  278. & + &.nearest {
  279. margin-top: $spacing--3xs !important;
  280. }
  281. & + &.nearer {
  282. margin-top: $spacing--2xs !important;
  283. }
  284. & + &.near {
  285. margin-top: $spacing--xs !important;
  286. }
  287. & + &.far {
  288. margin-top: $spacing !important;
  289. }
  290. }
  291. }
  292. .c-tabs {
  293. flex: none;
  294. .el-tabs__header {
  295. margin-bottom: 0;
  296. }
  297. &.padding {
  298. .el-tabs__nav-wrap {
  299. padding: 0 $spacing;
  300. }
  301. }
  302. .el-tabs__item {
  303. padding: 0;
  304. color: $info--dark;
  305. font-size: $font-size;
  306. font-weight: bold;
  307. user-select: none;
  308. &.is-active {
  309. color: $blue;
  310. }
  311. &::before,
  312. &::after {
  313. content: '';
  314. padding-left: $spacing--md;
  315. }
  316. }
  317. .el-tabs__active-bar {
  318. background-color: $blue;
  319. }
  320. .el-tabs__nav-wrap::after {
  321. height: 1px;
  322. background-color: $gray--light;
  323. }
  324. }
  325. .c-thumbnail-column:not(.is-leaf) {
  326. padding: $padding--xs !important;
  327. .cell {
  328. display: flex;
  329. justify-content: center;
  330. align-items: center;
  331. }
  332. }
  333. .c-edit-column:not(.is-leaf) {
  334. padding: $padding--xs 0 !important;
  335. .cell {
  336. padding: 0 !important;
  337. }
  338. }
  339. .c-info {
  340. color: $black;
  341. line-height: 1;
  342. &__block {
  343. padding: $spacing--md $spacing--2xl;
  344. background-color: #f5f7f9;
  345. & + & {
  346. margin-top: $spacing--xs;
  347. }
  348. }
  349. &__item + &__item {
  350. margin-left: $spacing;
  351. }
  352. &__title {
  353. display: inline-flex;
  354. align-items: center;
  355. width: 120px;
  356. color: $info--dark;
  357. font-size: $font-size--sm;
  358. line-height: 1;
  359. }
  360. &__value {
  361. font-size: $font-size--md;
  362. font-weight: bold;
  363. &.primary {
  364. color: $blue;
  365. }
  366. }
  367. &__edit {
  368. color: $blue;
  369. font-size: $font-size--sm;
  370. }
  371. }
  372. .c-tags {
  373. display: grid;
  374. grid-template-columns: repeat(auto-fit, minmax(auto, 80px));
  375. grid-template-rows: max-content;
  376. grid-row-gap: $spacing--xs;
  377. grid-column-gap: $spacing--xs;
  378. }
  379. .c-sidebar {
  380. flex: none;
  381. width: 200px;
  382. padding-right: $spacing;
  383. border-right: 1px solid $border;
  384. &.large {
  385. width: 240px;
  386. }
  387. &.auto-width {
  388. flex: 1 1 0;
  389. min-width: 200px;
  390. }
  391. }
  392. @media screen and (min-width: 1600px) {
  393. .c-sidebar.auto-width {
  394. min-width: 280px;
  395. }
  396. }
  397. @media screen and (min-width: 1920px) {
  398. .c-sidebar.auto-width {
  399. min-width: 400px;
  400. }
  401. }
  402. .c-tree {
  403. color: $black;
  404. font-size: $font-size;
  405. &__title {
  406. margin: 0 0 $spacing--sm;
  407. color: $black;
  408. font-size: $font-size--lg;
  409. font-weight: bold;
  410. }
  411. &__content {
  412. display: flex;
  413. align-items: center;
  414. padding: $padding--xs;
  415. &.sub {
  416. padding-left: $spacing--3xl;
  417. }
  418. &:hover {
  419. background-color: $blue--light;
  420. }
  421. &.selected {
  422. color: #fff;
  423. background-color: $blue;
  424. }
  425. }
  426. &__expand {
  427. flex: none;
  428. display: inline-flex;
  429. justify-content: center;
  430. align-items: center;
  431. width: $spacing--3xl - $padding--xs;
  432. transition: transform 0.4s;
  433. &.expand {
  434. transform: rotate(90deg);
  435. }
  436. }
  437. &__empty {
  438. padding: $spacing;
  439. color: $black;
  440. font-size: $font-size;
  441. font-weight: bold;
  442. text-align: center;
  443. }
  444. &__empty--content {
  445. padding: $padding--xs $padding--xs $padding--xs $spacing--3xl;
  446. color: $info;
  447. font-size: $font-size--xs;
  448. }
  449. }
  450. .c-footer {
  451. position: absolute;
  452. left: 0;
  453. bottom: 0;
  454. width: 100%;
  455. padding: $spacing--lg $spacing $spacing;
  456. color: #fff;
  457. line-height: 1;
  458. background-image: linear-gradient(to bottom,
  459. rgba(#000, 0) 0%,
  460. rgba(#000, 0.6) 100%);
  461. }
  462. .c-step {
  463. &__header {
  464. padding-bottom: $spacing--sm;
  465. margin-bottom: $spacing--sm;
  466. border-bottom: 1px solid $border;
  467. .hidden {
  468. visibility: hidden;
  469. }
  470. }
  471. &__column {
  472. box-sizing: content-box;
  473. min-width: 200px;
  474. color: $black;
  475. & + & {
  476. padding-left: $spacing--sm;
  477. margin-left: $spacing--sm;
  478. border-left: 1px solid $border;
  479. }
  480. &.large {
  481. min-width: 300px;
  482. max-width: 300px;
  483. }
  484. }
  485. }