Commit d698ec0e authored by Clement Ho's avatar Clement Ho

Enable PseudoElement in scss-lint

parent 2fc359a5
......@@ -143,7 +143,7 @@ linters:
# with two colons. Pseudo-classes, like :hover and :first-child, should
# be declared with one colon.
PseudoElement:
enabled: false
enabled: true
# Avoid qualifying elements in selectors (also known as "tag-qualifying").
QualifyingElement:
......
......@@ -485,7 +485,7 @@
font-size: 20px;
text-indent: 0;
&:before {
&::before {
display: block;
position: relative;
top: -2px;
......@@ -517,7 +517,7 @@
background-color: transparent;
border: 0;
.ui-icon:before {
.ui-icon::before {
color: $md-link-color;
}
}
......@@ -526,7 +526,7 @@
.ui-datepicker-prev {
left: 0;
.ui-icon:before {
.ui-icon::before {
content: '\f104';
text-align: left;
}
......@@ -535,7 +535,7 @@
.ui-datepicker-next {
right: 0;
.ui-icon:before {
.ui-icon::before {
content: '\f105';
text-align: right;
}
......
......@@ -14,7 +14,7 @@
border-bottom: 1px solid #eee;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
&:after {
&::after {
content: " ";
display: table;
clear: both;
......
......@@ -45,7 +45,7 @@
@media (max-width: $screen-xs-max) {
.timeline {
&:before {
&::before {
background: none;
}
......
......@@ -148,7 +148,7 @@
a[href*="/uploads/"],
a[href*="storage.googleapis.com/google-code-attachments/"] {
&:before {
&::before {
margin-right: 4px;
font: normal normal normal 14px/1 FontAwesome;
......@@ -158,13 +158,13 @@
content: "\f0c6";
}
&:hover:before {
&:hover::before {
text-decoration: none;
}
}
a.no-attachment-icon {
&:before {
&::before {
display: none;
}
}
......@@ -183,13 +183,13 @@
position: absolute;
text-decoration: none;
&:after {
&::after {
content: image-url('icon_anchor.svg');
visibility: hidden;
}
}
&:hover > a.anchor:after {
&:hover > a.anchor::after {
visibility: visible;
}
}
......
......@@ -94,14 +94,14 @@
position: relative;
&.old {
&:before {
&::before {
content: '-';
position: absolute;
}
}
&.new {
&:before {
&::before {
content: '+';
position: absolute;
}
......@@ -471,7 +471,7 @@
.file-holder {
.diff-line-num:not(.js-unfold-bottom) {
a {
&:before {
&::before {
content: attr(data-linenumber);
}
}
......
......@@ -474,8 +474,8 @@
}
.arrow {
&:before,
&:after {
&::before,
&::after {
content: '';
display: inline-block;
position: absolute;
......@@ -486,14 +486,14 @@
top: 18px;
}
&:before {
&::before {
left: -5px;
margin-top: -6px;
border-width: 7px 5px 7px 0;
border-right-color: $border-color;
}
&:after {
&::after {
left: -4px;
margin-top: -9px;
border-width: 10px 7px 10px 0;
......
......@@ -77,14 +77,14 @@
// Middle dot divider between each element in a list of items.
.middle-dot-divider {
&:after {
&::after {
content: "\00B7"; // Middle Dot
padding: 0 6px;
font-weight: bold;
}
&:last-child {
&:after {
&::after {
content: "";
padding: 0;
}
......
......@@ -193,7 +193,7 @@
margin-left: 4px;
.arrow {
&:before {
&::before {
content: '';
display: inline-block;
position: absolute;
......@@ -209,7 +209,7 @@
pointer-events: none;
}
&:after {
&::after {
content: '';
position: absolute;
width: 0;
......@@ -351,7 +351,7 @@ a.deploy-project-label {
line-height: 36px;
margin: 0;
> li + li:before {
> li + li::before {
padding: 0 3px;
color: #999;
}
......@@ -790,7 +790,7 @@ pre.light-well {
top: 7px;
color: $location-icon-color;
&:before {
&::before {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
......
......@@ -72,7 +72,7 @@
top: 0;
color: $location-icon-color;
&:before {
&::before {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
......
......@@ -5,7 +5,7 @@
}
.example {
&:before {
&::before {
content: "Example";
color: #bbb;
}
......
......@@ -35,7 +35,7 @@ nav.navbar-collapse.collapse,
.nav,
.btn,
ul.notes-form,
.merge-request-ci-status .ci-status-link:after,
.merge-request-ci-status .ci-status-link::after,
.issuable-gutter-toggle,
.gutter-toggle,
.issuable-details .content-block-small,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment