Skip to content

Commit e25e7b9

Browse files
silverwindlunnytechknowlogick
authored
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 <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent e2b069e commit e25e7b9

File tree

2 files changed

+14
-36
lines changed

2 files changed

+14
-36
lines changed

web_src/less/_base.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ textarea {
150150
font-family: var(--fonts-regular);
151151
}
152152

153+
pre,
153154
code,
154155
kbd,
155156
samp {

web_src/less/_repository.less

Lines changed: 13 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -273,24 +273,6 @@
273273
.ui.avatar {
274274
margin-bottom: 5px;
275275
}
276-
277-
.commit-summary a {
278-
text-decoration: underline;
279-
text-decoration-style: dashed;
280-
281-
&:hover {
282-
text-decoration-style: solid;
283-
}
284-
285-
&.default-link {
286-
text-decoration: none;
287-
288-
&:hover {
289-
text-decoration: underline;
290-
text-decoration-style: solid;
291-
}
292-
}
293-
}
294276
}
295277

296278
tbody {
@@ -2694,20 +2676,16 @@ tbody.commit-list {
26942676
}
26952677
}
26962678

2697-
.commit-list .commit-summary a {
2698-
text-decoration: underline;
2699-
text-decoration-style: dashed;
2700-
2679+
.commit-summary a {
27012680
&:hover {
2702-
text-decoration-style: solid;
2681+
text-decoration: underline solid;
27032682
}
27042683

27052684
&.default-link {
27062685
text-decoration: none;
27072686

27082687
&:hover {
2709-
text-decoration: underline;
2710-
text-decoration-style: solid;
2688+
text-decoration: underline solid;
27112689
}
27122690
}
27132691
}
@@ -2719,16 +2697,11 @@ tbody.commit-list {
27192697

27202698
.commit-body {
27212699
white-space: pre-wrap;
2700+
margin: 0;
27222701
}
27232702

2724-
.git-notes {
2725-
&.top {
2726-
text-align: left;
2727-
}
2728-
2729-
.commit-body {
2730-
margin: 0;
2731-
}
2703+
.git-notes.top {
2704+
text-align: left;
27322705
}
27332706

27342707
@media @mediaSm {
@@ -2924,9 +2897,13 @@ td.blob-excerpt {
29242897
background-color: #fafafa;
29252898
}
29262899

2927-
.issue-keyword {
2928-
border-bottom: 1px dotted #959da5;
2929-
display: inline-block;
2900+
.issue-keyword,
2901+
.commit-body .issue-keyword:hover {
2902+
border-bottom: 1px dotted var(--color-text-light-2);
2903+
}
2904+
2905+
.issue-keyword:hover {
2906+
border-bottom: none;
29302907
}
29312908

29322909
.file-header {

0 commit comments

Comments
 (0)