bulma-sass 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/bulma.sass +1 -1
  3. data/app/assets/stylesheets/sass/base/helpers.sass +12 -2
  4. data/app/assets/stylesheets/sass/components/_all.sass +1 -0
  5. data/app/assets/stylesheets/sass/components/breadcrumb.sass +2 -2
  6. data/app/assets/stylesheets/sass/components/card.sass +3 -3
  7. data/app/assets/stylesheets/sass/components/dropdown.sass +4 -1
  8. data/app/assets/stylesheets/sass/components/level.sass +2 -2
  9. data/app/assets/stylesheets/sass/components/list.sass +39 -0
  10. data/app/assets/stylesheets/sass/components/media.sass +4 -0
  11. data/app/assets/stylesheets/sass/components/message.sass +1 -1
  12. data/app/assets/stylesheets/sass/components/modal.sass +5 -3
  13. data/app/assets/stylesheets/sass/components/navbar.sass +15 -7
  14. data/app/assets/stylesheets/sass/components/pagination.sass +4 -3
  15. data/app/assets/stylesheets/sass/components/tabs.sass +2 -2
  16. data/app/assets/stylesheets/sass/elements/box.sass +1 -1
  17. data/app/assets/stylesheets/sass/elements/button.sass +4 -4
  18. data/app/assets/stylesheets/sass/elements/content.sass +12 -2
  19. data/app/assets/stylesheets/sass/elements/form.sass +33 -28
  20. data/app/assets/stylesheets/sass/elements/image.sass +1 -1
  21. data/app/assets/stylesheets/sass/elements/notification.sass +2 -2
  22. data/app/assets/stylesheets/sass/elements/other.sass +4 -4
  23. data/app/assets/stylesheets/sass/elements/progress.sass +1 -1
  24. data/app/assets/stylesheets/sass/elements/table.sass +5 -3
  25. data/app/assets/stylesheets/sass/elements/title.sass +1 -1
  26. data/app/assets/stylesheets/sass/grid/columns.sass +27 -0
  27. data/app/assets/stylesheets/sass/layout/hero.sass +5 -2
  28. data/app/assets/stylesheets/sass/utilities/controls.sass +8 -5
  29. data/app/assets/stylesheets/sass/utilities/mixins.sass +25 -30
  30. data/bulma-sass.gemspec +3 -2
  31. data/lib/bulma/sass/version.rb +1 -1
  32. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75073f801c5bfd7b483790c4b19fd71661a3e9d8d444c5a7048c6f881cbbf6c8
4
- data.tar.gz: 2ff3c9a45f0e4c4b1a81e136b0935e11426d7d2a57fc768997356f34e96319c6
3
+ metadata.gz: 65b77721d208a29094ff36a1ee6533674ef5815a223414b3e96044b1480303f1
4
+ data.tar.gz: 2b43c76396d08ea65c4ffbd470ff4efb2f9289b1fffeadfe87f1c0bb5f889dea
5
5
  SHA512:
6
- metadata.gz: cae9a859acd6aa44381cc92901c3ac64c4bcc8dc554fe0ea3e9af8c686b238e8031588c72a0a07c75a21029094c7b8b955e623bd132cc82157e5a0ff3e6ac7f6
7
- data.tar.gz: ccf82f66d994f67d557a10aff975e0ab099cb0f606da4a22938572c0440ca55b9a99f47baf912c0fc21e35eb2e7f99fd79efc0538b430ada070f91e244f488e0
6
+ metadata.gz: ef841e47eedd0fa0aa63cddd0d468c2f02f05bc3a049f1089e22ad289d1fbe16244b98f635d05da5dc51b5351b16394680fbd6ab22f962da084f144d5e1bed05
7
+ data.tar.gz: c52c4b7fc8b69d6f0a43f20b52b18a50d92e17f405c448b9bf0e303ed1610b8563a2fefd6997cb2fb3685910941aa45685a5ddf04c4cb5df863c6ebd5d484688
@@ -1,5 +1,5 @@
1
1
  @charset "utf-8"
2
- /*! bulma.io v0.7.1 | MIT License | github.com/jgthms/bulma */
2
+ /*! bulma.io v0.7.2 | MIT License | github.com/jgthms/bulma */
3
3
  @import "sass/utilities/_all"
