jekyll-theme-opentoolbox 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +57 -31
  3. data/_includes/banner.html +4 -4
  4. data/_includes/callouts.html +8 -3
  5. data/_includes/contribute.html +19 -0
  6. data/_includes/credits.html +13 -0
  7. data/_includes/disqus.html +16 -16
  8. data/_includes/footer.html +6 -17
  9. data/_includes/gallery.html +24 -24
  10. data/_includes/google-analytics.html +7 -7
  11. data/_includes/header.html +11 -12
  12. data/_includes/icon.html +3 -0
  13. data/_includes/image-modal.html +18 -18
  14. data/_includes/important-message.html +5 -0
  15. data/_includes/latest-posts.html +14 -12
  16. data/_includes/menubar.html +20 -20
  17. data/_includes/notification.html +17 -16
  18. data/_includes/pagination.html +21 -23
  19. data/_includes/post-card.html +1 -1
  20. data/_includes/section-divider.html +5 -0
  21. data/_includes/showcase.html +1 -1
  22. data/_includes/simple_banner.html +11 -0
  23. data/_includes/sponsors.html +43 -41
  24. data/_includes/subscribe.html +15 -15
  25. data/_includes/tabs.html +18 -17
  26. data/_includes/tag.html +2 -2
  27. data/_includes/toc.html +82 -82
  28. data/_includes/vimeo.html +2 -2
  29. data/_includes/youtube.html +7 -7
  30. data/_layouts/base.html +2 -0
  31. data/_layouts/default.html +1 -1
  32. data/_layouts/page.html +10 -10
  33. data/_layouts/post.html +4 -2
  34. data/_layouts/resource.html +1 -1
  35. data/_sass/_external.scss +1 -0
  36. data/_sass/_layout.scss +48 -36
  37. data/_sass/_main.scss +45 -22
  38. data/_sass/_showcase.scss +12 -12
  39. data/_sass/{syntax.scss → _syntax.scss} +209 -209
  40. data/_sass/_variables.scss +125 -0
  41. data/_sass/highlight/_dark.scss +71 -0
  42. data/_sass/{_highlight.scss → highlight/_light.scss} +0 -0
  43. data/assets/css/app.scss +7 -146
  44. data/blog/index.html +4 -2
  45. data/node_modules/bulma-block-list/LICENSE.txt +21 -21
  46. data/node_modules/bulma-block-list/README.md +31 -31
  47. data/node_modules/bulma-block-list/docs/Gemfile +2 -2
  48. data/node_modules/bulma-block-list/docs/_config.yml +15 -15
  49. data/node_modules/bulma-block-list/docs/_data/menu.yaml +19 -19
  50. data/node_modules/bulma-block-list/docs/_sass/_block-list.scss +108 -108
  51. data/node_modules/bulma-block-list/docs/_sass/_main.scss +19 -19
  52. data/node_modules/bulma-block-list/docs/assets/css/app.scss +6 -6
  53. data/node_modules/bulma-block-list/docs/index.html +260 -260
  54. data/node_modules/bulma-block-list/node_modules/bulma/CHANGELOG.md +1390 -1390
  55. data/node_modules/bulma-block-list/node_modules/bulma/LICENSE +21 -21
  56. data/node_modules/bulma-block-list/node_modules/bulma/README.md +130 -130
  57. data/node_modules/bulma-block-list/node_modules/bulma/bulma.sass +9 -9
  58. data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.css +10854 -10854
  59. data/node_modules/bulma-block-list/node_modules/bulma/package.json +77 -77
  60. data/node_modules/bulma-block-list/node_modules/bulma/sass/base/_all.sass +5 -5
  61. data/node_modules/bulma-block-list/node_modules/bulma/sass/base/generic.sass +142 -142
  62. data/node_modules/bulma-block-list/node_modules/bulma/sass/base/helpers.sass +281 -281
  63. data/node_modules/bulma-block-list/node_modules/bulma/sass/base/minireset.sass +79 -79
  64. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/_all.sass +15 -15
  65. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/breadcrumb.sass +75 -75
  66. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/card.sass +79 -79
  67. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/dropdown.sass +81 -81
  68. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/level.sass +77 -77
  69. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/list.sass +39 -39
  70. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/media.sass +50 -50
  71. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/menu.sass +57 -57
  72. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/message.sass +99 -99
  73. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/modal.sass +113 -113
  74. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/navbar.sass +441 -441
  75. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/pagination.sass +150 -150
  76. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/panel.sass +119 -119
  77. data/node_modules/bulma-block-list/node_modules/bulma/sass/components/tabs.sass +151 -151
  78. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/_all.sass +15 -15
  79. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/box.sass +24 -24
  80. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/button.sass +323 -323
  81. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/container.sass +24 -24
  82. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/content.sass +155 -155
  83. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/form.sass +1 -1
  84. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/icon.sass +21 -21
  85. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/image.sass +71 -71
  86. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/notification.sass +43 -43
  87. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/other.sass +39 -39
  88. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/progress.sass +67 -67
  89. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/table.sass +127 -127
  90. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/tag.sass +128 -128
  91. data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/title.sass +70 -70
  92. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/_all.sass +8 -8
  93. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/checkbox-radio.sass +21 -21
  94. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/file.sass +180 -180
  95. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/input-textarea.sass +64 -64
  96. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/select.sass +85 -85
  97. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/shared.sass +55 -55
  98. data/node_modules/bulma-block-list/node_modules/bulma/sass/form/tools.sass +205 -205
  99. data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/_all.sass +4 -4
  100. data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/columns.sass +504 -504
  101. data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/tiles.sass +34 -34
  102. data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/_all.sass +5 -5
  103. data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/footer.sass +9 -9
  104. data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/hero.sass +145 -145
  105. data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/section.sass +13 -13
  106. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/_all.sass +8 -8
  107. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/animations.sass +5 -5
  108. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/controls.sass +50 -50
  109. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/derived-variables.sass +106 -106
  110. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/functions.sass +110 -110
  111. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/initial-variables.sass +77 -77
  112. data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/mixins.sass +261 -261
  113. data/node_modules/bulma-block-list/package.json +56 -56
  114. data/node_modules/bulma-block-list/src/block-list.scss +108 -108
  115. data/node_modules/bulma-block-list/src/demo.scss +2 -2
  116. data/node_modules/bulma/CHANGELOG.md +1558 -1558
  117. data/node_modules/bulma/LICENSE +21 -21
  118. data/node_modules/bulma/README.md +134 -134
  119. data/node_modules/bulma/bulma.sass +10 -10
  120. data/node_modules/bulma/css/bulma-rtl.css +11810 -11810
  121. data/node_modules/bulma/css/bulma.css +11810 -11810
  122. data/node_modules/bulma/package.json +81 -81
  123. data/node_modules/bulma/sass/base/_all.sass +6 -6
  124. data/node_modules/bulma/sass/base/animations.sass +5 -5
  125. data/node_modules/bulma/sass/base/generic.sass +145 -145
  126. data/node_modules/bulma/sass/base/helpers.sass +1 -1
  127. data/node_modules/bulma/sass/base/minireset.sass +79 -79
  128. data/node_modules/bulma/sass/components/_all.sass +15 -15
  129. data/node_modules/bulma/sass/components/breadcrumb.sass +77 -77
  130. data/node_modules/bulma/sass/components/card.sass +103 -103
  131. data/node_modules/bulma/sass/components/dropdown.sass +83 -83
  132. data/node_modules/bulma/sass/components/level.sass +79 -79
  133. data/node_modules/bulma/sass/components/media.sass +59 -59
  134. data/node_modules/bulma/sass/components/menu.sass +59 -59
  135. data/node_modules/bulma/sass/components/message.sass +101 -101
  136. data/node_modules/bulma/sass/components/modal.sass +117 -117
  137. data/node_modules/bulma/sass/components/navbar.sass +446 -446
  138. data/node_modules/bulma/sass/components/pagination.sass +166 -166
  139. data/node_modules/bulma/sass/components/panel.sass +121 -121
  140. data/node_modules/bulma/sass/components/tabs.sass +176 -176
  141. data/node_modules/bulma/sass/elements/_all.sass +16 -16
  142. data/node_modules/bulma/sass/elements/box.sass +26 -26
  143. data/node_modules/bulma/sass/elements/button.sass +345 -345
  144. data/node_modules/bulma/sass/elements/container.sass +29 -29
  145. data/node_modules/bulma/sass/elements/content.sass +159 -159
  146. data/node_modules/bulma/sass/elements/form.sass +1 -1
  147. data/node_modules/bulma/sass/elements/icon.sass +46 -46
  148. data/node_modules/bulma/sass/elements/image.sass +73 -73
  149. data/node_modules/bulma/sass/elements/notification.sass +52 -52
  150. data/node_modules/bulma/sass/elements/other.sass +31 -31
  151. data/node_modules/bulma/sass/elements/progress.sass +73 -73
  152. data/node_modules/bulma/sass/elements/table.sass +133 -133
  153. data/node_modules/bulma/sass/elements/tag.sass +140 -140
  154. data/node_modules/bulma/sass/elements/title.sass +70 -70
  155. data/node_modules/bulma/sass/form/_all.sass +9 -9
  156. data/node_modules/bulma/sass/form/checkbox-radio.sass +22 -22
  157. data/node_modules/bulma/sass/form/file.sass +184 -184
  158. data/node_modules/bulma/sass/form/input-textarea.sass +66 -66
  159. data/node_modules/bulma/sass/form/select.sass +87 -87
  160. data/node_modules/bulma/sass/form/shared.sass +60 -60
  161. data/node_modules/bulma/sass/form/tools.sass +215 -215
  162. data/node_modules/bulma/sass/grid/_all.sass +5 -5
  163. data/node_modules/bulma/sass/grid/columns.sass +513 -513
  164. data/node_modules/bulma/sass/grid/tiles.sass +36 -36
  165. data/node_modules/bulma/sass/helpers/_all.sass +12 -12
  166. data/node_modules/bulma/sass/helpers/color.sass +39 -39
  167. data/node_modules/bulma/sass/helpers/flexbox.sass +35 -35
  168. data/node_modules/bulma/sass/helpers/float.sass +10 -10
  169. data/node_modules/bulma/sass/helpers/other.sass +14 -14
  170. data/node_modules/bulma/sass/helpers/overflow.sass +2 -2
  171. data/node_modules/bulma/sass/helpers/position.sass +7 -7
  172. data/node_modules/bulma/sass/helpers/spacing.sass +31 -31
  173. data/node_modules/bulma/sass/helpers/typography.sass +103 -103
  174. data/node_modules/bulma/sass/helpers/visibility.sass +122 -122
  175. data/node_modules/bulma/sass/layout/_all.sass +6 -6
  176. data/node_modules/bulma/sass/layout/footer.sass +11 -11
  177. data/node_modules/bulma/sass/layout/hero.sass +153 -153
  178. data/node_modules/bulma/sass/layout/section.sass +17 -17
  179. data/node_modules/bulma/sass/utilities/_all.sass +9 -9
  180. data/node_modules/bulma/sass/utilities/animations.sass +1 -1
  181. data/node_modules/bulma/sass/utilities/controls.sass +49 -49
  182. data/node_modules/bulma/sass/utilities/derived-variables.sass +114 -114
  183. data/node_modules/bulma/sass/utilities/extends.sass +25 -25
  184. data/node_modules/bulma/sass/utilities/functions.sass +136 -136
  185. data/node_modules/bulma/sass/utilities/initial-variables.sass +78 -78
  186. data/node_modules/bulma/sass/utilities/mixins.sass +280 -280
  187. data/package-lock.json +28 -28
  188. data/package.json +20 -20
  189. metadata +14 -7
  190. data/_includes/hero.html +0 -11
  191. data/_includes/join.html +0 -30
