bulma-sass 0.8.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/bulma.sass +2 -1
- data/app/assets/stylesheets/sass/base/_all.sass +4 -3
- data/app/assets/stylesheets/sass/base/animations.sass +5 -0
- data/app/assets/stylesheets/sass/base/generic.sass +4 -1
- data/app/assets/stylesheets/sass/base/helpers.sass +1 -281
- data/app/assets/stylesheets/sass/base/minireset.sass +1 -1
- data/app/assets/stylesheets/sass/components/_all.sass +13 -13
- data/app/assets/stylesheets/sass/components/breadcrumb.sass +5 -3
- data/app/assets/stylesheets/sass/components/card.sass +24 -1
- data/app/assets/stylesheets/sass/components/dropdown.sass +5 -3
- data/app/assets/stylesheets/sass/components/level.sass +4 -2
- data/app/assets/stylesheets/sass/components/media.sass +24 -15
- data/app/assets/stylesheets/sass/components/menu.sass +4 -2
- data/app/assets/stylesheets/sass/components/message.sass +3 -1
- data/app/assets/stylesheets/sass/components/modal.sass +7 -3
- data/app/assets/stylesheets/sass/components/navbar.sass +14 -11
- data/app/assets/stylesheets/sass/components/pagination.sass +11 -3
- data/app/assets/stylesheets/sass/components/panel.sass +4 -2
- data/app/assets/stylesheets/sass/components/tabs.sass +37 -12
- data/app/assets/stylesheets/sass/elements/_all.sass +13 -12
- data/app/assets/stylesheets/sass/elements/box.sass +2 -0
- data/app/assets/stylesheets/sass/elements/button.sass +31 -9
- data/app/assets/stylesheets/sass/elements/container.sass +12 -7
- data/app/assets/stylesheets/sass/elements/content.sass +7 -5
- data/app/assets/stylesheets/sass/elements/icon.sass +19 -0
- data/app/assets/stylesheets/sass/elements/image.sass +2 -0
- data/app/assets/stylesheets/sass/elements/notification.sass +12 -3
- data/app/assets/stylesheets/sass/elements/other.sass +2 -0
- data/app/assets/stylesheets/sass/elements/progress.sass +7 -1
- data/app/assets/stylesheets/sass/elements/table.sass +8 -2
- data/app/assets/stylesheets/sass/elements/tag.sass +29 -17
- data/app/assets/stylesheets/sass/elements/title.sass +2 -0
- data/app/assets/stylesheets/sass/form/_all.sass +7 -6
- data/app/assets/stylesheets/sass/form/checkbox-radio.sass +3 -2
- data/app/assets/stylesheets/sass/form/file.sass +5 -3
- data/app/assets/stylesheets/sass/form/input-textarea.sass +3 -1
- data/app/assets/stylesheets/sass/form/select.sass +7 -5
- data/app/assets/stylesheets/sass/form/shared.sass +6 -1
- data/app/assets/stylesheets/sass/form/tools.sass +21 -11
- data/app/assets/stylesheets/sass/grid/_all.sass +3 -2
- data/app/assets/stylesheets/sass/grid/columns.sass +86 -77
- data/app/assets/stylesheets/sass/grid/tiles.sass +2 -0
- data/app/assets/stylesheets/sass/helpers/_all.sass +12 -0
- data/app/assets/stylesheets/sass/helpers/color.sass +39 -0
- data/app/assets/stylesheets/sass/helpers/flexbox.sass +35 -0
- data/app/assets/stylesheets/sass/helpers/float.sass +10 -0
- data/app/assets/stylesheets/sass/helpers/other.sass +14 -0
- data/app/assets/stylesheets/sass/helpers/overflow.sass +2 -0
- data/app/assets/stylesheets/sass/helpers/position.sass +7 -0
- data/app/assets/stylesheets/sass/helpers/spacing.sass +31 -0
- data/app/assets/stylesheets/sass/helpers/typography.sass +100 -0
- data/app/assets/stylesheets/sass/helpers/visibility.sass +122 -0
- data/app/assets/stylesheets/sass/layout/_all.sass +4 -3
- data/app/assets/stylesheets/sass/layout/footer.sass +2 -0
- data/app/assets/stylesheets/sass/layout/hero.sass +6 -2
- data/app/assets/stylesheets/sass/layout/section.sass +2 -0
- data/app/assets/stylesheets/sass/utilities/_all.sass +7 -6
- data/app/assets/stylesheets/sass/utilities/animations.sass +1 -5
- data/app/assets/stylesheets/sass/utilities/controls.sass +2 -3
- data/app/assets/stylesheets/sass/utilities/derived-variables.sass +5 -1
- data/app/assets/stylesheets/sass/utilities/extends.sass +22 -0
- data/app/assets/stylesheets/sass/utilities/functions.sass +5 -0
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +1 -0
- data/app/assets/stylesheets/sass/utilities/mixins.sass +26 -19
- data/bulma-sass.gemspec +2 -2
- data/lib/bulma/sass/version.rb +1 -1
- data/release.sh +2 -2
- metadata +19 -9
- data/app/assets/stylesheets/sass/components/list.sass +0 -39
@@ -0,0 +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,8 +1,12 @@
|
|
1
|
+
@import "../utilities/mixins"
|
2
|
+
|
1
3
|
$hero-body-padding: 3rem 1.5rem !default
|
2
4
|
$hero-body-padding-small: 1.5rem !default
|
3
5
|
$hero-body-padding-medium: 9rem 1.5rem !default
|
4
6
|
$hero-body-padding-large: 18rem 1.5rem !default
|
5
7
|
|
8
|
+
$hero-colors: $colors !default
|
9
|
+
|
6
10
|
// Main container
|
7
11
|
.hero
|
8
12
|
align-items: stretch
|
@@ -15,7 +19,7 @@ $hero-body-padding-large: 18rem 1.5rem !default
|
|
15
19
|
ul
|
16
20
|
border-bottom: none
|
17
21
|
// Colors
|
18
|
-
@each $name, $pair in $colors
|
22
|
+
@each $name, $pair in $hero-colors
|
19
23
|
$color: nth($pair, 1)
|
20
24
|
$color-invert: nth($pair, 2)
|
21
25
|
&.is-#{$name}
|
@@ -130,7 +134,7 @@ $hero-body-padding-large: 18rem 1.5rem !default
|
|
130
134
|
display: flex
|
131
135
|
justify-content: center
|
132
136
|
.button:not(:last-child)
|
133
|
-
margin
|
137
|
+
+ltr-property("margin", 1.5rem)
|
134
138
|
|
135
139
|
// Containers
|
136
140
|
|
@@ -1,8 +1,9 @@
|
|
1
|
+
/* Bulma Utilities */
|
1
2
|
@charset "utf-8"
|
2
3
|
|
3
|
-
@import "initial-variables
|
4
|
-
@import "functions
|
5
|
-
@import "derived-variables
|
6
|
-
@import "
|
7
|
-
@import "
|
8
|
-
@import "
|
4
|
+
@import "initial-variables"
|
5
|
+
@import "functions"
|
6
|
+
@import "derived-variables"
|
7
|
+
@import "mixins"
|
8
|
+
@import "controls"
|
9
|
+
@import "extends"
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@import "derived-variables"
|
2
|
+
|
1
3
|
$control-radius: $radius !default
|
2
4
|
$control-radius-small: $radius-small !default
|
3
5
|
|
@@ -37,9 +39,6 @@ $control-padding-horizontal: calc(0.75em - #{$control-border-width}) !default
|
|
37
39
|
fieldset[disabled] &
|
38
40
|
cursor: not-allowed
|
39
41
|
|
40
|
-
%control
|
41
|
-
+control
|
42
|
-
|
43
42
|
// The controls sizes use mixins so they can be used at different breakpoints
|
44
43
|
=control-small
|
45
44
|
border-radius: $control-radius-small
|
@@ -1,3 +1,6 @@
|
|
1
|
+
@import "initial-variables"
|
2
|
+
@import "functions"
|
3
|
+
|
1
4
|
$primary: $turquoise !default
|
2
5
|
|
3
6
|
$info: $cyan !default
|
@@ -62,7 +65,7 @@ $text-strong: $grey-darker !default
|
|
62
65
|
|
63
66
|
// Code colors
|
64
67
|
|
65
|
-
$code: $red !default
|
68
|
+
$code: darken($red, 15%) !default
|
66
69
|
$code-background: $background !default
|
67
70
|
|
68
71
|
$pre: $text !default
|
@@ -101,6 +104,7 @@ $custom-colors: null !default
|
|
101
104
|
$custom-shades: null !default
|
102
105
|
|
103
106
|
$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
|
107
|
+
|
104
108
|
$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
|
105
109
|
|
106
110
|
$sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 $size-7 !default
|
@@ -1,4 +1,4 @@
|
|
1
|
-
@import "
|
1
|
+
@import "derived-variables"
|
2
2
|
|
3
3
|
=clearfix
|
4
4
|
&::after
|
@@ -128,6 +128,30 @@
|
|
128
128
|
@media screen and (min-width: $fullhd)
|
129
129
|
@content
|
130
130
|
|
131
|
+
=ltr
|
132
|
+
@if not $rtl
|
133
|
+
@content
|
134
|
+
|
135
|
+
=rtl
|
136
|
+
@if $rtl
|
137
|
+
@content
|
138
|
+
|
139
|
+
=ltr-property($property, $spacing, $right: true)
|
140
|
+
$normal: if($right, "right", "left")
|
141
|
+
$opposite: if($right, "left", "right")
|
142
|
+
@if $rtl
|
143
|
+
#{$property}-#{$opposite}: $spacing
|
144
|
+
@else
|
145
|
+
#{$property}-#{$normal}: $spacing
|
146
|
+
|
147
|
+
=ltr-position($spacing, $right: true)
|
148
|
+
$normal: if($right, "right", "left")
|
149
|
+
$opposite: if($right, "left", "right")
|
150
|
+
@if $rtl
|
151
|
+
#{$opposite}: $spacing
|
152
|
+
@else
|
153
|
+
#{$normal}: $spacing
|
154
|
+
|
131
155
|
// Placeholders
|
132
156
|
|
133
157
|
=unselectable
|
@@ -137,9 +161,6 @@
|
|
137
161
|
-ms-user-select: none
|
138
162
|
user-select: none
|
139
163
|
|
140
|
-
%unselectable
|
141
|
-
+unselectable
|
142
|
-
|
143
164
|
=arrow($color: transparent)
|
144
165
|
border: 3px solid $color
|
145
166
|
border-radius: 2px
|
@@ -156,18 +177,12 @@
|
|
156
177
|
transform-origin: center
|
157
178
|
width: 0.625em
|
158
179
|
|
159
|
-
%arrow
|
160
|
-
+arrow
|
161
|
-
|
162
180
|
=block($spacing: $block-spacing)
|
163
181
|
&:not(:last-child)
|
164
182
|
margin-bottom: $spacing
|
165
183
|
|
166
|
-
%block
|
167
|
-
+block
|
168
|
-
|
169
184
|
=delete
|
170
|
-
|
185
|
+
+unselectable
|
171
186
|
-moz-appearance: none
|
172
187
|
-webkit-appearance: none
|
173
188
|
background-color: bulmaRgba($scheme-invert, 0.2)
|
@@ -232,9 +247,6 @@
|
|
232
247
|
min-width: 32px
|
233
248
|
width: 32px
|
234
249
|
|
235
|
-
%delete
|
236
|
-
+delete
|
237
|
-
|
238
250
|
=loader
|
239
251
|
animation: spinAround 500ms infinite linear
|
240
252
|
border: 2px solid $grey-lighter
|
@@ -247,9 +259,6 @@
|
|
247
259
|
position: relative
|
248
260
|
width: 1em
|
249
261
|
|
250
|
-
%loader
|
251
|
-
+loader
|
252
|
-
|
253
262
|
=overlay($offset: 0)
|
254
263
|
bottom: $offset
|
255
264
|
left: $offset
|
@@ -257,5 +266,3 @@
|
|
257
266
|
right: $offset
|
258
267
|
top: $offset
|
259
268
|
|
260
|
-
%overlay
|
261
|
-
+overlay
|
data/bulma-sass.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
spec.add_runtime_dependency 'sass', '~> 3.2'
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler", "~>
|
25
|
-
spec.add_development_dependency "rake", "~>
|
24
|
+
spec.add_development_dependency "bundler", "~> 2"
|
25
|
+
spec.add_development_dependency "rake", "~> 12.3.3"
|
26
26
|
|
27
27
|
end
|
data/lib/bulma/sass/version.rb
CHANGED
data/release.sh
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bulma-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bananaappletw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 12.3.3
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 12.3.3
|
55
55
|
description: Bulma, modern CSS framework based on Flexbox.
|
56
56
|
email:
|
57
57
|
- bananaappletw@gmail.com
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- Rakefile
|
67
67
|
- app/assets/stylesheets/bulma.sass
|
68
68
|
- app/assets/stylesheets/sass/base/_all.sass
|
69
|
+
- app/assets/stylesheets/sass/base/animations.sass
|
69
70
|
- app/assets/stylesheets/sass/base/generic.sass
|
70
71
|
- app/assets/stylesheets/sass/base/helpers.sass
|
71
72
|
- app/assets/stylesheets/sass/base/minireset.sass
|
@@ -74,7 +75,6 @@ files:
|
|
74
75
|
- app/assets/stylesheets/sass/components/card.sass
|
75
76
|
- app/assets/stylesheets/sass/components/dropdown.sass
|
76
77
|
- app/assets/stylesheets/sass/components/level.sass
|
77
|
-
- app/assets/stylesheets/sass/components/list.sass
|
78
78
|
- app/assets/stylesheets/sass/components/media.sass
|
79
79
|
- app/assets/stylesheets/sass/components/menu.sass
|
80
80
|
- app/assets/stylesheets/sass/components/message.sass
|
@@ -107,6 +107,16 @@ files:
|
|
107
107
|
- app/assets/stylesheets/sass/grid/_all.sass
|
108
108
|
- app/assets/stylesheets/sass/grid/columns.sass
|
109
109
|
- app/assets/stylesheets/sass/grid/tiles.sass
|
110
|
+
- app/assets/stylesheets/sass/helpers/_all.sass
|
111
|
+
- app/assets/stylesheets/sass/helpers/color.sass
|
112
|
+
- app/assets/stylesheets/sass/helpers/flexbox.sass
|
113
|
+
- app/assets/stylesheets/sass/helpers/float.sass
|
114
|
+
- app/assets/stylesheets/sass/helpers/other.sass
|
115
|
+
- app/assets/stylesheets/sass/helpers/overflow.sass
|
116
|
+
- app/assets/stylesheets/sass/helpers/position.sass
|
117
|
+
- app/assets/stylesheets/sass/helpers/spacing.sass
|
118
|
+
- app/assets/stylesheets/sass/helpers/typography.sass
|
119
|
+
- app/assets/stylesheets/sass/helpers/visibility.sass
|
110
120
|
- app/assets/stylesheets/sass/layout/_all.sass
|
111
121
|
- app/assets/stylesheets/sass/layout/footer.sass
|
112
122
|
- app/assets/stylesheets/sass/layout/hero.sass
|
@@ -115,6 +125,7 @@ files:
|
|
115
125
|
- app/assets/stylesheets/sass/utilities/animations.sass
|
116
126
|
- app/assets/stylesheets/sass/utilities/controls.sass
|
117
127
|
- app/assets/stylesheets/sass/utilities/derived-variables.sass
|
128
|
+
- app/assets/stylesheets/sass/utilities/extends.sass
|
118
129
|
- app/assets/stylesheets/sass/utilities/functions.sass
|
119
130
|
- app/assets/stylesheets/sass/utilities/initial-variables.sass
|
120
131
|
- app/assets/stylesheets/sass/utilities/mixins.sass
|
@@ -149,8 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
160
|
- !ruby/object:Gem::Version
|
150
161
|
version: '0'
|
151
162
|
requirements: []
|
152
|
-
|
153
|
-
rubygems_version: 2.7.6
|
163
|
+
rubygems_version: 3.1.2
|
154
164
|
signing_key:
|
155
165
|
specification_version: 4
|
156
166
|
summary: Bulma, modern CSS framework based on Flexbox.
|
@@ -1,39 +0,0 @@
|
|
1
|
-
$list-background-color: $scheme-main !default
|
2
|
-
$list-shadow: 0 2px 3px rgba($scheme-invert, 0.1), 0 0 0 1px rgba($scheme-invert, 0.1) !default
|
3
|
-
$list-radius: $radius !default
|
4
|
-
|
5
|
-
$list-item-border: 1px solid $border !default
|
6
|
-
$list-item-color: $text !default
|
7
|
-
$list-item-active-background-color: $link !default
|
8
|
-
$list-item-active-color: $link-invert !default
|
9
|
-
$list-item-hover-background-color: $background !default
|
10
|
-
|
11
|
-
.list
|
12
|
-
@extend %block
|
13
|
-
background-color: $list-background-color
|
14
|
-
border-radius: $list-radius
|
15
|
-
box-shadow: $list-shadow
|
16
|
-
// &.is-hoverable > .list-item:hover:not(.is-active)
|
17
|
-
// background-color: $list-item-hover-background-color
|
18
|
-
// cursor: pointer
|
19
|
-
|
20
|
-
.list-item
|
21
|
-
display: block
|
22
|
-
padding: 0.5em 1em
|
23
|
-
&:not(a)
|
24
|
-
color: $list-item-color
|
25
|
-
&:first-child
|
26
|
-
border-top-left-radius: $list-radius
|
27
|
-
border-top-right-radius: $list-radius
|
28
|
-
&:last-child
|
29
|
-
border-bottom-left-radius: $list-radius
|
30
|
-
border-bottom-right-radius: $list-radius
|
31
|
-
&:not(:last-child)
|
32
|
-
border-bottom: $list-item-border
|
33
|
-
&.is-active
|
34
|
-
background-color: $list-item-active-background-color
|
35
|
-
color: $list-item-active-color
|
36
|
-
|
37
|
-
a.list-item
|
38
|
-
background-color: $list-item-hover-background-color
|
39
|
-
cursor: pointer
|