Skip to content

Commit 9a8ae3e

Browse files
committed
Use css variable to declare sidebar's width
1 parent c1535cd commit 9a8ae3e

File tree

1 file changed

+6
-2
lines changed
  • lib/rdoc/generator/template/darkfish/css

1 file changed

+6
-2
lines changed

lib/rdoc/generator/template/darkfish/css/rdoc.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
/* vim: ft=css et sw=2 ts=2 sts=2 */
1010
/* Base Green is: #6C8C22 */
1111

12+
:root {
13+
--sidebar-width: 300px;
14+
}
15+
1216
.hide { display: none !important; }
1317

1418
* { padding: 0; margin: 0; }
@@ -209,7 +213,7 @@ nav {
209213
z-index: 10;
210214

211215
/* Layout */
212-
width: 300px;
216+
width: var(--sidebar-width);
213217
min-height: 100vh;
214218
background: white;
215219
}
@@ -226,7 +230,7 @@ main {
226230

227231
@media (min-width: 1024px) {
228232
main {
229-
margin-left: 300px;
233+
margin-left: var(--sidebar-width);
230234
}
231235
}
232236

0 commit comments

Comments
 (0)