This repository has been archived by the owner on Feb 11, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use `@use math:div` inside Hugo
- Loading branch information
Schalk Neethling
committed
Jul 7, 2021
1 parent
c57d19a
commit 5eb3067
Showing
9 changed files
with
63 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
@use "sass:math"; | ||
|
||
.toc { | ||
bottom: math.div($base-spacing, 2); | ||
bottom: $base-spacing / 2; | ||
max-height: 95vh; | ||
overflow: scroll; | ||
position: sticky; | ||
top: math.div($base-spacing, 2); | ||
top: $base-spacing / 2; | ||
|
||
nav > ul { | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
padding-left: math.div($base-spacing, 2); | ||
padding-left: $base-spacing / 2; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
$browser-default-font-size: 16px; | ||
$base-unit: 6px; | ||
|
||
$base-spacing: $base-unit * 4; | ||
$medium-spacing: $base-spacing * 2; | ||
$large-spacing: $medium-spacing * 2; | ||
|
||
$base-section-spacing: ($base-spacing * 2) $base-spacing; | ||
$base-section-spacing-mobile: ($base-spacing / 2) $base-spacing; | ||
$content-block-margin: $base-spacing; | ||
|
||
$max-width-default: 1400px; | ||
$max-width-small-desktop: (1023px / $browser-default-font-size) * 1em; | ||
|
||
$small-mobile-ends: (479px / $browser-default-font-size) * 1em; | ||
$mobile-starts: $small-mobile-ends + 0.001em; | ||
$mobile-ends: (767px / $browser-default-font-size) * 1em; | ||
|
||
$tablet-starts: $mobile-ends + 0.001em; | ||
$tablet-ends: (1023px / $browser-default-font-size) * 1em; | ||
|
||
$small-desktop-starts: $tablet-ends + 0.001em; | ||
$small-desktop-ends: (1199px / $browser-default-font-size) * 1em; | ||
|
||
/* | ||
* media queries | ||
* - MDN should be coded "mobile first" | ||
* - when coding features, begin by coding the mobile presentation as default | ||
*/ | ||
$mq-large-desktop-and-up: "all and (min-width: #{$small-desktop-ends})"; | ||
$mq-small-desktop-and-up: "all and (min-width: #{$small-desktop-starts})"; | ||
$mq-tablet-and-up: "all and (min-width: #{$tablet-starts})"; | ||
$mq-mobile-and-up: "all and (min-width: #{$mobile-starts})"; | ||
|
||
/* | ||
* z-index scale | ||
*/ | ||
$send-to-back: -1; | ||
$bring-to-front: 9999; | ||
$bottom-layer: 100; | ||
$middle-layer: 200; | ||
$top-layer: 300; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...de/resources/_gen/assets/css/minimalist/main.css_ee09be97884a98f1c989950cdaabae63.content
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...guide/resources/_gen/assets/css/minimalist/main.css_ee09be97884a98f1c989950cdaabae63.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"Target":"minimalist/main.min.32c9c3c9da3255b5d6ca53a361a78117a9b727ab60cf58b6dab9e895566812c4.css","MediaType":"text/css","Data":{"Integrity":"sha256-MsnDydoyVbXWylOjYaeBF6m3J6tgz1i22rnolVZoEsQ="}} | ||
{"Target":"minimalist/main.min.e367f3b42cf267643c4207fd6ccaa5dd1aa39ec743ef064fe27b2781dc833dec.css","MediaType":"text/css","Data":{"Integrity":"sha256-42fztCzyZ2Q8Qgf9bMql3RqjnsdD7wZP4nsngdyDPew="}} |