bulma-sass 0.0.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +2 -0
- data/app/assets/stylesheets/bulma.sass +7 -8
- data/app/assets/stylesheets/sass/base/_all.sass +5 -0
- data/app/assets/stylesheets/sass/base/generic.sass +127 -0
- data/app/assets/stylesheets/sass/base/helpers.sass +203 -0
- data/app/assets/stylesheets/sass/base/minireset.sass +80 -0
- data/app/assets/stylesheets/sass/components/_all.sass +14 -0
- data/app/assets/stylesheets/sass/components/breadcrumb.sass +74 -0
- data/app/assets/stylesheets/sass/components/card.sass +67 -0
- data/app/assets/stylesheets/sass/components/dropdown.sass +74 -0
- data/app/assets/stylesheets/sass/components/level.sass +75 -0
- data/app/assets/stylesheets/sass/components/media.sass +44 -0
- data/app/assets/stylesheets/sass/components/menu.sass +50 -0
- data/app/assets/stylesheets/sass/components/message.sass +79 -0
- data/app/assets/stylesheets/sass/components/modal.sass +111 -0
- data/app/assets/stylesheets/sass/components/navbar.sass +301 -0
- data/app/assets/stylesheets/sass/components/pagination.sass +134 -0
- data/app/assets/stylesheets/sass/components/panel.sass +101 -0
- data/app/assets/stylesheets/sass/components/tabs.sass +141 -0
- data/app/assets/stylesheets/sass/elements/_all.sass +16 -0
- data/app/assets/stylesheets/sass/elements/box.sass +24 -0
- data/app/assets/stylesheets/sass/elements/button.sass +201 -0
- data/app/assets/stylesheets/sass/elements/container.sass +25 -0
- data/app/assets/stylesheets/sass/elements/content.sass +145 -0
- data/app/assets/stylesheets/sass/elements/form.sass +605 -0
- data/app/assets/stylesheets/sass/elements/icon.sass +21 -0
- data/app/assets/stylesheets/sass/elements/image.sass +36 -0
- data/app/assets/stylesheets/sass/elements/notification.sass +35 -0
- data/app/assets/stylesheets/sass/elements/other.sass +39 -0
- data/app/assets/stylesheets/sass/elements/progress.sass +35 -0
- data/app/assets/stylesheets/sass/elements/table.sass +104 -0
- data/app/assets/stylesheets/sass/elements/tag.sass +89 -0
- data/app/assets/stylesheets/sass/elements/title.sass +55 -0
- data/app/assets/stylesheets/sass/grid/_all.sass +4 -0
- data/app/assets/stylesheets/sass/grid/columns.sass +328 -0
- data/app/assets/stylesheets/sass/grid/tiles.sass +32 -0
- data/app/assets/stylesheets/sass/layout/_all.sass +5 -0
- data/app/assets/stylesheets/sass/layout/footer.sass +5 -0
- data/app/assets/stylesheets/sass/layout/hero.sass +155 -0
- data/app/assets/stylesheets/sass/layout/section.sass +13 -0
- data/app/assets/stylesheets/sass/utilities/_all.sass +8 -0
- data/app/assets/stylesheets/{bulma → sass}/utilities/animations.sass +1 -1
- data/app/assets/stylesheets/sass/utilities/controls.sass +41 -0
- data/app/assets/stylesheets/sass/utilities/derived-variables.sass +82 -0
- data/app/assets/stylesheets/{bulma → sass}/utilities/functions.sass +7 -13
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +65 -0
- data/app/assets/stylesheets/sass/utilities/mixins.sass +226 -0
- data/lib/bulma/sass/version.rb +1 -1
- metadata +46 -32
- data/app/assets/stylesheets/bulma/base/base.sass +0 -6
- data/app/assets/stylesheets/bulma/base/content.sass +0 -51
- data/app/assets/stylesheets/bulma/base/generic.sass +0 -101
- data/app/assets/stylesheets/bulma/base/helpers.sass +0 -27
- data/app/assets/stylesheets/bulma/base/highlight.sass +0 -123
- data/app/assets/stylesheets/bulma/components/card.sass +0 -36
- data/app/assets/stylesheets/bulma/components/components.sass +0 -11
- data/app/assets/stylesheets/bulma/components/grid.sass +0 -48
- data/app/assets/stylesheets/bulma/components/media.sass +0 -69
- data/app/assets/stylesheets/bulma/components/menu.sass +0 -25
- data/app/assets/stylesheets/bulma/components/navbar.sass +0 -45
- data/app/assets/stylesheets/bulma/components/table.sass +0 -73
- data/app/assets/stylesheets/bulma/components/tabs.sass +0 -84
- data/app/assets/stylesheets/bulma/config/generated-variables.sass +0 -74
- data/app/assets/stylesheets/bulma/config/variables.sass +0 -41
- data/app/assets/stylesheets/bulma/elements/buttons.sass +0 -96
- data/app/assets/stylesheets/bulma/elements/controls.sass +0 -213
- data/app/assets/stylesheets/bulma/elements/elements.sass +0 -172
- data/app/assets/stylesheets/bulma/elements/messages.sass +0 -41
- data/app/assets/stylesheets/bulma/elements/notifications.sass +0 -20
- data/app/assets/stylesheets/bulma/elements/titles.sass +0 -57
- data/app/assets/stylesheets/bulma/layout/footer.sass +0 -11
- data/app/assets/stylesheets/bulma/layout/header.sass +0 -149
- data/app/assets/stylesheets/bulma/layout/hero.sass +0 -148
- data/app/assets/stylesheets/bulma/layout/layout.sass +0 -6
- data/app/assets/stylesheets/bulma/layout/section.sass +0 -11
- data/app/assets/stylesheets/bulma/utilities/mixins.sass +0 -83
- data/app/assets/stylesheets/bulma/utilities/reset.sass +0 -174
- data/app/assets/stylesheets/bulma/utilities/utilities.sass +0 -6
@@ -0,0 +1,111 @@
|
|
1
|
+
$modal-z: 20 !default
|
2
|
+
|
3
|
+
$modal-background-background-color: rgba($black, 0.86) !default
|
4
|
+
|
5
|
+
$modal-content-width: 640px !default
|
6
|
+
$modal-content-margin-mobile: 20px !default
|
7
|
+
$modal-content-spacing-mobile: 160px !default
|
8
|
+
$modal-content-spacing-tablet: 40px !default
|
9
|
+
|
10
|
+
$modal-close-dimensions: 40px !default
|
11
|
+
$modal-close-right: 20px !default
|
12
|
+
$modal-close-top: 20px !default
|
13
|
+
|
14
|
+
$modal-card-spacing: 40px !default
|
15
|
+
|
16
|
+
$modal-card-head-background-color: $background !default
|
17
|
+
$modal-card-head-border-bottom: 1px solid $border !default
|
18
|
+
$modal-card-head-padding: 20px !default
|
19
|
+
$modal-card-head-radius: $radius-large !default
|
20
|
+
|
21
|
+
$modal-card-title-color: $text-strong !default
|
22
|
+
$modal-card-title-line-height: 1 !default
|
23
|
+
$modal-card-title-size: $size-4 !default
|
24
|
+
|
25
|
+
$modal-card-foot-radius: $radius-large !default
|
26
|
+
$modal-card-foot-border-top: 1px solid $border !default
|
27
|
+
|
28
|
+
$modal-card-body-background-color: $white !default
|
29
|
+
$modal-card-body-padding: 20px !default
|
30
|
+
|
31
|
+
.modal
|
32
|
+
+overlay
|
33
|
+
align-items: center
|
34
|
+
display: none
|
35
|
+
justify-content: center
|
36
|
+
overflow: hidden
|
37
|
+
position: fixed
|
38
|
+
z-index: $modal-z
|
39
|
+
// Modifiers
|
40
|
+
&.is-active
|
41
|
+
display: flex
|
42
|
+
|
43
|
+
.modal-background
|
44
|
+
+overlay
|
45
|
+
background-color: $modal-background-background-color
|
46
|
+
|
47
|
+
.modal-content,
|
48
|
+
.modal-card
|
49
|
+
margin: 0 $modal-content-margin-mobile
|
50
|
+
max-height: calc(100vh - #{$modal-content-spacing-mobile})
|
51
|
+
overflow: auto
|
52
|
+
position: relative
|
53
|
+
width: 100%
|
54
|
+
// Responsiveness
|
55
|
+
+tablet
|
56
|
+
margin: 0 auto
|
57
|
+
max-height: calc(100vh - #{$modal-content-spacing-tablet})
|
58
|
+
width: $modal-content-width
|
59
|
+
|
60
|
+
.modal-close
|
61
|
+
+delete
|
62
|
+
background: none
|
63
|
+
height: $modal-close-dimensions
|
64
|
+
position: fixed
|
65
|
+
right: $modal-close-right
|
66
|
+
top: $modal-close-top
|
67
|
+
width: $modal-close-dimensions
|
68
|
+
|
69
|
+
.modal-card
|
70
|
+
display: flex
|
71
|
+
flex-direction: column
|
72
|
+
max-height: calc(100vh - #{$modal-card-spacing})
|
73
|
+
overflow: hidden
|
74
|
+
|
75
|
+
.modal-card-head,
|
76
|
+
.modal-card-foot
|
77
|
+
align-items: center
|
78
|
+
background-color: $modal-card-head-background-color
|
79
|
+
display: flex
|
80
|
+
flex-shrink: 0
|
81
|
+
justify-content: flex-start
|
82
|
+
padding: $modal-card-head-padding
|
83
|
+
position: relative
|
84
|
+
|
85
|
+
.modal-card-head
|
86
|
+
border-bottom: $modal-card-head-border-bottom
|
87
|
+
border-top-left-radius: $modal-card-head-radius
|
88
|
+
border-top-right-radius: $modal-card-head-radius
|
89
|
+
|
90
|
+
.modal-card-title
|
91
|
+
color: $modal-card-title-color
|
92
|
+
flex-grow: 1
|
93
|
+
flex-shrink: 0
|
94
|
+
font-size: $modal-card-title-size
|
95
|
+
line-height: $modal-card-title-line-height
|
96
|
+
|
97
|
+
.modal-card-foot
|
98
|
+
border-bottom-left-radius: $modal-card-foot-radius
|
99
|
+
border-bottom-right-radius: $modal-card-foot-radius
|
100
|
+
border-top: $modal-card-foot-border-top
|
101
|
+
.button
|
102
|
+
&:not(:last-child)
|
103
|
+
margin-right: 10px
|
104
|
+
|
105
|
+
.modal-card-body
|
106
|
+
+overflow-touch
|
107
|
+
background-color: $modal-card-body-background-color
|
108
|
+
flex-grow: 1
|
109
|
+
flex-shrink: 1
|
110
|
+
overflow: auto
|
111
|
+
padding: $modal-card-body-padding
|
@@ -0,0 +1,301 @@
|
|
1
|
+
$navbar-background-color: $white !default
|
2
|
+
$navbar-height: 3.25rem !default
|
3
|
+
|
4
|
+
$navbar-item-color: $grey-dark !default
|
5
|
+
$navbar-item-hover-color: $black !default
|
6
|
+
$navbar-item-hover-background-color: $background !default
|
7
|
+
$navbar-item-active-color: $black !default
|
8
|
+
$navbar-item-active-background-color: transparent !default
|
9
|
+
$navbar-item-img-max-height: 1.75rem !default
|
10
|
+
|
11
|
+
$navbar-tab-hover-background-color: transparent !default
|
12
|
+
$navbar-tab-hover-border-bottom-color: $link !default
|
13
|
+
$navbar-tab-active-color: $link !default
|
14
|
+
$navbar-tab-active-background-color: transparent !default
|
15
|
+
$navbar-tab-active-border-bottom-color: $link !default
|
16
|
+
$navbar-tab-active-border-bottom-style: solid !default
|
17
|
+
$navbar-tab-active-border-bottom-width: 3px !default
|
18
|
+
|
19
|
+
$navbar-dropdown-background-color: $white !default
|
20
|
+
$navbar-dropdown-border-top: 1px solid $border !default
|
21
|
+
$navbar-dropdown-offset: -4px !default
|
22
|
+
$navbar-dropdown-arrow: $link !default
|
23
|
+
$navbar-dropdown-radius: $radius-large !default
|
24
|
+
$navbar-dropdown-z: 20 !default
|
25
|
+
|
26
|
+
$navbar-dropdown-boxed-radius: $radius-large !default
|
27
|
+
$navbar-dropdown-boxed-shadow: 0 8px 8px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default
|
28
|
+
|
29
|
+
$navbar-dropdown-item-hover-color: $black !default
|
30
|
+
$navbar-dropdown-item-hover-background-color: $background !default
|
31
|
+
$navbar-dropdown-item-active-color: $link !default
|
32
|
+
$navbar-dropdown-item-active-background-color: $background !default
|
33
|
+
|
34
|
+
$navbar-divider-background-color: $border !default
|
35
|
+
|
36
|
+
.navbar
|
37
|
+
background-color: $navbar-background-color
|
38
|
+
min-height: $navbar-height
|
39
|
+
position: relative
|
40
|
+
@each $name, $pair in $colors
|
41
|
+
$color: nth($pair, 1)
|
42
|
+
$color-invert: nth($pair, 2)
|
43
|
+
&.is-#{$name}
|
44
|
+
background-color: $color
|
45
|
+
color: $color-invert
|
46
|
+
.navbar-brand
|
47
|
+
& > .navbar-item,
|
48
|
+
.navbar-link
|
49
|
+
color: $color-invert
|
50
|
+
& > a.navbar-item,
|
51
|
+
.navbar-link
|
52
|
+
&:hover,
|
53
|
+
&.is-active
|
54
|
+
background-color: darken($color, 5%)
|
55
|
+
color: $color-invert
|
56
|
+
.navbar-link
|
57
|
+
&::after
|
58
|
+
border-color: $color-invert
|
59
|
+
+desktop
|
60
|
+
.navbar-start,
|
61
|
+
.navbar-end
|
62
|
+
& > .navbar-item,
|
63
|
+
.navbar-link
|
64
|
+
color: $color-invert
|
65
|
+
& > a.navbar-item,
|
66
|
+
.navbar-link
|
67
|
+
&:hover,
|
68
|
+
&.is-active
|
69
|
+
background-color: darken($color, 5%)
|
70
|
+
color: $color-invert
|
71
|
+
.navbar-link
|
72
|
+
&::after
|
73
|
+
border-color: $color-invert
|
74
|
+
.navbar-item.has-dropdown:hover .navbar-link,
|
75
|
+
.navbar-item.has-dropdown.is-active .navbar-link
|
76
|
+
background-color: darken($color, 5%)
|
77
|
+
color: $color-invert
|
78
|
+
.navbar-dropdown
|
79
|
+
a.navbar-item
|
80
|
+
&.is-active
|
81
|
+
background-color: $color
|
82
|
+
color: $color-invert
|
83
|
+
& > .container
|
84
|
+
align-items: stretch
|
85
|
+
display: flex
|
86
|
+
min-height: $navbar-height
|
87
|
+
width: 100%
|
88
|
+
&.has-shadow
|
89
|
+
box-shadow: 0 2px 3px rgba($black, 0.1)
|
90
|
+
|
91
|
+
.navbar-brand,
|
92
|
+
.navbar-tabs
|
93
|
+
align-items: stretch
|
94
|
+
display: flex
|
95
|
+
flex-shrink: 0
|
96
|
+
min-height: $navbar-height
|
97
|
+
|
98
|
+
.navbar-tabs
|
99
|
+
+overflow-touch
|
100
|
+
max-width: 100vw
|
101
|
+
overflow-x: auto
|
102
|
+
overflow-y: hidden
|
103
|
+
|
104
|
+
.navbar-burger
|
105
|
+
+hamburger($navbar-height)
|
106
|
+
margin-left: auto
|
107
|
+
|
108
|
+
.navbar-menu
|
109
|
+
display: none
|
110
|
+
|
111
|
+
.navbar-item,
|
112
|
+
.navbar-link
|
113
|
+
color: $navbar-item-color
|
114
|
+
display: block
|
115
|
+
line-height: 1.5
|
116
|
+
padding: 0.5rem 1rem
|
117
|
+
position: relative
|
118
|
+
|
119
|
+
a.navbar-item,
|
120
|
+
.navbar-link
|
121
|
+
&:hover,
|
122
|
+
&.is-active
|
123
|
+
background-color: $navbar-item-hover-background-color
|
124
|
+
color: $navbar-item-hover-color
|
125
|
+
|
126
|
+
.navbar-item
|
127
|
+
flex-grow: 0
|
128
|
+
flex-shrink: 0
|
129
|
+
img
|
130
|
+
max-height: $navbar-item-img-max-height
|
131
|
+
&.has-dropdown
|
132
|
+
padding: 0
|
133
|
+
&.is-tab
|
134
|
+
border-bottom: 1px solid transparent
|
135
|
+
min-height: $navbar-height
|
136
|
+
padding-bottom: calc(0.5rem - 1px)
|
137
|
+
&:hover
|
138
|
+
background-color: $navbar-tab-hover-background-color
|
139
|
+
border-bottom-color: $navbar-tab-hover-border-bottom-color
|
140
|
+
&.is-active
|
141
|
+
background-color: $navbar-tab-active-background-color
|
142
|
+
border-bottom-color: $navbar-tab-active-border-bottom-color
|
143
|
+
border-bottom-style: $navbar-tab-active-border-bottom-style
|
144
|
+
border-bottom-width: $navbar-tab-active-border-bottom-width
|
145
|
+
color: $navbar-tab-active-color
|
146
|
+
padding-bottom: calc(0.5rem - #{$navbar-tab-active-border-bottom-width})
|
147
|
+
|
148
|
+
.navbar-content
|
149
|
+
flex-grow: 1
|
150
|
+
flex-shrink: 1
|
151
|
+
|
152
|
+
.navbar-link
|
153
|
+
padding-right: 2.5em
|
154
|
+
|
155
|
+
.navbar-dropdown
|
156
|
+
font-size: 0.875rem
|
157
|
+
padding-bottom: 0.5rem
|
158
|
+
padding-top: 0.5rem
|
159
|
+
.navbar-item
|
160
|
+
padding-left: 1.5rem
|
161
|
+
padding-right: 1.5rem
|
162
|
+
|
163
|
+
.navbar-divider
|
164
|
+
background-color: $navbar-divider-background-color
|
165
|
+
border: none
|
166
|
+
display: none
|
167
|
+
height: 1px
|
168
|
+
margin: 0.5rem 0
|
169
|
+
|
170
|
+
+touch
|
171
|
+
.navbar > .container
|
172
|
+
display: block
|
173
|
+
.navbar-brand,
|
174
|
+
.navbar-tabs
|
175
|
+
.navbar-item
|
176
|
+
align-items: center
|
177
|
+
display: flex
|
178
|
+
.navbar-menu
|
179
|
+
background-color: $white
|
180
|
+
box-shadow: 0 8px 16px rgba($black, 0.1)
|
181
|
+
padding: 0.5rem 0
|
182
|
+
&.is-active
|
183
|
+
display: block
|
184
|
+
|
185
|
+
+desktop
|
186
|
+
.navbar,
|
187
|
+
.navbar-menu,
|
188
|
+
.navbar-start,
|
189
|
+
.navbar-end
|
190
|
+
align-items: stretch
|
191
|
+
display: flex
|
192
|
+
.navbar
|
193
|
+
min-height: $navbar-height
|
194
|
+
&.is-transparent
|
195
|
+
a.navbar-item,
|
196
|
+
.navbar-link
|
197
|
+
&:hover,
|
198
|
+
&.is-active
|
199
|
+
background-color: transparent !important
|
200
|
+
.navbar-item.has-dropdown
|
201
|
+
&.is-active,
|
202
|
+
&.is-hoverable:hover
|
203
|
+
.navbar-link
|
204
|
+
background-color: transparent !important
|
205
|
+
.navbar-dropdown
|
206
|
+
a.navbar-item
|
207
|
+
&:hover
|
208
|
+
background-color: $navbar-dropdown-item-hover-background-color
|
209
|
+
color: $navbar-dropdown-item-hover-color
|
210
|
+
&.is-active
|
211
|
+
background-color: $navbar-dropdown-item-active-background-color
|
212
|
+
color: $navbar-dropdown-item-active-color
|
213
|
+
.navbar-burger
|
214
|
+
display: none
|
215
|
+
.navbar-item,
|
216
|
+
.navbar-link
|
217
|
+
align-items: center
|
218
|
+
display: flex
|
219
|
+
.navbar-item
|
220
|
+
&.has-dropdown
|
221
|
+
align-items: stretch
|
222
|
+
&.is-active,
|
223
|
+
&.is-hoverable:hover
|
224
|
+
.navbar-dropdown
|
225
|
+
display: block
|
226
|
+
&.is-boxed
|
227
|
+
opacity: 1
|
228
|
+
pointer-events: auto
|
229
|
+
transform: translateY(0)
|
230
|
+
.navbar-link
|
231
|
+
&::after
|
232
|
+
+arrow($navbar-dropdown-arrow)
|
233
|
+
margin-top: -0.375em
|
234
|
+
right: 1.125em
|
235
|
+
top: 50%
|
236
|
+
.navbar-menu
|
237
|
+
flex-grow: 1
|
238
|
+
flex-shrink: 0
|
239
|
+
.navbar-start
|
240
|
+
justify-content: flex-start
|
241
|
+
margin-right: auto
|
242
|
+
.navbar-end
|
243
|
+
justify-content: flex-end
|
244
|
+
margin-left: auto
|
245
|
+
.navbar-dropdown
|
246
|
+
background-color: $navbar-dropdown-background-color
|
247
|
+
border-bottom-left-radius: $navbar-dropdown-radius
|
248
|
+
border-bottom-right-radius: $navbar-dropdown-radius
|
249
|
+
border-top: $navbar-dropdown-border-top
|
250
|
+
box-shadow: 0 8px 8px rgba($black, 0.1)
|
251
|
+
display: none
|
252
|
+
font-size: 0.875rem
|
253
|
+
left: 0
|
254
|
+
min-width: 100%
|
255
|
+
position: absolute
|
256
|
+
top: 100%
|
257
|
+
z-index: $navbar-dropdown-z
|
258
|
+
.navbar-item
|
259
|
+
padding: 0.375rem 1rem
|
260
|
+
white-space: nowrap
|
261
|
+
a.navbar-item
|
262
|
+
padding-right: 3rem
|
263
|
+
&:hover
|
264
|
+
background-color: $navbar-dropdown-item-hover-background-color
|
265
|
+
color: $navbar-dropdown-item-hover-color
|
266
|
+
&.is-active
|
267
|
+
background-color: $navbar-dropdown-item-active-background-color
|
268
|
+
color: $navbar-dropdown-item-active-color
|
269
|
+
&.is-boxed
|
270
|
+
border-radius: $navbar-dropdown-boxed-radius
|
271
|
+
border-top: none
|
272
|
+
box-shadow: $navbar-dropdown-boxed-shadow
|
273
|
+
display: block
|
274
|
+
opacity: 0
|
275
|
+
pointer-events: none
|
276
|
+
top: calc(100% + (#{$navbar-dropdown-offset}))
|
277
|
+
transform: translateY(-5px)
|
278
|
+
transition-duration: $speed
|
279
|
+
transition-property: opacity, transform
|
280
|
+
&.is-right
|
281
|
+
left: auto
|
282
|
+
right: 0
|
283
|
+
.navbar-divider
|
284
|
+
display: block
|
285
|
+
.container > .navbar
|
286
|
+
.navbar-brand
|
287
|
+
margin-left: -1rem
|
288
|
+
.navbar-menu
|
289
|
+
margin-right: -1rem
|
290
|
+
// Hover/Active states
|
291
|
+
a.navbar-item,
|
292
|
+
.navbar-link
|
293
|
+
&.is-active
|
294
|
+
color: $navbar-item-active-color
|
295
|
+
&.is-active:not(:hover)
|
296
|
+
background-color: $navbar-item-active-background-color
|
297
|
+
.navbar-item.has-dropdown
|
298
|
+
&:hover,
|
299
|
+
&.is-active
|
300
|
+
.navbar-link
|
301
|
+
background-color: $navbar-item-hover-background-color
|
@@ -0,0 +1,134 @@
|
|
1
|
+
$pagination-color: $grey-darker !default
|
2
|
+
$pagination-border-color: $grey-lighter !default
|
3
|
+
$pagination-margin: -0.25rem !default
|
4
|
+
|
5
|
+
$pagination-hover-color: $link-hover !default
|
6
|
+
$pagination-hover-border-color: $link-hover-border !default
|
7
|
+
|
8
|
+
$pagination-focus-color: $link-focus !default
|
9
|
+
$pagination-focus-border-color: $link-focus-border !default
|
10
|
+
|
11
|
+
$pagination-active-color: $link-active !default
|
12
|
+
$pagination-active-border-color: $link-active-border !default
|
13
|
+
|
14
|
+
$pagination-disabled-color: $grey !default
|
15
|
+
$pagination-disabled-background-color: $grey-lighter !default
|
16
|
+
$pagination-disabled-border-color: $grey-lighter !default
|
17
|
+
|
18
|
+
$pagination-current-color: $link-invert !default
|
19
|
+
$pagination-current-background-color: $link !default
|
20
|
+
$pagination-current-border-color: $link !default
|
21
|
+
|
22
|
+
$pagination-ellipsis-color: $grey-light !default
|
23
|
+
|
24
|
+
$pagination-shadow-inset: inset 0 1px 2px rgba($black, 0.2)
|
25
|
+
|
26
|
+
.pagination
|
27
|
+
font-size: $size-normal
|
28
|
+
margin: $pagination-margin
|
29
|
+
// Sizes
|
30
|
+
&.is-small
|
31
|
+
font-size: $size-small
|
32
|
+
&.is-medium
|
33
|
+
font-size: $size-medium
|
34
|
+
&.is-large
|
35
|
+
font-size: $size-large
|
36
|
+
|
37
|
+
.pagination,
|
38
|
+
.pagination-list
|
39
|
+
align-items: center
|
40
|
+
display: flex
|
41
|
+
justify-content: center
|
42
|
+
text-align: center
|
43
|
+
|
44
|
+
.pagination-previous,
|
45
|
+
.pagination-next,
|
46
|
+
.pagination-link,
|
47
|
+
.pagination-ellipsis
|
48
|
+
+control
|
49
|
+
+unselectable
|
50
|
+
font-size: 1em
|
51
|
+
padding-left: 0.5em
|
52
|
+
padding-right: 0.5em
|
53
|
+
justify-content: center
|
54
|
+
margin: 0.25rem
|
55
|
+
text-align: center
|
56
|
+
|
57
|
+
.pagination-previous,
|
58
|
+
.pagination-next,
|
59
|
+
.pagination-link
|
60
|
+
border-color: $pagination-border-color
|
61
|
+
min-width: 2.25em
|
62
|
+
&:hover
|
63
|
+
border-color: $pagination-hover-border-color
|
64
|
+
color: $pagination-hover-color
|
65
|
+
&:focus
|
66
|
+
border-color: $pagination-focus-border-color
|
67
|
+
&:active
|
68
|
+
box-shadow: $pagination-shadow-inset
|
69
|
+
&[disabled]
|
70
|
+
background-color: $pagination-disabled-background-color
|
71
|
+
border-color: $pagination-disabled-border-color
|
72
|
+
box-shadow: none
|
73
|
+
color: $pagination-disabled-color
|
74
|
+
opacity: 0.5
|
75
|
+
|
76
|
+
.pagination-previous,
|
77
|
+
.pagination-next
|
78
|
+
padding-left: 0.75em
|
79
|
+
padding-right: 0.75em
|
80
|
+
white-space: nowrap
|
81
|
+
|
82
|
+
.pagination-link
|
83
|
+
&.is-current
|
84
|
+
background-color: $pagination-current-background-color
|
85
|
+
border-color: $pagination-current-border-color
|
86
|
+
color: $pagination-current-color
|
87
|
+
|
88
|
+
.pagination-ellipsis
|
89
|
+
color: $pagination-ellipsis-color
|
90
|
+
pointer-events: none
|
91
|
+
|
92
|
+
.pagination-list
|
93
|
+
flex-wrap: wrap
|
94
|
+
|
95
|
+
+mobile
|
96
|
+
.pagination
|
97
|
+
flex-wrap: wrap
|
98
|
+
.pagination-previous,
|
99
|
+
.pagination-next
|
100
|
+
flex-grow: 1
|
101
|
+
flex-shrink: 1
|
102
|
+
.pagination-list
|
103
|
+
li
|
104
|
+
flex-grow: 1
|
105
|
+
flex-shrink: 1
|
106
|
+
|
107
|
+
+tablet
|
108
|
+
.pagination-list
|
109
|
+
flex-grow: 1
|
110
|
+
flex-shrink: 1
|
111
|
+
justify-content: flex-start
|
112
|
+
order: 1
|
113
|
+
.pagination-previous
|
114
|
+
order: 2
|
115
|
+
.pagination-next
|
116
|
+
order: 3
|
117
|
+
.pagination
|
118
|
+
justify-content: space-between
|
119
|
+
&.is-centered
|
120
|
+
.pagination-previous
|
121
|
+
order: 1
|
122
|
+
.pagination-list
|
123
|
+
justify-content: center
|
124
|
+
order: 2
|
125
|
+
.pagination-next
|
126
|
+
order: 3
|
127
|
+
&.is-right
|
128
|
+
.pagination-previous
|
129
|
+
order: 1
|
130
|
+
.pagination-next
|
131
|
+
order: 2
|
132
|
+
.pagination-list
|
133
|
+
justify-content: flex-end
|
134
|
+
order: 3
|