Skip to content

Commit 1ab75c8

Browse files
authored
Fix Sass properties order for newer stylelint-config-recess-order (#38851)
1 parent d333d70 commit 1ab75c8

5 files changed

+10
-10
lines changed

scss/_reboot.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -524,15 +524,15 @@ legend {
524524
height: auto;
525525
}
526526

527-
// 1. Correct the outline style in Safari.
528-
// 2. This overrides the extra rounded corners on search inputs in iOS so that our
527+
// 1. This overrides the extra rounded corners on search inputs in iOS so that our
529528
// `.form-control` class can properly style them. Note that this cannot simply
530529
// be added to `.form-control` as it's not specific enough. For details, see
531530
// https://github.com/twbs/bootstrap/issues/11586.
531+
// 2. Correct the outline style in Safari.
532532

533533
[type="search"] {
534-
outline-offset: -2px; // 1
535-
-webkit-appearance: textfield; // 2
534+
-webkit-appearance: textfield; // 1
535+
outline-offset: -2px; // 2
536536
}
537537

538538
// 1. A few input types should stay LTR

scss/forms/_form-check.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
height: $form-check-input-width;
3434
margin-top: ($line-height-base - $form-check-input-width) * .5; // line-height minus check height
3535
vertical-align: top;
36+
appearance: none;
3637
background-color: var(--#{$prefix}form-check-bg);
3738
background-image: var(--#{$prefix}form-check-bg-image);
3839
background-repeat: no-repeat;
3940
background-position: center;
4041
background-size: contain;
4142
border: $form-check-input-border;
42-
appearance: none;
4343
print-color-adjust: exact; // Keep themed appearance for print
4444
@include transition($form-check-transition);
4545

scss/forms/_form-control.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
font-weight: $input-font-weight;
1212
line-height: $input-line-height;
1313
color: $input-color;
14+
appearance: none; // Fix appearance for date inputs in Safari
1415
background-color: $input-bg;
1516
background-clip: padding-box;
1617
border: $input-border-width solid $input-border-color;
17-
appearance: none; // Fix appearance for date inputs in Safari
1818

1919
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
2020
@include border-radius($input-border-radius, 0);

scss/forms/_form-range.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
width: 100%;
99
height: add($form-range-thumb-height, $form-range-thumb-focus-box-shadow-width * 2);
1010
padding: 0; // Need to reset padding
11-
background-color: transparent;
1211
appearance: none;
12+
background-color: transparent;
1313

1414
&:focus {
1515
outline: 0;
@@ -28,12 +28,12 @@
2828
width: $form-range-thumb-width;
2929
height: $form-range-thumb-height;
3030
margin-top: ($form-range-track-height - $form-range-thumb-height) * .5; // Webkit specific
31+
appearance: none;
3132
@include gradient-bg($form-range-thumb-bg);
3233
border: $form-range-thumb-border;
3334
@include border-radius($form-range-thumb-border-radius);
3435
@include box-shadow($form-range-thumb-box-shadow);
3536
@include transition($form-range-thumb-transition);
36-
appearance: none;
3737

3838
&:active {
3939
@include gradient-bg($form-range-thumb-active-bg);
@@ -54,12 +54,12 @@
5454
&::-moz-range-thumb {
5555
width: $form-range-thumb-width;
5656
height: $form-range-thumb-height;
57+
appearance: none;
5758
@include gradient-bg($form-range-thumb-bg);
5859
border: $form-range-thumb-border;
5960
@include border-radius($form-range-thumb-border-radius);
6061
@include box-shadow($form-range-thumb-box-shadow);
6162
@include transition($form-range-thumb-transition);
62-
appearance: none;
6363

6464
&:active {
6565
@include gradient-bg($form-range-thumb-active-bg);

scss/forms/_form-select.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
font-weight: $form-select-font-weight;
1515
line-height: $form-select-line-height;
1616
color: $form-select-color;
17+
appearance: none;
1718
background-color: $form-select-bg;
1819
background-image: var(--#{$prefix}form-select-bg-img), var(--#{$prefix}form-select-bg-icon, none);
1920
background-repeat: no-repeat;
@@ -23,7 +24,6 @@
2324
@include border-radius($form-select-border-radius, 0);
2425
@include box-shadow($form-select-box-shadow);
2526
@include transition($form-select-transition);
26-
appearance: none;
2727

2828
&:focus {
2929
border-color: $form-select-focus-border-color;

0 commit comments

Comments
 (0)