Commit list display tweaks (#14043)
- Make plain <pre> inherit our monospace fonts, overriding fomantic's css reset which means expanded commit messages now follow the font settings. - Adjust link styling and keyword highlighting in commit message - Consolidate .commit-summary styles to single selector group Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
e2b069e577
commit
e25e7b9598
|
@ -150,6 +150,7 @@ textarea {
|
||||||
font-family: var(--fonts-regular);
|
font-family: var(--fonts-regular);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre,
|
||||||
code,
|
code,
|
||||||
kbd,
|
kbd,
|
||||||
samp {
|
samp {
|
||||||
|
|
|
@ -273,24 +273,6 @@
|
||||||
.ui.avatar {
|
.ui.avatar {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.commit-summary a {
|
|
||||||
text-decoration: underline;
|
|
||||||
text-decoration-style: dashed;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
text-decoration-style: solid;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.default-link {
|
|
||||||
text-decoration: none;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
text-decoration-style: solid;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tbody {
|
tbody {
|
||||||
|
@ -2694,20 +2676,16 @@ tbody.commit-list {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.commit-list .commit-summary a {
|
.commit-summary a {
|
||||||
text-decoration: underline;
|
|
||||||
text-decoration-style: dashed;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration-style: solid;
|
text-decoration: underline solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.default-link {
|
&.default-link {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline solid;
|
||||||
text-decoration-style: solid;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2719,16 +2697,11 @@ tbody.commit-list {
|
||||||
|
|
||||||
.commit-body {
|
.commit-body {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.git-notes {
|
.git-notes.top {
|
||||||
&.top {
|
text-align: left;
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.commit-body {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media @mediaSm {
|
@media @mediaSm {
|
||||||
|
@ -2924,9 +2897,13 @@ td.blob-excerpt {
|
||||||
background-color: #fafafa;
|
background-color: #fafafa;
|
||||||
}
|
}
|
||||||
|
|
||||||
.issue-keyword {
|
.issue-keyword,
|
||||||
border-bottom: 1px dotted #959da5;
|
.commit-body .issue-keyword:hover {
|
||||||
display: inline-block;
|
border-bottom: 1px dotted var(--color-text-light-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.issue-keyword:hover {
|
||||||
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-header {
|
.file-header {
|
||||||
|
|
Loading…
Reference in a new issue