bulma-clean-theme 0.8.1 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -0
- data/_includes/callouts.html +1 -1
- data/_includes/footer.html +1 -1
- data/_includes/gallery.html +27 -0
- data/_includes/head.html +1 -1
- data/_includes/header.html +3 -3
- data/_includes/hero.html +1 -1
- data/_includes/menubar.html +2 -2
- data/_includes/showcase.html +1 -1
- data/_includes/tabs.html +1 -1
- data/_layouts/default.html +1 -0
- data/_layouts/product-category.html +1 -1
- data/node_modules/bulma-block-list/docs/Gemfile +3 -0
- data/node_modules/bulma-block-list/docs/_config.yml +15 -0
- data/node_modules/bulma-block-list/docs/_data/menu.yaml +20 -0
- data/node_modules/bulma-block-list/docs/_sass/_block-list.scss +92 -0
- data/node_modules/bulma-block-list/docs/_sass/_main.scss +20 -0
- data/node_modules/bulma-block-list/docs/assets/css/app.scss +7 -0
- data/node_modules/bulma-block-list/docs/favicon.ico +0 -0
- data/node_modules/bulma-block-list/docs/index.html +249 -261
- data/node_modules/bulma-block-list/node_modules/bulma/CHANGELOG.md +1390 -0
- data/node_modules/bulma-block-list/node_modules/bulma/LICENSE +21 -0
- data/node_modules/bulma-block-list/node_modules/bulma/README.md +130 -0
- data/node_modules/bulma-block-list/node_modules/bulma/bulma.sass +9 -0
- data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.css +10855 -0
- data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.css.map +1 -0
- data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.min.css +1 -0
- data/node_modules/bulma-block-list/node_modules/bulma/package.json +77 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/_all.sass +5 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/generic.sass +142 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/helpers.sass +281 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/minireset.sass +79 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/_all.sass +15 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/breadcrumb.sass +75 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/card.sass +79 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/dropdown.sass +81 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/level.sass +77 -0
- data/node_modules/{bulma → bulma-block-list/node_modules/bulma}/sass/components/list.sass +0 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/media.sass +50 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/menu.sass +57 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/message.sass +99 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/modal.sass +113 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/navbar.sass +441 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/pagination.sass +150 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/panel.sass +119 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/tabs.sass +151 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/_all.sass +15 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/box.sass +24 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/button.sass +323 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/container.sass +24 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/content.sass +155 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/form.sass +1 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/icon.sass +21 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/image.sass +71 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/notification.sass +43 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/other.sass +39 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/progress.sass +67 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/table.sass +127 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/tag.sass +128 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/title.sass +70 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/_all.sass +8 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/checkbox-radio.sass +21 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/file.sass +180 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/input-textarea.sass +64 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/select.sass +85 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/shared.sass +55 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/tools.sass +205 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/_all.sass +4 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/columns.sass +504 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/tiles.sass +34 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/_all.sass +5 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/footer.sass +9 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/hero.sass +145 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/section.sass +13 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/_all.sass +8 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/animations.sass +5 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/controls.sass +50 -0
- data/node_modules/{bulma → bulma-block-list/node_modules/bulma}/sass/utilities/derived-variables.sass +0 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/functions.sass +110 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/initial-variables.sass +77 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/mixins.sass +261 -0
- data/node_modules/bulma-block-list/package.json +10 -10
- data/node_modules/bulma-block-list/src/block-list.scss +24 -1
- data/node_modules/bulma/CHANGELOG.md +69 -0
- data/node_modules/bulma/README.md +1 -1
- data/node_modules/bulma/bulma.sass +2 -1
- data/node_modules/bulma/css/bulma-rtl.css +11331 -0
- data/node_modules/bulma/css/bulma-rtl.css.map +1 -0
- data/node_modules/bulma/css/bulma-rtl.min.css +1 -0
- data/node_modules/bulma/css/bulma.css +6935 -6459
- data/node_modules/bulma/css/bulma.css.map +1 -1
- data/node_modules/bulma/css/bulma.min.css +1 -1
- data/node_modules/bulma/package.json +22 -20
- data/node_modules/bulma/sass/base/_all.sass +0 -1
- data/node_modules/bulma/sass/base/generic.sass +1 -1
- data/node_modules/bulma/sass/base/helpers.sass +1 -281
- data/node_modules/bulma/sass/base/minireset.sass +1 -1
- data/node_modules/bulma/sass/components/_all.sass +0 -1
- data/node_modules/bulma/sass/components/breadcrumb.sass +3 -3
- data/node_modules/bulma/sass/components/card.sass +1 -1
- data/node_modules/bulma/sass/components/dropdown.sass +3 -3
- data/node_modules/bulma/sass/components/level.sass +2 -2
- data/node_modules/bulma/sass/components/media.sass +10 -8
- data/node_modules/bulma/sass/components/menu.sass +2 -2
- data/node_modules/bulma/sass/components/message.sass +1 -1
- data/node_modules/bulma/sass/components/modal.sass +2 -2
- data/node_modules/bulma/sass/components/navbar.sass +9 -9
- data/node_modules/bulma/sass/components/panel.sass +2 -2
- data/node_modules/bulma/sass/components/tabs.sass +35 -12
- data/node_modules/bulma/sass/elements/button.sass +7 -7
- data/node_modules/bulma/sass/elements/content.sass +5 -5
- data/node_modules/bulma/sass/elements/notification.sass +7 -2
- data/node_modules/bulma/sass/elements/table.sass +3 -1
- data/node_modules/bulma/sass/elements/tag.sass +24 -16
- data/node_modules/bulma/sass/form/checkbox-radio.sass +1 -1
- data/node_modules/bulma/sass/form/file.sass +2 -2
- data/node_modules/bulma/sass/form/select.sass +4 -4
- data/node_modules/bulma/sass/form/tools.sass +18 -10
- data/node_modules/bulma/sass/helpers/_all.sass +10 -0
- data/node_modules/bulma/sass/helpers/color.sass +37 -0
- data/node_modules/bulma/sass/helpers/float.sass +8 -0
- data/node_modules/bulma/sass/helpers/other.sass +8 -0
- data/node_modules/bulma/sass/helpers/overflow.sass +2 -0
- data/node_modules/bulma/sass/helpers/position.sass +5 -0
- data/node_modules/bulma/sass/helpers/spacing.sass +28 -0
- data/node_modules/bulma/sass/helpers/typography.sass +98 -0
- data/node_modules/bulma/sass/helpers/visibility.sass +122 -0
- data/node_modules/bulma/sass/layout/hero.sass +1 -1
- data/node_modules/bulma/sass/utilities/_all.sass +1 -1
- data/node_modules/bulma/sass/utilities/derived-variables.scss +132 -0
- data/node_modules/bulma/sass/utilities/functions.sass +5 -0
- data/node_modules/bulma/sass/utilities/initial-variables.sass +1 -0
- data/node_modules/bulma/sass/utilities/mixins.sass +24 -0
- data/package-lock.json +13 -6
- data/package.json +2 -2
- metadata +84 -5
- data/node_modules/bulma-block-list/docs/demo.css +0 -7241
@@ -0,0 +1,34 @@
|
|
1
|
+
$tile-spacing: 0.75rem !default
|
2
|
+
|
3
|
+
.tile
|
4
|
+
align-items: stretch
|
5
|
+
display: block
|
6
|
+
flex-basis: 0
|
7
|
+
flex-grow: 1
|
8
|
+
flex-shrink: 1
|
9
|
+
min-height: min-content
|
10
|
+
// Modifiers
|
11
|
+
&.is-ancestor
|
12
|
+
margin-left: $tile-spacing * -1
|
13
|
+
margin-right: $tile-spacing * -1
|
14
|
+
margin-top: $tile-spacing * -1
|
15
|
+
&:last-child
|
16
|
+
margin-bottom: $tile-spacing * -1
|
17
|
+
&:not(:last-child)
|
18
|
+
margin-bottom: $tile-spacing
|
19
|
+
&.is-child
|
20
|
+
margin: 0 !important
|
21
|
+
&.is-parent
|
22
|
+
padding: $tile-spacing
|
23
|
+
&.is-vertical
|
24
|
+
flex-direction: column
|
25
|
+
& > .tile.is-child:not(:last-child)
|
26
|
+
margin-bottom: 1.5rem !important
|
27
|
+
// Responsiveness
|
28
|
+
+tablet
|
29
|
+
&:not(.is-child)
|
30
|
+
display: flex
|
31
|
+
@for $i from 1 through 12
|
32
|
+
&.is-#{$i}
|
33
|
+
flex: none
|
34
|
+
width: ($i / 12) * 100%
|
@@ -0,0 +1,145 @@
|
|
1
|
+
$hero-body-padding: 3rem 1.5rem !default
|
2
|
+
$hero-body-padding-small: 1.5rem !default
|
3
|
+
$hero-body-padding-medium: 9rem 1.5rem !default
|
4
|
+
$hero-body-padding-large: 18rem 1.5rem !default
|
5
|
+
|
6
|
+
// Main container
|
7
|
+
.hero
|
8
|
+
align-items: stretch
|
9
|
+
display: flex
|
10
|
+
flex-direction: column
|
11
|
+
justify-content: space-between
|
12
|
+
.navbar
|
13
|
+
background: none
|
14
|
+
.tabs
|
15
|
+
ul
|
16
|
+
border-bottom: none
|
17
|
+
// Colors
|
18
|
+
@each $name, $pair in $colors
|
19
|
+
$color: nth($pair, 1)
|
20
|
+
$color-invert: nth($pair, 2)
|
21
|
+
&.is-#{$name}
|
22
|
+
background-color: $color
|
23
|
+
color: $color-invert
|
24
|
+
a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),
|
25
|
+
strong
|
26
|
+
color: inherit
|
27
|
+
.title
|
28
|
+
color: $color-invert
|
29
|
+
.subtitle
|
30
|
+
color: bulmaRgba($color-invert, 0.9)
|
31
|
+
a:not(.button),
|
32
|
+
strong
|
33
|
+
color: $color-invert
|
34
|
+
.navbar-menu
|
35
|
+
+touch
|
36
|
+
background-color: $color
|
37
|
+
.navbar-item,
|
38
|
+
.navbar-link
|
39
|
+
color: bulmaRgba($color-invert, 0.7)
|
40
|
+
a.navbar-item,
|
41
|
+
.navbar-link
|
42
|
+
&:hover,
|
43
|
+
&.is-active
|
44
|
+
background-color: bulmaDarken($color, 5%)
|
45
|
+
color: $color-invert
|
46
|
+
.tabs
|
47
|
+
a
|
48
|
+
color: $color-invert
|
49
|
+
opacity: 0.9
|
50
|
+
&:hover
|
51
|
+
opacity: 1
|
52
|
+
li
|
53
|
+
&.is-active a
|
54
|
+
opacity: 1
|
55
|
+
&.is-boxed,
|
56
|
+
&.is-toggle
|
57
|
+
a
|
58
|
+
color: $color-invert
|
59
|
+
&:hover
|
60
|
+
background-color: bulmaRgba($scheme-invert, 0.1)
|
61
|
+
li.is-active a
|
62
|
+
&,
|
63
|
+
&:hover
|
64
|
+
background-color: $color-invert
|
65
|
+
border-color: $color-invert
|
66
|
+
color: $color
|
67
|
+
// Modifiers
|
68
|
+
@if type-of($color) == 'color'
|
69
|
+
&.is-bold
|
70
|
+
$gradient-top-left: darken(saturate(adjust-hue($color, -10deg), 10%), 10%)
|
71
|
+
$gradient-bottom-right: lighten(saturate(adjust-hue($color, 10deg), 5%), 5%)
|
72
|
+
background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
|
73
|
+
+mobile
|
74
|
+
.navbar-menu
|
75
|
+
background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
|
76
|
+
// Sizes
|
77
|
+
&.is-small
|
78
|
+
.hero-body
|
79
|
+
padding: $hero-body-padding-small
|
80
|
+
&.is-medium
|
81
|
+
+tablet
|
82
|
+
.hero-body
|
83
|
+
padding: $hero-body-padding-medium
|
84
|
+
&.is-large
|
85
|
+
+tablet
|
86
|
+
.hero-body
|
87
|
+
padding: $hero-body-padding-large
|
88
|
+
&.is-halfheight,
|
89
|
+
&.is-fullheight,
|
90
|
+
&.is-fullheight-with-navbar
|
91
|
+
.hero-body
|
92
|
+
align-items: center
|
93
|
+
display: flex
|
94
|
+
& > .container
|
95
|
+
flex-grow: 1
|
96
|
+
flex-shrink: 1
|
97
|
+
&.is-halfheight
|
98
|
+
min-height: 50vh
|
99
|
+
&.is-fullheight
|
100
|
+
min-height: 100vh
|
101
|
+
|
102
|
+
// Components
|
103
|
+
|
104
|
+
.hero-video
|
105
|
+
@extend %overlay
|
106
|
+
overflow: hidden
|
107
|
+
video
|
108
|
+
left: 50%
|
109
|
+
min-height: 100%
|
110
|
+
min-width: 100%
|
111
|
+
position: absolute
|
112
|
+
top: 50%
|
113
|
+
transform: translate3d(-50%, -50%, 0)
|
114
|
+
// Modifiers
|
115
|
+
&.is-transparent
|
116
|
+
opacity: 0.3
|
117
|
+
// Responsiveness
|
118
|
+
+mobile
|
119
|
+
display: none
|
120
|
+
|
121
|
+
.hero-buttons
|
122
|
+
margin-top: 1.5rem
|
123
|
+
// Responsiveness
|
124
|
+
+mobile
|
125
|
+
.button
|
126
|
+
display: flex
|
127
|
+
&:not(:last-child)
|
128
|
+
margin-bottom: 0.75rem
|
129
|
+
+tablet
|
130
|
+
display: flex
|
131
|
+
justify-content: center
|
132
|
+
.button:not(:last-child)
|
133
|
+
margin-right: 1.5rem
|
134
|
+
|
135
|
+
// Containers
|
136
|
+
|
137
|
+
.hero-head,
|
138
|
+
.hero-foot
|
139
|
+
flex-grow: 0
|
140
|
+
flex-shrink: 0
|
141
|
+
|
142
|
+
.hero-body
|
143
|
+
flex-grow: 1
|
144
|
+
flex-shrink: 0
|
145
|
+
padding: $hero-body-padding
|
@@ -0,0 +1,13 @@
|
|
1
|
+
$section-padding: 3rem 1.5rem !default
|
2
|
+
$section-padding-medium: 9rem 1.5rem !default
|
3
|
+
$section-padding-large: 18rem 1.5rem !default
|
4
|
+
|
5
|
+
.section
|
6
|
+
padding: $section-padding
|
7
|
+
// Responsiveness
|
8
|
+
+desktop
|
9
|
+
// Sizes
|
10
|
+
&.is-medium
|
11
|
+
padding: $section-padding-medium
|
12
|
+
&.is-large
|
13
|
+
padding: $section-padding-large
|
@@ -0,0 +1,50 @@
|
|
1
|
+
$control-radius: $radius !default
|
2
|
+
$control-radius-small: $radius-small !default
|
3
|
+
|
4
|
+
$control-border-width: 1px !default
|
5
|
+
|
6
|
+
$control-height: 2.5em !default
|
7
|
+
$control-line-height: 1.5 !default
|
8
|
+
|
9
|
+
$control-padding-vertical: calc(0.5em - #{$control-border-width}) !default
|
10
|
+
$control-padding-horizontal: calc(0.75em - #{$control-border-width}) !default
|
11
|
+
|
12
|
+
=control
|
13
|
+
-moz-appearance: none
|
14
|
+
-webkit-appearance: none
|
15
|
+
align-items: center
|
16
|
+
border: $control-border-width solid transparent
|
17
|
+
border-radius: $control-radius
|
18
|
+
box-shadow: none
|
19
|
+
display: inline-flex
|
20
|
+
font-size: $size-normal
|
21
|
+
height: $control-height
|
22
|
+
justify-content: flex-start
|
23
|
+
line-height: $control-line-height
|
24
|
+
padding-bottom: $control-padding-vertical
|
25
|
+
padding-left: $control-padding-horizontal
|
26
|
+
padding-right: $control-padding-horizontal
|
27
|
+
padding-top: $control-padding-vertical
|
28
|
+
position: relative
|
29
|
+
vertical-align: top
|
30
|
+
// States
|
31
|
+
&:focus,
|
32
|
+
&.is-focused,
|
33
|
+
&:active,
|
34
|
+
&.is-active
|
35
|
+
outline: none
|
36
|
+
&[disabled],
|
37
|
+
fieldset[disabled] &
|
38
|
+
cursor: not-allowed
|
39
|
+
|
40
|
+
%control
|
41
|
+
+control
|
42
|
+
|
43
|
+
// The controls sizes use mixins so they can be used at different breakpoints
|
44
|
+
=control-small
|
45
|
+
border-radius: $control-radius-small
|
46
|
+
font-size: $size-small
|
47
|
+
=control-medium
|
48
|
+
font-size: $size-medium
|
49
|
+
=control-large
|
50
|
+
font-size: $size-large
|
File without changes
|
@@ -0,0 +1,110 @@
|
|
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: $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: $value / 255
|
71
|
+
@if $value < 0.03928
|
72
|
+
$value: $value / 12.92
|
73
|
+
@else
|
74
|
+
$value: ($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)
|
@@ -0,0 +1,77 @@
|
|
1
|
+
// Colors
|
2
|
+
|
3
|
+
$black: hsl(0, 0%, 4%) !default
|
4
|
+
$black-bis: hsl(0, 0%, 7%) !default
|
5
|
+
$black-ter: hsl(0, 0%, 14%) !default
|
6
|
+
|
7
|
+
$grey-darker: hsl(0, 0%, 21%) !default
|
8
|
+
$grey-dark: hsl(0, 0%, 29%) !default
|
9
|
+
$grey: hsl(0, 0%, 48%) !default
|
10
|
+
$grey-light: hsl(0, 0%, 71%) !default
|
11
|
+
$grey-lighter: hsl(0, 0%, 86%) !default
|
12
|
+
$grey-lightest: hsl(0, 0%, 93%) !default
|
13
|
+
|
14
|
+
$white-ter: hsl(0, 0%, 96%) !default
|
15
|
+
$white-bis: hsl(0, 0%, 98%) !default
|
16
|
+
$white: hsl(0, 0%, 100%) !default
|
17
|
+
|
18
|
+
$orange: hsl(14, 100%, 53%) !default
|
19
|
+
$yellow: hsl(48, 100%, 67%) !default
|
20
|
+
$green: hsl(141, 53%, 53%) !default
|
21
|
+
$turquoise: hsl(171, 100%, 41%) !default
|
22
|
+
$cyan: hsl(204, 71%, 53%) !default
|
23
|
+
$blue: hsl(217, 71%, 53%) !default
|
24
|
+
$purple: hsl(271, 100%, 71%) !default
|
25
|
+
$red: hsl(348, 86%, 61%) !default
|
26
|
+
|
27
|
+
// Typography
|
28
|
+
|
29
|
+
$family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default
|
30
|
+
$family-monospace: monospace !default
|
31
|
+
$render-mode: optimizeLegibility !default
|
32
|
+
|
33
|
+
$size-1: 3rem !default
|
34
|
+
$size-2: 2.5rem !default
|
35
|
+
$size-3: 2rem !default
|
36
|
+
$size-4: 1.5rem !default
|
37
|
+
$size-5: 1.25rem !default
|
38
|
+
$size-6: 1rem !default
|
39
|
+
$size-7: 0.75rem !default
|
40
|
+
|
41
|
+
$weight-light: 300 !default
|
42
|
+
$weight-normal: 400 !default
|
43
|
+
$weight-medium: 500 !default
|
44
|
+
$weight-semibold: 600 !default
|
45
|
+
$weight-bold: 700 !default
|
46
|
+
|
47
|
+
// Spacing
|
48
|
+
|
49
|
+
$block-spacing: 1.5rem !default
|
50
|
+
|
51
|
+
// Responsiveness
|
52
|
+
|
53
|
+
// The container horizontal gap, which acts as the offset for breakpoints
|
54
|
+
$gap: 32px !default
|
55
|
+
// 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16
|
56
|
+
$tablet: 769px !default
|
57
|
+
// 960px container + 4rem
|
58
|
+
$desktop: 960px + (2 * $gap) !default
|
59
|
+
// 1152px container + 4rem
|
60
|
+
$widescreen: 1152px + (2 * $gap) !default
|
61
|
+
$widescreen-enabled: true !default
|
62
|
+
// 1344px container + 4rem
|
63
|
+
$fullhd: 1344px + (2 * $gap) !default
|
64
|
+
$fullhd-enabled: true !default
|
65
|
+
|
66
|
+
// Miscellaneous
|
67
|
+
|
68
|
+
$easing: ease-out !default
|
69
|
+
$radius-small: 2px !default
|
70
|
+
$radius: 4px !default
|
71
|
+
$radius-large: 6px !default
|
72
|
+
$radius-rounded: 290486px !default
|
73
|
+
$speed: 86ms !default
|
74
|
+
|
75
|
+
// Flags
|
76
|
+
|
77
|
+
$variable-columns: true !default
|