4
4
  @import "sass/base/_all"
5
5
  @import "sass/elements/_all"
@@ -17,7 +17,7 @@
17
17
  // Overlay
18
18
 
19
19
  .is-overlay
20
- +overlay
20
+ @extend %overlay
21
21
 
22
22
  // Typography
23
23
 
@@ -158,6 +158,16 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
158
158
  .is-hidden
159
159
  display: none !important
160
160
 
161
+ .is-sr-only
162
+ border: none !important
163
+ clip: rect(0, 0, 0, 0) !important
164
+ height: 0.01em !important
165
+ overflow: hidden !important
166
+ padding: 0 !important
167
+ position: absolute !important
168
+ white-space: nowrap !important
169
+ width: 0.01em !important
170
+
161
171
  +mobile
162
172
  .is-hidden-mobile
163
173
  display: none !important
@@ -248,4 +258,4 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
248
258
  box-shadow: none !important
249
259
 
250
260
  .is-unselectable
251
- +unselectable
261
+ @extend %unselectable
@@ -4,6 +4,7 @@
4
4
  @import "card.sass"
5
5
  @import "dropdown.sass"
6
6
  @import "level.sass"
7
+ @import "list.sass"
7
8
  @import "media.sass"
8
9
  @import "menu.sass"
9
10
  @import "message.sass"
@@ -8,8 +8,8 @@ $breadcrumb-item-padding-horizontal: 0.75em !default
8
8
  $breadcrumb-item-separator-color: $grey-light !default
9
9
 
10
10
  .breadcrumb
11
- +block
12
- +unselectable
11
+ @extend %block
12
+ @extend %unselectable
13
13
  font-size: $size-normal
14
14
  white-space: nowrap
15
15
  a
@@ -2,14 +2,14 @@ $card-color: $text !default
2
2
  $card-background-color: $white !default
3
3
  $card-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default
4
4
 
5
- $card-header-background-color: none !default
5
+ $card-header-background-color: transparent !default
6
6
  $card-header-color: $text-strong !default
7
7
  $card-header-shadow: 0 1px 2px rgba($black, 0.1) !default
8
8
  $card-header-weight: $weight-bold !default
9
9
 
10
- $card-content-background-color: none !default
10
+ $card-content-background-color: transparent !default
11
11
 
12
- $card-footer-background-color: none !default
12
+ $card-footer-background-color: transparent !default
13
13
  $card-footer-border-top: 1px solid $border !default
14
14
 
15
15
  .card
@@ -56,9 +56,12 @@ $dropdown-divider-background-color: $border !default
56
56
  padding: 0.375rem 1rem
57
57
  position: relative
58
58
 
59
- a.dropdown-item
59
+ a.dropdown-item,
60
+ button.dropdown-item
60
61
  padding-right: 3rem
62
+ text-align: left
61
63
  white-space: nowrap
64
+ width: 100%
62
65
  &:hover
63
66
  background-color: $dropdown-item-hover-background-color
64
67
  color: $dropdown-item-hover-color
@@ -1,5 +1,5 @@
1
1
  .level
2
- +block
2
+ @extend %block
3
3
  align-items: center
4
4
  justify-content: space-between
5
5
  code
@@ -18,9 +18,9 @@
18
18
  .level-item
19
19
  &:not(:last-child)
20
20
  margin-bottom: 0
21
+ margin-right: 0.75rem
21
22
  &:not(.is-narrow)
22
23
  flex-grow: 1
23
- margin-right: 0.75rem
24
24
  // Responsiveness
25
25
  +tablet
26
26
  display: flex
@@ -0,0 +1,39 @@
1
+ $list-background-color: $white !default
2
+ $list-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 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-top-left-radius: $list-radius
30
+ border-top-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
@@ -42,3 +42,7 @@
42
42
  flex-grow: 1
43
43
  flex-shrink: 1
44
44
  text-align: left
45
+
46
+ +mobile
47
+ .media-content
48
+ overflow-x: auto
@@ -19,7 +19,7 @@ $message-body-pre-code-background-color: transparent !default
19
19
  $message-header-body-border-width: 0 !default
20
20
 
21
21
  .message
22
- +block
22
+ @extend %block
23
23
  background-color: $message-background-color
24
24
  border-radius: $message-radius
