_component.scss 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  1. .c-dialog {
  2. display: flex;
  3. flex-direction: column;
  4. width: 60%;
  5. min-width: 600px;
  6. min-height: 50%;
  7. max-height: 80%;
  8. margin-top: 10vh !important;
  9. border-radius: 16px;
  10. &.large {
  11. width: 80%;
  12. }
  13. &.medium {
  14. width: 40%;
  15. }
  16. &.mini {
  17. width: 600px;
  18. min-height: 100px;
  19. }
  20. .el-dialog__header,
  21. .el-dialog__footer {
  22. flex: none;
  23. padding: 16px 24px;
  24. }
  25. .el-dialog__header {
  26. border-bottom: 1px solid $gray--light;
  27. }
  28. .el-dialog__title {
  29. color: $black;
  30. font-weight: bold;
  31. }
  32. .el-dialog__body {
  33. flex: 1 1 auto;
  34. display: flex;
  35. flex-direction: column;
  36. min-height: 0;
  37. padding: $spacing;
  38. border-radius: $radius;
  39. overflow: auto;
  40. }
  41. .el-dialog__footer {
  42. border-top: 1px solid $gray--light;
  43. .o-button + .o-button {
  44. margin-left: $spacing;
  45. }
  46. }
  47. }
  48. .c-lock {
  49. .el-loading-spinner > i {
  50. font-size: 48px;
  51. }
  52. .el-loading-text {
  53. margin: 10px;
  54. color: #fff;
  55. font-size: 18px;
  56. }
  57. &.success {
  58. .el-loading-spinner > i {
  59. color: $success;
  60. }
  61. }
  62. &.warning {
  63. .el-loading-spinner > i {
  64. color: $warning;
  65. }
  66. }
  67. &.error {
  68. .el-loading-spinner > i {
  69. color: $error;
  70. }
  71. }
  72. }
  73. .c-table {
  74. &__header {
  75. padding-bottom: $spacing;
  76. &:empty {
  77. padding-bottom: 0;
  78. }
  79. }
  80. &__main {
  81. flex: 0 1 auto;
  82. min-height: 0;
  83. min-width: 0;
  84. }
  85. &.prevent-copy {
  86. .el-table__body-wrapper {
  87. .el-table__row {
  88. user-select: none;
  89. cursor: pointer;
  90. &.disabled {
  91. color: $gray;
  92. pointer-events: none;
  93. cursor: not-allowed;
  94. }
  95. .copy {
  96. user-select: text;
  97. }
  98. }
  99. }
  100. }
  101. thead.has-gutter th.el-table__cell {
  102. background-color: #f4f7fb;
  103. }
  104. .el-table__header-wrapper {
  105. flex: none;
  106. }
  107. .el-table__body-wrapper {
  108. flex: 1 1 auto;
  109. min-height: 0;
  110. overflow-y: auto;
  111. }
  112. &__btn {
  113. display: inline-block;
  114. position: relative;
  115. padding: 0 8px;
  116. color: $blue;
  117. font-size: 14px;
  118. & + &::before {
  119. content: "";
  120. display: inline-block;
  121. position: absolute;
  122. top: 50%;
  123. left: 0;
  124. height: 12px;
  125. border-left: 1px solid $gray;
  126. transform: translateY(-50%);
  127. }
  128. }
  129. }
  130. .c-grid {
  131. display: grid;
  132. grid-template-columns: repeat(4, minmax(100px, 1fr));
  133. grid-template-rows: max-content;
  134. grid-row-gap: $spacing;
  135. grid-column-gap: $spacing;
  136. min-height: 0;
  137. min-width: 0;
  138. overflow-y: auto;
  139. }
  140. .c-info-grid {
  141. display: grid;
  142. grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  143. grid-template-rows: max-content;
  144. grid-row-gap: $spacing;
  145. grid-column-gap: $spacing;
  146. align-items: start;
  147. &.medium {
  148. grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  149. }
  150. &.small {
  151. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  152. }
  153. &.mini {
  154. grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  155. }
  156. }
  157. .c-grid-form {
  158. display: inline-grid;
  159. grid-template-columns: max-content minmax(400px, min-content);
  160. grid-row-gap: 10px;
  161. grid-column-gap: 10px;
  162. align-items: flex-start;
  163. &.medium {
  164. grid-template-columns: max-content minmax(300px, min-content);
  165. }
  166. &.mini {
  167. grid-template-columns: max-content max-content;
  168. }
  169. &.col {
  170. grid-template-columns: min-content;
  171. grid-row-gap: 8px;
  172. .c-grid-form__label {
  173. text-align: left;
  174. line-height: 1;
  175. }
  176. .c-grid-form__label ~ .c-grid-form__label {
  177. padding-top: 2px;
  178. }
  179. }
  180. &__row {
  181. grid-column: span 2;
  182. }
  183. &__label {
  184. color: $black;
  185. font-size: 14px;
  186. line-height: 40px;
  187. text-align: right;
  188. &.required::before {
  189. content: '*';
  190. color: #ff0000;
  191. }
  192. }
  193. &__option {
  194. min-height: 40px;
  195. }
  196. &__info {
  197. position: relative;
  198. margin-bottom: 18px;
  199. &::after {
  200. content: attr(data-info);
  201. position: absolute;
  202. left: 0;
  203. bottom: -18px;
  204. color: $gray;
  205. font-size: 12px;
  206. line-height: 1;
  207. }
  208. }
  209. &__auto {
  210. align-self: center;
  211. min-height: 0;
  212. line-height: normal;
  213. }
  214. }
  215. .c-sibling-item {
  216. & + & {
  217. margin-left: 10px !important;
  218. }
  219. & + &.far {
  220. margin-left: $spacing !important;
  221. }
  222. }
  223. .c-tabs {
  224. flex: none;
  225. .el-tabs__header {
  226. margin-bottom: 0;
  227. }
  228. &.padding {
  229. .el-tabs__nav-wrap {
  230. padding: 0 16px;
  231. }
  232. }
  233. .el-tabs__item {
  234. padding: 0;
  235. color: $info--dark;
  236. font-size: 16px;
  237. font-weight: bold;
  238. user-select: none;
  239. &.is-active {
  240. color: $blue;
  241. }
  242. &::before,
  243. &::after {
  244. content: '';
  245. padding-left: 20px;
  246. }
  247. }
  248. .el-tabs__active-bar {
  249. background-color: $blue;
  250. }
  251. .el-tabs__nav-wrap::after {
  252. height: 1px;
  253. background-color: $gray--light;
  254. }
  255. }
  256. .c-progress > .el-dialog {
  257. top: 20%;
  258. box-shadow: none;
  259. background-color: transparent;
  260. }
  261. .c-preview {
  262. display: flex;
  263. flex-direction: column;
  264. justify-content: center;
  265. align-items: center;
  266. width: 80%;
  267. max-height: 80%;
  268. margin-top: 10vh !important;
  269. box-shadow: none;
  270. background-color: transparent;
  271. &.schedule {
  272. min-width: 800px;
  273. align-items: stretch;
  274. .el-dialog__body {
  275. display: flex;
  276. background-color: #fff;
  277. }
  278. }
  279. .el-dialog__header {
  280. display: none;
  281. }
  282. .el-dialog__body {
  283. flex: 0 1 auto;
  284. min-height: 0;
  285. padding: 0;
  286. text-align: center;
  287. }
  288. &__img {
  289. max-width: 100%;
  290. max-height: 80vh;
  291. }
  292. &__video {
  293. width: 100%;
  294. max-height: 80vh;
  295. }
  296. }
  297. .el-table__body .c-thumbnail-col .cell {
  298. display: flex;
  299. justify-content: center;
  300. align-items: center;
  301. }
  302. .c-info {
  303. color: $black;
  304. line-height: 1;
  305. &.large {
  306. .c-info__title {
  307. width: 180px;
  308. }
  309. }
  310. &__block {
  311. padding: 20px 32px;
  312. background-color: #f5f7f9;
  313. & + & {
  314. margin-top: 8px;
  315. }
  316. }
  317. &__item + &__item {
  318. margin-left: 20px;
  319. }
  320. &__title {
  321. width: 120px;
  322. color: $info--dark;
  323. }
  324. &__value {
  325. font-size: 18px;
  326. font-weight: bold;
  327. &.primary {
  328. color: $blue;
  329. }
  330. }
  331. &__edit {
  332. color: $blue;
  333. font-size: 14px;
  334. }
  335. }
  336. .c-tags {
  337. display: grid;
  338. grid-template-columns: repeat(auto-fit, minmax(auto, 80px));
  339. grid-template-rows: max-content;
  340. grid-row-gap: 8px;
  341. grid-column-gap: 10px;
  342. justify-content: center;
  343. }
  344. .c-tree-sidebar {
  345. flex: none;
  346. width: 200px;
  347. padding-right: $spacing;
  348. margin-right: $spacing;
  349. border-right: 1px solid $gray--light;
  350. &.large {
  351. width: 240px;
  352. }
  353. &__main {
  354. min-height: 100%;
  355. overflow-x: auto;
  356. }
  357. }