dd5d842db8e440b49a562ebcf8e8fb2e5168534882b511a846a543feae1939f86201c3b88c5da043dbccd1419975d9ed81eea73d3aabe3679aa82b731dba53 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. @import 'mixins/mixins';
  2. @import 'common/var';
  3. @import 'descriptions-item';
  4. @include b(descriptions) {
  5. box-sizing: border-box;
  6. font-size: $--font-size-base;
  7. color: $--color-text-primary;
  8. @include e(header) {
  9. display: flex;
  10. justify-content: space-between;
  11. align-items: center;
  12. margin-bottom: $--descriptions-header-margin-bottom;
  13. @include e(title) {
  14. font-size: $--descriptions-title-font-size;
  15. font-weight: bold;
  16. }
  17. }
  18. @include e(body) {
  19. color: $--color-text-regular;
  20. background-color: $--color-white;
  21. .el-descriptions__table {
  22. border-collapse: collapse;
  23. width: 100%;
  24. table-layout: fixed;
  25. .el-descriptions-item__cell {
  26. box-sizing: border-box;
  27. text-align: left;
  28. font-weight: normal;
  29. line-height: 1.5;
  30. @include when(left) {
  31. text-align: left;
  32. }
  33. @include when(center) {
  34. text-align: center;
  35. }
  36. @include when(right) {
  37. text-align: right;
  38. }
  39. }
  40. }
  41. }
  42. .is-bordered {
  43. table-layout: auto;
  44. .el-descriptions-item__cell {
  45. border: $--descriptions-table-border;
  46. padding: 12px 10px;
  47. }
  48. }
  49. :not(.is-bordered) {
  50. .el-descriptions-item__cell {
  51. padding-bottom: 12px;
  52. }
  53. }
  54. @include m(medium) {
  55. &.is-bordered {
  56. .el-descriptions-item__cell {
  57. padding: 10px;
  58. }
  59. }
  60. &:not(.is-bordered) {
  61. .el-descriptions-item__cell {
  62. padding-bottom: 10px;
  63. }
  64. }
  65. }
  66. @include m(small) {
  67. font-size: 12px;
  68. &.is-bordered {
  69. .el-descriptions-item__cell {
  70. padding: 8px 10px;
  71. }
  72. }
  73. &:not(.is-bordered) {
  74. .el-descriptions-item__cell {
  75. padding-bottom: 8px;
  76. }
  77. }
  78. }
  79. @include m(mini) {
  80. font-size: 12px;
  81. &.is-bordered {
  82. .el-descriptions-item__cell {
  83. padding: 6px 10px;
  84. }
  85. }
  86. &:not(.is-bordered) {
  87. .el-descriptions-item__cell {
  88. padding-bottom: 6px;
  89. }
  90. }
  91. }
  92. }