jekyll-bonsai 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +674 -0
  3. data/README.md +11 -0
  4. data/_config.yml +155 -0
  5. data/_entries/digital-garden.bonsai.md +36 -0
  6. data/_entries/digital-garden.field-logs.md +10 -0
  7. data/_entries/digital-garden.fork.md +10 -0
  8. data/_entries/digital-garden.md +17 -0
  9. data/_entries/digital-garden.path.md +11 -0
  10. data/_entries/digital-garden.plants.md +12 -0
  11. data/_entries/digital-garden.pollinate.md +10 -0
  12. data/_entries/digital-garden.steps.md +10 -0
  13. data/_entries/digital-garden.stream.md +12 -0
  14. data/_entries/digital-garden.sweep.md +12 -0
  15. data/_entries/digital-garden.weather.md +12 -0
  16. data/_entries/features.md +10 -0
  17. data/_entries/features.notes.hover-preview.md +10 -0
  18. data/_entries/features.notes.md +12 -0
  19. data/_entries/features.notes.note-body.md +12 -0
  20. data/_entries/features.notes.note-body.share.md +10 -0
  21. data/_entries/features.notes.note-body.sidenotes.md +52 -0
  22. data/_entries/features.notes.note-foot.links.md +10 -0
  23. data/_entries/features.notes.note-foot.md +11 -0
  24. data/_entries/features.notes.note-foot.posts.md +10 -0
  25. data/_entries/features.notes.note-foot.webmentions.md +10 -0
  26. data/_entries/features.notes.note-head.md +10 -0
  27. data/_entries/features.pages.field-blogs.md +10 -0
  28. data/_entries/features.pages.md +12 -0
  29. data/_entries/features.pages.recent.md +10 -0
  30. data/_entries/features.pages.status-tags.md +10 -0
  31. data/_entries/features.site-nav.graph.links.md +10 -0
  32. data/_entries/features.site-nav.graph.links.namespacing.md +14 -0
  33. data/_entries/features.site-nav.graph.links.wikilinks.md +25 -0
  34. data/_entries/features.site-nav.graph.md +12 -0
  35. data/_entries/features.site-nav.graph.nodes.current-note.md +10 -0
  36. data/_entries/features.site-nav.graph.nodes.md +12 -0
  37. data/_entries/features.site-nav.graph.nodes.mia.missing-note.md +20 -0
  38. data/_entries/features.site-nav.graph.nodes.visited-status.md +10 -0
  39. data/_entries/features.site-nav.graph.toggle-graph.md +13 -0
  40. data/_entries/features.site-nav.graph.type.md +16 -0
  41. data/_entries/features.site-nav.graph.type.net-web.md +10 -0
  42. data/_entries/features.site-nav.graph.type.tree.md +12 -0
  43. data/_entries/features.site-nav.md +10 -0
  44. data/_entries/features.site-nav.visited.md +14 -0
  45. data/_entries/features.tags.md +13 -0
  46. data/_entries/features.themes.dark.md +12 -0
  47. data/_entries/features.themes.light.md +10 -0
  48. data/_entries/features.themes.md +12 -0
  49. data/_entries/features.visited.delete-data.md +10 -0
  50. data/_entries/features.visited.md +12 -0
  51. data/_entries/features.visitor-preferences.md +27 -0
  52. data/_entries/feedback.md +10 -0
  53. data/_entries/people.creator.md +12 -0
  54. data/_entries/people.md +13 -0
  55. data/_entries/people.visitors.md +12 -0
  56. data/_entries/plugins.jekyll-wikilinks.md +10 -0
  57. data/_entries/plugins.md +10 -0
  58. data/_entries/root.md +26 -0
  59. data/_includes/anchor-headings.html +152 -0
  60. data/_includes/connect.html +44 -0
  61. data/_includes/entry-attrs.html +27 -0
  62. data/_includes/head.html +23 -0
  63. data/_includes/hover-preview.html +84 -0
  64. data/_includes/img/bullet-ancestor.svg +5 -0
  65. data/_includes/img/bullet-net-web.svg +9 -0
  66. data/_includes/img/bullet-tree.svg +9 -0
  67. data/_includes/metrics.html +10 -0
  68. data/_includes/share.html +45 -0
  69. data/_includes/site-nav.html +48 -0
  70. data/_includes/styles.scss.liquid +3 -0
  71. data/_layouts/default.html +39 -0
  72. data/_layouts/entry.html +124 -0
  73. data/_layouts/post.html +29 -0
  74. data/_layouts/state.html +59 -0
  75. data/_layouts/table-wrappers.html +7 -0
  76. data/_layouts/vendor/compress.html +10 -0
  77. data/_pages/about.md +7 -0
  78. data/_pages/posts.html +19 -0
  79. data/_pages/recent.html +48 -0
  80. data/_plugins/doc_filters.rb +44 -0
  81. data/_plugins/prep_entry.rb +43 -0
  82. data/_plugins/sidenote.rb +123 -0
  83. data/_plugins/tags.rb +52 -0
  84. data/_sass/base/_layout.scss +54 -0
  85. data/_sass/base/_main.scss +203 -0
  86. data/_sass/base/_typography.scss +75 -0
  87. data/_sass/base/base.scss +3 -0
  88. data/_sass/color/dark.scss +58 -0
  89. data/_sass/color/light.scss +58 -0
  90. data/_sass/includes/_btn.scss +106 -0
  91. data/_sass/includes/_graph.scss +69 -0
  92. data/_sass/includes/_nav.scss +89 -0
  93. data/_sass/includes/_site_nav.scss +221 -0
  94. data/_sass/includes/_tooltip.scss +29 -0
  95. data/_sass/includes/includes.scss +9 -0
  96. data/_sass/markdown/_code.scss +340 -0
  97. data/_sass/markdown/_content.scss +400 -0
  98. data/_sass/markdown/_tables.scss +60 -0
  99. data/_sass/markdown/markdown.scss +7 -0
  100. data/_sass/modules.scss +14 -0
  101. data/_sass/pages/_index.scss +72 -0
  102. data/_sass/pages/_posts.scss +17 -0
  103. data/_sass/pages/_recent.scss +26 -0
  104. data/_sass/pages/_state.scss +72 -0
  105. data/_sass/pages/pages.scss +4 -0
  106. data/_sass/support/_functions.scss +9 -0
  107. data/_sass/support/_variables.scss +179 -0
  108. data/_sass/support/mixins/_buttons.scss +27 -0
  109. data/_sass/support/mixins/_layout.scss +56 -0
  110. data/_sass/support/mixins/_typography.scss +84 -0
  111. data/_sass/support/mixins/mixins.scss +3 -0
  112. data/_sass/support/support.scss +3 -0
  113. data/_sass/vendor/normalize.scss/README.md +7 -0
  114. data/_sass/vendor/normalize.scss/normalize.scss +349 -0
  115. data/_states/bamboo.md +8 -0
  116. data/_states/berry.md +8 -0
  117. data/_states/bloom.md +8 -0
  118. data/_states/bud.md +6 -0
  119. data/_states/fruit.md +8 -0
  120. data/_states/melon.md +8 -0
  121. data/_states/pot-bamboo.md +8 -0
  122. data/_states/seed.md +8 -0
  123. data/_states/sprout.md +8 -0
  124. data/_states/tags.md +8 -0
  125. data/_states/tea.md +8 -0
  126. data/assets/css/styles-dark.scss +3 -0
  127. data/assets/css/styles-light.scss +3 -0
  128. data/assets/css/styles.scss +8 -0
  129. data/assets/font/Cutive_Mono/CutiveMono-Regular.ttf +0 -0
  130. data/assets/font/Cutive_Mono/OFL.txt +93 -0
  131. data/assets/font/Old_Standard_TT/OFL.txt +93 -0
  132. data/assets/font/Old_Standard_TT/OldStandardTT-Bold.ttf +0 -0
  133. data/assets/font/Old_Standard_TT/OldStandardTT-Italic.ttf +0 -0
  134. data/assets/font/Old_Standard_TT/OldStandardTT-Regular.ttf +0 -0
  135. data/assets/font/exo2/Exo2-Italic-VariableFont_wght.ttf +0 -0
  136. data/assets/font/exo2/Exo2-VariableFont_wght.ttf +0 -0
  137. data/assets/font/exo2/OFL.txt +93 -0
  138. data/assets/font/exo2/README.txt +81 -0
  139. data/assets/font/exo2/static/Exo2-Black.ttf +0 -0
  140. data/assets/font/exo2/static/Exo2-BlackItalic.ttf +0 -0
  141. data/assets/font/exo2/static/Exo2-Bold.ttf +0 -0
  142. data/assets/font/exo2/static/Exo2-BoldItalic.ttf +0 -0
  143. data/assets/font/exo2/static/Exo2-ExtraBold.ttf +0 -0
  144. data/assets/font/exo2/static/Exo2-ExtraBoldItalic.ttf +0 -0
  145. data/assets/font/exo2/static/Exo2-ExtraLight.ttf +0 -0
  146. data/assets/font/exo2/static/Exo2-ExtraLightItalic.ttf +0 -0
  147. data/assets/font/exo2/static/Exo2-Italic.ttf +0 -0
  148. data/assets/font/exo2/static/Exo2-Light.ttf +0 -0
  149. data/assets/font/exo2/static/Exo2-LightItalic.ttf +0 -0
  150. data/assets/font/exo2/static/Exo2-Medium.ttf +0 -0
  151. data/assets/font/exo2/static/Exo2-MediumItalic.ttf +0 -0
  152. data/assets/font/exo2/static/Exo2-Regular.ttf +0 -0
  153. data/assets/font/exo2/static/Exo2-SemiBold.ttf +0 -0
  154. data/assets/font/exo2/static/Exo2-SemiBoldItalic.ttf +0 -0
  155. data/assets/font/exo2/static/Exo2-Thin.ttf +0 -0
  156. data/assets/font/exo2/static/Exo2-ThinItalic.ttf +0 -0
  157. data/assets/img/bonsai-dark.png +0 -0
  158. data/assets/img/bonsai-dark.svg +106 -0
  159. data/assets/img/bonsai-light.png +0 -0
  160. data/assets/img/bonsai-light.svg +81 -0
  161. data/assets/img/favicon-dark.png +0 -0
  162. data/assets/img/favicon-light.png +0 -0
  163. data/assets/img/nav-base-dark.svg +1 -0
  164. data/assets/img/nav-base-light.svg +1 -0
  165. data/assets/img/nav-bonsai-dark.svg +1 -0
  166. data/assets/img/nav-bonsai-light.svg +1 -0
  167. data/assets/img/nav-dot-dark.svg +1 -0
  168. data/assets/img/nav-dot-light.svg +1 -0
  169. data/assets/img/nav-wiki-links-dark.svg +1 -0
  170. data/assets/img/nav-wiki-links-light.svg +1 -0
  171. data/assets/js/entry.js +102 -0
  172. data/assets/js/graph.js +552 -0
  173. data/assets/js/scripts.js +80 -0
  174. data/assets/js/site-nav.js +132 -0
  175. data/assets/js/theme-colors.js +71 -0
  176. data/index.html +82 -0
  177. metadata +360 -0
@@ -0,0 +1,7 @@
1
+ //
2
+ // markdown-related scss.
3
+ //
4
+
5
+ @import "./code";
6
+ @import "./content";
7
+ @import "./tables";
@@ -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,17 @@
1
+ //
2
+ // scss for posts page
3
+ //
4
+
5
+ .posts-list {
6
+ padding: $sp-4;
7
+
8
+ .posts-list-item {
9
+ display: flex;
10
+ justify-content: space-between;
11
+ list-style-type: none !important;
12
+
13
+ &::before {
14
+ content: "" !important;
15
+ }
16
+ }
17
+ }
@@ -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,4 @@
1
+ @import "./index";
2
+ @import "./posts";
3
+ @import "./recent";
4
+ @import "./state";
@@ -0,0 +1,9 @@
1
+ @function rem($size, $unit: "") {
2
+ $remSize: $size / $root-font-size;
3
+
4
+ @if ($unit == false) {
5
+ @return #{$remSize};
6
+ } @else {
7
+ @return #{$remSize}rem;
8
+ }
9
+ }
@@ -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
+ }