mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-20 17:54:23 +01:00
fix majority of scss linter errors
This commit is contained in:
parent
47d5168dc8
commit
b2dccb15d7
@ -12,6 +12,9 @@ linters:
|
|||||||
ColorKeyword:
|
ColorKeyword:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
ColorVariable:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
Comment:
|
Comment:
|
||||||
enabled: true
|
enabled: true
|
||||||
exclude: ['_normalize.scss', 'bootstrap.scss']
|
exclude: ['_normalize.scss', 'bootstrap.scss']
|
||||||
@ -55,6 +58,9 @@ linters:
|
|||||||
IdSelector:
|
IdSelector:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
ImportantRule:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
ImportPath:
|
ImportPath:
|
||||||
enabled: true
|
enabled: true
|
||||||
leading_underscore: false
|
leading_underscore: false
|
||||||
|
@ -132,7 +132,7 @@
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
padding: .375rem 1.75rem .375rem .75rem;
|
padding: .375rem 1.75rem .375rem .75rem;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAAADFBMVEUzMzMzMzMzMzMzMzMKAG/3AAAAA3RSTlMAf4C/aSLHAAAAPElEQVR42q3NMQ4AIAgEQTn//2cLdRKppSGzBYwzVXvznNWs8C58CiussPJj8h6NwgorrKRdTvuV9v16Afn0AYFOB7aYAAAAAElFTkSuQmCC) no-repeat right .75rem center;
|
background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAAADFBMVEUzMzMzMzMzMzMzMzMKAG/3AAAAA3RSTlMAf4C/aSLHAAAAPElEQVR42q3NMQ4AIAgEQTn//2cLdRKppSGzBYwzVXvznNWs8C58CiussPJj8h6NwgorrKRdTvuV9v16Afn0AYFOB7aYAAAAAElFTkSuQmCC) no-repeat right .75rem center;
|
||||||
background-size: 8px 10px;
|
background-size: 8px 10px;
|
||||||
border: 1px solid $input-border;
|
border: 1px solid $input-border;
|
||||||
|
|
||||||
@ -146,8 +146,8 @@
|
|||||||
background-image: none \9;
|
background-image: none \9;
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: none;
|
|
||||||
border-color: #51a7e8;
|
border-color: #51a7e8;
|
||||||
|
outline: none;
|
||||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 5px rgba(81, 167, 232, 0.5);
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 5px rgba(81, 167, 232, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,9 +266,9 @@ input[type="checkbox"] {
|
|||||||
.form-control-warning,
|
.form-control-warning,
|
||||||
.form-control-error {
|
.form-control-error {
|
||||||
padding-right: ($input-padding-x * 3);
|
padding-right: ($input-padding-x * 3);
|
||||||
|
background-repeat: no-repeat;
|
||||||
background-position: center right ($input-height * .25);
|
background-position: center right ($input-height * .25);
|
||||||
background-size: ($input-height * .65) ($input-height * .65);
|
background-size: ($input-height * .65) ($input-height * .65);
|
||||||
background-repeat: no-repeat;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Form validation states
|
// Form validation states
|
||||||
|
@ -41,8 +41,8 @@ a.label {
|
|||||||
// Make them extra rounded with a modifier to replace v3's badges.
|
// Make them extra rounded with a modifier to replace v3's badges.
|
||||||
|
|
||||||
.label-pill {
|
.label-pill {
|
||||||
padding-left: .6em;
|
|
||||||
padding-right: .6em;
|
padding-right: .6em;
|
||||||
|
padding-left: .6em;
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,8 +48,8 @@
|
|||||||
a.list-group-item,
|
a.list-group-item,
|
||||||
button.list-group-item {
|
button.list-group-item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: inherit;
|
|
||||||
color: $list-group-link-color;
|
color: $list-group-link-color;
|
||||||
|
text-align: inherit;
|
||||||
|
|
||||||
.list-group-item-heading {
|
.list-group-item-heading {
|
||||||
color: $list-group-link-heading-color;
|
color: $list-group-link-heading-color;
|
||||||
|
@ -26,8 +26,8 @@
|
|||||||
|
|
||||||
// When fading in the modal, animate it to slide down
|
// When fading in the modal, animate it to slide down
|
||||||
&.fade .modal-dialog {
|
&.fade .modal-dialog {
|
||||||
transform: translate(0, -25%);
|
|
||||||
transition: transform .3s ease-out;
|
transition: transform .3s ease-out;
|
||||||
|
transform: translate(0, -25%);
|
||||||
}
|
}
|
||||||
&.in .modal-dialog { transform: translate(0, 0); }
|
&.in .modal-dialog { transform: translate(0, 0); }
|
||||||
}
|
}
|
||||||
|
@ -69,9 +69,9 @@
|
|||||||
|
|
||||||
.navbar-brand {
|
.navbar-brand {
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 1rem;
|
|
||||||
padding-top: .25rem;
|
padding-top: .25rem;
|
||||||
padding-bottom: .25rem;
|
padding-bottom: .25rem;
|
||||||
|
margin-right: 1rem;
|
||||||
font-size: $font-size-lg;
|
font-size: $font-size-lg;
|
||||||
|
|
||||||
@include hover-focus {
|
@include hover-focus {
|
||||||
@ -89,12 +89,12 @@
|
|||||||
width: 1px;
|
width: 1px;
|
||||||
padding-top: .425rem;
|
padding-top: .425rem;
|
||||||
padding-bottom: .425rem;
|
padding-bottom: .425rem;
|
||||||
overflow: hidden;
|
|
||||||
margin-left: $navbar-padding-horizontal;
|
margin-left: $navbar-padding-horizontal;
|
||||||
margin-right: $navbar-padding-horizontal;
|
margin-right: $navbar-padding-horizontal;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
content: '\00a0';
|
content: "\00a0";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,8 +176,8 @@ mark,
|
|||||||
|
|
||||||
> img {
|
> img {
|
||||||
@extend .img-responsive;
|
@extend .img-responsive;
|
||||||
line-height: 1;
|
|
||||||
margin-bottom: ($spacer-y / 2);
|
margin-bottom: ($spacer-y / 2);
|
||||||
|
line-height: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
.p-r-0 { padding-right: 0 !important; }
|
.p-r-0 { padding-right: 0 !important; }
|
||||||
.p-b-0 { padding-bottom: 0 !important; }
|
.p-b-0 { padding-bottom: 0 !important; }
|
||||||
.p-l-0 { padding-left: 0 !important; }
|
.p-l-0 { padding-left: 0 !important; }
|
||||||
.p-x-0 { padding-left: 0 !important; padding-right: 0 !important; }
|
.p-x-0 { padding-right: 0 !important; padding-left: 0 !important; }
|
||||||
.p-y-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
|
.p-y-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
|
||||||
|
|
||||||
.p-a { padding: $spacer !important; }
|
.p-a { padding: $spacer !important; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user