File tree Expand file tree Collapse file tree 4 files changed +32
-34
lines changed Expand file tree Collapse file tree 4 files changed +32
-34
lines changed Original file line number Diff line number Diff line change 6
6
7
7
@import " ../../mixins/_reset.less" ;
8
8
9
- @componentName : descriptions;
10
-
11
- .@{prefix} - @{componentName} {
9
+ .@{prefix} -descriptions {
12
10
.reset ;
13
11
12
+ @root : ~ " .@{prefix} -descriptions" ;
13
+
14
14
&__header {
15
15
color : @text-color-primary ;
16
16
font : @font-title-medium ;
27
27
.generate-padding (m, @descriptions-padding-m );
28
28
.generate-padding (s , @descriptions-padding-s );
29
29
30
- & . @{prefix} - @{componentName } __label {
30
+ & @{root } __label {
31
31
color : @text-color-placeholder ;
32
32
}
33
33
40
40
}
41
41
}
42
42
43
- . @{prefix} - @{componentName } __label {
43
+ @{root } __label {
44
44
background-color : @bg-color-secondarycontainer ;
45
45
46
46
& :hover {
Original file line number Diff line number Diff line change 9
9
10
10
@import " ../../mixins/_reset.less" ;
11
11
12
- @componentName : drawer;
13
-
14
- .@{prefix} - @{componentName} {
12
+ .@{prefix} -drawer {
15
13
.reset ;
16
14
15
+ @root : ~ " .@{prefix} -drawer" ;
16
+
17
17
position : fixed ;
18
18
z-index : 1500 ;
19
19
width : 100% ;
85
85
position : relative ;
86
86
}
87
87
88
- . @{prefix} - @{componentName } __content- wrapper {
88
+ @{root } __content- wrapper {
89
89
position : absolute ;
90
90
width : 100% ;
91
91
height : 100% ;
185
185
vertical-align : unset ;
186
186
}
187
187
}
188
- }
189
-
190
- .@{prefix} - @{componentName} --open {
191
- width : 100% ;
192
- height : 100% ;
193
- pointer-events : auto ;
194
-
195
- > .@{prefix} - @{componentName} __content- wrapper {
196
- visibility : visible ;
197
- }
198
188
199
- > .@{prefix} - @{componentName} __mask {
200
- opacity : 1 ;
189
+ &--open {
201
190
width : 100% ;
202
191
height : 100% ;
192
+ pointer-events : auto ;
193
+
194
+ > @{root} __content- wrapper {
195
+ visibility : visible ;
196
+ }
197
+
198
+ > @{root} __mask {
199
+ opacity : 1 ;
200
+ width : 100% ;
201
+ height : 100% ;
202
+ }
203
203
}
204
- }
205
204
206
- // 需要在 t-drawer--open 后面,优先级才比 open 高
207
- .@{prefix} - @{componentName} --without-mask {
208
- pointer-events : none ;
205
+ // 需要在 t-drawer--open 后面,优先级才比 open 高
206
+ &--without-mask {
207
+ pointer-events : none ;
208
+ }
209
209
}
210
210
211
211
[tabindex= " -1" ]:focus {
Original file line number Diff line number Diff line change 6
6
7
7
@import " ../../mixins/_reset.less" ;
8
8
9
- @componentName : guide;
10
-
11
- .@{prefix} - @{componentName} {
9
+ .@{prefix} -guide {
12
10
.reset ;
13
11
12
+ @root : ~ " .@{prefix} -guide" ;
13
+
14
14
&--lock {
15
15
overflow : hidden ;
16
16
}
86
86
border : 1px solid @component-border ;
87
87
}
88
88
89
- . @{prefix} - @{componentName } __title {
89
+ @{root } __title {
90
90
font : @font-title-medium ;
91
91
font-weight : 700 ;
92
92
}
93
93
94
- . @{prefix} - @{componentName } __desc {
94
+ @{root } __desc {
95
95
margin-top : @guide-dialog-desc-margin-top ;
96
96
font : @font-body-medium ;
97
97
}
142
142
&--dialog {
143
143
margin-top : @spacer-3 ;
144
144
145
- . @{prefix} - @{componentName } {
145
+ @{root } {
146
146
&__action {
147
147
display : flex ;
148
148
justify-content : center ;
Original file line number Diff line number Diff line change 2
2
3
3
@import " ./_var.less" ;
4
4
5
- @componentName : typography;
6
-
7
- .@{prefix} - @{componentName} {
5
+ .@{prefix} -typography {
8
6
color : @typography-text-primary-color ;
9
7
font : @font-body-medium ;
10
8
margin : @comp-margin-m 0 ;
You can’t perform that action at this time.
0 commit comments