1616// HACK: Always having the scrollbar visible, prevents certain browsers from
1717// causing the content to stutter horizontally between taller-than-viewport and
1818// not-taller-than-viewport pages.
19- @use " variables"
19+ @use " variables" as *
2020
2121html
2222 overflow-x : hidden
@@ -109,14 +109,14 @@ article
109109 display : flex
110110 justify-content : flex-end
111111 // These next two lines took me two days to figure out.
112- width : calc((100% - #{variables . $full-width }) / 2 + #{variables . $sidebar-width })
113- min-width : variables . $sidebar-width
112+ width : calc((100% - #{$full-width }) / 2 + #{$sidebar-width })
113+ min-width : $sidebar-width
114114
115115// Scroll-along sidebars
116116.sidebar-container ,
117117.toc-drawer
118118 box-sizing : border-box
119- width : variables . $sidebar-width
119+ width : $sidebar-width
120120
121121.toc-drawer
122122 background : var(-- color- to c- background)
@@ -143,8 +143,8 @@ article
143143
144144// Central items.
145145.content
146- padding : 0 variables . $content-padding
147- width : variables . $content-width
146+ padding : 0 $content-padding
147+ width : $content-width
148148
149149 display : flex
150150 flex-direction : column
@@ -342,46 +342,46 @@ article
342342// Responsive layouting
343343/// /////////////////////////////////////////////////////////////////////////////
344344// Make things a bit bigger on bigger screens.
345- @media (min-width : variables . $full-width + variables . $sidebar-width )
345+ @media (min-width : $full-width + $sidebar-width )
346346 html
347347 font-size : 110%
348348
349- @media (max-width : variables . $full-width )
349+ @media (max-width : $full-width )
350350 // Collapse "toc" into the icon.
351351 .toc-content-icon
352352 display : flex
353353 .toc-drawer
354354 position : fixed
355355 height : 100vh
356356 top : 0
357- right : - variables . $sidebar-width
357+ right : - $sidebar-width
358358 border-left : 1px solid var(-- color- background- muted)
359359 .toc-tree
360360 border-left : none
361361 font-size : var(-- to c- font- size-- mobile)
362362
363363 // Accomodate for a changed content width.
364364 .sidebar-drawer
365- width : calc((100% - #{variables . $full-width - variables . $sidebar-width }) / 2 + #{variables . $sidebar-width })
365+ width : calc((100% - #{$full-width - $sidebar-width }) / 2 + #{$sidebar-width })
366366
367- @media (max-width : variables . $content-padded-width + variables . $sidebar-width )
367+ @media (max-width : $content-padded-width + $sidebar-width )
368368 // Center the page
369369 .content
370370 margin-left : auto
371371 margin-right : auto
372- padding : 0 variables . $content-padding--small
372+ padding : 0 $content-padding--small
373373
374- @media (max-width : variables . $content-padded-width--small + variables . $sidebar-width )
374+ @media (max-width : $content-padded-width--small + $sidebar-width )
375375 // Collapse "navigation".
376376 .nav-overlay-icon
377377 display : flex
378378 .sidebar-drawer
379379 position : fixed
380380 height : 100vh
381- width : variables . $sidebar-width
381+ width : $sidebar-width
382382
383383 top : 0
384- left : - variables . $sidebar-width
384+ left : - $sidebar-width
385385
386386 // Swap which icon is visible.
387387 .toc-header-icon , .theme-toggle-header
@@ -425,13 +425,13 @@ article
425425 flex-direction : column
426426 justify-content : center
427427
428- @media (max-width : variables . $content-width + 2 * variables . $content-padding--small )
428+ @media (max-width : $content-width + 2 * $content-padding--small )
429429 // Content should respect window limits.
430430 .content
431431 width : 100%
432432 overflow-x : auto
433433
434- @media (max-width : variables . $content-width )
434+ @media (max-width : $content-width )
435435 article [role=main] aside .sidebar
436436 float : none
437437 width : 100%
0 commit comments