mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-20 17:54:23 +01:00
Fix Sass properties order for newer stylelint-config-recess-order (#38851)
This commit is contained in:
parent
d333d70e52
commit
1ab75c8d14
@ -524,15 +524,15 @@ legend {
|
|||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1. Correct the outline style in Safari.
|
// 1. This overrides the extra rounded corners on search inputs in iOS so that our
|
||||||
// 2. This overrides the extra rounded corners on search inputs in iOS so that our
|
|
||||||
// `.form-control` class can properly style them. Note that this cannot simply
|
// `.form-control` class can properly style them. Note that this cannot simply
|
||||||
// be added to `.form-control` as it's not specific enough. For details, see
|
// be added to `.form-control` as it's not specific enough. For details, see
|
||||||
// https://github.com/twbs/bootstrap/issues/11586.
|
// https://github.com/twbs/bootstrap/issues/11586.
|
||||||
|
// 2. Correct the outline style in Safari.
|
||||||
|
|
||||||
[type="search"] {
|
[type="search"] {
|
||||||
outline-offset: -2px; // 1
|
-webkit-appearance: textfield; // 1
|
||||||
-webkit-appearance: textfield; // 2
|
outline-offset: -2px; // 2
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1. A few input types should stay LTR
|
// 1. A few input types should stay LTR
|
||||||
|
@ -33,13 +33,13 @@
|
|||||||
height: $form-check-input-width;
|
height: $form-check-input-width;
|
||||||
margin-top: ($line-height-base - $form-check-input-width) * .5; // line-height minus check height
|
margin-top: ($line-height-base - $form-check-input-width) * .5; // line-height minus check height
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
|
appearance: none;
|
||||||
background-color: var(--#{$prefix}form-check-bg);
|
background-color: var(--#{$prefix}form-check-bg);
|
||||||
background-image: var(--#{$prefix}form-check-bg-image);
|
background-image: var(--#{$prefix}form-check-bg-image);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
border: $form-check-input-border;
|
border: $form-check-input-border;
|
||||||
appearance: none;
|
|
||||||
print-color-adjust: exact; // Keep themed appearance for print
|
print-color-adjust: exact; // Keep themed appearance for print
|
||||||
@include transition($form-check-transition);
|
@include transition($form-check-transition);
|
||||||
|
|
||||||
|
@ -11,10 +11,10 @@
|
|||||||
font-weight: $input-font-weight;
|
font-weight: $input-font-weight;
|
||||||
line-height: $input-line-height;
|
line-height: $input-line-height;
|
||||||
color: $input-color;
|
color: $input-color;
|
||||||
|
appearance: none; // Fix appearance for date inputs in Safari
|
||||||
background-color: $input-bg;
|
background-color: $input-bg;
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
border: $input-border-width solid $input-border-color;
|
border: $input-border-width solid $input-border-color;
|
||||||
appearance: none; // Fix appearance for date inputs in Safari
|
|
||||||
|
|
||||||
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
||||||
@include border-radius($input-border-radius, 0);
|
@include border-radius($input-border-radius, 0);
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: add($form-range-thumb-height, $form-range-thumb-focus-box-shadow-width * 2);
|
height: add($form-range-thumb-height, $form-range-thumb-focus-box-shadow-width * 2);
|
||||||
padding: 0; // Need to reset padding
|
padding: 0; // Need to reset padding
|
||||||
background-color: transparent;
|
|
||||||
appearance: none;
|
appearance: none;
|
||||||
|
background-color: transparent;
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
@ -28,12 +28,12 @@
|
|||||||
width: $form-range-thumb-width;
|
width: $form-range-thumb-width;
|
||||||
height: $form-range-thumb-height;
|
height: $form-range-thumb-height;
|
||||||
margin-top: ($form-range-track-height - $form-range-thumb-height) * .5; // Webkit specific
|
margin-top: ($form-range-track-height - $form-range-thumb-height) * .5; // Webkit specific
|
||||||
|
appearance: none;
|
||||||
@include gradient-bg($form-range-thumb-bg);
|
@include gradient-bg($form-range-thumb-bg);
|
||||||
border: $form-range-thumb-border;
|
border: $form-range-thumb-border;
|
||||||
@include border-radius($form-range-thumb-border-radius);
|
@include border-radius($form-range-thumb-border-radius);
|
||||||
@include box-shadow($form-range-thumb-box-shadow);
|
@include box-shadow($form-range-thumb-box-shadow);
|
||||||
@include transition($form-range-thumb-transition);
|
@include transition($form-range-thumb-transition);
|
||||||
appearance: none;
|
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
@include gradient-bg($form-range-thumb-active-bg);
|
@include gradient-bg($form-range-thumb-active-bg);
|
||||||
@ -54,12 +54,12 @@
|
|||||||
&::-moz-range-thumb {
|
&::-moz-range-thumb {
|
||||||
width: $form-range-thumb-width;
|
width: $form-range-thumb-width;
|
||||||
height: $form-range-thumb-height;
|
height: $form-range-thumb-height;
|
||||||
|
appearance: none;
|
||||||
@include gradient-bg($form-range-thumb-bg);
|
@include gradient-bg($form-range-thumb-bg);
|
||||||
border: $form-range-thumb-border;
|
border: $form-range-thumb-border;
|
||||||
@include border-radius($form-range-thumb-border-radius);
|
@include border-radius($form-range-thumb-border-radius);
|
||||||
@include box-shadow($form-range-thumb-box-shadow);
|
@include box-shadow($form-range-thumb-box-shadow);
|
||||||
@include transition($form-range-thumb-transition);
|
@include transition($form-range-thumb-transition);
|
||||||
appearance: none;
|
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
@include gradient-bg($form-range-thumb-active-bg);
|
@include gradient-bg($form-range-thumb-active-bg);
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
font-weight: $form-select-font-weight;
|
font-weight: $form-select-font-weight;
|
||||||
line-height: $form-select-line-height;
|
line-height: $form-select-line-height;
|
||||||
color: $form-select-color;
|
color: $form-select-color;
|
||||||
|
appearance: none;
|
||||||
background-color: $form-select-bg;
|
background-color: $form-select-bg;
|
||||||
background-image: var(--#{$prefix}form-select-bg-img), var(--#{$prefix}form-select-bg-icon, none);
|
background-image: var(--#{$prefix}form-select-bg-img), var(--#{$prefix}form-select-bg-icon, none);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@ -23,7 +24,6 @@
|
|||||||
@include border-radius($form-select-border-radius, 0);
|
@include border-radius($form-select-border-radius, 0);
|
||||||
@include box-shadow($form-select-box-shadow);
|
@include box-shadow($form-select-box-shadow);
|
||||||
@include transition($form-select-transition);
|
@include transition($form-select-transition);
|
||||||
appearance: none;
|
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: $form-select-focus-border-color;
|
border-color: $form-select-focus-border-color;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user