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