mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
Add less linter via npx (#6936)
This commit is contained in:
committed by
Lunny Xiao
parent
c0fc6cd9a8
commit
3957b40021
@ -101,10 +101,10 @@
|
||||
margin: 2px 0;
|
||||
|
||||
.text {
|
||||
color: #444;
|
||||
color: #444444;
|
||||
|
||||
&:hover {
|
||||
color: #000;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -119,12 +119,12 @@
|
||||
}
|
||||
|
||||
.header-wrapper {
|
||||
background-color: #FAFAFA;
|
||||
background-color: #fafafa;
|
||||
margin-top: -15px;
|
||||
padding-top: 15px;
|
||||
|
||||
.ui.tabs.divider {
|
||||
border-bottom: none;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.ui.tabular .octicon {
|
||||
@ -184,7 +184,7 @@
|
||||
margin-bottom: 0;
|
||||
|
||||
.ui.menu {
|
||||
border-bottom: none;
|
||||
border-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -212,7 +212,7 @@
|
||||
padding: 0 5px;
|
||||
|
||||
&:first-child {
|
||||
border-radius: .28571429rem 0 0 .28571429rem;
|
||||
border-radius: 0.28571429rem 0 0 0.28571429rem;
|
||||
}
|
||||
}
|
||||
|
||||
@ -283,7 +283,7 @@
|
||||
.octicon {
|
||||
margin-left: 3px;
|
||||
margin-right: 5px;
|
||||
color: #777;
|
||||
color: #777777;
|
||||
|
||||
&.octicon-mail-reply {
|
||||
margin-right: 10px;
|
||||
@ -329,11 +329,11 @@
|
||||
}
|
||||
|
||||
tr:hover {
|
||||
background-color: #ffffEE;
|
||||
background-color: #ffffee;
|
||||
}
|
||||
|
||||
.jumpable-path {
|
||||
color: #888;
|
||||
color: #888888;
|
||||
}
|
||||
}
|
||||
|
||||
@ -369,7 +369,7 @@
|
||||
}
|
||||
|
||||
.btn-octicon.disabled {
|
||||
color: #bbb;
|
||||
color: #bbbbbb;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
@ -413,7 +413,7 @@
|
||||
.lines-num {
|
||||
vertical-align: top;
|
||||
text-align: right;
|
||||
color: #999;
|
||||
color: #999999;
|
||||
background: #f5f5f5;
|
||||
width: 1%;
|
||||
user-select: none;
|
||||
@ -454,7 +454,7 @@
|
||||
|
||||
.lines-commit {
|
||||
vertical-align: top;
|
||||
color: #999;
|
||||
color: #999999;
|
||||
padding: 0;
|
||||
background: #f5f5f5;
|
||||
width: 1%;
|
||||
@ -551,12 +551,12 @@
|
||||
position: relative;
|
||||
padding: 15px;
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid #ddd;
|
||||
border: 1px solid #dddddd;
|
||||
border-radius: 3px;
|
||||
#avatar-arrow;
|
||||
|
||||
&:after {
|
||||
border-right-color: #fff;
|
||||
border-right-color: #ffffff;
|
||||
}
|
||||
|
||||
.quick-pull-choice {
|
||||
@ -622,7 +622,7 @@
|
||||
#avatar-arrow;
|
||||
|
||||
&:after {
|
||||
border-right-color: #fff;
|
||||
border-right-color: #ffffff;
|
||||
}
|
||||
|
||||
.markdown {
|
||||
@ -666,7 +666,7 @@
|
||||
|
||||
.index {
|
||||
font-weight: 300;
|
||||
color: #aaa;
|
||||
color: #aaaaaa;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
|
||||
@ -681,7 +681,7 @@
|
||||
|
||||
.pull-desc {
|
||||
code {
|
||||
color: #0166E6;
|
||||
color: #0166e6;
|
||||
}
|
||||
}
|
||||
|
||||
@ -695,7 +695,7 @@
|
||||
}
|
||||
|
||||
&.tab.segment {
|
||||
border: none;
|
||||
border: 0;
|
||||
padding: 10px 0 0;
|
||||
box-shadow: none;
|
||||
background-color: inherit;
|
||||
@ -725,7 +725,7 @@
|
||||
}
|
||||
|
||||
.text {
|
||||
margin: .3em 0 .5em .5em
|
||||
margin: 0.3em 0 0.5em 0.5em;
|
||||
}
|
||||
|
||||
.type-icon {
|
||||
@ -734,7 +734,7 @@
|
||||
}
|
||||
|
||||
.divider {
|
||||
margin: .5rem 0;
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
|
||||
.review-content {
|
||||
@ -797,7 +797,7 @@
|
||||
position: relative;
|
||||
color: #767676;
|
||||
background-color: #f7f7f7;
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
border-top-left-radius: 3px;
|
||||
border-top-right-radius: 3px;
|
||||
|
||||
@ -832,10 +832,10 @@
|
||||
margin: 5px;
|
||||
padding: 5px;
|
||||
height: 150px;
|
||||
border: solid 1px #eee;
|
||||
border: solid 1px #eeeeee;
|
||||
border-radius: 3px;
|
||||
max-width: 150px;
|
||||
background-color: #fff;
|
||||
background-color: #ffffff;
|
||||
|
||||
&:before {
|
||||
content: ' ';
|
||||
@ -869,7 +869,7 @@
|
||||
}
|
||||
|
||||
.tab.segment {
|
||||
border: none;
|
||||
border: 0;
|
||||
padding: 10px 0 0;
|
||||
}
|
||||
|
||||
@ -983,12 +983,12 @@
|
||||
#avatar-arrow;
|
||||
|
||||
&:after {
|
||||
border-right-color: #fff;
|
||||
border-right-color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
.tab.segment {
|
||||
border: none;
|
||||
border: 0;
|
||||
padding: 10px 0 0;
|
||||
}
|
||||
|
||||
@ -1006,16 +1006,16 @@
|
||||
.item {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px dashed #AAA;
|
||||
border-bottom: 1px dashed #aaaaaa;
|
||||
|
||||
a {
|
||||
font-size: 15px;
|
||||
padding-top: 5px;
|
||||
padding-right: 10px;
|
||||
color: #666;
|
||||
color: #666666;
|
||||
|
||||
&:hover {
|
||||
color: #000;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
&.open-issues {
|
||||
@ -1036,12 +1036,12 @@
|
||||
> .item {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px dashed #AAA;
|
||||
border-bottom: 1px dashed #aaaaaa;
|
||||
|
||||
> a {
|
||||
padding-top: 5px;
|
||||
padding-right: 10px;
|
||||
color: #000;
|
||||
color: #000000;
|
||||
|
||||
&:hover {
|
||||
color: #4078c0;
|
||||
@ -1060,7 +1060,7 @@
|
||||
}
|
||||
|
||||
.meta {
|
||||
color: #999;
|
||||
color: #999999;
|
||||
padding-top: 5px;
|
||||
|
||||
.issue-stats .octicon {
|
||||
@ -1079,10 +1079,10 @@
|
||||
font-size: 15px;
|
||||
padding-top: 5px;
|
||||
padding-right: 10px;
|
||||
color: #666;
|
||||
color: #666666;
|
||||
|
||||
&:hover {
|
||||
color: #000;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1115,7 +1115,7 @@
|
||||
#avatar-arrow;
|
||||
|
||||
&:after {
|
||||
border-right-color: #fff;
|
||||
border-right-color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1197,38 +1197,38 @@
|
||||
}
|
||||
|
||||
&.ui.basic.striped.table tbody tr:nth-child(2n) {
|
||||
background-color: rgba(0, 0, 0, .02) !important;
|
||||
background-color: rgba(0, 0, 0, 0.02) !important;
|
||||
}
|
||||
}
|
||||
|
||||
#commits-table td.sha .sha.label,
|
||||
#repo-files-table .sha.label {
|
||||
&.isSigned {
|
||||
border: 1px solid #BBB;
|
||||
border: 1px solid #bbbbbb;
|
||||
|
||||
.detail.icon {
|
||||
background: #FAFAFA;
|
||||
background: #fafafa;
|
||||
margin: -6px -10px -4px 0px;
|
||||
padding: 5px 3px 5px 6px;
|
||||
border-left: 1px solid #BBB;
|
||||
border-left: 1px solid #bbbbbb;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.isSigned.isVerified {
|
||||
border: 1px solid #21BA45;
|
||||
background: fade(#21BA45, 10%);
|
||||
border: 1px solid #21ba45;
|
||||
background: fade(#21ba45, 10%);
|
||||
|
||||
.detail.icon {
|
||||
border-left: 1px solid fade(#21BA45, 50%);
|
||||
border-left: 1px solid fade(#21ba45, 50%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.diff-detail-box {
|
||||
padding: 7px 0;
|
||||
background: #fff;
|
||||
background: #ffffff;
|
||||
line-height: 30px;
|
||||
|
||||
> div:after {
|
||||
@ -1247,7 +1247,7 @@
|
||||
list-style: none;
|
||||
padding-bottom: 4px;
|
||||
margin-bottom: 4px;
|
||||
border-bottom: 1px dashed #DDD;
|
||||
border-bottom: 1px dashed #dddddd;
|
||||
padding-left: 6px;
|
||||
}
|
||||
}
|
||||
@ -1277,7 +1277,7 @@
|
||||
}
|
||||
|
||||
.detail-files {
|
||||
background: #fff;
|
||||
background: #ffffff;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
@ -1308,7 +1308,7 @@
|
||||
|
||||
.file {
|
||||
flex: 1;
|
||||
color: #888;
|
||||
color: #888888;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
@ -1327,7 +1327,7 @@
|
||||
.file-body.file-code {
|
||||
.lines-num {
|
||||
text-align: right;
|
||||
color: #A7A7A7;
|
||||
color: #a6a6a6;
|
||||
background: #fafafa;
|
||||
width: 1%;
|
||||
user-select: none;
|
||||
@ -1340,7 +1340,7 @@
|
||||
}
|
||||
|
||||
.lines-num-old {
|
||||
border-right: 1px solid #DDD;
|
||||
border-right: 1px solid #dddddd;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1349,7 +1349,7 @@
|
||||
|
||||
td {
|
||||
padding: 0 0 0 10px;
|
||||
border-top: none;
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
pre {
|
||||
@ -1372,8 +1372,8 @@
|
||||
|
||||
&.tag-code td,
|
||||
td.tag-code {
|
||||
background-color: #F0F0F0 !important;
|
||||
border-color: #D2CECE !important;
|
||||
background-color: #f0f0f0 !important;
|
||||
border-color: #d3cfcf !important;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
// td.selected-line, td.selected-line pre {
|
||||
@ -1484,7 +1484,7 @@
|
||||
}
|
||||
|
||||
.clone.button:first-child {
|
||||
border-radius: .28571429rem 0 0 .28571429rem;
|
||||
border-radius: 0.28571429rem 0 0 0.28571429rem;
|
||||
}
|
||||
|
||||
.ui.action.small.input {
|
||||
@ -1501,7 +1501,7 @@
|
||||
|
||||
&.release {
|
||||
#release-list {
|
||||
border-top: 1px solid #DDD;
|
||||
border-top: 1px solid #dddddd;
|
||||
margin-top: 20px;
|
||||
padding-top: 15px;
|
||||
|
||||
@ -1530,7 +1530,7 @@
|
||||
}
|
||||
|
||||
.detail {
|
||||
border-left: 1px solid #DDD;
|
||||
border-left: 1px solid #dddddd;
|
||||
|
||||
.author {
|
||||
img {
|
||||
@ -1550,14 +1550,14 @@
|
||||
|
||||
.list {
|
||||
padding-left: 0;
|
||||
border-top: 1px solid #eee;
|
||||
border-top: 1px solid #eeeeee;
|
||||
|
||||
li {
|
||||
list-style: none;
|
||||
display: block;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1565,14 +1565,14 @@
|
||||
.dot {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
background-color: #ccc;
|
||||
background-color: #cccccc;
|
||||
z-index: 999;
|
||||
position: absolute;
|
||||
display: block;
|
||||
left: -5px;
|
||||
top: 40px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #FFF;
|
||||
border: 1px solid #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1631,7 +1631,7 @@
|
||||
.item {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid #DDD;
|
||||
border-bottom: 1px solid #dddddd;
|
||||
|
||||
.ui.avatar {
|
||||
float: left;
|
||||
@ -1716,7 +1716,7 @@
|
||||
line-height: 2em;
|
||||
|
||||
&:not(:last-child) {
|
||||
border-bottom: 1px solid #DDD;
|
||||
border-bottom: 1px solid #dddddd;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1789,16 +1789,16 @@
|
||||
|
||||
.ui.attached.isSigned.isVerified {
|
||||
&:not(.positive) {
|
||||
border-left: 1px solid #A3C293;
|
||||
border-right: 1px solid #A3C293;
|
||||
border-left: 1px solid #a3c293;
|
||||
border-right: 1px solid #a3c293;
|
||||
}
|
||||
|
||||
&.top:not(.positive) {
|
||||
border-top: 1px solid #A3C293;
|
||||
border-top: 1px solid #a3c293;
|
||||
}
|
||||
|
||||
&:not(.positive):last-child {
|
||||
border-bottom: 1px solid #A3C293;
|
||||
border-bottom: 1px solid #a3c293;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1818,12 +1818,12 @@
|
||||
color: black;
|
||||
|
||||
&:hover {
|
||||
color: #666;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: rgba(0, 0, 0, .05);
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1836,12 +1836,12 @@
|
||||
left: auto !important;
|
||||
|
||||
> .header {
|
||||
margin: 0.75rem 0 .5rem;
|
||||
margin: 0.75rem 0 0.5rem;
|
||||
}
|
||||
|
||||
> .item {
|
||||
float: left;
|
||||
padding: .5rem .5rem !important;
|
||||
padding: 0.5rem 0.5rem !important;
|
||||
|
||||
img.emoji {
|
||||
margin-right: 0;
|
||||
@ -1851,10 +1851,10 @@
|
||||
}
|
||||
|
||||
.segment.reactions {
|
||||
padding: .3em 1em;
|
||||
padding: 0.3em 1em;
|
||||
|
||||
.ui.label {
|
||||
padding: .4em;
|
||||
padding: 0.4em;
|
||||
|
||||
&.disabled {
|
||||
cursor: default;
|
||||
@ -1953,27 +1953,27 @@
|
||||
> .item {
|
||||
padding-top: 15px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px dashed #AAA;
|
||||
border-bottom: 1px dashed #aaaaaa;
|
||||
|
||||
.title {
|
||||
color: #444;
|
||||
color: #444444;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
margin: 0 6px;
|
||||
|
||||
&:hover {
|
||||
color: #000;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
.comment {
|
||||
padding-right: 10px;
|
||||
color: #666;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.desc {
|
||||
padding-top: 5px;
|
||||
color: #999;
|
||||
color: #999999;
|
||||
|
||||
.checklist {
|
||||
padding-left: 5px;
|
||||
@ -1983,13 +1983,13 @@
|
||||
width: 80px;
|
||||
height: 6px;
|
||||
display: inline-block;
|
||||
background-color: #eee;
|
||||
background-color: #eeeeee;
|
||||
overflow: hidden;
|
||||
border-radius: 3px;
|
||||
vertical-align: 2px !important;
|
||||
|
||||
.progress {
|
||||
background-color: #ccc;
|
||||
background-color: #cccccc;
|
||||
display: block;
|
||||
height: 100%;
|
||||
}
|
||||
@ -1998,10 +1998,10 @@
|
||||
|
||||
a.milestone {
|
||||
padding-left: 5px;
|
||||
color: #999 !important;
|
||||
color: #999999 !important;
|
||||
|
||||
&:hover {
|
||||
color: #000 !important;
|
||||
color: #000000 !important;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2025,7 +2025,7 @@
|
||||
.dropzone {
|
||||
width: 100%;
|
||||
margin-bottom: 10px;
|
||||
border: 2px dashed #0087F7;
|
||||
border: 2px dashed #0087f5;
|
||||
box-shadow: none !important;
|
||||
|
||||
.dz-error-message {
|
||||
@ -2040,14 +2040,14 @@
|
||||
|
||||
> .header,
|
||||
.segment {
|
||||
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, .15);
|
||||
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
|
||||
}
|
||||
}
|
||||
|
||||
.list {
|
||||
> .item {
|
||||
.green {
|
||||
color: #21BA45;
|
||||
color: #21ba45;
|
||||
}
|
||||
|
||||
&:not(:first-child) {
|
||||
@ -2062,7 +2062,7 @@
|
||||
|
||||
> .mega-octicon + .content {
|
||||
display: table-cell;
|
||||
padding: 0 0 0 .5em;
|
||||
padding: 0 0 0 0.5em;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
@ -2070,7 +2070,7 @@
|
||||
margin-top: 10px;
|
||||
|
||||
.tab.segment {
|
||||
border: none;
|
||||
border: 0;
|
||||
padding: 10px 0 0;
|
||||
}
|
||||
}
|
||||
@ -2079,7 +2079,7 @@
|
||||
&.key {
|
||||
.meta {
|
||||
padding-top: 5px;
|
||||
color: #666;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2163,7 +2163,7 @@
|
||||
}
|
||||
|
||||
&:before {
|
||||
border-right-color: #D4D4D5;
|
||||
border-right-color: #d3d3d4;
|
||||
border-width: 9px;
|
||||
margin-top: -9px;
|
||||
}
|
||||
@ -2201,7 +2201,7 @@
|
||||
display: table-cell;
|
||||
|
||||
&.tiny {
|
||||
height: .5em;
|
||||
height: 0.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2276,21 +2276,21 @@ tbody.commit-list {
|
||||
}
|
||||
|
||||
.repo-buttons .disabled-repo-button .label {
|
||||
opacity: .5;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.repo-buttons .disabled-repo-button a.button {
|
||||
opacity: .5;
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.repo-buttons .disabled-repo-button a.button:hover {
|
||||
background: none !important;
|
||||
color: rgba(0, 0, 0, .6) !important;
|
||||
box-shadow: 0 0 0 1px rgba(34, 36, 38, .15) inset !important;
|
||||
color: rgba(0, 0, 0, 0.6) !important;
|
||||
box-shadow: 0 0 0 1px rgba(34, 36, 38, 0.15) inset !important;
|
||||
}
|
||||
|
||||
.repo-buttons .ui.labeled.button > .label {
|
||||
border-left: none !important;
|
||||
border-left: 0 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
Reference in New Issue
Block a user