4
4
max-width : 100% ;
5
5
}
6
6
7
+ /* ducplicated for IE */
7
8
ui5-checkbox {
8
9
display : inline-block;
9
10
overflow : hidden;
10
11
max-width : 100% ;
11
12
}
12
13
13
- span [data-sap-ui-wc-root ] {
14
- display : inline-block;
15
- }
16
-
17
14
.ui5-checkbox-wrapper {
15
+ position : relative;
16
+ display : inline-flex;
17
+ align-items : center;
18
+ width : 100% ;
18
19
min-height : var (--_ui5_checkbox_width_height );
19
20
min-width : var (--_ui5_checkbox_width_height );
20
- display : flex;
21
- align-items : center;
22
- padding-left : .8125rem ;
23
- padding-right : 0.125rem ;
21
+ padding : 0 var (--_ui5_checkbox_wrapper_padding );
24
22
box-sizing : border-box;
25
23
outline : none;
26
- position : relative;
27
24
-webkit-tap-highlight-color : rgba (0 , 0 , 0 , 0 );
28
25
}
29
26
27
+ .ui5-checkbox-wrapper : not (.ui5-checkbox-with-label ) {
28
+ justify-content : center;
29
+ }
30
30
31
31
.ui5-checkbox-wrapper ::after {
32
32
content : "" ;
33
33
min-height : inherit;
34
34
font-size : 0 ;
35
35
}
36
36
37
+ .ui5-checkbox-wrapper .ui5-checkbox-with-label {
38
+ padding-right : 0 ;
39
+ }
40
+
41
+ .ui5-checkbox-wrapper .ui5-checkbox-with-label : focus ::before {
42
+ right : 0 ;
43
+ }
44
+
37
45
.ui5-checkbox-wrapper .ui5-checkbox-with-label .ui5-checkbox--wrap {
38
46
min-height : auto;
39
47
padding-top : .6875rem ;
@@ -47,10 +55,6 @@ span[data-sap-ui-wc-root] {
47
55
margin-top : var (--_ui5_checkbox_wrapped_content_margin_top );
48
56
}
49
57
50
- .sapUiSizeCompact .ui5-checkbox-wrapper .ui5-checkbox-with-label .ui5-checkbox--wrap .ui5-checkbox-label {
51
- margin-top : var (--_ui5_checkbox_compact_wrapped_label_margin_top );
52
- }
53
-
54
58
.ui5-checkbox--disabled {
55
59
opacity : .5 ;
56
60
}
@@ -101,21 +105,17 @@ span[data-sap-ui-wc-root] {
101
105
.ui5-checkbox-wrapper : focus ::before {
102
106
content : "" ;
103
107
position : absolute;
104
- top : var (--_ui5_checkbox_focus_left_top_bottom_position );
105
- left : .6875 rem ;
106
- right : 0 px ;
107
- bottom : var (--_ui5_checkbox_focus_left_top_bottom_position );
108
+ top : var (--_ui5_checkbox_focus_position );
109
+ left : var ( --_ui5_checkbox_focus_position ) ;
110
+ right : var ( --_ui5_checkbox_focus_position ) ;
111
+ bottom : var (--_ui5_checkbox_focus_position );
108
112
border : var (--_ui5_checkbox_focus_outline );
109
113
}
110
114
111
115
.ui5-checkbox-wrapper .ui5-checkbox--wrap : focus ::before {
112
116
bottom : var (--_ui5_checkbox_wrapped_focus_left_top_bottom_position );
113
117
}
114
118
115
- .ui5-checkbox-wrapper : not (.ui5-checkbox-with-label ): focus ::before {
116
- right : var (--_ui5_checkbox_no_label_focus_right );
117
- }
118
-
119
119
.ui5-checkbox-inner {
120
120
display : flex;
121
121
justify-content : center;
@@ -161,7 +161,7 @@ span[data-sap-ui-wc-root] {
161
161
}
162
162
163
163
.ui5-checkbox-wrapper .ui5-checkbox-label {
164
- margin-left : .8125 rem ;
164
+ margin-left : var ( --_ui5_checkbox_wrapper_padding ) ;
165
165
cursor : default;
166
166
text-overflow : ellipsis;
167
167
overflow : hidden;
@@ -172,9 +172,11 @@ span[data-sap-ui-wc-root] {
172
172
-webkit-user-select : none;
173
173
}
174
174
175
+ /* Compact */
175
176
.sapUiSizeCompact .ui5-checkbox-wrapper {
176
177
min-height : var (--_ui5_checkbox_compact_width_height );
177
178
min-width : var (--_ui5_checkbox_compact_width_height );
179
+ padding : 0 var (--_ui5_checkbox_compact_wrapper_padding );
178
180
}
179
181
180
182
.sapUiSizeCompact .ui5-checkbox-inner {
@@ -183,37 +185,56 @@ span[data-sap-ui-wc-root] {
183
185
max-width : var (--_ui5_checkbox_compact_inner_size );
184
186
min-width : var (--_ui5_checkbox_compact_inner_size );
185
187
font-size : .625rem ;
186
- border-radius : 0 ;
187
188
}
188
189
189
190
.sapUiSizeCompact .ui5-checkbox-wrapper : focus ::before {
190
- top : var (--_ui5_checkbox_compact_focus_left_top_bottom_position );
191
- left : .6875 rem ;
192
- right : 0 px ;
193
- bottom : var (--_ui5_checkbox_compact_focus_left_top_bottom_position );
191
+ top : var (--_ui5_checkbox_compact_focus_position );
192
+ left : var ( --_ui5_checkbox_compact_focus_position ) ;
193
+ right : var ( --_ui5_checkbox_compact_focus_position ) ;
194
+ bottom : var (--_ui5_checkbox_compact_focus_position );
194
195
border : var (--_ui5_checkbox_focus_outline );
195
196
}
196
197
197
- .sapUiSizeCompact .ui5-checkbox-wrapper : not (.ui5-checkbox-with-label ): focus ::before {
198
- right : var (--_ui5_checkbox_compact_no_label_focus_right );
199
- }
200
-
201
198
.sapUiSizeCompact .ui5-checkbox-wrapper .ui5-checkbox-with-label .ui5-checkbox--wrap {
202
199
min-height : auto;
203
200
padding-top : var (--_ui5_checkbox_wrapped_focus_padding );
204
201
padding-bottom : var (--_ui5_checkbox_wrapped_focus_padding );
205
202
}
206
203
204
+ .sapUiSizeCompact .ui5-checkbox-wrapper .ui5-checkbox-with-label .ui5-checkbox--wrap .ui5-checkbox-label {
205
+ margin-top : var (--_ui5_checkbox_compact_wrapped_label_margin_top );
206
+ }
207
+
207
208
.sapUiSizeCompact .ui5-checkbox-wrapper .ui5-checkbox--wrap : focus ::before {
208
- bottom : var (--_ui5_checkbox_compact_wrapped_focus_left_top_bottom_position );
209
+ bottom : var (--_ui5_checkbox_compact_focus_position );
209
210
}
210
211
211
212
.sapUiSizeCompact .ui5-checkbox-wrapper .ui5-checkbox-label {
213
+ margin-left : var (--_ui5_checkbox_compact_wrapper_padding );
212
214
width : calc (100% - .8125rem - var (--_ui5_checkbox_compact_inner_size ));
213
215
}
214
216
217
+ /* RTL */
218
+ span [dir = "rtl" ] .ui5-checkbox-wrapper .ui5-checkbox-with-label {
219
+ padding-left : 0 ;
220
+ padding-right : var (--_ui5_checkbox_wrapper_padding );
221
+ }
222
+
223
+ span [dir = "rtl" ] .ui5-checkbox-wrapper .ui5-checkbox-with-label : focus ::before {
224
+ left : 0 ;
225
+ right : var (--_ui5_checkbox_focus_position );
226
+ }
215
227
216
228
span [dir = "rtl" ] .ui5-checkbox-wrapper .ui5-checkbox-label {
217
229
margin-left : 0 ;
218
- margin-right : .8125rem ;
230
+ margin-right : var (--_ui5_checkbox_compact_wrapper_padding );
231
+ }
232
+
233
+ /* RTL + Compact */
234
+ span [dir = "rtl" ].sapUiSizeCompact .ui5-checkbox-wrapper .ui5-checkbox-with-label {
235
+ padding-right : var (--_ui5_checkbox_compact_wrapper_padding );
236
+ }
237
+
238
+ span [dir = "rtl" ].sapUiSizeCompact .ui5-checkbox-wrapper .ui5-checkbox-with-label : focus ::before {
239
+ right : var (--_ui5_checkbox_compact_focus_position );
219
240
}
0 commit comments