Skip to content

Commit fd65888

Browse files
Nemo157jyn514
authored andcommitted
Fix the sidebar height
`calc` is parsed specially in SASS as if the interior is a plain unquoted string and requires using explicit interpolation syntax (see the "fun fact" at https://sass-lang.com/documentation/at-rules/function#plain-css-functions).
1 parent 3fb17bd commit fd65888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/style/rustdoc-2021-12-05.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
.sidebar {
1111
margin-top: 0;
1212
top: $top-navbar-height;
13-
height: calc(100vh - $top-navbar-height);
13+
height: calc(100vh - #{$top-navbar-height});
1414
/* Since we use `overflow-wrap: anywhere;`, we never have the need for a X scrollbar... */
1515
overflow-x: hidden;
1616

0 commit comments

Comments
 (0)