@@ -1,122 +1,122 @@
1
- @import "../utilities/mixins"
2
-
3
- $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
4
-
5
- @each $display in $displays
6
- .is-#{$display}
7
- display: #{$display} !important
8
- +mobile
9
- .is-#{$display}-mobile
10
- display: #{$display} !important
11
- +tablet
12
- .is-#{$display}-tablet
13
- display: #{$display} !important
14
- +tablet-only
15
- .is-#{$display}-tablet-only
16
- display: #{$display} !important
17
- +touch
18
- .is-#{$display}-touch
19
- display: #{$display} !important
20
- +desktop
21
- .is-#{$display}-desktop
22
- display: #{$display} !important
23
- +desktop-only
24
- .is-#{$display}-desktop-only
25
- display: #{$display} !important
26
- +widescreen
27
- .is-#{$display}-widescreen
28
- display: #{$display} !important
29
- +widescreen-only
30
- .is-#{$display}-widescreen-only
31
- display: #{$display} !important
32
- +fullhd
33
- .is-#{$display}-fullhd
34
- display: #{$display} !important
35
-
36
- .is-hidden
37
- display: none !important
38
-
39
- .is-sr-only
40
- border: none !important
41
- clip: rect(0, 0, 0, 0) !important
42
- height: 0.01em !important
43
- overflow: hidden !important
44
- padding: 0 !important
45
- position: absolute !important
46
- white-space: nowrap !important
47
- width: 0.01em !important
48
-
49
- +mobile
50
- .is-hidden-mobile
51
- display: none !important
52
-
53
- +tablet
54
- .is-hidden-tablet
55
- display: none !important
56
-
57
- +tablet-only
58
- .is-hidden-tablet-only
59
- display: none !important
60
-
61
- +touch
62
- .is-hidden-touch
63
- display: none !important
64
-
65
- +desktop
66
- .is-hidden-desktop
67
- display: none !important
68
-
69
- +desktop-only
70
- .is-hidden-desktop-only
71
- display: none !important
72
-
73
- +widescreen
74
- .is-hidden-widescreen
75
- display: none !important
76
-
77
- +widescreen-only
78
- .is-hidden-widescreen-only
79
- display: none !important
80
-
81
- +fullhd
82
- .is-hidden-fullhd
83
- display: none !important
84
-
85
- .is-invisible
86
- visibility: hidden !important
87
-
88
- +mobile
89
- .is-invisible-mobile
90
- visibility: hidden !important
91
-
92
- +tablet
93
- .is-invisible-tablet
94
- visibility: hidden !important
95
-
96
- +tablet-only
97
- .is-invisible-tablet-only
98
- visibility: hidden !important
99
-
100
- +touch
101
- .is-invisible-touch
102
- visibility: hidden !important
103
-
104
- +desktop
105
- .is-invisible-desktop
106
- visibility: hidden !important
107
-
108
- +desktop-only
109
- .is-invisible-desktop-only
110
- visibility: hidden !important
111
-
112
- +widescreen
113
- .is-invisible-widescreen
114
- visibility: hidden !important
115
-
116
- +widescreen-only
117
- .is-invisible-widescreen-only
118
- visibility: hidden !important
119
-
120
- +fullhd
121
- .is-invisible-fullhd
122
- visibility: hidden !important
1
+ @import "../utilities/mixins"
2
+
3
+ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
4
+
5
+ @each $display in $displays
6
+ .is-#{$display}
7
+ display: #{$display} !important
8
+ +mobile
9
+ .is-#{$display}-mobile
10
+ display: #{$display} !important
11
+ +tablet
12
+ .is-#{$display}-tablet
13
+ display: #{$display} !important
14
+ +tablet-only
15
+ .is-#{$display}-tablet-only
16
+ display: #{$display} !important
17
+ +touch
18
+ .is-#{$display}-touch
19
+ display: #{$display} !important
20
+ +desktop
21
+ .is-#{$display}-desktop
22
+ display: #{$display} !important
23
+ +desktop-only
24
+ .is-#{$display}-desktop-only
25
+ display: #{$display} !important
26
+ +widescreen
27
+ .is-#{$display}-widescreen
28
+ display: #{$display} !important
29
+ +widescreen-only
30
+ .is-#{$display}-widescreen-only
31
+ display: #{$display} !important
32
+ +fullhd
33
+ .is-#{$display}-fullhd
34
+ display: #{$display} !important
35
+
36
+ .is-hidden
37
+ display: none !important
38
+
39
+ .is-sr-only
40
+ border: none !important
41
+ clip: rect(0, 0, 0, 0) !important
42
+ height: 0.01em !important
43
+ overflow: hidden !important
44
+ padding: 0 !important
45
+ position: absolute !important
46
+ white-space: nowrap !important
47
+ width: 0.01em !important
48
+
49
+ +mobile
50
+ .is-hidden-mobile
51
+ display: none !important
52
+
53
+ +tablet
54
+ .is-hidden-tablet
55
+ display: none !important
56
+
57
+ +tablet-only
58
+ .is-hidden-tablet-only
59
+ display: none !important
60
+
61
+ +touch
62
+ .is-hidden-touch
63
+ display: none !important
64
+
65
+ +desktop
66
+ .is-hidden-desktop
67
+ display: none !important
68
+
69
+ +desktop-only
70
+ .is-hidden-desktop-only
71
+ display: none !important
72
+
73
+ +widescreen
74
+ .is-hidden-widescreen
75
+ display: none !important
76
+
77
+ +widescreen-only
78
+ .is-hidden-widescreen-only
79
+ display: none !important
80
+
81
+ +fullhd
82
+ .is-hidden-fullhd
83
+ display: none !important
84
+
85
+ .is-invisible
86
+ visibility: hidden !important
87
+
88
+ +mobile
89
+ .is-invisible-mobile
90
+ visibility: hidden !important
91
+
92
+ +tablet
93
+ .is-invisible-tablet
94
+ visibility: hidden !important
95
+
96
+ +tablet-only
97
+ .is-invisible-tablet-only
98
+ visibility: hidden !important
99
+
100
+ +touch
101
+ .is-invisible-touch
102
+ visibility: hidden !important
103
+
104
+ +desktop
105
+ .is-invisible-desktop
106
+ visibility: hidden !important
107
+
108
+ +desktop-only
109
+ .is-invisible-desktop-only
110
+ visibility: hidden !important
111
+
112
+ +widescreen
113
+ .is-invisible-widescreen
114
+ visibility: hidden !important
115
+
116
+ +widescreen-only
117
+ .is-invisible-widescreen-only
118
+ visibility: hidden !important
119
+
120
+ +fullhd
121
+ .is-invisible-fullhd
122
+ visibility: hidden !important
@@ -1,6 +1,6 @@
1
- /* Bulma Layout */
2
- @charset "utf-8"
3
-
4
- @import "hero"
5
- @import "section"
6
- @import "footer"
1
+ /* Bulma Layout */
2
+ @charset "utf-8"
3
+
4
+ @import "hero"
5
+ @import "section"
6
+ @import "footer"
@@ -1,11 +1,11 @@
1
- @import "../utilities/derived-variables"
2
-
3
- $footer-background-color: $scheme-main-bis !default
4
- $footer-color: false !default
5
- $footer-padding: 3rem 1.5rem 6rem !default
6
-
7
- .footer
8
- background-color: $footer-background-color
9
- padding: $footer-padding
10
- @if $footer-color
11
- color: $footer-color
1
+ @import "../utilities/derived-variables"
2
+
3
+ $footer-background-color: $scheme-main-bis !default
4
+ $footer-color: false !default
5
+ $footer-padding: 3rem 1.5rem 6rem !default
6
+
7
+ .footer
8
+ background-color: $footer-background-color
9
+ padding: $footer-padding
10
+ @if $footer-color
11
+ color: $footer-color
@@ -1,153 +1,153 @@
1
- @import "../utilities/mixins"
2
-
3
- $hero-body-padding: 3rem 1.5rem !default
4
- $hero-body-padding-tablet: 3rem 3rem !default
5
- $hero-body-padding-small: 1.5rem !default
6
- $hero-body-padding-medium: 9rem 4.5rem !default
7
- $hero-body-padding-large: 18rem 6rem !default
8
-
9
- $hero-colors: $colors !default
10
-
11
- // Main container
12
- .hero
13
- align-items: stretch
14
- display: flex
15
- flex-direction: column
16
- justify-content: space-between
17
- .navbar
18
- background: none
19
- .tabs
20
- ul
21
- border-bottom: none
22
- // Colors
23
- @each $name, $pair in $hero-colors
24
- $color: nth($pair, 1)
25
- $color-invert: nth($pair, 2)
26
- &.is-#{$name}
27
- background-color: $color
28
- color: $color-invert
29
- a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),
30
- strong
31
- color: inherit
32
- .title
33
- color: $color-invert
34
- .subtitle
35
- color: bulmaRgba($color-invert, 0.9)
36
- a:not(.button),
37
- strong
38
- color: $color-invert
39
- .navbar-menu
40
- +touch
41
- background-color: $color
42
- .navbar-item,
43
- .navbar-link
44
- color: bulmaRgba($color-invert, 0.7)
45
- a.navbar-item,
46
- .navbar-link
47
- &:hover,
48
- &.is-active
49
- background-color: bulmaDarken($color, 5%)
50
- color: $color-invert
51
- .tabs
52
- a
53
- color: $color-invert
54
- opacity: 0.9
55
- &:hover
56
- opacity: 1
57
- li
58
- &.is-active a
59
- color: $color !important
60
- opacity: 1
61
- &.is-boxed,
62
- &.is-toggle
63
- a
64
- color: $color-invert
65
- &:hover
66
- background-color: bulmaRgba($scheme-invert, 0.1)
67
- li.is-active a
68
- &,
69
- &:hover
70
- background-color: $color-invert
71
- border-color: $color-invert
72
- color: $color
73
- // Modifiers
74
- @if type-of($color) == 'color'
75
- &.is-bold
76
- $gradient-top-left: darken(saturate(adjust-hue($color, -10deg), 10%), 10%)
77
- $gradient-bottom-right: lighten(saturate(adjust-hue($color, 10deg), 5%), 5%)
78
- background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
79
- +mobile
80
- .navbar-menu
81
- background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
82
- // Sizes
83
- &.is-small
84
- .hero-body
85
- padding: $hero-body-padding-small
86
- &.is-medium
87
- +tablet
88
- .hero-body
89
- padding: $hero-body-padding-medium
90
- &.is-large
91
- +tablet
92
- .hero-body
93
- padding: $hero-body-padding-large
94
- &.is-halfheight,
95
- &.is-fullheight,
96
- &.is-fullheight-with-navbar
97
- .hero-body
98
- align-items: center
99
- display: flex
100
- & > .container
101
- flex-grow: 1
102
- flex-shrink: 1
103
- &.is-halfheight
104
- min-height: 50vh
105
- &.is-fullheight
106
- min-height: 100vh
107
-
108
- // Components
109
-
110
- .hero-video
111
- @extend %overlay
112
- overflow: hidden
113
- video
114
- left: 50%
115
- min-height: 100%
116
- min-width: 100%
117
- position: absolute
118
- top: 50%
119
- transform: translate3d(-50%, -50%, 0)
120
- // Modifiers
121
- &.is-transparent
122
- opacity: 0.3
123
- // Responsiveness
124
- +mobile
125
- display: none
126
-
127
- .hero-buttons
128
- margin-top: 1.5rem
129
- // Responsiveness
130
- +mobile
131
- .button
132
- display: flex
133
- &:not(:last-child)
134
- margin-bottom: 0.75rem
135
- +tablet
136
- display: flex
137
- justify-content: center
138
- .button:not(:last-child)
139
- +ltr-property("margin", 1.5rem)
140
-
141
- // Containers
142
-
143
- .hero-head,
144
- .hero-foot
145
- flex-grow: 0
146
- flex-shrink: 0
147
-
148
- .hero-body
149
- flex-grow: 1
150
- flex-shrink: 0
151
- padding: $hero-body-padding
152
- +tablet
153
- padding: $hero-body-padding-tablet
1
+ @import "../utilities/mixins"
2
+
3
+ $hero-body-padding: 3rem 1.5rem !default
4
+ $hero-body-padding-tablet: 3rem 3rem !default
5
+ $hero-body-padding-small: 1.5rem !default
6
+ $hero-body-padding-medium: 9rem 4.5rem !default
7
+ $hero-body-padding-large: 18rem 6rem !default
8
+
9
+ $hero-colors: $colors !default
10
+
11
+ // Main container
12
+ .hero
13
+ align-items: stretch
14
+ display: flex
15
+ flex-direction: column
16
+ justify-content: space-between
17
+ .navbar
18
+ background: none
19
+ .tabs
20
+ ul
21
+ border-bottom: none
22
+ // Colors
23
+ @each $name, $pair in $hero-colors
24
+ $color: nth($pair, 1)
25
+ $color-invert: nth($pair, 2)
26
+ &.is-#{$name}
27
+ background-color: $color
28
+ color: $color-invert
29
+ a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),
30
+ strong
31
+ color: inherit
32
+ .title
33
+ color: $color-invert
34
+ .subtitle
35
+ color: bulmaRgba($color-invert, 0.9)
36
+ a:not(.button),
37
+ strong
38
+ color: $color-invert
39
+ .navbar-menu
40
+ +touch
41
+ background-color: $color
42
+ .navbar-item,
43
+ .navbar-link
44
+ color: bulmaRgba($color-invert, 0.7)
45
+ a.navbar-item,
46
+ .navbar-link
47
+ &:hover,
48
+ &.is-active
49
+ background-color: bulmaDarken($color, 5%)
50
+ color: $color-invert
51
+ .tabs
52
+ a
53
+ color: $color-invert
54
+ opacity: 0.9
55
+ &:hover
56
+ opacity: 1
57
+ li
58
+ &.is-active a
59
+ color: $color !important
60
+ opacity: 1
61
+ &.is-boxed,
62
+ &.is-toggle
63
+ a
64
+ color: $color-invert
65
+ &:hover
66
+ background-color: bulmaRgba($scheme-invert, 0.1)
67
+ li.is-active a
68
+ &,
69
+ &:hover
70
+ background-color: $color-invert
71
+ border-color: $color-invert
72
+ color: $color
73
+ // Modifiers
74
+ @if type-of($color) == 'color'
75
+ &.is-bold
76
+ $gradient-top-left: darken(saturate(adjust-hue($color, -10deg), 10%), 10%)
77
+ $gradient-bottom-right: lighten(saturate(adjust-hue($color, 10deg), 5%), 5%)
78
+ background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
79
+ +mobile
80
+ .navbar-menu
81
+ background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
82
+ // Sizes
83
+ &.is-small
84
+ .hero-body
85
+ padding: $hero-body-padding-small
86
+ &.is-medium
87
+ +tablet
88
+ .hero-body
89
+ padding: $hero-body-padding-medium
90
+ &.is-large
91
+ +tablet
92
+ .hero-body
93
+ padding: $hero-body-padding-large
94
+ &.is-halfheight,
95
+ &.is-fullheight,
96
+ &.is-fullheight-with-navbar
97
+ .hero-body
98
+ align-items: center
99
+ display: flex
100
+ & > .container
101
+ flex-grow: 1
102
+ flex-shrink: 1
103
+ &.is-halfheight
104
+ min-height: 50vh
105
+ &.is-fullheight
106
+ min-height: 100vh
107
+
108
+ // Components
109
+
110
+ .hero-video
111
+ @extend %overlay
112
+ overflow: hidden
113
+ video
114
+ left: 50%
115
+ min-height: 100%
116
+ min-width: 100%
117
+ position: absolute
118
+ top: 50%
119
+ transform: translate3d(-50%, -50%, 0)
120
+ // Modifiers
121
+ &.is-transparent
122
+ opacity: 0.3
123
+ // Responsiveness
124
+ +mobile
125
+ display: none
126
+
127
+ .hero-buttons
128
+ margin-top: 1.5rem
129
+ // Responsiveness
130
+ +mobile
131
+ .button
132
+ display: flex
133
+ &:not(:last-child)
134
+ margin-bottom: 0.75rem
135
+ +tablet
136
+ display: flex
137
+ justify-content: center
138
+ .button:not(:last-child)
139
+ +ltr-property("margin", 1.5rem)
140
+
141
+ // Containers
142
+
143
+ .hero-head,
144
+ .hero-foot
145
+ flex-grow: 0
146
+ flex-shrink: 0
147
+
148
+ .hero-body
149
+ flex-grow: 1
150
+ flex-shrink: 0
151
+ padding: $hero-body-padding
152
+ +tablet
153
+ padding: $hero-body-padding-tablet