jekyll-theme-opentoolbox 1.0.8 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +58 -31
- data/_includes/banner.html +4 -4
- data/_includes/callouts.html +10 -3
- data/_includes/contribute.html +19 -0
- data/_includes/credits.html +13 -0
- data/_includes/disqus.html +16 -16
- data/_includes/footer.html +7 -18
- data/_includes/gallery.html +24 -24
- data/_includes/google-analytics.html +7 -7
- data/_includes/header.html +11 -12
- data/_includes/icon.html +3 -0
- data/_includes/image-modal.html +18 -18
- data/_includes/important-message.html +5 -0
- data/_includes/latest-posts.html +14 -12
- data/_includes/menubar.html +20 -20
- data/_includes/notification.html +17 -16
- data/_includes/pagination.html +21 -23
- data/_includes/post-card.html +2 -2
- data/_includes/section-divider.html +5 -0
- data/_includes/setup.html +11 -0
- data/_includes/showcase.html +1 -1
- data/_includes/simple_banner.html +11 -0
- data/_includes/sponsors.html +43 -41
- data/_includes/subscribe.html +15 -5
- data/_includes/tabs.html +18 -17
- data/_includes/tag.html +2 -2
- data/_includes/toc.html +82 -82
- data/_includes/vimeo.html +2 -2
- data/_includes/youtube.html +7 -7
- data/_layouts/base.html +25 -0
- data/_layouts/blog.html +4 -3
- data/_layouts/default.html +34 -61
- data/_layouts/page.html +10 -10
- data/_layouts/post.html +50 -17
- data/_layouts/resource.html +1 -1
- data/_posts/2021-03-24-hello.md +1 -0
- data/_sass/_external.scss +1 -0
- data/_sass/_layout.scss +48 -36
- data/_sass/_main.scss +49 -22
- data/_sass/_showcase.scss +12 -12
- data/_sass/{syntax.scss → _syntax.scss} +209 -209
- data/_sass/_variables.scss +126 -0
- data/_sass/highlight/_dark.scss +71 -0
- data/_sass/highlight/_light.scss +259 -0
- data/assets/css/app.scss +8 -147
- data/blog/index.html +4 -2
- data/node_modules/bulma/CHANGELOG.md +1558 -1558
- data/node_modules/bulma/LICENSE +21 -21
- data/node_modules/bulma/README.md +134 -134
- data/node_modules/bulma/bulma.sass +10 -10
- data/node_modules/bulma/css/bulma-rtl.css +11810 -11810
- data/node_modules/bulma/css/bulma.css +11810 -11810
- data/node_modules/bulma/package.json +81 -81
- data/node_modules/bulma/sass/base/_all.sass +6 -6
- data/node_modules/bulma/sass/base/animations.sass +5 -5
- data/node_modules/bulma/sass/base/generic.sass +145 -145
- data/node_modules/bulma/sass/base/helpers.sass +1 -1
- data/node_modules/bulma/sass/base/minireset.sass +79 -79
- data/node_modules/bulma/sass/components/_all.sass +15 -15
- data/node_modules/bulma/sass/components/breadcrumb.sass +77 -77
- data/node_modules/bulma/sass/components/card.sass +103 -103
- data/node_modules/bulma/sass/components/dropdown.sass +83 -83
- data/node_modules/bulma/sass/components/level.sass +79 -79
- data/node_modules/bulma/sass/components/media.sass +59 -59
- data/node_modules/bulma/sass/components/menu.sass +59 -59
- data/node_modules/bulma/sass/components/message.sass +101 -101
- data/node_modules/bulma/sass/components/modal.sass +117 -117
- data/node_modules/bulma/sass/components/navbar.sass +446 -446
- data/node_modules/bulma/sass/components/pagination.sass +166 -166
- data/node_modules/bulma/sass/components/panel.sass +121 -121
- data/node_modules/bulma/sass/components/tabs.sass +176 -176
- data/node_modules/bulma/sass/elements/_all.sass +16 -16
- data/node_modules/bulma/sass/elements/box.sass +26 -26
- data/node_modules/bulma/sass/elements/button.sass +345 -345
- data/node_modules/bulma/sass/elements/container.sass +29 -29
- data/node_modules/bulma/sass/elements/content.sass +159 -159
- data/node_modules/bulma/sass/elements/form.sass +1 -1
- data/node_modules/bulma/sass/elements/icon.sass +46 -46
- data/node_modules/bulma/sass/elements/image.sass +73 -73
- data/node_modules/bulma/sass/elements/notification.sass +52 -52
- data/node_modules/bulma/sass/elements/other.sass +31 -31
- data/node_modules/bulma/sass/elements/progress.sass +73 -73
- data/node_modules/bulma/sass/elements/table.sass +133 -133
- data/node_modules/bulma/sass/elements/tag.sass +140 -140
- data/node_modules/bulma/sass/elements/title.sass +70 -70
- data/node_modules/bulma/sass/form/_all.sass +9 -9
- data/node_modules/bulma/sass/form/checkbox-radio.sass +22 -22
- data/node_modules/bulma/sass/form/file.sass +184 -184
- data/node_modules/bulma/sass/form/input-textarea.sass +66 -66
- data/node_modules/bulma/sass/form/select.sass +87 -87
- data/node_modules/bulma/sass/form/shared.sass +60 -60
- data/node_modules/bulma/sass/form/tools.sass +215 -215
- data/node_modules/bulma/sass/grid/_all.sass +5 -5
- data/node_modules/bulma/sass/grid/columns.sass +513 -513
- data/node_modules/bulma/sass/grid/tiles.sass +36 -36
- data/node_modules/bulma/sass/helpers/_all.sass +12 -12
- data/node_modules/bulma/sass/helpers/color.sass +39 -39
- data/node_modules/bulma/sass/helpers/flexbox.sass +35 -35
- data/node_modules/bulma/sass/helpers/float.sass +10 -10
- data/node_modules/bulma/sass/helpers/other.sass +14 -14
- data/node_modules/bulma/sass/helpers/overflow.sass +2 -2
- data/node_modules/bulma/sass/helpers/position.sass +7 -7
- data/node_modules/bulma/sass/helpers/spacing.sass +31 -31
- data/node_modules/bulma/sass/helpers/typography.sass +103 -103
- data/node_modules/bulma/sass/helpers/visibility.sass +122 -122
- data/node_modules/bulma/sass/layout/_all.sass +6 -6
- data/node_modules/bulma/sass/layout/footer.sass +11 -11
- data/node_modules/bulma/sass/layout/hero.sass +153 -153
- data/node_modules/bulma/sass/layout/section.sass +17 -17
- data/node_modules/bulma/sass/utilities/_all.sass +9 -9
- data/node_modules/bulma/sass/utilities/animations.sass +1 -1
- data/node_modules/bulma/sass/utilities/controls.sass +49 -49
- data/node_modules/bulma/sass/utilities/derived-variables.sass +114 -114
- data/node_modules/bulma/sass/utilities/extends.sass +25 -25
- data/node_modules/bulma/sass/utilities/functions.sass +136 -136
- data/node_modules/bulma/sass/utilities/initial-variables.sass +78 -78
- data/node_modules/bulma/sass/utilities/mixins.sass +280 -280
- data/node_modules/bulma-block-list/LICENSE.txt +21 -21
- data/node_modules/bulma-block-list/README.md +31 -31
- data/node_modules/bulma-block-list/docs/Gemfile +2 -2
- data/node_modules/bulma-block-list/docs/_config.yml +15 -15
- data/node_modules/bulma-block-list/docs/_data/menu.yaml +19 -19
- data/node_modules/bulma-block-list/docs/_sass/_block-list.scss +108 -108
- data/node_modules/bulma-block-list/docs/_sass/_main.scss +19 -19
- data/node_modules/bulma-block-list/docs/assets/css/app.scss +6 -6
- data/node_modules/bulma-block-list/docs/index.html +260 -260
- data/node_modules/bulma-block-list/node_modules/bulma/CHANGELOG.md +1390 -1390
- data/node_modules/bulma-block-list/node_modules/bulma/LICENSE +21 -21
- data/node_modules/bulma-block-list/node_modules/bulma/README.md +130 -130
- data/node_modules/bulma-block-list/node_modules/bulma/bulma.sass +9 -9
- data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.css +10854 -10854
- data/node_modules/bulma-block-list/node_modules/bulma/package.json +77 -77
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/_all.sass +5 -5
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/generic.sass +142 -142
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/helpers.sass +281 -281
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/minireset.sass +79 -79
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/_all.sass +15 -15
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/breadcrumb.sass +75 -75
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/card.sass +79 -79
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/dropdown.sass +81 -81
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/level.sass +77 -77
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/list.sass +39 -39
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/media.sass +50 -50
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/menu.sass +57 -57
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/message.sass +99 -99
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/modal.sass +113 -113
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/navbar.sass +441 -441
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/pagination.sass +150 -150
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/panel.sass +119 -119
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/tabs.sass +151 -151
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/_all.sass +15 -15
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/box.sass +24 -24
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/button.sass +323 -323
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/container.sass +24 -24
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/content.sass +155 -155
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/form.sass +1 -1
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/icon.sass +21 -21
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/image.sass +71 -71
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/notification.sass +43 -43
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/other.sass +39 -39
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/progress.sass +67 -67
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/table.sass +127 -127
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/tag.sass +128 -128
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/title.sass +70 -70
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/_all.sass +8 -8
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/checkbox-radio.sass +21 -21
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/file.sass +180 -180
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/input-textarea.sass +64 -64
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/select.sass +85 -85
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/shared.sass +55 -55
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/tools.sass +205 -205
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/_all.sass +4 -4
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/columns.sass +504 -504
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/tiles.sass +34 -34
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/_all.sass +5 -5
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/footer.sass +9 -9
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/hero.sass +145 -145
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/section.sass +13 -13
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/_all.sass +8 -8
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/animations.sass +5 -5
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/controls.sass +50 -50
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/derived-variables.sass +106 -106
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/functions.sass +110 -110
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/initial-variables.sass +77 -77
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/mixins.sass +261 -261
- data/node_modules/bulma-block-list/package.json +56 -56
- data/node_modules/bulma-block-list/src/block-list.scss +108 -108
- data/node_modules/bulma-block-list/src/demo.scss +2 -2
- data/package-lock.json +28 -28
- data/package.json +20 -20
- metadata +16 -13
- data/_includes/hero.html +0 -11
- data/_includes/join.html +0 -30
- data/_includes/rating.html +0 -14
- data/_includes/review.html +0 -27
- data/_includes/share-buttons.html +0 -19
- data/_layouts/product-category.html +0 -42
- data/_layouts/product.html +0 -61
- data/_layouts/recipe.html +0 -98
- data/assets/css/highlight.css +0 -78
@@ -1,49 +1,49 @@
|
|
1
|
-
@import "derived-variables"
|
2
|
-
|
3
|
-
$control-radius: $radius !default
|
4
|
-
$control-radius-small: $radius-small !default
|
5
|
-
|
6
|
-
$control-border-width: 1px !default
|
7
|
-
|
8
|
-
$control-height: 2.5em !default
|
9
|
-
$control-line-height: 1.5 !default
|
10
|
-
|
11
|
-
$control-padding-vertical: calc(0.5em - #{$control-border-width}) !default
|
12
|
-
$control-padding-horizontal: calc(0.75em - #{$control-border-width}) !default
|
13
|
-
|
14
|
-
=control
|
15
|
-
-moz-appearance: none
|
16
|
-
-webkit-appearance: none
|
17
|
-
align-items: center
|
18
|
-
border: $control-border-width solid transparent
|
19
|
-
border-radius: $control-radius
|
20
|
-
box-shadow: none
|
21
|
-
display: inline-flex
|
22
|
-
font-size: $size-normal
|
23
|
-
height: $control-height
|
24
|
-
justify-content: flex-start
|
25
|
-
line-height: $control-line-height
|
26
|
-
padding-bottom: $control-padding-vertical
|
27
|
-
padding-left: $control-padding-horizontal
|
28
|
-
padding-right: $control-padding-horizontal
|
29
|
-
padding-top: $control-padding-vertical
|
30
|
-
position: relative
|
31
|
-
vertical-align: top
|
32
|
-
// States
|
33
|
-
&:focus,
|
34
|
-
&.is-focused,
|
35
|
-
&:active,
|
36
|
-
&.is-active
|
37
|
-
outline: none
|
38
|
-
&[disabled],
|
39
|
-
fieldset[disabled] &
|
40
|
-
cursor: not-allowed
|
41
|
-
|
42
|
-
// The controls sizes use mixins so they can be used at different breakpoints
|
43
|
-
=control-small
|
44
|
-
border-radius: $control-radius-small
|
45
|
-
font-size: $size-small
|
46
|
-
=control-medium
|
47
|
-
font-size: $size-medium
|
48
|
-
=control-large
|
49
|
-
font-size: $size-large
|
1
|
+
@import "derived-variables"
|
2
|
+
|
3
|
+
$control-radius: $radius !default
|
4
|
+
$control-radius-small: $radius-small !default
|
5
|
+
|
6
|
+
$control-border-width: 1px !default
|
7
|
+
|
8
|
+
$control-height: 2.5em !default
|
9
|
+
$control-line-height: 1.5 !default
|
10
|
+
|
11
|
+
$control-padding-vertical: calc(0.5em - #{$control-border-width}) !default
|
12
|
+
$control-padding-horizontal: calc(0.75em - #{$control-border-width}) !default
|
13
|
+
|
14
|
+
=control
|
15
|
+
-moz-appearance: none
|
16
|
+
-webkit-appearance: none
|
17
|
+
align-items: center
|
18
|
+
border: $control-border-width solid transparent
|
19
|
+
border-radius: $control-radius
|
20
|
+
box-shadow: none
|
21
|
+
display: inline-flex
|
22
|
+
font-size: $size-normal
|
23
|
+
height: $control-height
|
24
|
+
justify-content: flex-start
|
25
|
+
line-height: $control-line-height
|
26
|
+
padding-bottom: $control-padding-vertical
|
27
|
+
padding-left: $control-padding-horizontal
|
28
|
+
padding-right: $control-padding-horizontal
|
29
|
+
padding-top: $control-padding-vertical
|
30
|
+
position: relative
|
31
|
+
vertical-align: top
|
32
|
+
// States
|
33
|
+
&:focus,
|
34
|
+
&.is-focused,
|
35
|
+
&:active,
|
36
|
+
&.is-active
|
37
|
+
outline: none
|
38
|
+
&[disabled],
|
39
|
+
fieldset[disabled] &
|
40
|
+
cursor: not-allowed
|
41
|
+
|
42
|
+
// The controls sizes use mixins so they can be used at different breakpoints
|
43
|
+
=control-small
|
44
|
+
border-radius: $control-radius-small
|
45
|
+
font-size: $size-small
|
46
|
+
=control-medium
|
47
|
+
font-size: $size-medium
|
48
|
+
=control-large
|
49
|
+
font-size: $size-large
|
@@ -1,114 +1,114 @@
|
|
1
|
-
@import "initial-variables"
|
2
|
-
@import "functions"
|
3
|
-
|
4
|
-
$primary: $turquoise !default
|
5
|
-
|
6
|
-
$info: $cyan !default
|
7
|
-
$success: $green !default
|
8
|
-
$warning: $yellow !default
|
9
|
-
$danger: $red !default
|
10
|
-
|
11
|
-
$light: $white-ter !default
|
12
|
-
$dark: $grey-darker !default
|
13
|
-
|
14
|
-
// Invert colors
|
15
|
-
|
16
|
-
$orange-invert: findColorInvert($orange) !default
|
17
|
-
$yellow-invert: findColorInvert($yellow) !default
|
18
|
-
$green-invert: findColorInvert($green) !default
|
19
|
-
$turquoise-invert: findColorInvert($turquoise) !default
|
20
|
-
$cyan-invert: findColorInvert($cyan) !default
|
21
|
-
$blue-invert: findColorInvert($blue) !default
|
22
|
-
$purple-invert: findColorInvert($purple) !default
|
23
|
-
$red-invert: findColorInvert($red) !default
|
24
|
-
|
25
|
-
$primary-invert: findColorInvert($primary) !default
|
26
|
-
$primary-light: findLightColor($primary) !default
|
27
|
-
$primary-dark: findDarkColor($primary) !default
|
28
|
-
$info-invert: findColorInvert($info) !default
|
29
|
-
$info-light: findLightColor($info) !default
|
30
|
-
$info-dark: findDarkColor($info) !default
|
31
|
-
$success-invert: findColorInvert($success) !default
|
32
|
-
$success-light: findLightColor($success) !default
|
33
|
-
$success-dark: findDarkColor($success) !default
|
34
|
-
$warning-invert: findColorInvert($warning) !default
|
35
|
-
$warning-light: findLightColor($warning) !default
|
36
|
-
$warning-dark: findDarkColor($warning) !default
|
37
|
-
$danger-invert: findColorInvert($danger) !default
|
38
|
-
$danger-light: findLightColor($danger) !default
|
39
|
-
$danger-dark: findDarkColor($danger) !default
|
40
|
-
$light-invert: findColorInvert($light) !default
|
41
|
-
$dark-invert: findColorInvert($dark) !default
|
42
|
-
|
43
|
-
// General colors
|
44
|
-
|
45
|
-
$scheme-main: $white !default
|
46
|
-
$scheme-main-bis: $white-bis !default
|
47
|
-
$scheme-main-ter: $white-ter !default
|
48
|
-
$scheme-invert: $black !default
|
49
|
-
$scheme-invert-bis: $black-bis !default
|
50
|
-
$scheme-invert-ter: $black-ter !default
|
51
|
-
|
52
|
-
$background: $white-ter !default
|
53
|
-
|
54
|
-
$border: $grey-lighter !default
|
55
|
-
$border-hover: $grey-light !default
|
56
|
-
$border-light: $grey-lightest !default
|
57
|
-
$border-light-hover: $grey-light !default
|
58
|
-
|
59
|
-
// Text colors
|
60
|
-
|
61
|
-
$text: $grey-dark !default
|
62
|
-
$text-invert: findColorInvert($text) !default
|
63
|
-
$text-light: $grey !default
|
64
|
-
$text-strong: $grey-darker !default
|
65
|
-
|
66
|
-
// Code colors
|
67
|
-
|
68
|
-
$code: darken($red, 15%) !default
|
69
|
-
$code-background: $background !default
|
70
|
-
|
71
|
-
$pre: $text !default
|
72
|
-
$pre-background: $background !default
|
73
|
-
|
74
|
-
// Link colors
|
75
|
-
|
76
|
-
$link: $blue !default
|
77
|
-
$link-invert: findColorInvert($link) !default
|
78
|
-
$link-light: findLightColor($link) !default
|
79
|
-
$link-dark: findDarkColor($link) !default
|
80
|
-
$link-visited: $purple !default
|
81
|
-
|
82
|
-
$link-hover: $grey-darker !default
|
83
|
-
$link-hover-border: $grey-light !default
|
84
|
-
|
85
|
-
$link-focus: $grey-darker !default
|
86
|
-
$link-focus-border: $blue !default
|
87
|
-
|
88
|
-
$link-active: $grey-darker !default
|
89
|
-
$link-active-border: $grey-dark !default
|
90
|
-
|
91
|
-
// Typography
|
92
|
-
|
93
|
-
$family-primary: $family-sans-serif !default
|
94
|
-
$family-secondary: $family-sans-serif !default
|
95
|
-
$family-code: $family-monospace !default
|
96
|
-
|
97
|
-
$size-small: $size-7 !default
|
98
|
-
$size-normal: $size-6 !default
|
99
|
-
$size-medium: $size-5 !default
|
100
|
-
$size-large: $size-4 !default
|
101
|
-
|
102
|
-
// Effects
|
103
|
-
|
104
|
-
$shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
|
105
|
-
|
106
|
-
// Lists and maps
|
107
|
-
$custom-colors: null !default
|
108
|
-
$custom-shades: null !default
|
109
|
-
|
110
|
-
$colors: mergeColorMaps(("white": ($white, $black), "black": ($black, $white), "light": ($light, $light-invert), "dark": ($dark, $dark-invert), "primary": ($primary, $primary-invert, $primary-light, $primary-dark), "link": ($link, $link-invert, $link-light, $link-dark), "info": ($info, $info-invert, $info-light, $info-dark), "success": ($success, $success-invert, $success-light, $success-dark), "warning": ($warning, $warning-invert, $warning-light, $warning-dark), "danger": ($danger, $danger-invert, $danger-light, $danger-dark)), $custom-colors) !default
|
111
|
-
|
112
|
-
$shades: mergeColorMaps(("black-bis": $black-bis, "black-ter": $black-ter, "grey-darker": $grey-darker, "grey-dark": $grey-dark, "grey": $grey, "grey-light": $grey-light, "grey-lighter": $grey-lighter, "white-ter": $white-ter, "white-bis": $white-bis), $custom-shades) !default
|
113
|
-
|
114
|
-
$sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 $size-7 !default
|
1
|
+
@import "initial-variables"
|
2
|
+
@import "functions"
|
3
|
+
|
4
|
+
$primary: $turquoise !default
|
5
|
+
|
6
|
+
$info: $cyan !default
|
7
|
+
$success: $green !default
|
8
|
+
$warning: $yellow !default
|
9
|
+
$danger: $red !default
|
10
|
+
|
11
|
+
$light: $white-ter !default
|
12
|
+
$dark: $grey-darker !default
|
13
|
+
|
14
|
+
// Invert colors
|
15
|
+
|
16
|
+
$orange-invert: findColorInvert($orange) !default
|
17
|
+
$yellow-invert: findColorInvert($yellow) !default
|
18
|
+
$green-invert: findColorInvert($green) !default
|
19
|
+
$turquoise-invert: findColorInvert($turquoise) !default
|
20
|
+
$cyan-invert: findColorInvert($cyan) !default
|
21
|
+
$blue-invert: findColorInvert($blue) !default
|
22
|
+
$purple-invert: findColorInvert($purple) !default
|
23
|
+
$red-invert: findColorInvert($red) !default
|
24
|
+
|
25
|
+
$primary-invert: findColorInvert($primary) !default
|
26
|
+
$primary-light: findLightColor($primary) !default
|
27
|
+
$primary-dark: findDarkColor($primary) !default
|
28
|
+
$info-invert: findColorInvert($info) !default
|
29
|
+
$info-light: findLightColor($info) !default
|
30
|
+
$info-dark: findDarkColor($info) !default
|
31
|
+
$success-invert: findColorInvert($success) !default
|
32
|
+
$success-light: findLightColor($success) !default
|
33
|
+
$success-dark: findDarkColor($success) !default
|
34
|
+
$warning-invert: findColorInvert($warning) !default
|
35
|
+
$warning-light: findLightColor($warning) !default
|
36
|
+
$warning-dark: findDarkColor($warning) !default
|
37
|
+
$danger-invert: findColorInvert($danger) !default
|
38
|
+
$danger-light: findLightColor($danger) !default
|
39
|
+
$danger-dark: findDarkColor($danger) !default
|
40
|
+
$light-invert: findColorInvert($light) !default
|
41
|
+
$dark-invert: findColorInvert($dark) !default
|
42
|
+
|
43
|
+
// General colors
|
44
|
+
|
45
|
+
$scheme-main: $white !default
|
46
|
+
$scheme-main-bis: $white-bis !default
|
47
|
+
$scheme-main-ter: $white-ter !default
|
48
|
+
$scheme-invert: $black !default
|
49
|
+
$scheme-invert-bis: $black-bis !default
|
50
|
+
$scheme-invert-ter: $black-ter !default
|
51
|
+
|
52
|
+
$background: $white-ter !default
|
53
|
+
|
54
|
+
$border: $grey-lighter !default
|
55
|
+
$border-hover: $grey-light !default
|
56
|
+
$border-light: $grey-lightest !default
|
57
|
+
$border-light-hover: $grey-light !default
|
58
|
+
|
59
|
+
// Text colors
|
60
|
+
|
61
|
+
$text: $grey-dark !default
|
62
|
+
$text-invert: findColorInvert($text) !default
|
63
|
+
$text-light: $grey !default
|
64
|
+
$text-strong: $grey-darker !default
|
65
|
+
|
66
|
+
// Code colors
|
67
|
+
|
68
|
+
$code: darken($red, 15%) !default
|
69
|
+
$code-background: $background !default
|
70
|
+
|
71
|
+
$pre: $text !default
|
72
|
+
$pre-background: $background !default
|
73
|
+
|
74
|
+
// Link colors
|
75
|
+
|
76
|
+
$link: $blue !default
|
77
|
+
$link-invert: findColorInvert($link) !default
|
78
|
+
$link-light: findLightColor($link) !default
|
79
|
+
$link-dark: findDarkColor($link) !default
|
80
|
+
$link-visited: $purple !default
|
81
|
+
|
82
|
+
$link-hover: $grey-darker !default
|
83
|
+
$link-hover-border: $grey-light !default
|
84
|
+
|
85
|
+
$link-focus: $grey-darker !default
|
86
|
+
$link-focus-border: $blue !default
|
87
|
+
|
88
|
+
$link-active: $grey-darker !default
|
89
|
+
$link-active-border: $grey-dark !default
|
90
|
+
|
91
|
+
// Typography
|
92
|
+
|
93
|
+
$family-primary: $family-sans-serif !default
|
94
|
+
$family-secondary: $family-sans-serif !default
|
95
|
+
$family-code: $family-monospace !default
|
96
|
+
|
97
|
+
$size-small: $size-7 !default
|
98
|
+
$size-normal: $size-6 !default
|
99
|
+
$size-medium: $size-5 !default
|
100
|
+
$size-large: $size-4 !default
|
101
|
+
|
102
|
+
// Effects
|
103
|
+
|
104
|
+
$shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
|
105
|
+
|
106
|
+
// Lists and maps
|
107
|
+
$custom-colors: null !default
|
108
|
+
$custom-shades: null !default
|
109
|
+
|
110
|
+
$colors: mergeColorMaps(("white": ($white, $black), "black": ($black, $white), "light": ($light, $light-invert), "dark": ($dark, $dark-invert), "primary": ($primary, $primary-invert, $primary-light, $primary-dark), "link": ($link, $link-invert, $link-light, $link-dark), "info": ($info, $info-invert, $info-light, $info-dark), "success": ($success, $success-invert, $success-light, $success-dark), "warning": ($warning, $warning-invert, $warning-light, $warning-dark), "danger": ($danger, $danger-invert, $danger-light, $danger-dark)), $custom-colors) !default
|
111
|
+
|
112
|
+
$shades: mergeColorMaps(("black-bis": $black-bis, "black-ter": $black-ter, "grey-darker": $grey-darker, "grey-dark": $grey-dark, "grey": $grey, "grey-light": $grey-light, "grey-lighter": $grey-lighter, "white-ter": $white-ter, "white-bis": $white-bis), $custom-shades) !default
|
113
|
+
|
114
|
+
$sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 $size-7 !default
|
@@ -1,25 +1,25 @@
|
|
1
|
-
@import "mixins"
|
2
|
-
|
3
|
-
%control
|
4
|
-
+control
|
5
|
-
|
6
|
-
%unselectable
|
7
|
-
+unselectable
|
8
|
-
|
9
|
-
%arrow
|
10
|
-
+arrow
|
11
|
-
|
12
|
-
%block
|
13
|
-
+block
|
14
|
-
|
15
|
-
%delete
|
16
|
-
+delete
|
17
|
-
|
18
|
-
%loader
|
19
|
-
+loader
|
20
|
-
|
21
|
-
%overlay
|
22
|
-
+overlay
|
23
|
-
|
24
|
-
%reset
|
25
|
-
+reset
|
1
|
+
@import "mixins"
|
2
|
+
|
3
|
+
%control
|
4
|
+
+control
|
5
|
+
|
6
|
+
%unselectable
|
7
|
+
+unselectable
|
8
|
+
|
9
|
+
%arrow
|
10
|
+
+arrow
|
11
|
+
|
12
|
+
%block
|
13
|
+
+block
|
14
|
+
|
15
|
+
%delete
|
16
|
+
+delete
|
17
|
+
|
18
|
+
%loader
|
19
|
+
+loader
|
20
|
+
|
21
|
+
%overlay
|
22
|
+
+overlay
|
23
|
+
|
24
|
+
%reset
|
25
|
+
+reset
|
@@ -1,136 +1,136 @@
|
|
1
|
-
@function mergeColorMaps($bulma-colors, $custom-colors)
|
2
|
-
// We return at least Bulma's hard-coded colors
|
3
|
-
$merged-colors: $bulma-colors
|
4
|
-
|
5
|
-
// We want a map as input
|
6
|
-
@if type-of($custom-colors) == 'map'
|
7
|
-
@each $name, $components in $custom-colors
|
8
|
-
// The color name should be a string
|
9
|
-
// and the components either a single color
|
10
|
-
// or a colors list with at least one element
|
11
|
-
@if type-of($name) == 'string' and (type-of($components) == 'list' or type-of($components) == 'color') and length($components) >= 1
|
12
|
-
$color-base: null
|
13
|
-
$color-invert: null
|
14
|
-
$color-light: null
|
15
|
-
$color-dark: null
|
16
|
-
$value: null
|
17
|
-
|
18
|
-
// The param can either be a single color
|
19
|
-
// or a list of 2 colors
|
20
|
-
@if type-of($components) == 'color'
|
21
|
-
$color-base: $components
|
22
|
-
$color-invert: findColorInvert($color-base)
|
23
|
-
$color-light: findLightColor($color-base)
|
24
|
-
$color-dark: findDarkColor($color-base)
|
25
|
-
@else if type-of($components) == 'list'
|
26
|
-
$color-base: nth($components, 1)
|
27
|
-
// If Invert, Light and Dark are provided
|
28
|
-
@if length($components) > 3
|
29
|
-
$color-invert: nth($components, 2)
|
30
|
-
$color-light: nth($components, 3)
|
31
|
-
$color-dark: nth($components, 4)
|
32
|
-
// If only Invert and Light are provided
|
33
|
-
@else if length($components) > 2
|
34
|
-
$color-invert: nth($components, 2)
|
35
|
-
$color-light: nth($components, 3)
|
36
|
-
$color-dark: findDarkColor($color-base)
|
37
|
-
// If only Invert is provided
|
38
|
-
@else
|
39
|
-
$color-invert: nth($components, 2)
|
40
|
-
$color-light: findLightColor($color-base)
|
41
|
-
$color-dark: findDarkColor($color-base)
|
42
|
-
|
43
|
-
$value: ($color-base, $color-invert, $color-light, $color-dark)
|
44
|
-
|
45
|
-
// We only want to merge the map if the color base is an actual color
|
46
|
-
@if type-of($color-base) == 'color'
|
47
|
-
// We merge this colors elements as map with Bulma's colors map
|
48
|
-
// (we can override them this way, no multiple definition for the same name)
|
49
|
-
// $merged-colors: map_merge($merged-colors, ($name: ($color-base, $color-invert, $color-light, $color-dark)))
|
50
|
-
$merged-colors: map_merge($merged-colors, ($name: $value))
|
51
|
-
|
52
|
-
@return $merged-colors
|
53
|
-
|
54
|
-
@function powerNumber($number, $exp)
|
55
|
-
$value: 1
|
56
|
-
@if $exp > 0
|
57
|
-
@for $i from 1 through $exp
|
58
|
-
$value: $value * $number
|
59
|
-
@else if $exp < 0
|
60
|
-
@for $i from 1 through -$exp
|
61
|
-
$value: divide($value, $number)
|
62
|
-
@return $value
|
63
|
-
|
64
|
-
@function colorLuminance($color)
|
65
|
-
@if type-of($color) != 'color'
|
66
|
-
@return 0.55
|
67
|
-
$color-rgb: ('red': red($color),'green': green($color),'blue': blue($color))
|
68
|
-
@each $name, $value in $color-rgb
|
69
|
-
$adjusted: 0
|
70
|
-
$value: divide($value, 255)
|
71
|
-
@if $value < 0.03928
|
72
|
-
$value: divide($value, 12.92)
|
73
|
-
@else
|
74
|
-
$value: divide(($value + .055), 1.055)
|
75
|
-
$value: powerNumber($value, 2)
|
76
|
-
$color-rgb: map-merge($color-rgb, ($name: $value))
|
77
|
-
@return (map-get($color-rgb, 'red') * .2126) + (map-get($color-rgb, 'green') * .7152) + (map-get($color-rgb, 'blue') * .0722)
|
78
|
-
|
79
|
-
@function findColorInvert($color)
|
80
|
-
@if (colorLuminance($color) > 0.55)
|
81
|
-
@return rgba(#000, 0.7)
|
82
|
-
@else
|
83
|
-
@return #fff
|
84
|
-
|
85
|
-
@function findLightColor($color)
|
86
|
-
@if type-of($color) == 'color'
|
87
|
-
$l: 96%
|
88
|
-
@if lightness($color) > 96%
|
89
|
-
$l: lightness($color)
|
90
|
-
@return change-color($color, $lightness: $l)
|
91
|
-
@return $background
|
92
|
-
|
93
|
-
@function findDarkColor($color)
|
94
|
-
@if type-of($color) == 'color'
|
95
|
-
$base-l: 29%
|
96
|
-
$luminance: colorLuminance($color)
|
97
|
-
$luminance-delta: (0.53 - $luminance)
|
98
|
-
$target-l: round($base-l + ($luminance-delta * 53))
|
99
|
-
@return change-color($color, $lightness: max($base-l, $target-l))
|
100
|
-
@return $text-strong
|
101
|
-
|
102
|
-
@function bulmaRgba($color, $alpha)
|
103
|
-
@if type-of($color) != 'color'
|
104
|
-
@return $color
|
105
|
-
@return rgba($color, $alpha)
|
106
|
-
|
107
|
-
@function bulmaDarken($color, $amount)
|
108
|
-
@if type-of($color) != 'color'
|
109
|
-
@return $color
|
110
|
-
@return darken($color, $amount)
|
111
|
-
|
112
|
-
@function bulmaLighten($color, $amount)
|
113
|
-
@if type-of($color) != 'color'
|
114
|
-
@return $color
|
115
|
-
@return lighten($color, $amount)
|
116
|
-
|
117
|
-
// Custom divide function by @mdo from https://github.com/twbs/bootstrap/pull/34245
|
118
|
-
// Replaces old slash division deprecated in Dart Sass
|
119
|
-
@function divide($dividend, $divisor, $precision: 10)
|
120
|
-
$sign: if($dividend > 0 and $divisor > 0, 1, -1)
|
121
|
-
$dividend: abs($dividend)
|
122
|
-
$divisor: abs($divisor)
|
123
|
-
$quotient: 0
|
124
|
-
$remainder: $dividend
|
125
|
-
@if $dividend == 0
|
126
|
-
@return 0
|
127
|
-
@if $divisor == 0
|
128
|
-
@error "Cannot divide by 0"
|
129
|
-
@if $divisor == 1
|
130
|
-
@return $dividend
|
131
|
-
@while $remainder >= $divisor
|
132
|
-
$quotient: $quotient + 1
|
133
|
-
$remainder: $remainder - $divisor
|
134
|
-
@if $remainder > 0 and $precision > 0
|
135
|
-
$remainder: divide($remainder * 10, $divisor, $precision - 1) * .1
|
136
|
-
@return ($quotient + $remainder) * $sign
|
1
|
+
@function mergeColorMaps($bulma-colors, $custom-colors)
|
2
|
+
// We return at least Bulma's hard-coded colors
|
3
|
+
$merged-colors: $bulma-colors
|
4
|
+
|
5
|
+
// We want a map as input
|
6
|
+
@if type-of($custom-colors) == 'map'
|
7
|
+
@each $name, $components in $custom-colors
|
8
|
+
// The color name should be a string
|
9
|
+
// and the components either a single color
|
10
|
+
// or a colors list with at least one element
|
11
|
+
@if type-of($name) == 'string' and (type-of($components) == 'list' or type-of($components) == 'color') and length($components) >= 1
|
12
|
+
$color-base: null
|
13
|
+
$color-invert: null
|
14
|
+
$color-light: null
|
15
|
+
$color-dark: null
|
16
|
+
$value: null
|
17
|
+
|
18
|
+
// The param can either be a single color
|
19
|
+
// or a list of 2 colors
|
20
|
+
@if type-of($components) == 'color'
|
21
|
+
$color-base: $components
|
22
|
+
$color-invert: findColorInvert($color-base)
|
23
|
+
$color-light: findLightColor($color-base)
|
24
|
+
$color-dark: findDarkColor($color-base)
|
25
|
+
@else if type-of($components) == 'list'
|
26
|
+
$color-base: nth($components, 1)
|
27
|
+
// If Invert, Light and Dark are provided
|
28
|
+
@if length($components) > 3
|
29
|
+
$color-invert: nth($components, 2)
|
30
|
+
$color-light: nth($components, 3)
|
31
|
+
$color-dark: nth($components, 4)
|
32
|
+
// If only Invert and Light are provided
|
33
|
+
@else if length($components) > 2
|
34
|
+
$color-invert: nth($components, 2)
|
35
|
+
$color-light: nth($components, 3)
|
36
|
+
$color-dark: findDarkColor($color-base)
|
37
|
+
// If only Invert is provided
|
38
|
+
@else
|
39
|
+
$color-invert: nth($components, 2)
|
40
|
+
$color-light: findLightColor($color-base)
|
41
|
+
$color-dark: findDarkColor($color-base)
|
42
|
+
|
43
|
+
$value: ($color-base, $color-invert, $color-light, $color-dark)
|
44
|
+
|
45
|
+
// We only want to merge the map if the color base is an actual color
|
46
|
+
@if type-of($color-base) == 'color'
|
47
|
+
// We merge this colors elements as map with Bulma's colors map
|
48
|
+
// (we can override them this way, no multiple definition for the same name)
|
49
|
+
// $merged-colors: map_merge($merged-colors, ($name: ($color-base, $color-invert, $color-light, $color-dark)))
|
50
|
+
$merged-colors: map_merge($merged-colors, ($name: $value))
|
51
|
+
|
52
|
+
@return $merged-colors
|
53
|
+
|
54
|
+
@function powerNumber($number, $exp)
|
55
|
+
$value: 1
|
56
|
+
@if $exp > 0
|
57
|
+
@for $i from 1 through $exp
|
58
|
+
$value: $value * $number
|
59
|
+
@else if $exp < 0
|
60
|
+
@for $i from 1 through -$exp
|
61
|
+
$value: divide($value, $number)
|
62
|
+
@return $value
|
63
|
+
|
64
|
+
@function colorLuminance($color)
|
65
|
+
@if type-of($color) != 'color'
|
66
|
+
@return 0.55
|
67
|
+
$color-rgb: ('red': red($color),'green': green($color),'blue': blue($color))
|
68
|
+
@each $name, $value in $color-rgb
|
69
|
+
$adjusted: 0
|
70
|
+
$value: divide($value, 255)
|
71
|
+
@if $value < 0.03928
|
72
|
+
$value: divide($value, 12.92)
|
73
|
+
@else
|
74
|
+
$value: divide(($value + .055), 1.055)
|
75
|
+
$value: powerNumber($value, 2)
|
76
|
+
$color-rgb: map-merge($color-rgb, ($name: $value))
|
77
|
+
@return (map-get($color-rgb, 'red') * .2126) + (map-get($color-rgb, 'green') * .7152) + (map-get($color-rgb, 'blue') * .0722)
|
78
|
+
|
79
|
+
@function findColorInvert($color)
|
80
|
+
@if (colorLuminance($color) > 0.55)
|
81
|
+
@return rgba(#000, 0.7)
|
82
|
+
@else
|
83
|
+
@return #fff
|
84
|
+
|
85
|
+
@function findLightColor($color)
|
86
|
+
@if type-of($color) == 'color'
|
87
|
+
$l: 96%
|
88
|
+
@if lightness($color) > 96%
|
89
|
+
$l: lightness($color)
|
90
|
+
@return change-color($color, $lightness: $l)
|
91
|
+
@return $background
|
92
|
+
|
93
|
+
@function findDarkColor($color)
|
94
|
+
@if type-of($color) == 'color'
|
95
|
+
$base-l: 29%
|
96
|
+
$luminance: colorLuminance($color)
|
97
|
+
$luminance-delta: (0.53 - $luminance)
|
98
|
+
$target-l: round($base-l + ($luminance-delta * 53))
|
99
|
+
@return change-color($color, $lightness: max($base-l, $target-l))
|
100
|
+
@return $text-strong
|
101
|
+
|
102
|
+
@function bulmaRgba($color, $alpha)
|
103
|
+
@if type-of($color) != 'color'
|
104
|
+
@return $color
|
105
|
+
@return rgba($color, $alpha)
|
106
|
+
|
107
|
+
@function bulmaDarken($color, $amount)
|
108
|
+
@if type-of($color) != 'color'
|
109
|
+
@return $color
|
110
|
+
@return darken($color, $amount)
|
111
|
+
|
112
|
+
@function bulmaLighten($color, $amount)
|
113
|
+
@if type-of($color) != 'color'
|
114
|
+
@return $color
|
115
|
+
@return lighten($color, $amount)
|
116
|
+
|
117
|
+
// Custom divide function by @mdo from https://github.com/twbs/bootstrap/pull/34245
|
118
|
+
// Replaces old slash division deprecated in Dart Sass
|
119
|
+
@function divide($dividend, $divisor, $precision: 10)
|
120
|
+
$sign: if($dividend > 0 and $divisor > 0, 1, -1)
|
121
|
+
$dividend: abs($dividend)
|
122
|
+
$divisor: abs($divisor)
|
123
|
+
$quotient: 0
|
124
|
+
$remainder: $dividend
|
125
|
+
@if $dividend == 0
|
126
|
+
@return 0
|
127
|
+
@if $divisor == 0
|
128
|
+
@error "Cannot divide by 0"
|
129
|
+
@if $divisor == 1
|
130
|
+
@return $dividend
|
131
|
+
@while $remainder >= $divisor
|
132
|
+
$quotient: $quotient + 1
|
133
|
+
$remainder: $remainder - $divisor
|
134
|
+
@if $remainder > 0 and $precision > 0
|
135
|
+
$remainder: divide($remainder * 10, $divisor, $precision - 1) * .1
|
136
|
+
@return ($quotient + $remainder) * $sign
|