Skip to content

Commit 3adee1e

Browse files
committed
tech(sass): sasslint fixes for css3
Pseudo-elements must start with double colons pseudo-element
1 parent 90c0630 commit 3adee1e

File tree

11 files changed

+38
-39
lines changed

11 files changed

+38
-39
lines changed

public/sass/components/_dropdown.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
}
208208

209209
// Caret to indicate there is a submenu
210-
.dropdown-submenu > a:after {
210+
.dropdown-submenu > a::after {
211211
display: block;
212212
content: " ";
213213
float: right;
@@ -220,7 +220,7 @@
220220
margin-top: 5px;
221221
margin-right: -10px;
222222
}
223-
.dropdown-submenu:hover > a:after {
223+
.dropdown-submenu:hover > a::after {
224224
border-left-color: $dropdownLinkColorHover;
225225
}
226226

public/sass/components/_footer.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
li {
2424
display: inline-block;
2525
padding-right: 2px;
26-
&:after {
26+
&::after {
2727
content: ' | ';
2828
padding-left: 2px;
2929
}
3030
}
3131

3232
li:last-child {
33-
&:after {
33+
&::after {
3434
padding-left: 0;
3535
content: '';
3636
}

public/sass/components/_gf-form.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ $gf-form-margin: 0.25rem;
127127
&--dropdown {
128128
padding-right: $input-padding-x*2;
129129

130-
&:after {
130+
&::after {
131131
position: absolute;
132132
top: 35%;
133133
right: $input-padding-x/2;
@@ -164,7 +164,7 @@ $gf-form-margin: 0.25rem;
164164
}
165165
}
166166

167-
&:after {
167+
&::after {
168168
position: absolute;
169169
top: 35%;
170170
right: $input-padding-x/2;
@@ -176,7 +176,7 @@ $gf-form-margin: 0.25rem;
176176
}
177177

178178
&--has-help-icon {
179-
&:after {
179+
&::after {
180180
right: $input-padding-x*3;
181181
}
182182
}
@@ -215,7 +215,7 @@ $gf-form-margin: 0.25rem;
215215
background-color: $input-bg;
216216
padding-right: $input-padding-x;
217217

218-
&:after {
218+
&::after {
219219
position: absolute;
220220
top: 35%;
221221
right: $input-padding-x/2;

public/sass/components/_infobox.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.grafana-info-box:before {
1+
.grafana-info-box::before {
22
content: "\f05a";
33
font-family:'FontAwesome';
44
position: absolute;

public/sass/components/_panel_graph.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@
4747
white-space: nowrap;
4848
font-size: 85%;
4949
text-align: left;
50-
&.current:before {
50+
&.current::before {
5151
content: "Current: "
5252
}
53-
&.max:before {
53+
&.max::before {
5454
content: "Max: "
5555
}
56-
&.min:before {
56+
&.min::before {
5757
content: "Min: "
5858
}
59-
&.total:before {
59+
&.total::before {
6060
content: "Total: "
6161
}
62-
&.avg:before {
62+
&.avg::before {
6363
content: "Avg: "
6464
}
6565
}
@@ -95,7 +95,7 @@
9595
&--right-y {
9696
float: none;
9797

98-
.graph-legend-alias:after {
98+
.graph-legend-alias::after {
9999
content: '(right-y)';
100100
padding: 0 5px;
101101
color: $text-color-weak;
@@ -137,7 +137,7 @@
137137

138138
.graph-legend-value {
139139
&.current, &.max, &.min, &.total, &.avg {
140-
&:before {
140+
&::before {
141141
content: '';
142142
}
143143
}

public/sass/components/_search.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@
7474
background-color: $grafanaListBackground;
7575
margin-bottom: 4px;
7676

77-
.search-result-icon:before {
77+
.search-result-icon::before {
7878
content: "\f009";
7979
}
8080

81-
&.search-item-dash-home .search-result-icon:before {
81+
&.search-item-dash-home .search-result-icon::before {
8282
content: "\f015";
8383
}
8484
}

public/sass/components/_sidemenu.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
display: inline-block;
152152
position: relative;
153153

154-
&:after {
154+
&::after {
155155
display: block;
156156
position: absolute;
157157
top: 50%;

public/sass/components/_switch.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $switch-height: 1.5rem;
3030
background-color: $page-bg;
3131
}
3232

33-
input + label:before, input + label:after {
33+
input + label::before, input + label::after {
3434
@include buttonBackground($input-bg, $input-bg);
3535

3636
display: block;
@@ -47,21 +47,21 @@ $switch-height: 1.5rem;
4747
}
4848

4949
&:hover {
50-
input + label:before {
50+
input + label::before {
5151
@include buttonBackground($input-bg, lighten($input-bg, 5%));
5252
color: $text-color;
5353
text-shadow: $text-shadow-faint;
5454
}
5555

56-
input + label:after {
56+
input + label::after {
5757
@include buttonBackground($input-bg, lighten($input-bg, 5%));
5858
color: lighten($orange, 10%);
5959
text-shadow: $text-shadow-strong;
6060
}
6161

6262
}
6363

64-
input + label:before {
64+
input + label::before {
6565
font-family: 'FontAwesome';
6666
content: "\f096"; // square-o
6767
color: $text-color-faint;
@@ -70,7 +70,7 @@ $switch-height: 1.5rem;
7070
text-shadow: $text-shadow-faint;
7171
}
7272

73-
input + label:after {
73+
input + label::after {
7474
content: "\f046"; // check-square-o
7575
color: $orange;
7676
text-shadow: $text-shadow-strong;
@@ -81,11 +81,11 @@ $switch-height: 1.5rem;
8181
backface-visibility: hidden;
8282
}
8383

84-
input:checked + label:before {
84+
input:checked + label::before {
8585
transform: rotateY(180deg);
8686
}
8787

88-
input:checked + label:after {
88+
input:checked + label::after {
8989
transform: rotateY(0);
9090
}
9191
}

public/sass/components/_tagsinput.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
[data-role="remove"] {
2525
margin-left:8px;
2626
cursor:pointer;
27-
&:after{
27+
&::after{
2828
content: "x";
2929
padding:0px 2px;
3030
}

public/sass/components/_tightform.scss

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@
2525
border: 1px solid $tight-form-border;
2626
border-bottom: none;
2727

28-
.tight-form, .tight-form-item, [type=text].tight-form-input, [type=text].tight-form-clear-input {
28+
.tight-form, .tight-form-item, [type="text"].tight-form-input, [type="text"].tight-form-clear-input {
2929
border: none;
3030
}
3131
}
3232

33-
3433
.spaced-form {
3534
.tight-form {
3635
margin: 7px 0;
@@ -122,14 +121,14 @@
122121
}
123122
}
124123

125-
input[type=text].tight-form-func-param {
124+
input[type="text"].tight-form-func-param {
126125
background: transparent;
127126
border: none;
128127
margin: 0;
129128
padding: 0;
130129
}
131130

132-
input[type=text].tight-form-clear-input {
131+
input[type="text"].tight-form-clear-input {
133132
padding: 8px 7px;
134133
border: none;
135134
margin: 0px;
@@ -138,10 +137,10 @@ input[type=text].tight-form-clear-input {
138137
border-right: 1px solid $tight-form-border;
139138
}
140139

141-
[type=text],
142-
[type=email],
143-
[type=number],
144-
[type=password] {
140+
[type="text"],
141+
[type="email"],
142+
[type="number"],
143+
[type="password"] {
145144
&.tight-form-input {
146145
background-color: $input-bg;
147146
border: none;
@@ -157,7 +156,7 @@ input[type=text].tight-form-clear-input {
157156
}
158157
}
159158

160-
input[type=checkbox].tight-form-checkbox {
159+
input[type="checkbox"].tight-form-checkbox {
161160
margin: 0;
162161
}
163162

@@ -200,7 +199,7 @@ select.tight-form-input {
200199
}
201200

202201
.tight-form-radio {
203-
input[type=radio] {
202+
input[type="radio"] {
204203
margin: 0;
205204
}
206205
label {

public/sass/components/_timepicker.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@
9999
-moz-osx-font-smoothing: grayscale;
100100
}
101101

102-
.fa-chevron-left:before {
102+
.fa-chevron-left::before {
103103
content: "\f053";
104104
}
105-
.fa-chevron-right:before {
105+
.fa-chevron-right::before {
106106
content: "\f054";
107107
}
108108

0 commit comments

Comments
 (0)