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"
1920
2021html
2122 overflow-x : hidden
@@ -108,14 +109,14 @@ article
108109 display : flex
109110 justify-content : flex-end
110111 // These next two lines took me two days to figure out.
111- width : calc((100% - #{$full-width }) / 2 + #{$sidebar-width })
112- min-width : $sidebar-width
112+ width : calc((100% - #{variables . $full-width }) / 2 + #{variables . $sidebar-width })
113+ min-width : variables . $sidebar-width
113114
114115// Scroll-along sidebars
115116.sidebar-container ,
116117.toc-drawer
117118 box-sizing : border-box
118- width : $sidebar-width
119+ width : variables . $sidebar-width
119120
120121.toc-drawer
121122 background : var(-- color- to c- background)
@@ -142,8 +143,8 @@ article
142143
143144// Central items.
144145.content
145- padding : 0 $content-padding
146- width : $content-width
146+ padding : 0 variables . $content-padding
147+ width : variables . $content-width
147148
148149 display : flex
149150 flex-direction : column
@@ -341,46 +342,46 @@ article
341342// Responsive layouting
342343/// /////////////////////////////////////////////////////////////////////////////
343344// Make things a bit bigger on bigger screens.
344- @media (min-width : $full-width + $sidebar-width )
345+ @media (min-width : variables . $full-width + variables . $sidebar-width )
345346 html
346347 font-size : 110%
347348
348- @media (max-width : $full-width )
349+ @media (max-width : variables . $full-width )
349350 // Collapse "toc" into the icon.
350351 .toc-content-icon
351352 display : flex
352353 .toc-drawer
353354 position : fixed
354355 height : 100vh
355356 top : 0
356- right : - $sidebar-width
357+ right : - variables . $sidebar-width
357358 border-left : 1px solid var(-- color- background- muted)
358359 .toc-tree
359360 border-left : none
360361 font-size : var(-- to c- font- size-- mobile)
361362
362363 // Accomodate for a changed content width.
363364 .sidebar-drawer
364- width : calc((100% - #{$full-width - $sidebar-width }) / 2 + #{$sidebar-width })
365+ width : calc((100% - #{variables . $full-width - variables . $sidebar-width }) / 2 + #{variables . $sidebar-width })
365366
366- @media (max-width : $content-padded-width + $sidebar-width )
367+ @media (max-width : variables . $content-padded-width + variables . $sidebar-width )
367368 // Center the page
368369 .content
369370 margin-left : auto
370371 margin-right : auto
371- padding : 0 $content-padding--small
372+ padding : 0 variables . $content-padding--small
372373
373- @media (max-width : $content-padded-width--small + $sidebar-width )
374+ @media (max-width : variables . $content-padded-width--small + variables . $sidebar-width )
374375 // Collapse "navigation".
375376 .nav-overlay-icon
376377 display : flex
377378 .sidebar-drawer
378379 position : fixed
379380 height : 100vh
380- width : $sidebar-width
381+ width : variables . $sidebar-width
381382
382383 top : 0
383- left : - $sidebar-width
384+ left : - variables . $sidebar-width
384385
385386 // Swap which icon is visible.
386387 .toc-header-icon , .theme-toggle-header
@@ -424,13 +425,13 @@ article
424425 flex-direction : column
425426 justify-content : center
426427
427- @media (max-width : $content-width + 2 * $content-padding--small )
428+ @media (max-width : variables . $content-width + 2 * variables . $content-padding--small )
428429 // Content should respect window limits.
429430 .content
430431 width : 100%
431432 overflow-x : auto
432433
433- @media (max-width : $content-width )
434+ @media (max-width : variables . $content-width )
434435 article [role=main] aside .sidebar
435436 float : none
436437 width : 100%
0 commit comments