mirror of
https://github.com/go-gitea/gitea
synced 2025-08-01 23:28:36 +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:
@@ -211,9 +211,7 @@
|
||||
margin-left: 25px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.new.webhook {
|
||||
.events.fields {
|
||||
.column {
|
||||
padding-left: 40px;
|
||||
|
@@ -173,10 +173,6 @@
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
height: 4px;
|
||||
padding: 0;
|
||||
@@ -231,6 +227,7 @@
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin-left: 0;
|
||||
padding: 0 15px;
|
||||
color: #777777;
|
||||
border-left: 4px solid #dddddd;
|
||||
|
@@ -1217,7 +1217,7 @@
|
||||
|
||||
.detail.icon {
|
||||
background: #fafafa;
|
||||
margin: -6px -10px -4px 0px;
|
||||
margin: -6px -10px -4px 0;
|
||||
padding: 5px 3px 5px 6px;
|
||||
border-left: 1px solid #bbbbbb;
|
||||
border-top-left-radius: 0;
|
||||
|
@@ -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) {
|
||||
|
@@ -152,6 +152,7 @@ a:hover {
|
||||
|
||||
.following.bar.light {
|
||||
background: #2e323e;
|
||||
border-bottom: 1px solid #313131;
|
||||
}
|
||||
|
||||
.ui.secondary.menu .active.item {
|
||||
@@ -171,10 +172,6 @@ a:hover {
|
||||
background-color: #353945;
|
||||
}
|
||||
|
||||
.following.bar.light {
|
||||
border-bottom: 1px solid #313131;
|
||||
}
|
||||
|
||||
.ui.attached.header {
|
||||
background: #404552;
|
||||
border: 1px solid #404552;
|
||||
@@ -519,9 +516,9 @@ a.ui.basic.green.label:hover {
|
||||
|
||||
.repository.file.editor.edit,
|
||||
.repository.wiki.new .CodeMirror {
|
||||
border-right: 1px solid rgba(187,187,187, 0.6);
|
||||
border-left: 1px solid rgba(187,187,187, 0.6);
|
||||
border-bottom: 1px solid rgba(187,187,187, 0.6);
|
||||
border-right: 1px solid rgba(187, 187, 187, 0.6);
|
||||
border-left: 1px solid rgba(187, 187, 187, 0.6);
|
||||
border-bottom: 1px solid rgba(187, 187, 187, 0.6);
|
||||
|
||||
.editor-preview,
|
||||
.editor-preview-side {
|
||||
@@ -594,7 +591,7 @@ a.ui.basic.green.label:hover {
|
||||
}
|
||||
|
||||
.ui .text.grey a {
|
||||
color: #b3b3b3 !important;
|
||||
color: #dbdbdb !important;
|
||||
}
|
||||
|
||||
.ui.comments .comment .actions a {
|
||||
@@ -629,10 +626,6 @@ a.ui.basic.green.label:hover {
|
||||
border-right-color: #313c47;
|
||||
}
|
||||
|
||||
.ui .text.grey a {
|
||||
color: #dbdbdb !important;
|
||||
}
|
||||
|
||||
.ui .text.grey a:hover {
|
||||
color: #dbdbdb !important;
|
||||
}
|
||||
@@ -644,9 +637,9 @@ a.ui.basic.green.label:hover {
|
||||
|
||||
.ui.form textarea,
|
||||
.ui.form textarea:focus {
|
||||
background: #1a2632;
|
||||
border: 1px solid #313c47;
|
||||
color: #dbdbdb;
|
||||
background: #404552;
|
||||
border: 2px solid #353945;
|
||||
}
|
||||
|
||||
.ui.form textarea:focus {
|
||||
@@ -692,7 +685,7 @@ a.ui.basic.green.label:hover {
|
||||
|
||||
.hljs-string,
|
||||
.hljs-doctag {
|
||||
color: #949494;
|
||||
color: #8ab398;
|
||||
}
|
||||
|
||||
.repository .diff-file-box .code-diff tbody tr .removed-code {
|
||||
@@ -784,9 +777,9 @@ a.ui.basic.green.label:hover {
|
||||
}
|
||||
|
||||
.ui.secondary.pointing.menu .active.item {
|
||||
border-color: #87ab63;
|
||||
color: #dbdbdb;
|
||||
background: #404552;
|
||||
border: 0;
|
||||
background: #383c4a;
|
||||
}
|
||||
|
||||
.ui.user.list .item:not(:first-child) {
|
||||
@@ -829,6 +822,7 @@ a.ui.basic.green.label:hover {
|
||||
|
||||
.ui.menu.new-menu {
|
||||
background-color: #2a2e3a !important;
|
||||
|
||||
@media only screen and (max-width: 1200px) {
|
||||
&:after {
|
||||
background-image: linear-gradient(to right, rgba(42, 46, 42, 0), rgba(42, 46, 42, 1) 100%);
|
||||
@@ -840,11 +834,6 @@ input {
|
||||
background: #2e323e;
|
||||
}
|
||||
|
||||
.ui.secondary.pointing.menu .active.item {
|
||||
border: 0;
|
||||
background: #383c4a;
|
||||
}
|
||||
|
||||
.settings .key.list .item:not(:first-child) {
|
||||
border-top: 1px solid #404552;
|
||||
}
|
||||
@@ -906,6 +895,9 @@ input {
|
||||
.ui.checkbox input:checked ~ .box:before,
|
||||
.ui.checkbox input:checked ~ label:before {
|
||||
background: #304251;
|
||||
opacity: 1;
|
||||
color: #7f98ad;
|
||||
border-color: #304251;
|
||||
}
|
||||
|
||||
.ui.checkbox .box:hover::before,
|
||||
@@ -925,12 +917,6 @@ input {
|
||||
border-color: rgba(34, 36, 38, 0.35);
|
||||
}
|
||||
|
||||
.ui.checkbox input:checked ~ .box:before,
|
||||
.ui.checkbox input:checked ~ label:before {
|
||||
border-color: #304251;
|
||||
background: #304251;
|
||||
}
|
||||
|
||||
.ui.checkbox input:focus ~ .box:before,
|
||||
.ui.checkbox input:focus ~ label:before {
|
||||
border-color: #304251;
|
||||
@@ -945,12 +931,6 @@ input {
|
||||
background: #304251;
|
||||
}
|
||||
|
||||
.ui.checkbox input:checked ~ .box:after,
|
||||
.ui.checkbox input:checked ~ label:after {
|
||||
opacity: 1;
|
||||
color: #7f98ad;
|
||||
}
|
||||
|
||||
.ui.checkbox input:checked:focus ~ .box:after,
|
||||
.ui.checkbox input:checked:focus ~ label:after,
|
||||
.ui.checkbox input:not([type="radio"]):indeterminate:focus ~ .box:after,
|
||||
@@ -992,12 +972,6 @@ input {
|
||||
border-bottom: 1px solid #4c505c;
|
||||
}
|
||||
|
||||
.ui.form textarea,
|
||||
.ui.form textarea:focus {
|
||||
background: #404552;
|
||||
border: 2px solid #353945;
|
||||
}
|
||||
|
||||
.hljs-number,
|
||||
.hljs-literal,
|
||||
.hljs-variable,
|
||||
@@ -1006,11 +980,6 @@ input {
|
||||
color: #bd84bf;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-doctag {
|
||||
color: #8ab398;
|
||||
}
|
||||
|
||||
.ui.form .dropzone {
|
||||
border: 2px dashed #4c505c;
|
||||
}
|
||||
@@ -1046,7 +1015,7 @@ input {
|
||||
|
||||
.ui.blue.button:focus,
|
||||
.ui.blue.buttons .button:focus {
|
||||
background-color: #87ab63;
|
||||
background-color: #a27558;
|
||||
}
|
||||
|
||||
.ui.basic.blue.button:hover,
|
||||
@@ -1080,19 +1049,10 @@ a.ui.labels .label:hover {
|
||||
border-bottom: 1px dashed #4c505c;
|
||||
}
|
||||
|
||||
.repository.file.list #file-content .code-view .lines-num {
|
||||
background: #2e323e;
|
||||
}
|
||||
|
||||
.repository.file.list #repo-files-table tbody .octicon.octicon-file-directory,
|
||||
.repository.file.list #repo-files-table tbody .octicon.octicon-file-submodule {
|
||||
color: #7c9b5e;
|
||||
}
|
||||
|
||||
.ui.basic.blue.button,
|
||||
.ui.basic.blue.buttons .button {
|
||||
box-shadow: 0 0 0 1px #a27558 inset !important;
|
||||
color: #a27558 !important;
|
||||
box-shadow: 0 0 0 1px #87ab63 inset !important;
|
||||
color: #87ab63 !important;
|
||||
}
|
||||
|
||||
.repository.file.list #file-content .code-view {
|
||||
@@ -1106,12 +1066,6 @@ a.ui.labels .label:hover {
|
||||
}
|
||||
}
|
||||
|
||||
a.ui.label:hover,
|
||||
a.ui.labels .label:hover {
|
||||
background-color: #505667;
|
||||
color: #dbdbdb;
|
||||
}
|
||||
|
||||
.repository .diff-file-box .code-diff-split tbody tr.add-code td:nth-child(1),
|
||||
.repository .diff-file-box .code-diff-split tbody tr.add-code td:nth-child(2),
|
||||
.repository .diff-file-box .code-diff-split tbody tr.del-code td:nth-child(3),
|
||||
@@ -1137,11 +1091,6 @@ a.ui.labels .label:hover {
|
||||
border-color: #634343 !important;
|
||||
}
|
||||
|
||||
.ui.blue.button:focus,
|
||||
.ui.blue.buttons .button:focus {
|
||||
background-color: #a27558;
|
||||
}
|
||||
|
||||
.ui.blue.button:active,
|
||||
.ui.blue.buttons .button:active {
|
||||
background-color: #a27558;
|
||||
@@ -1177,12 +1126,6 @@ a.ui.labels .label:hover {
|
||||
background: #383c4a;
|
||||
}
|
||||
|
||||
.ui.basic.blue.button,
|
||||
.ui.basic.blue.buttons .button {
|
||||
box-shadow: 0 0 0 1px #87ab63 inset !important;
|
||||
color: #87ab63 !important;
|
||||
}
|
||||
|
||||
.editor-toolbar {
|
||||
background-color: #404552;
|
||||
|
||||
|
Reference in New Issue
Block a user