Skip to content

Add /try to the nav #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
nav:
- title: Try
url: /try
- title: Install
url: /install
- title: Get Involved
Expand Down
19 changes: 19 additions & 0 deletions _sass/components/_container.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@import "settings/spacing";

.container {
padding-right: $size;
padding-left: $size;
}

/* all elements in .containers that have a anchor
* need to be scrolled by at least 3 em to not be behind the hidden header.
*/
.container * {
scroll-margin-top: 3em;
}

.content {
max-width: 640px;
margin-right: auto;
margin-left: auto;
}
15 changes: 15 additions & 0 deletions _sass/settings/_spacing.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$spacing-ratio: 1.55 !default;

$size: 1rem !default;

$size-0: $size;

$size-1: $size * $spacing-ratio;
$size-2: $size-1 * $spacing-ratio;
$size-3: $size-2 * $spacing-ratio;
$size-4: $size-3 * $spacing-ratio;

$size-n1: $size / $spacing-ratio;
$size-n2: $size-n1 / $spacing-ratio;
$size-n3: $size-n2 / $spacing-ratio;
$size-n4: $size-n3 / $spacing-ratio;