25
25
  font-size: $size-normal
@@ -29,9 +29,10 @@ $modal-card-body-background-color: $white !default
29
29
  $modal-card-body-padding: 20px !default
30
30
 
31
31
  .modal
32
- +overlay
32
+ @extend %overlay
33
33
  align-items: center
34
34
  display: none
35
+ flex-direction: column
35
36
  justify-content: center
36
37
  overflow: hidden
37
38
  position: fixed
@@ -41,7 +42,7 @@ $modal-card-body-padding: 20px !default
41
42
  display: flex
42
43
 
43
44
  .modal-background
44
- +overlay
45
+ @extend %overlay
45
46
  background-color: $modal-background-background-color
46
47
 
47
48
  .modal-content,
@@ -58,7 +59,7 @@ $modal-card-body-padding: 20px !default
58
59
  width: $modal-content-width
59
60
 
60
61
  .modal-close
61
- +delete
62
+ @extend %delete
62
63
  background: none
63
64
  height: $modal-close-dimensions
64
65
  position: fixed
@@ -71,6 +72,7 @@ $modal-card-body-padding: 20px !default
71
72
  flex-direction: column
72
73
  max-height: calc(100vh - #{$modal-card-spacing})
73
74
  overflow: hidden
75
+ -ms-overflow-y: visible
74
76
 
75
77
  .modal-card-head,
76
78
  .modal-card-foot
@@ -14,6 +14,8 @@ $navbar-item-active-color: $black !default
14
14
  $navbar-item-active-background-color: transparent !default
15
15
  $navbar-item-img-max-height: 1.75rem !default
16
16
 
17
+ $navbar-burger-color: $navbar-item-color !default
18
+
17
19
  $navbar-tab-hover-background-color: transparent !default
18
20
  $navbar-tab-hover-border-bottom-color: $link !default
19
21
  $navbar-tab-active-color: $link !default
@@ -42,6 +44,8 @@ $navbar-divider-height: 2px !default
42
44
 
43
45
  $navbar-bottom-box-shadow-size: 0 -2px 0 0 !default
44
46
 
47
+ $navbar-breakpoint: $desktop !default
48
+
45
49
  =navbar-fixed
46
50
  left: 0
47
51
  position: fixed
@@ -72,7 +76,9 @@ $navbar-bottom-box-shadow-size: 0 -2px 0 0 !default
72
76
  .navbar-link
73
77
  &::after
74
78
  border-color: $color-invert
75
- +desktop
79
+ .navbar-burger
80
+ color: $color-invert
81
+ +from($navbar-breakpoint)
76
82
  .navbar-start,
77
83
  .navbar-end
78
84
  & > .navbar-item,
@@ -139,6 +145,7 @@ body
139
145
  overflow-y: hidden
140
146
 
141
147
  .navbar-burger
148
+ color: $navbar-burger-color
142
149
  +hamburger($navbar-height)
143
150
  margin-left: auto
144
151
 
@@ -195,10 +202,11 @@ a.navbar-item,
195
202
  flex-grow: 1
196
203
  flex-shrink: 1
197
204
 
198
- .navbar-link
205
+ .navbar-link:not(.is-arrowless)
199
206
  padding-right: 2.5em
200
207
  &::after
201
- +arrow($navbar-dropdown-arrow)
208
+ @extend %arrow
209
+ border-color: $navbar-dropdown-arrow
202
210
  margin-top: -0.375em
203
211
  right: 1.125em
204
212
 
@@ -217,7 +225,7 @@ a.navbar-item,
217
225
  height: $navbar-divider-height
218
226
  margin: 0.5rem 0
219
227
 
220
- +touch
228
+ +until($navbar-breakpoint)
221
229
  .navbar > .container
222
230
  display: block
223
231
  .navbar-brand,
@@ -258,7 +266,7 @@ a.navbar-item,
258
266
  &.has-navbar-fixed-bottom-touch
259
267
  padding-bottom: $navbar-height
260
268
 
261
- +desktop
269
+ +from($navbar-breakpoint)
262
270
  .navbar,
263
271
  .navbar-menu,
264
272
  .navbar-start,
@@ -376,9 +384,9 @@ a.navbar-item,
376
384
  .navbar > .container,
377
385
  .container > .navbar
378
386
  .navbar-brand
379
- margin-left: -1rem
387
+ margin-left: -.75rem
380
388
  .navbar-menu
381
- margin-right: -1rem
389
+ margin-right: -.75rem
382
390
  // Fixed navbar
383
391
  .navbar
384
392
  &.is-fixed-bottom-desktop,
@@ -1,6 +1,7 @@
1
1
  $pagination-color: $grey-darker !default
2
2
  $pagination-border-color: $grey-lighter !default
3
3
  $pagination-margin: -0.25rem !default
4
+ $pagination-min-width: $control-height !default
4
5
 
5
6
  $pagination-hover-color: $link-hover !default
6
7
  $pagination-hover-border-color: $link-hover-border !default
@@ -53,8 +54,8 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($black, 0.2)
53
54
  .pagination-next,
54
55
  .pagination-link,
55
56
  .pagination-ellipsis
56
- +control
57
- +unselectable
57
+ @extend %control
58
+ @extend %unselectable
58
59
  font-size: 1em
59
60
  padding-left: 0.5em
60
61
  padding-right: 0.5em
@@ -67,7 +68,7 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($black, 0.2)
67
68
  .pagination-link
68
69
  border-color: $pagination-border-color
69
70
  color: $pagination-color
70
- min-width: 2.25em
71
+ min-width: $pagination-min-width
71
72
  &:hover
72
73
  border-color: $pagination-hover-border-color
73
74
  color: $pagination-hover-color
@@ -27,9 +27,9 @@ $tabs-toggle-link-active-border-color: $link !default
27
27
  $tabs-toggle-link-active-color: $link-invert !default
28
28
 
29
29
  .tabs
30
- +block
30
+ @extend %block
31
31
  +overflow-touch
32
- +unselectable
32
+ @extend %unselectable
33
33
  align-items: stretch
34
34
  display: flex
35
35
  font-size: $size-normal
@@ -8,7 +8,7 @@ $box-link-hover-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px $link !default
8
8
  $box-link-active-shadow: inset 0 1px 2px rgba($black, 0.2), 0 0 0 1px $link !default
9
9
 
10
10
  .box
11
- +block
11
+ @extend %block
12
12
  background-color: $box-background-color
13
13
  border-radius: $box-radius
14
14
  box-shadow: $box-shadow
@@ -41,8 +41,8 @@ $button-static-border-color: $grey-lighter !default
41
41
  font-size: $size-large
42
42
 
43
43
  .button
44
- +control
45
- +unselectable
44
+ @extend %control
45
+ @extend %unselectable
46
46
  background-color: $button-background-color
47
47
  border-color: $button-border-color
48
48
  border-width: $button-border-width
@@ -198,7 +198,7 @@ $button-static-border-color: $grey-lighter !default
198
198
  color: transparent !important
199
199
  pointer-events: none
200
200
  &::after
201
- +loader
201
+ @extend %loader
202
202
  +center(1em)
203
203
  position: absolute !important
204
204
  &.is-static
@@ -219,7 +219,7 @@ $button-static-border-color: $grey-lighter !default
219
219
  justify-content: flex-start
220
220
  .button
221
221
  margin-bottom: 0.5rem
222
- &:not(:last-child)
222
+ &:not(:last-child):not(.is-fullwidth)
223
223
  margin-right: 0.5rem
224
224
  &:last-child
225
225
  margin-bottom: -0.5rem
@@ -18,7 +18,7 @@ $content-table-foot-cell-border-width: 2px 0 0 !default
18
18
  $content-table-foot-cell-color: $text-strong !default
19
19
 
20
20
  .content
21
- +block
21
+ @extend %block
22
22
  // Inline
23
23
  li + li
24
24
  margin-top: 0.25em
@@ -70,9 +70,19 @@ $content-table-foot-cell-color: $text-strong !default
70
70
  border-left: $content-blockquote-border-left
71
71
  padding: $content-blockquote-padding
72
72
  ol
73
- list-style: decimal outside
73
+ list-style-position: outside
74
74
  margin-left: 2em
75
75
  margin-top: 1em
76
+ &:not([type])
77
+ list-style-type: decimal
78
+ &.is-lower-alpha
79
+ list-style-type: lower-alpha
80
+ &.is-lower-roman
81
+ list-style-type: lower-roman
82
+ &.is-upper-alpha
83
+ list-style-type: upper-alpha
84
+ &.is-upper-roman
85
+ list-style-type: upper-roman
76
86
  ul
77
87
  list-style: disc outside
78
88
  margin-left: 2em
@@ -1,6 +1,7 @@
1
1
  $input-color: $grey-darker !default
2
2
  $input-background-color: $white !default
3
3
  $input-border-color: $grey-lighter !default
4
+ $input-height: $control-height !default
4
5
  $input-shadow: inset 0 1px 2px rgba($black, 0.1) !default
5
6
 
6
7
  $input-hover-color: $grey-darker !default
@@ -41,7 +42,7 @@ $label-weight: $weight-bold !default
41
42
  $help-size: $size-small !default
42
43
 
43
44
  =input
44
- +control
45
+ @extend %control
45
46
  background-color: $input-background-color
46
47
  border-color: $input-border-color
47
48
  color: $input-color
@@ -148,10 +149,11 @@ $help-size: $size-small !default
148
149
  position: relative
149
150
  vertical-align: top
150
151
  &:not(.is-multiple)
151
- height: 2.25em
152
+ height: $input-height
152
153
  &:not(.is-multiple):not(.is-loading)
153
154
  &::after
154
- +arrow($input-arrow)
155
+ @extend %arrow
156
+ border-color: $input-arrow
155
157
  right: 1.125em
156
158
  z-index: 4
157
159
  &.is-rounded
@@ -172,7 +174,7 @@ $help-size: $size-small !default
172
174
  &:not([multiple])
173
175
  padding-right: 2.5em
174
176
  &[multiple]
175
- height: initial
177
+ height: auto
176
178
  padding: 0
177
179
  option
178
180
  padding: 0.5em 1em
@@ -213,7 +215,7 @@ $help-size: $size-small !default
213
215
  width: 100%
214
216
  &.is-loading
215
217
  &::after
216
- +loader
218
+ @extend %loader
217
219
  margin-top: 0
218
220
  position: absolute
219
221
  right: 0.625em
@@ -227,7 +229,7 @@ $help-size: $size-small !default
227
229
  font-size: $size-large
228
230
 
229
231
  .file
230
- +unselectable
232
+ @extend %unselectable
231
233
  align-items: stretch
232
234
  display: flex
233
235
  justify-content: flex-start
@@ -352,16 +354,17 @@ $help-size: $size-small !default
352
354
  border-color: darken($file-name-border-color, 5%)
353
355
 
354
356
  .file-input
355
- height: 0.01em
357
+ height: 100%
356
358
  left: 0
359
+ opacity: 0
357
360
  outline: none
358
361
  position: absolute
359
362
  top: 0
360
- width: 0.01em
363
+ width: 100%
361
364
 
362
365
  .file-cta,
363
366
  .file-name
364
- +control
367
+ @extend %control
365
368
  border-color: $file-border-color
366
369
  border-radius: $file-radius
367
370
  font-size: 1em
@@ -449,16 +452,17 @@ $help-size: $size-small !default
449
452
  .button,
450
453
  .input,
451
454
  .select select
452
- &:hover,
453
- &.is-hovered
454
- z-index: 2
455
- &:focus,
456
- &.is-focused,
457
- &:active,
458
- &.is-active
459
- z-index: 3
460
- &:hover
461
- z-index: 4
455
+ &:not([disabled])
456
+ &:hover,
457
+ &.is-hovered
458
+ z-index: 2
459
+ &:focus,
460
+ &.is-focused,
461
+ &:active,
462
+ &.is-active
463
+ z-index: 3
464
+ &:hover
465
+ z-index: 4
462
466
  &.is-expanded
463
467
  flex-grow: 1
464
468
  &.has-addons-centered
@@ -540,6 +544,7 @@ $help-size: $size-small !default
540
544
  margin-right: 0.75rem
541
545
 
542
546
  .control
547
+ clear: both //fixes the icon floating out of the input when help text is floated right
543
548
  font-size: $size-normal
544
549
  position: relative
545
550
  text-align: left
@@ -548,11 +553,11 @@ $help-size: $size-small !default
548
553
  &.has-icon
549
554
  .icon
550
555
  color: $input-icon-color
551
- height: 2.25em
556
+ height: $input-height
552
557
  pointer-events: none
553
558
  position: absolute
554
559
  top: 0
555
- width: 2.25em
560
+ width: $input-height
556
561
  z-index: 4
557
562
  .input
558
563
  &:focus
@@ -571,12 +576,12 @@ $help-size: $size-small !default
571
576
  .icon
572
577
  left: 0
573
578
  .input
574
- padding-left: 2.25em
579
+ padding-left: $input-height
575
580
  &.has-icon-right
576
581
  .icon
577
582
  right: 0
578
583
  .input
579
- padding-right: 2.25em
584
+ padding-right: $input-height
580
585
  &.has-icons-left,
581
586
  &.has-icons-right
582
587
  .input,
@@ -592,27 +597,27 @@ $help-size: $size-small !default
592
597
  font-size: $size-large
593
598
  .icon
594
599
  color: $input-icon-color
595
- height: 2.25em
600
+ height: $input-height
596
601
  pointer-events: none
597
602
  position: absolute
598
603
  top: 0
599
- width: 2.25em
604
+ width: $input-height
600
605
  z-index: 4
601
606
  &.has-icons-left
602
607
  .input,
603
608
  .select select
604
- padding-left: 2.25em
609
+ padding-left: $input-height
605
610
  .icon.is-left
606
611
  left: 0
607
612
  &.has-icons-right
608
613
  .input,
609
614
  .select select
610
- padding-right: 2.25em
615
+ padding-right: $input-height
611
616
  .icon.is-right
612
617
  right: 0
613
618
  &.is-loading
614
619
  &::after
615
- +loader
620
+ @extend %loader
616
621
  position: absolute !important
617
622
  right: 0.625em
618
623
  top: 0.625em
@@ -27,7 +27,7 @@ $dimensions: 16 24 32 48 64 96 128 !default
27
27
  &.is-1by2,
28
28
  &.is-1by3
29
29
  img
30
- +overlay
30
+ @extend %overlay
31
31
  height: 100%
32
32
  width: 100%
33
33
  &.is-square,
@@ -3,12 +3,12 @@ $notification-radius: $radius !default
3
3
  $notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default
4
4
 
5
5
  .notification
6
- +block
6
+ @extend %block
7
7
  background-color: $notification-background-color
8
8
  border-radius: $notification-radius
9
9
  padding: $notification-padding
10
10
  position: relative
11
- a:not(.button)
11
+ a:not(.button):not(.dropdown-item)
12
12
  color: currentColor
13
13
  text-decoration: underline
14
14
  strong
@@ -1,8 +1,8 @@
1
1
  .block
2
- +block
2
+ @extend %block
3
3
 
4
4
  .delete
5
- +delete
5
+ @extend %delete
6
6
 
7
7
  .heading
8
8
  display: block
@@ -12,7 +12,7 @@
12
12
  text-transform: uppercase
13
13
 
14
14
  .highlight
15
- +block
15
+ @extend %block
16
16
  font-weight: $weight-normal
17
17
  max-width: 100%
18
18
  overflow: hidden
@@ -22,7 +22,7 @@
22
22
  max-width: 100%
23
23
 
24
24
  .loader
25
- +loader
25
+ @extend %loader
26
26
 
27
27
  .number
28
28
  align-items: center
@@ -2,7 +2,7 @@ $progress-bar-background-color: $border !default
2
2
  $progress-value-background-color: $text !default
3
3
 
4
4
  .progress
5
- +block
5
+ @extend %block
6
6
  -moz-appearance: none
7
7
  -webkit-appearance: none
8
8
  border: none
@@ -20,7 +20,7 @@ $table-striped-row-even-background-color: $white-bis !default
20
20
  $table-striped-row-even-hover-background-color: $white-ter !default
21
21
 
22
22
  .table
23
- +block
23
+ @extend %block
24
24
  background-color: $table-background-color
25
25
  color: $table-color
26
26
  td,
@@ -98,7 +98,9 @@ $table-striped-row-even-hover-background-color: $white-ter !default
98
98
  tbody
99
99
  tr:not(.is-selected)
100
100
  &:hover
101
- background-color: $table-striped-row-even-hover-background-color
101
+ background-color: $table-row-hover-background-color
102
+ &:nth-child(even)
103
+ background-color: $table-striped-row-even-hover-background-color
102
104
  &.is-narrow
103
105
  td,
104
106
  th
@@ -110,7 +112,7 @@ $table-striped-row-even-hover-background-color: $white-ter !default
110
112
  background-color: $table-striped-row-even-background-color
111
113
 
112
114
  .table-container
113
- +block
115
+ @extend %block
114
116
  +overflow-touch
115
117
  overflow: auto
116
118
  overflow-y: hidden
@@ -17,7 +17,7 @@ $subtitle-negative-margin: -1.25rem !default
17
17
 
18
18
  .title,
19
19
  .subtitle
20
- +block
20
+ @extend %block
21
21
  word-break: break-word
22
22
  em,
23
23
  span
@@ -475,3 +475,30 @@ $column-gap: 0.75rem !default
475
475
  @for $i from 0 through 8
476
476
  &.is-#{$i}
477
477
  --columnGap: #{$i * 0.25rem}
478
+ +mobile
479
+ &.is-#{$i}-mobile
480
+ --columnGap: #{$i * 0.25rem}
481
+ +tablet
482
+ &.is-#{$i}-tablet
483
+ --columnGap: #{$i * 0.25rem}
484
+ +tablet-only
485
+ &.is-#{$i}-tablet-only
486
+ --columnGap: #{$i * 0.25rem}
487
+ +touch
488
+ &.is-#{$i}-touch
489
+ --columnGap: #{$i * 0.25rem}
490
+ +desktop
491
+ &.is-#{$i}-desktop
492
+ --columnGap: #{$i * 0.25rem}
493
+ +desktop-only
494
+ &.is-#{$i}-desktop-only
495
+ --columnGap: #{$i * 0.25rem}
496
+ +widescreen
497
+ &.is-#{$i}-widescreen
498
+ --columnGap: #{$i * 0.25rem}
499
+ +widescreen-only
500
+ &.is-#{$i}-widescreen-only
501
+ --columnGap: #{$i * 0.25rem}
502
+ +fullhd
503
+ &.is-#{$i}-fullhd
504
+ --columnGap: #{$i * 0.25rem}
@@ -97,7 +97,8 @@
97
97
  padding-bottom: 18rem
98
98
  padding-top: 18rem
99
99
  &.is-halfheight,
100
- &.is-fullheight
100
+ &.is-fullheight,
101
+ &.is-fullheight-with-navbar
101
102
  .hero-body
102
103
  align-items: center
103
104
  display: flex
@@ -108,11 +109,13 @@
108
109
  min-height: 50vh
109
110
  &.is-fullheight
110
111
  min-height: 100vh
112
+ &.is-fullheight-with-navbar
113
+ min-height: calc(100vh - #{$navbar-height})
111
114
 
112
115
  // Components
113
116
 
114
117
  .hero-video
115
- +overlay
118
+ @extend %overlay
116
119
  overflow: hidden
117
120
  video
118
121
  left: 50%
@@ -3,10 +3,13 @@ $control-radius-small: $radius-small !default
3
3
 
4
4
  $control-border-width: 1px !default
5
5
 
6
+ $control-height: 2.25em !default
7
+ $control-line-height: 1.5 !default
8
+
6
9
  $control-padding-vertical: calc(0.375em - #{$control-border-width}) !default
7
10
  $control-padding-horizontal: calc(0.625em - #{$control-border-width}) !default
8
11
 
9
- %control
12
+ =control
10
13
  -moz-appearance: none
11
14
  -webkit-appearance: none
12
15
  align-items: center
@@ -15,9 +18,9 @@ $control-padding-horizontal: calc(0.625em - #{$control-border-width}) !default
15
18
  box-shadow: none
16
19
  display: inline-flex
17
20
  font-size: $size-normal
18
- height: 2.25em
21
+ height: $control-height
19
22
  justify-content: flex-start
20
- line-height: 1.5
23
+ line-height: $control-line-height
21
24
  padding-bottom: $control-padding-vertical
22
25
  padding-left: $control-padding-horizontal
23
26
  padding-right: $control-padding-horizontal
@@ -33,8 +36,8 @@ $control-padding-horizontal: calc(0.625em - #{$control-border-width}) !default
33
36
  &[disabled]
34
37
  cursor: not-allowed
35
38
 
36
- =control
37
- @extend %control
39
+ %control
40
+ +control
38
41
 
39
42
  // The controls sizes use mixins so they can be used at different breakpoints
40
43
  =control-small
@@ -130,18 +130,18 @@
130
130
 
131
131
  // Placeholders
132
132
 
133
- %unselectable
133
+ =unselectable
134
134
  -webkit-touch-callout: none
135
135
  -webkit-user-select: none
136
136
  -moz-user-select: none
137
137
  -ms-user-select: none
138
138
  user-select: none
139
139
 
140
- =unselectable
141
- @extend %unselectable
140
+ %unselectable
141
+ +unselectable
142
142
 
143
- %arrow
144
- border: 3px solid transparent
143
+ =arrow($color: transparent)
144
+ border: 3px solid $color
145
145
  border-radius: 2px
146
146
  border-right: 0
147
147
  border-top: 0
@@ -156,18 +156,17 @@
156
156
  transform-origin: center
157
157
  width: 0.625em
158
158
 
159
- =arrow($color)
160
- @extend %arrow
161
- border-color: $color
159
+ %arrow
160
+ +arrow
162
161
 
163
- %block
162
+ =block
164
163
  &:not(:last-child)
165
164
  margin-bottom: 1.5rem
166
165
 
167
- =block
168
- @extend %block
166
+ %block
167
+ +block
169
168
 
170
- %delete
169
+ =delete
171
170
  @extend %unselectable
172
171
  -moz-appearance: none
173
172
  -webkit-appearance: none
@@ -175,6 +174,7 @@
175
174
  border: none
176
175
  border-radius: $radius-rounded
177
176
  cursor: pointer
177
+ pointer-events: auto
178
178
  display: inline-block
179
179
  flex-grow: 0
180
180
  flex-shrink: 0
@@ -232,12 +232,12 @@
232
232
  min-width: 32px
233
233
  width: 32px
234
234
 
235
- =delete
236
- @extend %delete
235
+ %delete
236
+ +delete
237
237
 
238
- %loader
238
+ =loader
239
239
  animation: spinAround 500ms infinite linear
240
- border: 2px solid $border
240
+ border: 2px solid $grey-lighter
241
241
  border-radius: $radius-rounded
242
242
  border-right-color: transparent
243
243
  border-top-color: transparent
@@ -247,20 +247,15 @@
247
247
  position: relative
248
248
  width: 1em
249
249
 
250
- =loader
251
- @extend %loader
250
+ %loader
251
+ +loader
252
252
 
253
- %overlay
254
- bottom: 0
255
- left: 0
253
+ =overlay($offset: 0)
254
+ bottom: $offset
255
+ left: $offset
256
256
  position: absolute
257
- right: 0
258
- top: 0
257
+ right: $offset
258
+ top: $offset
259
259
 
260
- =overlay($offset: 0)
261
- @extend %overlay
262
- @if $offset != 0
263
- bottom: $offset
264
- left: $offset
265
- right: $offset
266
- top: $offset
260
+ %overlay
261
+ +overlay
@@ -19,8 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.bindir = "exe"
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
- spec.add_runtime_dependency 'sass', '>= 3.2'
22
+ spec.add_runtime_dependency 'sass', '~> 3.2'
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.16.a"
24
+ spec.add_development_dependency "bundler", "~> 1.17"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
+
26
27
  end
@@ -1,5 +1,5 @@
1
1
  module Bulma
2
2
  module Sass
3
- VERSION = "0.7.1"
3
+ VERSION = "0.7.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulma-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bananaappletw
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-13 00:00:00.000000000 Z
11
+ date: 2018-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.16.a
33
+ version: '1.17'
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: 1.16.a
40
+ version: '1.17'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -75,6 +75,7 @@ files:
75
75
  - app/assets/stylesheets/sass/components/card.sass
76
76
  - app/assets/stylesheets/sass/components/dropdown.sass
77
77
  - app/assets/stylesheets/sass/components/level.sass
78
+ - app/assets/stylesheets/sass/components/list.sass
78
79
  - app/assets/stylesheets/sass/components/media.sass
79
80
  - app/assets/stylesheets/sass/components/menu.sass
80
81
  - app/assets/stylesheets/sass/components/message.sass