jekyll-bonsai 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +674 -0
- data/README.md +11 -0
- data/_config.yml +155 -0
- data/_entries/digital-garden.bonsai.md +36 -0
- data/_entries/digital-garden.field-logs.md +10 -0
- data/_entries/digital-garden.fork.md +10 -0
- data/_entries/digital-garden.md +17 -0
- data/_entries/digital-garden.path.md +11 -0
- data/_entries/digital-garden.plants.md +12 -0
- data/_entries/digital-garden.pollinate.md +10 -0
- data/_entries/digital-garden.steps.md +10 -0
- data/_entries/digital-garden.stream.md +12 -0
- data/_entries/digital-garden.sweep.md +12 -0
- data/_entries/digital-garden.weather.md +12 -0
- data/_entries/features.md +10 -0
- data/_entries/features.notes.hover-preview.md +10 -0
- data/_entries/features.notes.md +12 -0
- data/_entries/features.notes.note-body.md +12 -0
- data/_entries/features.notes.note-body.share.md +10 -0
- data/_entries/features.notes.note-body.sidenotes.md +52 -0
- data/_entries/features.notes.note-foot.links.md +10 -0
- data/_entries/features.notes.note-foot.md +11 -0
- data/_entries/features.notes.note-foot.posts.md +10 -0
- data/_entries/features.notes.note-foot.webmentions.md +10 -0
- data/_entries/features.notes.note-head.md +10 -0
- data/_entries/features.pages.field-blogs.md +10 -0
- data/_entries/features.pages.md +12 -0
- data/_entries/features.pages.recent.md +10 -0
- data/_entries/features.pages.status-tags.md +10 -0
- data/_entries/features.site-nav.graph.links.md +10 -0
- data/_entries/features.site-nav.graph.links.namespacing.md +14 -0
- data/_entries/features.site-nav.graph.links.wikilinks.md +25 -0
- data/_entries/features.site-nav.graph.md +12 -0
- data/_entries/features.site-nav.graph.nodes.current-note.md +10 -0
- data/_entries/features.site-nav.graph.nodes.md +12 -0
- data/_entries/features.site-nav.graph.nodes.mia.missing-note.md +20 -0
- data/_entries/features.site-nav.graph.nodes.visited-status.md +10 -0
- data/_entries/features.site-nav.graph.toggle-graph.md +13 -0
- data/_entries/features.site-nav.graph.type.md +16 -0
- data/_entries/features.site-nav.graph.type.net-web.md +10 -0
- data/_entries/features.site-nav.graph.type.tree.md +12 -0
- data/_entries/features.site-nav.md +10 -0
- data/_entries/features.site-nav.visited.md +14 -0
- data/_entries/features.tags.md +13 -0
- data/_entries/features.themes.dark.md +12 -0
- data/_entries/features.themes.light.md +10 -0
- data/_entries/features.themes.md +12 -0
- data/_entries/features.visited.delete-data.md +10 -0
- data/_entries/features.visited.md +12 -0
- data/_entries/features.visitor-preferences.md +27 -0
- data/_entries/feedback.md +10 -0
- data/_entries/people.creator.md +12 -0
- data/_entries/people.md +13 -0
- data/_entries/people.visitors.md +12 -0
- data/_entries/plugins.jekyll-wikilinks.md +10 -0
- data/_entries/plugins.md +10 -0
- data/_entries/root.md +26 -0
- data/_includes/anchor-headings.html +152 -0
- data/_includes/connect.html +44 -0
- data/_includes/entry-attrs.html +27 -0
- data/_includes/head.html +23 -0
- data/_includes/hover-preview.html +84 -0
- data/_includes/img/bullet-ancestor.svg +5 -0
- data/_includes/img/bullet-net-web.svg +9 -0
- data/_includes/img/bullet-tree.svg +9 -0
- data/_includes/metrics.html +10 -0
- data/_includes/share.html +45 -0
- data/_includes/site-nav.html +48 -0
- data/_includes/styles.scss.liquid +3 -0
- data/_layouts/default.html +39 -0
- data/_layouts/entry.html +124 -0
- data/_layouts/post.html +29 -0
- data/_layouts/state.html +59 -0
- data/_layouts/table-wrappers.html +7 -0
- data/_layouts/vendor/compress.html +10 -0
- data/_pages/about.md +7 -0
- data/_pages/posts.html +19 -0
- data/_pages/recent.html +48 -0
- data/_plugins/doc_filters.rb +44 -0
- data/_plugins/prep_entry.rb +43 -0
- data/_plugins/sidenote.rb +123 -0
- data/_plugins/tags.rb +52 -0
- data/_sass/base/_layout.scss +54 -0
- data/_sass/base/_main.scss +203 -0
- data/_sass/base/_typography.scss +75 -0
- data/_sass/base/base.scss +3 -0
- data/_sass/color/dark.scss +58 -0
- data/_sass/color/light.scss +58 -0
- data/_sass/includes/_btn.scss +106 -0
- data/_sass/includes/_graph.scss +69 -0
- data/_sass/includes/_nav.scss +89 -0
- data/_sass/includes/_site_nav.scss +221 -0
- data/_sass/includes/_tooltip.scss +29 -0
- data/_sass/includes/includes.scss +9 -0
- data/_sass/markdown/_code.scss +340 -0
- data/_sass/markdown/_content.scss +400 -0
- data/_sass/markdown/_tables.scss +60 -0
- data/_sass/markdown/markdown.scss +7 -0
- data/_sass/modules.scss +14 -0
- data/_sass/pages/_index.scss +72 -0
- data/_sass/pages/_posts.scss +17 -0
- data/_sass/pages/_recent.scss +26 -0
- data/_sass/pages/_state.scss +72 -0
- data/_sass/pages/pages.scss +4 -0
- data/_sass/support/_functions.scss +9 -0
- data/_sass/support/_variables.scss +179 -0
- data/_sass/support/mixins/_buttons.scss +27 -0
- data/_sass/support/mixins/_layout.scss +56 -0
- data/_sass/support/mixins/_typography.scss +84 -0
- data/_sass/support/mixins/mixins.scss +3 -0
- data/_sass/support/support.scss +3 -0
- data/_sass/vendor/normalize.scss/README.md +7 -0
- data/_sass/vendor/normalize.scss/normalize.scss +349 -0
- data/_states/bamboo.md +8 -0
- data/_states/berry.md +8 -0
- data/_states/bloom.md +8 -0
- data/_states/bud.md +6 -0
- data/_states/fruit.md +8 -0
- data/_states/melon.md +8 -0
- data/_states/pot-bamboo.md +8 -0
- data/_states/seed.md +8 -0
- data/_states/sprout.md +8 -0
- data/_states/tags.md +8 -0
- data/_states/tea.md +8 -0
- data/assets/css/styles-dark.scss +3 -0
- data/assets/css/styles-light.scss +3 -0
- data/assets/css/styles.scss +8 -0
- data/assets/font/Cutive_Mono/CutiveMono-Regular.ttf +0 -0
- data/assets/font/Cutive_Mono/OFL.txt +93 -0
- data/assets/font/Old_Standard_TT/OFL.txt +93 -0
- data/assets/font/Old_Standard_TT/OldStandardTT-Bold.ttf +0 -0
- data/assets/font/Old_Standard_TT/OldStandardTT-Italic.ttf +0 -0
- data/assets/font/Old_Standard_TT/OldStandardTT-Regular.ttf +0 -0
- data/assets/font/exo2/Exo2-Italic-VariableFont_wght.ttf +0 -0
- data/assets/font/exo2/Exo2-VariableFont_wght.ttf +0 -0
- data/assets/font/exo2/OFL.txt +93 -0
- data/assets/font/exo2/README.txt +81 -0
- data/assets/font/exo2/static/Exo2-Black.ttf +0 -0
- data/assets/font/exo2/static/Exo2-BlackItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-Bold.ttf +0 -0
- data/assets/font/exo2/static/Exo2-BoldItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-ExtraBold.ttf +0 -0
- data/assets/font/exo2/static/Exo2-ExtraBoldItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-ExtraLight.ttf +0 -0
- data/assets/font/exo2/static/Exo2-ExtraLightItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-Italic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-Light.ttf +0 -0
- data/assets/font/exo2/static/Exo2-LightItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-Medium.ttf +0 -0
- data/assets/font/exo2/static/Exo2-MediumItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-Regular.ttf +0 -0
- data/assets/font/exo2/static/Exo2-SemiBold.ttf +0 -0
- data/assets/font/exo2/static/Exo2-SemiBoldItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-Thin.ttf +0 -0
- data/assets/font/exo2/static/Exo2-ThinItalic.ttf +0 -0
- data/assets/img/bonsai-dark.png +0 -0
- data/assets/img/bonsai-dark.svg +106 -0
- data/assets/img/bonsai-light.png +0 -0
- data/assets/img/bonsai-light.svg +81 -0
- data/assets/img/favicon-dark.png +0 -0
- data/assets/img/favicon-light.png +0 -0
- data/assets/img/nav-base-dark.svg +1 -0
- data/assets/img/nav-base-light.svg +1 -0
- data/assets/img/nav-bonsai-dark.svg +1 -0
- data/assets/img/nav-bonsai-light.svg +1 -0
- data/assets/img/nav-dot-dark.svg +1 -0
- data/assets/img/nav-dot-light.svg +1 -0
- data/assets/img/nav-wiki-links-dark.svg +1 -0
- data/assets/img/nav-wiki-links-light.svg +1 -0
- data/assets/js/entry.js +102 -0
- data/assets/js/graph.js +552 -0
- data/assets/js/scripts.js +80 -0
- data/assets/js/site-nav.js +132 -0
- data/assets/js/theme-colors.js +71 -0
- data/index.html +82 -0
- metadata +360 -0
data/_sass/modules.scss
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
//
|
2
|
+
// Import external dependencies
|
3
|
+
//
|
4
|
+
@import "./vendor/normalize.scss/normalize.scss";
|
5
|
+
|
6
|
+
@import url('https://fonts.googleapis.com/css?family=Special+Elite');
|
7
|
+
|
8
|
+
//
|
9
|
+
// Modules
|
10
|
+
//
|
11
|
+
@import "./base/base";
|
12
|
+
@import "./pages/pages";
|
13
|
+
@import "./markdown/markdown";
|
14
|
+
@import "./includes/includes";
|
@@ -0,0 +1,72 @@
|
|
1
|
+
//
|
2
|
+
// scss for index
|
3
|
+
//
|
4
|
+
|
5
|
+
#home {
|
6
|
+
padding: $sp-5;
|
7
|
+
}
|
8
|
+
|
9
|
+
.lead {
|
10
|
+
text-align: center;
|
11
|
+
padding: $sp-2;
|
12
|
+
|
13
|
+
h1 {
|
14
|
+
padding-top: $sp-3;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.end {
|
19
|
+
display: flex;
|
20
|
+
justify-content: space-around;
|
21
|
+
text-align: center;
|
22
|
+
padding-left: $sp-5;
|
23
|
+
}
|
24
|
+
|
25
|
+
.main-columns {
|
26
|
+
|
27
|
+
@include mq(md) {
|
28
|
+
display: flex;
|
29
|
+
}
|
30
|
+
|
31
|
+
& > * {
|
32
|
+
margin: $sp-1;
|
33
|
+
|
34
|
+
@include mq(md) {
|
35
|
+
flex-basis: 100%;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.column {
|
40
|
+
@include mq(md) {
|
41
|
+
display: flex;
|
42
|
+
flex-direction: column;
|
43
|
+
}
|
44
|
+
|
45
|
+
.column-heading {
|
46
|
+
text-align: left;
|
47
|
+
padding-left: $sp-3;
|
48
|
+
}
|
49
|
+
|
50
|
+
.column-content {
|
51
|
+
padding: $sp-2;
|
52
|
+
|
53
|
+
.column-item {
|
54
|
+
display: flex;
|
55
|
+
justify-content: space-between;
|
56
|
+
padding: $sp-2;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
.column-foot {
|
61
|
+
@include fs-2;
|
62
|
+
color: $grey-dk-000;
|
63
|
+
text-align: right;
|
64
|
+
padding-bottom: $sp-3;
|
65
|
+
|
66
|
+
@include mq(md) {
|
67
|
+
text-align: center;
|
68
|
+
margin-top: auto;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
//
|
2
|
+
// scss for recent page
|
3
|
+
//
|
4
|
+
|
5
|
+
.date-updated {
|
6
|
+
float: right;
|
7
|
+
color: grey;
|
8
|
+
}
|
9
|
+
|
10
|
+
.recent-list {
|
11
|
+
padding: $sp-4;
|
12
|
+
|
13
|
+
.recent-list-item {
|
14
|
+
display: flex;
|
15
|
+
justify-content: space-between;
|
16
|
+
list-style-type: none !important;
|
17
|
+
|
18
|
+
&::before {
|
19
|
+
content: "" !important;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
.leader {
|
25
|
+
margin-bottom: $sp-10;
|
26
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
//
|
2
|
+
// scss for tag page
|
3
|
+
//
|
4
|
+
|
5
|
+
.states-nav {
|
6
|
+
@include fs-6;
|
7
|
+
display: flex;
|
8
|
+
position: absolute;
|
9
|
+
width: 100%;
|
10
|
+
z-index: 2;
|
11
|
+
top: 0;
|
12
|
+
user-select: none;
|
13
|
+
|
14
|
+
.states-nav-list {
|
15
|
+
overflow-x: scroll;
|
16
|
+
white-space: nowrap;
|
17
|
+
padding-left: 0 !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
.states-list-item {
|
21
|
+
display: inline-block;
|
22
|
+
margin-right: $sp-3;
|
23
|
+
margin-left: $sp-3;
|
24
|
+
margin-top: 0;
|
25
|
+
padding-top: $sp-2;
|
26
|
+
padding-bottom: $sp-5;
|
27
|
+
transition: all .2s ease-in-out;
|
28
|
+
|
29
|
+
&::before {
|
30
|
+
content: "";
|
31
|
+
}
|
32
|
+
|
33
|
+
&.active {
|
34
|
+
filter: drop-shadow(0 2mm 2mm $drop-shadow-green);
|
35
|
+
}
|
36
|
+
|
37
|
+
&:hover {
|
38
|
+
transform: scale(1.5);
|
39
|
+
filter: drop-shadow(0 2mm 2mm $drop-shadow-brown);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
@include mq(md) {
|
44
|
+
padding-right: $gutter-spacing-sm;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.states-page {
|
49
|
+
padding-top: $sp-10;
|
50
|
+
}
|
51
|
+
|
52
|
+
.states-list {
|
53
|
+
padding: $sp-4;
|
54
|
+
display: block; // columns require block
|
55
|
+
column-count: 2;
|
56
|
+
column-width: $content-width / 6;
|
57
|
+
|
58
|
+
.states-list-item {
|
59
|
+
// display: flex;
|
60
|
+
list-style-type: none !important;
|
61
|
+
|
62
|
+
&::before {
|
63
|
+
content: "" !important;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
.no-results {
|
69
|
+
padding: $sp-5;
|
70
|
+
text-align: center;
|
71
|
+
color: grey;
|
72
|
+
}
|
@@ -0,0 +1,179 @@
|
|
1
|
+
//
|
2
|
+
// Colors
|
3
|
+
//
|
4
|
+
|
5
|
+
$transparent: #00000000 !default;
|
6
|
+
|
7
|
+
$black: #000 !default;
|
8
|
+
$white: #fff !default;
|
9
|
+
|
10
|
+
$grey-dk-000: #959396 !default;
|
11
|
+
$grey-dk-100: #5c5962 !default;
|
12
|
+
$grey-dk-200: #44434d !default;
|
13
|
+
$grey-dk-250: #302d36 !default;
|
14
|
+
$grey-dk-300: #27262b !default;
|
15
|
+
|
16
|
+
$grey-lt-000: #f5f6fa !default;
|
17
|
+
$grey-lt-100: #eeebee !default;
|
18
|
+
$grey-lt-200: #ecebed !default;
|
19
|
+
$grey-lt-300: #e6e1e8 !default;
|
20
|
+
|
21
|
+
$purple-000: #7253ed !default;
|
22
|
+
$purple-100: #5e41d0 !default;
|
23
|
+
$purple-200: #4e26af !default;
|
24
|
+
$purple-300: #381885 !default;
|
25
|
+
|
26
|
+
$blue-000: #89B8D8 !default;
|
27
|
+
$blue-050: #2c84fa !default;
|
28
|
+
$blue-100: #2869e6 !default;
|
29
|
+
$blue-150: #1856C9 !default;
|
30
|
+
$blue-200: #264caf !default;
|
31
|
+
$blue-300: #183385 !default;
|
32
|
+
|
33
|
+
$green-01: #E4f3EA !default;
|
34
|
+
$green-01-03: #d6f0e0 !default;
|
35
|
+
$green-01-05: #D5ECDE !default;
|
36
|
+
$green-02: #C7E6D3 !default;
|
37
|
+
$green-03: #9cbe9c !default;
|
38
|
+
$green-05: #31AF31 !default;
|
39
|
+
$green-07: #A0E4A0 !default;
|
40
|
+
$green-000: #41d693 !default;
|
41
|
+
$green-100: #11b584 !default;
|
42
|
+
$green-200: #009c7b !default;
|
43
|
+
$green-300: #026e57 !default;
|
44
|
+
$green-400: #3e5c50 !default;
|
45
|
+
|
46
|
+
$green-yellow-05: #E8ECD5 !default;
|
47
|
+
$green-yellow-100: #E5EFBE !default;
|
48
|
+
$green-yellow-200: #B4D042 !default;
|
49
|
+
|
50
|
+
$yellow-000: #ffeb82 !default;
|
51
|
+
$yellow-100: #fadf50 !default;
|
52
|
+
$yellow-200: #f7d12e !default;
|
53
|
+
$yellow-300: #e7af06 !default;
|
54
|
+
|
55
|
+
$sand-100: #EAD8AE !default;
|
56
|
+
$sand-300: #D0A542 !default;
|
57
|
+
|
58
|
+
$orange-300: #F28014 !default;
|
59
|
+
|
60
|
+
$red-000: #f77e7e !default;
|
61
|
+
$red-100: #f96e65 !default;
|
62
|
+
$red-200: #e94c4c !default;
|
63
|
+
$red-300: #dd2e2e !default;
|
64
|
+
|
65
|
+
$brown-00: #E7D6C5 !default;
|
66
|
+
$brown-01: #CFAD8C !default;
|
67
|
+
$brown-02: #8C6239 !default;
|
68
|
+
$brown-03: #2B1F12 !default;
|
69
|
+
|
70
|
+
$drop-shadow-purple: rgba(114, 83, 237, 0.9) !default;
|
71
|
+
$drop-shadow-blue: rgba(31, 141, 192, 0.9) !default;
|
72
|
+
$drop-shadow-brown: rgba(146, 102, 7, 0.9) !default;
|
73
|
+
$drop-shadow-green: rgba(6, 240, 103, 0.9) !default;
|
74
|
+
$drop-shadow-yellow: rgba(228, 225, 31, 0.9) !default;
|
75
|
+
$drop-shadow-orange: rgba(231, 175, 6, 0.9) !default;
|
76
|
+
$drop-shadow-red: rgba(233, 76, 76, 0.9) !default;
|
77
|
+
|
78
|
+
//
|
79
|
+
// Typography
|
80
|
+
//
|
81
|
+
|
82
|
+
$body-font-family: Georgia, serif !default;
|
83
|
+
$mono-font-family: "SFMono-Regular", Menlo, Consolas, Monospace !default;
|
84
|
+
$click-font-family: 'Trebuchet MS', sans-serif !default; // 'click' because this font invites users to click on the text.
|
85
|
+
|
86
|
+
$root-font-size: 16px !default; // Base font-size for rems
|
87
|
+
$body-line-height: 1.4 !default;
|
88
|
+
$content-line-height: 1.6 !default;
|
89
|
+
$body-heading-line-height: 1.25 !default;
|
90
|
+
|
91
|
+
//
|
92
|
+
// Font size
|
93
|
+
// `-sm` suffix is the size at the small (and above) media query
|
94
|
+
//
|
95
|
+
|
96
|
+
$font-size-1: 9px !default;
|
97
|
+
$font-size-1-sm: 10px !default;
|
98
|
+
$font-size-2: 11px !default; //h4 - uppercased!, h6 not uppercased, text-small
|
99
|
+
$font-size-3: 12px !default; //h5
|
100
|
+
$font-size-4: 14px !default;
|
101
|
+
$font-size-5: 16px !default; //h3
|
102
|
+
$font-size-6: 18px !default; //h2
|
103
|
+
$font-size-7: 24px !default;
|
104
|
+
$font-size-8: 32px !default; //h1
|
105
|
+
$font-size-9: 36px !default;
|
106
|
+
$font-size-10: 42px !default;
|
107
|
+
$font-size-10-sm: 48px !default;
|
108
|
+
|
109
|
+
//
|
110
|
+
// Spacing
|
111
|
+
//
|
112
|
+
|
113
|
+
$spacing-unit: 1rem; // 1rem == 16px
|
114
|
+
|
115
|
+
$spacers: (
|
116
|
+
sp-0: 0,
|
117
|
+
sp-0-75: $spacing-unit * 0.15,
|
118
|
+
sp-1-: $spacing-unit * 0.25,
|
119
|
+
sp-1-75: $spacing-unit * 0.4,
|
120
|
+
sp-2: $spacing-unit * 0.5,
|
121
|
+
sp-3: $spacing-unit * 0.75,
|
122
|
+
sp-4: $spacing-unit,
|
123
|
+
sp-5: $spacing-unit * 1.5,
|
124
|
+
sp-6: $spacing-unit * 2,
|
125
|
+
sp-7: $spacing-unit * 2.5,
|
126
|
+
sp-8: $spacing-unit * 3,
|
127
|
+
sp-9: $spacing-unit * 3.5,
|
128
|
+
sp-10: $spacing-unit * 4,
|
129
|
+
) !default;
|
130
|
+
|
131
|
+
$sp-0-75: map-get($spacers, sp-0-75) !default; // 0.15 rem == 2.4px
|
132
|
+
$sp-1: map-get($spacers, sp-1) !default; // 0.25 rem == 4px
|
133
|
+
$sp-1-75: map-get($spacers, sp-1-75) !default; // 0.25 rem == 4px
|
134
|
+
$sp-2: map-get($spacers, sp-2) !default; // 0.5 rem == 8px
|
135
|
+
$sp-3: map-get($spacers, sp-3) !default; // 0.75 rem == 12px
|
136
|
+
$sp-4: map-get($spacers, sp-4) !default; // 1 rem == 16px
|
137
|
+
$sp-5: map-get($spacers, sp-5) !default; // 1.5 rem == 24px
|
138
|
+
$sp-6: map-get($spacers, sp-6) !default; // 2 rem == 32px
|
139
|
+
$sp-7: map-get($spacers, sp-7) !default; // 2.5 rem == 40px
|
140
|
+
$sp-8: map-get($spacers, sp-8) !default; // 3 rem == 48px
|
141
|
+
$sp-9: map-get($spacers, sp-9) !default; // 3.5 rem == 56px
|
142
|
+
$sp-10: map-get($spacers, sp-10) !default; // 4 rem == 64px
|
143
|
+
|
144
|
+
//
|
145
|
+
// Borders
|
146
|
+
//
|
147
|
+
|
148
|
+
$border: 1px solid !default;
|
149
|
+
$border-radius: 4px !default;
|
150
|
+
|
151
|
+
//
|
152
|
+
// Grid system
|
153
|
+
//
|
154
|
+
|
155
|
+
$header-height: 60px !default;
|
156
|
+
$gutter-spacing: $sp-6 !default;
|
157
|
+
$gutter-spacing-sm: $sp-4 !default;
|
158
|
+
$content-width: 700px !default;
|
159
|
+
$content-sidenote-width: .375 * $content-width;
|
160
|
+
$nav-width: 264px !default;
|
161
|
+
$nav-width-md: 248px !default;
|
162
|
+
$nav-width-lg: calc((100% - #{$nav-width + $content-width}) / 2 + (.6 * #{$nav-width})) !default;
|
163
|
+
$nav-list-item-height: $sp-6 !default;
|
164
|
+
$nav-list-item-height-sm: $sp-8 !default;
|
165
|
+
$nav-list-expander-right: true;
|
166
|
+
$search-results-width: $content-width - $nav-width !default;
|
167
|
+
$transition-duration: 400ms;
|
168
|
+
|
169
|
+
//
|
170
|
+
// Media queries in pixels
|
171
|
+
//
|
172
|
+
|
173
|
+
$media-queries: (
|
174
|
+
xs: 320px,
|
175
|
+
sm: 500px,
|
176
|
+
md: $content-width,
|
177
|
+
lg: $content-width + $nav-width,
|
178
|
+
xl: 1400px,
|
179
|
+
) !default;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
// Colored button
|
2
|
+
|
3
|
+
@mixin btn-color($fg, $bg) {
|
4
|
+
color: $fg;
|
5
|
+
background-color: darken($bg, 2%);
|
6
|
+
background-image: linear-gradient(lighten($bg, 5%), darken($bg, 2%));
|
7
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.12);
|
8
|
+
|
9
|
+
&:hover,
|
10
|
+
&.zeroclipboard-is-hover {
|
11
|
+
color: $fg;
|
12
|
+
background-color: darken($bg, 4%);
|
13
|
+
background-image: linear-gradient((lighten($bg, 2%), darken($bg, 4%)));
|
14
|
+
}
|
15
|
+
|
16
|
+
&:active,
|
17
|
+
&.selected,
|
18
|
+
&.zeroclipboard-is-active {
|
19
|
+
background-color: darken($bg, 5%);
|
20
|
+
background-image: none;
|
21
|
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
|
22
|
+
}
|
23
|
+
|
24
|
+
&.selected:hover {
|
25
|
+
background-color: darken($bg, 10%);
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
// Media query
|
2
|
+
|
3
|
+
// 'mobile first' design (as opposed to 'desktop first'): https://css-tricks.com/logic-in-media-queries/
|
4
|
+
// Media query mixin
|
5
|
+
// Usage:
|
6
|
+
// @include mq(md) {
|
7
|
+
// ..medium and up styles
|
8
|
+
// }
|
9
|
+
@mixin mq($name) {
|
10
|
+
// Retrieves the value from the key
|
11
|
+
$value: map-get($media-queries, $name);
|
12
|
+
|
13
|
+
// If the key exists in the map
|
14
|
+
@if $value != null {
|
15
|
+
// Prints a media query based on the value
|
16
|
+
@media (min-width: rem($value)) {
|
17
|
+
@content;
|
18
|
+
}
|
19
|
+
} @else {
|
20
|
+
@warn "No value could be retrieved from `#{$media-query}`. "
|
21
|
+
+ "Please make sure it is defined in `$media-queries` map.";
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
// Responsive container
|
26
|
+
|
27
|
+
@mixin container {
|
28
|
+
padding-right: $gutter-spacing-sm;
|
29
|
+
padding-left: $gutter-spacing-sm;
|
30
|
+
|
31
|
+
@include mq(md) {
|
32
|
+
padding-right: $gutter-spacing;
|
33
|
+
padding-left: $gutter-spacing;
|
34
|
+
}
|
35
|
+
|
36
|
+
@include mq(lg) {
|
37
|
+
padding-right: $gutter-spacing;
|
38
|
+
padding-left: $gutter-spacing;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
@mixin sidenote-container {
|
43
|
+
padding-right: $gutter-spacing-sm;
|
44
|
+
padding-left: $gutter-spacing-sm;
|
45
|
+
|
46
|
+
// @include mq(md) {
|
47
|
+
// // padding-right: $gutter-spacing;
|
48
|
+
// // margin-right: $content-width / 3;
|
49
|
+
// margin-right: -$content-width / 2;
|
50
|
+
// width: $content-width / 4;
|
51
|
+
// }
|
52
|
+
@include mq(lg) {
|
53
|
+
padding-left: $gutter-spacing;
|
54
|
+
padding-right: $gutter-spacing;
|
55
|
+
}
|
56
|
+
}
|