Skip to content

Commit f230e98

Browse files
authored
fix: version warning display (#130)
1 parent 43d67c3 commit f230e98

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

docs/_static/css/custom.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
11
.highlight-latex pre {
22
white-space: pre-wrap !important;
33
}
4+
5+
/* 1200px for slightly wider for most monitors */
6+
.wy-nav-content {
7+
max-width: 1200px !important;
8+
}
9+
10+
/* version warning badge */
11+
#dev-version {
12+
display: none;
13+
}
14+
15+
#dev-version.version-warning {
16+
display: block;
17+
}
18+
19+
p.version-warning {
20+
position: sticky;
21+
top: 10px;
22+
23+
margin: 10px 0;
24+
padding: 5px 10px;
25+
border-radius: 4px;
26+
27+
letter-spacing: 1px;
28+
color: #fff;
29+
text-shadow: 0 0 2px #000;
30+
text-align: center;
31+
32+
background: #900
33+
repeating-linear-gradient(
34+
135deg,
35+
transparent,
36+
transparent 56px,
37+
rgba(255, 255, 255, 0.35) 56px,
38+
rgba(255, 255, 255, 0.35) 112px
39+
);
40+
}
41+
42+
p.version-warning a {
43+
color: #fff;
44+
text-decoration: none;
45+
border-bottom: 1px dotted #fff;
46+
}
47+
48+
p.version-warning a:hover {
49+
border-bottom-style: solid;
50+
}
51+
/* -------------------------- */

0 commit comments

Comments
 (0)