Skip to content

Commit 8c2e737

Browse files
committed
Bug: Incorrect foreground color of the link in code blocks. iissnan#859
1 parent a088b07 commit 8c2e737

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

source/css/_common/components/highlight/highlight.styl

+15-3
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,17 @@ pre {
5757

5858
figcaption {
5959
clearfix();
60-
font-size: 0.85em;
61-
color: $highlight-comment;
60+
font-size: 1em;
61+
color: $highlight-foreground;
6262
line-height: 1em;
6363
margin-bottom: 1em;
6464

65-
a { float: right; }
65+
a {
66+
float: right;
67+
color: $highlight-foreground;
68+
69+
&:hover { border-bottom-color: $highlight-foreground; }
70+
}
6671
}
6772

6873
.gutter pre {
@@ -74,6 +79,13 @@ pre {
7479
.line { height: 20px; }
7580
}
7681

82+
83+
.gist table {
84+
width: auto;
85+
86+
td { border: none; }
87+
}
88+
7789
pre {
7890

7991
.comment { color: $highlight-comment; }

source/css/_common/scaffolding/helpers.styl

+4-13
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,20 @@
3333

3434
.pullquote {
3535
width: 45%;
36+
3637
&.left {
3738
float: left;
3839
margin-left: 5px;
3940
margin-right: 10px;
4041
}
42+
4143
&.right {
4244
float: right;
4345
margin-left: 10px;
4446
margin-right: 5px;
4547
}
4648
}
4749

48-
.highlight table, .gist table {
49-
width: auto;
50-
51-
td { border: none; }
52-
}
53-
.highlight, .gist {
54-
a {
55-
color: $link-hover-color !important;
56-
text-decoration: none !important;
57-
}
58-
}
59-
6050
.affix.affix.affix { position: fixed; }
6151

6252
.translation {
@@ -87,7 +77,8 @@
8777
background: inherit;
8878
opacity: 0.5;
8979
&:focus { opacity: 1; }
90-
};
80+
}
81+
9182
.search-icon {
9283
position: absolute;
9384
top: 9px;

0 commit comments

Comments
 (0)