mirror of
https://gitee.com/gitea/gitea.git
synced 2024-12-26 15:52:57 +08:00
UI: fix block selection on code for empty line are not highlighted
This commit is contained in:
parent
16eb2eb6a3
commit
48a0b5b026
@ -1345,7 +1345,6 @@ footer .ui.language .menu {
|
|||||||
.repository.file.list #file-content .code-view .lines-code ol li,
|
.repository.file.list #file-content .code-view .lines-code ol li,
|
||||||
.repository.file.list #file-content .code-view .lines-num .hljs li,
|
.repository.file.list #file-content .code-view .lines-num .hljs li,
|
||||||
.repository.file.list #file-content .code-view .lines-code .hljs li {
|
.repository.file.list #file-content .code-view .lines-code .hljs li {
|
||||||
padding-left: 5px;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
@ -1357,6 +1356,14 @@ footer .ui.language .menu {
|
|||||||
.repository.file.list #file-content .code-view .lines-code .hljs li.active {
|
.repository.file.list #file-content .code-view .lines-code .hljs li.active {
|
||||||
background: #ffffdd;
|
background: #ffffdd;
|
||||||
}
|
}
|
||||||
|
.repository.file.list #file-content .code-view .lines-num pre li:before,
|
||||||
|
.repository.file.list #file-content .code-view .lines-code pre li:before,
|
||||||
|
.repository.file.list #file-content .code-view .lines-num ol li:before,
|
||||||
|
.repository.file.list #file-content .code-view .lines-code ol li:before,
|
||||||
|
.repository.file.list #file-content .code-view .lines-num .hljs li:before,
|
||||||
|
.repository.file.list #file-content .code-view .lines-code .hljs li:before {
|
||||||
|
content: ' ';
|
||||||
|
}
|
||||||
.repository.file.list .sidebar {
|
.repository.file.list .sidebar {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
@ -277,8 +277,6 @@
|
|||||||
.lines-num,
|
.lines-num,
|
||||||
.lines-code {
|
.lines-code {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
|
|
||||||
pre,
|
pre,
|
||||||
ol,
|
ol,
|
||||||
.hljs {
|
.hljs {
|
||||||
@ -286,12 +284,14 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
li {
|
li {
|
||||||
padding-left: 5px;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
&.active {
|
&.active {
|
||||||
background: #ffffdd;
|
background: #ffffdd;
|
||||||
}
|
}
|
||||||
|
&:before {
|
||||||
|
content: ' ';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user