mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-27 15:19:52 +02:00
Stylelint: replace deprecated options
This commit is contained in:
@@ -3,14 +3,16 @@
|
|||||||
"stylelint-config-twbs-bootstrap/scss"
|
"stylelint-config-twbs-bootstrap/scss"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"property-blacklist": [
|
"function-disallowed-list": [
|
||||||
|
"calc"
|
||||||
|
],
|
||||||
|
"property-disallowed-list": [
|
||||||
"border-radius",
|
"border-radius",
|
||||||
"border-top-left-radius",
|
"border-top-left-radius",
|
||||||
"border-top-right-radius",
|
"border-top-right-radius",
|
||||||
"border-bottom-right-radius",
|
"border-bottom-right-radius",
|
||||||
"border-bottom-left-radius",
|
"border-bottom-left-radius",
|
||||||
"transition"
|
"transition"
|
||||||
],
|
]
|
||||||
"function-blacklist": ["calc"]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -206,12 +206,12 @@
|
|||||||
|
|
||||||
.card-img-top,
|
.card-img-top,
|
||||||
.card-header {
|
.card-header {
|
||||||
// stylelint-disable-next-line property-blacklist
|
// stylelint-disable-next-line property-disallowed-list
|
||||||
border-top-right-radius: 0;
|
border-top-right-radius: 0;
|
||||||
}
|
}
|
||||||
.card-img-bottom,
|
.card-img-bottom,
|
||||||
.card-footer {
|
.card-footer {
|
||||||
// stylelint-disable-next-line property-blacklist
|
// stylelint-disable-next-line property-disallowed-list
|
||||||
border-bottom-right-radius: 0;
|
border-bottom-right-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -221,12 +221,12 @@
|
|||||||
|
|
||||||
.card-img-top,
|
.card-img-top,
|
||||||
.card-header {
|
.card-header {
|
||||||
// stylelint-disable-next-line property-blacklist
|
// stylelint-disable-next-line property-disallowed-list
|
||||||
border-top-left-radius: 0;
|
border-top-left-radius: 0;
|
||||||
}
|
}
|
||||||
.card-img-bottom,
|
.card-img-bottom,
|
||||||
.card-footer {
|
.card-footer {
|
||||||
// stylelint-disable-next-line property-blacklist
|
// stylelint-disable-next-line property-disallowed-list
|
||||||
border-bottom-left-radius: 0;
|
border-bottom-left-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -150,7 +150,7 @@
|
|||||||
|
|
||||||
.custom-radio {
|
.custom-radio {
|
||||||
.custom-control-label::before {
|
.custom-control-label::before {
|
||||||
// stylelint-disable-next-line property-blacklist
|
// stylelint-disable-next-line property-disallowed-list
|
||||||
border-radius: $custom-radio-indicator-border-radius;
|
border-radius: $custom-radio-indicator-border-radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -180,7 +180,7 @@
|
|||||||
left: -($custom-switch-width + $custom-control-gutter);
|
left: -($custom-switch-width + $custom-control-gutter);
|
||||||
width: $custom-switch-width;
|
width: $custom-switch-width;
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
// stylelint-disable-next-line property-blacklist
|
// stylelint-disable-next-line property-disallowed-list
|
||||||
border-radius: $custom-switch-indicator-border-radius;
|
border-radius: $custom-switch-indicator-border-radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -190,7 +190,7 @@
|
|||||||
width: $custom-switch-indicator-size;
|
width: $custom-switch-indicator-size;
|
||||||
height: $custom-switch-indicator-size;
|
height: $custom-switch-indicator-size;
|
||||||
background-color: $custom-control-indicator-border-color;
|
background-color: $custom-control-indicator-border-color;
|
||||||
// stylelint-disable-next-line property-blacklist
|
// stylelint-disable-next-line property-disallowed-list
|
||||||
border-radius: $custom-switch-indicator-border-radius;
|
border-radius: $custom-switch-indicator-border-radius;
|
||||||
@include transition(transform .15s ease-in-out, $custom-forms-transition);
|
@include transition(transform .15s ease-in-out, $custom-forms-transition);
|
||||||
}
|
}
|
||||||
|
@@ -299,7 +299,7 @@ label {
|
|||||||
//
|
//
|
||||||
// Details at https://github.com/twbs/bootstrap/issues/24093
|
// Details at https://github.com/twbs/bootstrap/issues/24093
|
||||||
button {
|
button {
|
||||||
// stylelint-disable-next-line property-blacklist
|
// stylelint-disable-next-line property-disallowed-list
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
vertical-align: text-bottom;
|
vertical-align: text-bottom;
|
||||||
border: $spinner-border-width solid currentColor;
|
border: $spinner-border-width solid currentColor;
|
||||||
border-right-color: transparent;
|
border-right-color: transparent;
|
||||||
// stylelint-disable-next-line property-blacklist
|
// stylelint-disable-next-line property-disallowed-list
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
animation: spinner-border .75s linear infinite;
|
animation: spinner-border .75s linear infinite;
|
||||||
}
|
}
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
height: $spinner-height;
|
height: $spinner-height;
|
||||||
vertical-align: text-bottom;
|
vertical-align: text-bottom;
|
||||||
background-color: currentColor;
|
background-color: currentColor;
|
||||||
// stylelint-disable-next-line property-blacklist
|
// stylelint-disable-next-line property-disallowed-list
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
animation: spinner-grow .75s linear infinite;
|
animation: spinner-grow .75s linear infinite;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
// stylelint-disable property-blacklist
|
// stylelint-disable property-disallowed-list
|
||||||
// Single side border-radius
|
// Single side border-radius
|
||||||
|
|
||||||
// Helper function to replace negative values with 0
|
// Helper function to replace negative values with 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
// stylelint-disable property-blacklist
|
// stylelint-disable property-disallowed-list
|
||||||
@mixin transition($transition...) {
|
@mixin transition($transition...) {
|
||||||
@if length($transition) == 0 {
|
@if length($transition) == 0 {
|
||||||
$transition: $transition-base;
|
$transition: $transition-base;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
// stylelint-disable property-blacklist, declaration-no-important
|
// stylelint-disable property-disallowed-list, declaration-no-important
|
||||||
|
|
||||||
//
|
//
|
||||||
// Border
|
// Border
|
||||||
|
Reference in New Issue
Block a user