Skip to content

Commit a1f5789

Browse files
silverwindlunny
authored andcommitted
Tweak label border CSS (#7739)
Also did various tweaks to label hover and dark theme. Fixes: #5487
1 parent 0e887af commit a1f5789

File tree

4 files changed

+33
-17
lines changed

4 files changed

+33
-17
lines changed

public/css/index.css

+4-3
Original file line numberDiff line numberDiff line change
@@ -633,10 +633,11 @@ footer .ui.left,footer .ui.right{line-height:40px}
633633
.repository #commits-table thead .shatd{text-align:center}
634634
.repository #commits-table td.sha .sha.label{margin:0}
635635
.repository #commits-table.ui.basic.striped.table tbody tr:nth-child(2n){background-color:rgba(0,0,0,.02)!important}
636-
.repository #commits-table td.sha .sha.label.isSigned,.repository #repo-files-table .sha.label.isSigned{border:1px solid #bbb}
637-
.repository #commits-table td.sha .sha.label.isSigned .detail.icon,.repository #repo-files-table .sha.label.isSigned .detail.icon{background:#fafafa;margin:-6px -10px -4px 0;padding:5px 3px 5px 6px;border-left:1px solid #bbb;border-top-left-radius:0;border-bottom-left-radius:0}
636+
.repository #commits-table td.sha .sha.label,.repository #repo-files-table .sha.label{border:1px solid #bbb}
637+
.repository #commits-table td.sha .sha.label .detail.icon,.repository #repo-files-table .sha.label .detail.icon{background:#fafafa;margin:-6px -10px -4px 0;padding:5px 3px 5px 6px;border-left:1px solid #bbb;border-top-left-radius:0;border-bottom-left-radius:0}
638638
.repository #commits-table td.sha .sha.label.isSigned.isVerified,.repository #repo-files-table .sha.label.isSigned.isVerified{border:1px solid #21ba45;background:rgba(33,186,69,.1)}
639-
.repository #commits-table td.sha .sha.label.isSigned.isVerified .detail.icon,.repository #repo-files-table .sha.label.isSigned.isVerified .detail.icon{border-left:1px solid rgba(33,186,69,.5)}
639+
.repository #commits-table td.sha .sha.label.isSigned.isVerified .detail.icon,.repository #repo-files-table .sha.label.isSigned.isVerified .detail.icon{border-left:1px solid #21ba45}
640+
.repository #commits-table td.sha .sha.label.isSigned.isVerified:hover,.repository #repo-files-table .sha.label.isSigned.isVerified:hover{background:rgba(33,186,69,.3)!important}
640641
.repository .diff-detail-box{padding:7px 0;background:#fff;line-height:30px}
641642
.repository .diff-detail-box>div:after{clear:both;content:"";display:block}
642643
.repository .diff-detail-box ol{clear:both;padding-left:0;margin-top:5px;margin-bottom:28px}

public/css/theme-arc-green.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ input{background:#2e323e}
211211
.ui.basic.blue.button:hover,.ui.basic.blue.buttons .button:hover{box-shadow:0 0 0 1px #87ab63 inset!important;color:#87ab63!important}
212212
.ui.basic.blue.button:focus,.ui.basic.blue.buttons .button:focus{box-shadow:0 0 0 1px #87ab63 inset!important;color:#87ab63!important}
213213
.repository.file.list #file-content .code-view .lines-code .hljs,.repository.file.list #file-content .code-view .lines-code ol,.repository.file.list #file-content .code-view .lines-code pre,.repository.file.list #file-content .code-view .lines-num .hljs,.repository.file.list #file-content .code-view .lines-num ol,.repository.file.list #file-content .code-view .lines-num pre{background-color:#2a2e3a}
214-
a.ui.label:hover,a.ui.labels .label:hover{background-color:#505667;color:#dbdbdb}
214+
a.ui.label:hover,a.ui.labels .label:hover{background-color:#505667!important;color:#dbdbdb!important}
215+
.repository #commits-table td.sha .sha.label,.repository #repo-files-table .sha.label{border-color:#888}
216+
.repository #commits-table td.sha .sha.label.isSigned .detail.icon,.repository #repo-files-table .sha.label.isSigned .detail.icon{background:0 0;border-left-color:#888}
215217
.repository .label.list .item{border-bottom:1px dashed #4c505c}
216218
.ui.basic.blue.button,.ui.basic.blue.buttons .button{box-shadow:0 0 0 1px #87ab63 inset!important;color:#87ab63!important}
217219
.repository.file.list #file-content .code-view .hljs,.repository.file.list #file-content .code-view .lines-code ol,.repository.file.list #file-content .code-view .lines-code pre,.repository.file.list #file-content .code-view .lines-num .hljs,.repository.file.list #file-content .code-view .lines-num ol,.repository.file.list #file-content .code-view .lines-num pre{background-color:#2a2e3a}

public/less/_repository.less

+13-11
Original file line numberDiff line numberDiff line change
@@ -1272,25 +1272,27 @@
12721272

12731273
#commits-table td.sha .sha.label,
12741274
#repo-files-table .sha.label {
1275-
&.isSigned {
1276-
border: 1px solid #bbbbbb;
1275+
border: 1px solid #bbbbbb;
12771276

1278-
.detail.icon {
1279-
background: #fafafa;
1280-
margin: -6px -10px -4px 0;
1281-
padding: 5px 3px 5px 6px;
1282-
border-left: 1px solid #bbbbbb;
1283-
border-top-left-radius: 0;
1284-
border-bottom-left-radius: 0;
1285-
}
1277+
.detail.icon {
1278+
background: #fafafa;
1279+
margin: -6px -10px -4px 0;
1280+
padding: 5px 3px 5px 6px;
1281+
border-left: 1px solid #bbbbbb;
1282+
border-top-left-radius: 0;
1283+
border-bottom-left-radius: 0;
12861284
}
12871285

12881286
&.isSigned.isVerified {
12891287
border: 1px solid #21ba45;
12901288
background: fade(#21ba45, 10%);
12911289

12921290
.detail.icon {
1293-
border-left: 1px solid fade(#21ba45, 50%);
1291+
border-left: 1px solid #21ba45;
1292+
}
1293+
1294+
&:hover {
1295+
background: fade(#21ba45, 30%) !important;
12941296
}
12951297
}
12961298
}

public/less/themes/arc-green.less

+13-2
Original file line numberDiff line numberDiff line change
@@ -1091,8 +1091,19 @@ input {
10911091

10921092
a.ui.label:hover,
10931093
a.ui.labels .label:hover {
1094-
background-color: #505667;
1095-
color: #dbdbdb;
1094+
background-color: #505667 !important;
1095+
color: #dbdbdb !important;
1096+
}
1097+
1098+
.repository #commits-table td.sha .sha.label,
1099+
.repository #repo-files-table .sha.label {
1100+
border-color: #888;
1101+
}
1102+
1103+
.repository #commits-table td.sha .sha.label.isSigned .detail.icon,
1104+
.repository #repo-files-table .sha.label.isSigned .detail.icon {
1105+
background: none;
1106+
border-left-color: #888;
10961107
}
10971108

10981109
.repository .label.list .item {

0 commit comments

Comments
 (0)