Skip to content

Commit f52a834

Browse files
authored
Merge pull request #528 from jupyter/palewire-patch-17
Add /try to the nav
2 parents 22f8811 + 1248a1d commit f52a834

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

_layouts/default.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
nav:
3+
- title: Try
4+
url: /try
35
- title: Install
46
url: /install
57
- title: Get Involved

_sass/components/_container.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@import "settings/spacing";
2+
3+
.container {
4+
padding-right: $size;
5+
padding-left: $size;
6+
}
7+
8+
/* all elements in .containers that have a anchor
9+
* need to be scrolled by at least 3 em to not be behind the hidden header.
10+
*/
11+
.container * {
12+
scroll-margin-top: 3em;
13+
}
14+
15+
.content {
16+
max-width: 640px;
17+
margin-right: auto;
18+
margin-left: auto;
19+
}

_sass/settings/_spacing.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
$spacing-ratio: 1.55 !default;
2+
3+
$size: 1rem !default;
4+
5+
$size-0: $size;
6+
7+
$size-1: $size * $spacing-ratio;
8+
$size-2: $size-1 * $spacing-ratio;
9+
$size-3: $size-2 * $spacing-ratio;
10+
$size-4: $size-3 * $spacing-ratio;
11+
12+
$size-n1: $size / $spacing-ratio;
13+
$size-n2: $size-n1 / $spacing-ratio;
14+
$size-n3: $size-n2 / $spacing-ratio;
15+
$size-n4: $size-n3 / $spacing-ratio;

0 commit comments

Comments
 (0)