Skip to content

Commit 47865db

Browse files
authored
docs: style fixes (#5437)
* add underline styles to admonition content * add hover underline on smaller breakpoints * adjust hue & transparency of `code` so dotted underline shows through
1 parent fef636c commit 47865db

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/css/custom.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ html[data-theme='light'] {
111111
--ifm-link-color: var(--cypress-color-indigo-500);
112112

113113
--ifm-toc-border-color: var(--ifm-color-gray-100);
114+
115+
// adjust hue & transparency of `code` so dotted underline shows through in light mode
116+
--ifm-code-background: #dadada33;
114117
}
115118

116119
html[data-theme='dark'] {

src/css/markdown.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ div.markdown {
3636
// add border bottom to code tags that are in a link
3737
a:has(> code) {
3838
border-bottom: 1px dotted var(--ifm-link-color);
39+
40+
&:hover {
41+
border-bottom: 1px solid var(--ifm-link-color);
42+
}
43+
}
44+
45+
// ensure text links in admonitions have underline
46+
.alert a {
47+
border-bottom: 1px dotted var(--ifm-link-color);
48+
3949
&:hover {
4050
border-bottom: 1px solid var(--ifm-link-color);
4151
}
@@ -71,11 +81,19 @@ div.markdown {
7181
@media screen and (max-width: 1024px) and (orientation: landscape) {
7282
a {
7383
border-bottom: 1px dotted var(--ifm-link-color);
84+
85+
&:hover {
86+
border-bottom: 1px solid var(--ifm-link-color);
87+
}
7488
}
7589
}
7690
@media screen and (max-width: 1024px) and (orientation: portrait) {
7791
a {
7892
border-bottom: 1px dotted var(--ifm-link-color);
93+
94+
&:hover {
95+
border-bottom: 1px solid var(--ifm-link-color);
96+
}
7997
}
8098
}
8199
}

0 commit comments

Comments
 (0)