File tree 14 files changed +40
-35
lines changed
site/docs/4.2/assets/scss
14 files changed +40
-35
lines changed Original file line number Diff line number Diff line change 261
261
"fill",
262
262
"stroke"
263
263
],
264
- "property-blacklist": ["transition"],
264
+ "property-blacklist": [
265
+ "border-radius",
266
+ "border-top-left-radius",
267
+ "border-top-right-radius",
268
+ "border-bottom-right-radius",
269
+ "border-bottom-left-radius",
270
+ "transition"
271
+ ],
265
272
"property-no-vendor-prefix": true,
266
273
"rule-empty-line-before": null,
267
274
"scss/at-function-named-arguments": "never",
Original file line number Diff line number Diff line change 200
200
201
201
.card-img-top ,
202
202
.card-header {
203
+ // stylelint-disable-next-line property-blacklist
203
204
border-top-right-radius : 0 ;
204
205
}
205
206
.card-img-bottom ,
206
207
.card-footer {
208
+ // stylelint-disable-next-line property-blacklist
207
209
border-bottom-right-radius : 0 ;
208
210
}
209
211
}
213
215
214
216
.card-img-top ,
215
217
.card-header {
218
+ // stylelint-disable-next-line property-blacklist
216
219
border-top-left-radius : 0 ;
217
220
}
218
221
.card-img-bottom ,
219
222
.card-footer {
223
+ // stylelint-disable-next-line property-blacklist
220
224
border-bottom-left-radius : 0 ;
221
225
}
222
226
}
283
287
284
288
& :not (:first-of-type ) {
285
289
.card-header :first-child {
286
- border-radius : 0 ;
290
+ @include border-radius ( 0 ) ;
287
291
}
288
292
289
293
& :not (:last-of-type ) {
290
294
border-bottom : 0 ;
291
- border-radius : 0 ;
295
+ @include border-radius ( 0 ) ;
292
296
}
293
297
}
294
298
295
299
& :first-of-type {
296
300
border-bottom : 0 ;
297
- border-bottom-right-radius : 0 ;
298
- border-bottom-left-radius : 0 ;
301
+ @include border-bottom-radius (0 );
299
302
}
300
303
301
304
& :last-of-type {
302
- border-top-left-radius : 0 ;
303
- border-top-right-radius : 0 ;
305
+ @include border-top-radius (0 );
304
306
}
305
307
306
308
.card-header {
Original file line number Diff line number Diff line change 144
144
145
145
.custom-radio {
146
146
.custom-control-label ::before {
147
+ // stylelint-disable-next-line property-blacklist
147
148
border-radius : $custom-radio-indicator-border-radius ;
148
149
}
149
150
173
174
left : - ($custom-switch-width + $custom-control-gutter );
174
175
width : $custom-switch-width ;
175
176
pointer-events : all ;
177
+ // stylelint-disable-next-line property-blacklist
176
178
border-radius : $custom-switch-indicator-border-radius ;
177
179
}
178
180
182
184
width : $custom-switch-indicator-size ;
183
185
height : $custom-switch-indicator-size ;
184
186
background-color : $custom-control-indicator-border-color ;
187
+ // stylelint-disable-next-line property-blacklist
185
188
border-radius : $custom-switch-indicator-border-radius ;
186
189
@include transition (transform .15s ease-in-out , $custom-forms-transition );
187
190
}
220
223
background : $custom-select-background ;
221
224
background-color : $custom-select-bg ;
222
225
border : $custom-select-border-width solid $custom-select-border-color ;
223
- @if $enable-rounded {
224
- border-radius : $custom-select-border-radius ;
225
- } @else {
226
- border-radius : 0 ;
227
- }
226
+ @include border-radius ($custom-select-border-radius , 0 );
228
227
@include box-shadow ($custom-select-box-shadow );
229
228
appearance : none ;
230
229
Original file line number Diff line number Diff line change 18
18
border : $input-border-width solid $input-border-color ;
19
19
20
20
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
21
- @if $enable-rounded {
22
- // Manually use the if/else instead of the mixin to account for iOS override
23
- border-radius : $input-border-radius ;
24
- } @else {
25
- // Otherwise undo the iOS default
26
- border-radius : 0 ;
27
- }
21
+ @include border-radius ($input-border-radius , 0 );
28
22
29
23
@include box-shadow ($input-box-shadow );
30
24
@include transition ($input-transition );
Original file line number Diff line number Diff line change @@ -297,6 +297,7 @@ label {
297
297
//
298
298
// Details at https://github.com/twbs/bootstrap/issues/24093
299
299
button {
300
+ // stylelint-disable-next-line property-blacklist
300
301
border-radius : 0 ;
301
302
}
302
303
Original file line number Diff line number Diff line change 13
13
vertical-align : text-bottom ;
14
14
border : $spinner-border-width solid currentColor ;
15
15
border-right-color : transparent ;
16
+ // stylelint-disable-next-line property-blacklist
16
17
border-radius : 50% ;
17
18
animation : spinner- border .75s linear infinite ;
18
19
}
42
43
height : $spinner-height ;
43
44
vertical-align : text-bottom ;
44
45
background-color : currentColor ;
46
+ // stylelint-disable-next-line property-blacklist
45
47
border-radius : 50% ;
46
48
opacity : 0 ;
47
49
animation : spinner- grow .75s linear infinite ;
Original file line number Diff line number Diff line change
1
+ // stylelint-disable property-blacklist
1
2
// Single side border-radius
2
3
3
- @mixin border-radius ($radius : $border-radius ) {
4
+ @mixin border-radius ($radius : $border-radius , $fallback-border-radius : false ) {
4
5
@if $enable-rounded {
5
6
border-radius : $radius ;
6
7
}
8
+ @else if $fallback-border-radius != false {
9
+ border-radius : $fallback-border-radius ;
10
+ }
7
11
}
8
12
9
13
@mixin border-top-radius ($radius ) {
Original file line number Diff line number Diff line change 103
103
font-size : $font-size ;
104
104
line-height : $line-height ;
105
105
// Manually declare to provide an override to the browser default
106
- @if $enable-rounded {
107
- border-radius : $border-radius ;
108
- } @else {
109
- border-radius : 0 ;
110
- }
106
+ @include border-radius ($border-radius , 0 );
111
107
}
Original file line number Diff line number Diff line change 1
- // stylelint-disable declaration-no-important
1
+ // stylelint-disable property-blacklist, declaration-no-important
2
2
3
3
//
4
4
// Border
Original file line number Diff line number Diff line change 23
23
24
24
@include media-breakpoint-up (sm) {
25
25
max-width : 330px ;
26
- border-radius : 4px ;
26
+ @include border-radius ( 4px ) ;
27
27
}
28
28
}
29
29
Original file line number Diff line number Diff line change 10
10
overflow : hidden ;
11
11
color : $bd-purple ;
12
12
background-color : #f9f9f9 ;
13
- border-radius : .25 rem ;
13
+ @include border-radius ;
14
14
15
15
.inverse {
16
16
color : $white ;
79
79
height : 4rem ;
80
80
margin-right : .25rem ;
81
81
margin-left : .25rem ;
82
- border-radius : .25 rem ;
82
+ @include border-radius ;
83
83
84
84
@include media-breakpoint-up (md) {
85
85
width : 6rem ;
Original file line number Diff line number Diff line change 8
8
margin-bottom : 1.25rem ;
9
9
border : 1px solid #eee ;
10
10
border-left-width : .25rem ;
11
- border-radius : .25 rem ;
11
+ @include border-radius ;
12
12
13
13
h4 {
14
14
margin-top : 0 ;
20
20
}
21
21
22
22
code {
23
- border-radius : .25 rem ;
23
+ @include border-radius ;
24
24
}
25
25
26
26
+ .bd-callout {
Original file line number Diff line number Diff line change 28
28
cursor : pointer ;
29
29
background-color : transparent ;
30
30
border : 0 ;
31
- border-radius : .25 rem ;
31
+ @include border-radius ;
32
32
33
33
& :hover {
34
34
color : $white ;
Original file line number Diff line number Diff line change 87
87
height : 3rem ;
88
88
margin-bottom : .5rem ;
89
89
background-color : lighten ($blue , 50% );
90
- border-radius : .25 rem ;
90
+ @include border-radius ;
91
91
}
92
92
93
93
.bd-example-container-sidebar {
94
94
float : right ;
95
95
width : 4rem ;
96
96
height : 8rem ;
97
97
background-color : lighten ($blue , 25% );
98
- border-radius : .25 rem ;
98
+ @include border-radius ;
99
99
}
100
100
101
101
.bd-example-container-body {
102
102
height : 8rem ;
103
103
margin-right : 4.5rem ;
104
104
background-color : lighten ($bd-purple , 25% );
105
- border-radius : .25 rem ;
105
+ @include border-radius ;
106
106
}
107
107
108
108
.bd-example-container-fluid {
You can’t perform that action at this time.
0 commit comments