mirror of
https://github.com/go-gitea/gitea
synced 2025-08-26 11:28:27 +00:00
replace lesshint with stylelint (#7305)
New CSS linter which is much more powerfull than the previous one. Configuration is default but I had to remove a few rules that were throwing too many or weird errors. More importantly, the linter will exit with code 1 on errors so now our build will fail if the CSS linter fails which should eliminate linter errors being introduced without notice.
This commit is contained in:
@@ -24,7 +24,8 @@
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
}
|
||||
|
||||
.octicon, .fa {
|
||||
.octicon,
|
||||
.fa {
|
||||
margin-left: 1px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
@@ -82,6 +83,22 @@
|
||||
.octicon {
|
||||
float: left;
|
||||
font-size: 2em;
|
||||
|
||||
&.green {
|
||||
color: #21ba45;
|
||||
}
|
||||
|
||||
&.red {
|
||||
color: #d01919;
|
||||
}
|
||||
|
||||
&.purple {
|
||||
color: #a333c8;
|
||||
}
|
||||
|
||||
&.blue {
|
||||
color: #2185d0;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
@@ -102,24 +119,6 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.octicon {
|
||||
&.green {
|
||||
color: #21ba45;
|
||||
}
|
||||
|
||||
&.red {
|
||||
color: #d01919;
|
||||
}
|
||||
|
||||
&.purple {
|
||||
color: #a333c8;
|
||||
}
|
||||
|
||||
&.blue {
|
||||
color: #2185d0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.link-account:not(.icon) {
|
||||
|
Reference in New Issue
Block a user