bulma-rails 0.9.0 → 0.9.3

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 (66) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/stylesheets/bulma.sass +1 -1
  4. data/app/assets/stylesheets/sass/base/_all.sass +4 -2
  5. data/app/assets/stylesheets/sass/base/animations.sass +5 -0
  6. data/app/assets/stylesheets/sass/base/generic.sass +3 -0
  7. data/app/assets/stylesheets/sass/components/_all.sass +13 -12
  8. data/app/assets/stylesheets/sass/components/breadcrumb.sass +2 -0
  9. data/app/assets/stylesheets/sass/components/card.sass +25 -1
  10. data/app/assets/stylesheets/sass/components/dropdown.sass +3 -1
  11. data/app/assets/stylesheets/sass/components/level.sass +3 -1
  12. data/app/assets/stylesheets/sass/components/media.sass +16 -9
  13. data/app/assets/stylesheets/sass/components/menu.sass +2 -0
  14. data/app/assets/stylesheets/sass/components/message.sass +2 -0
  15. data/app/assets/stylesheets/sass/components/modal.sass +5 -1
  16. data/app/assets/stylesheets/sass/components/navbar.sass +6 -1
  17. data/app/assets/stylesheets/sass/components/pagination.sass +19 -3
  18. data/app/assets/stylesheets/sass/components/panel.sass +3 -1
  19. data/app/assets/stylesheets/sass/components/tabs.sass +2 -0
  20. data/app/assets/stylesheets/sass/elements/_all.sass +13 -12
  21. data/app/assets/stylesheets/sass/elements/box.sass +3 -1
  22. data/app/assets/stylesheets/sass/elements/button.sass +30 -8
  23. data/app/assets/stylesheets/sass/elements/container.sass +12 -7
  24. data/app/assets/stylesheets/sass/elements/content.sass +4 -0
  25. data/app/assets/stylesheets/sass/elements/icon.sass +25 -0
  26. data/app/assets/stylesheets/sass/elements/image.sass +2 -0
  27. data/app/assets/stylesheets/sass/elements/notification.sass +5 -1
  28. data/app/assets/stylesheets/sass/elements/other.sass +2 -10
  29. data/app/assets/stylesheets/sass/elements/progress.sass +7 -1
  30. data/app/assets/stylesheets/sass/elements/table.sass +5 -1
  31. data/app/assets/stylesheets/sass/elements/tag.sass +5 -1
  32. data/app/assets/stylesheets/sass/elements/title.sass +2 -2
  33. data/app/assets/stylesheets/sass/form/_all.sass +7 -6
  34. data/app/assets/stylesheets/sass/form/checkbox-radio.sass +2 -1
  35. data/app/assets/stylesheets/sass/form/file.sass +5 -1
  36. data/app/assets/stylesheets/sass/form/input-textarea.sass +3 -1
  37. data/app/assets/stylesheets/sass/form/select.sass +3 -1
  38. data/app/assets/stylesheets/sass/form/shared.sass +5 -0
  39. data/app/assets/stylesheets/sass/form/tools.sass +3 -1
  40. data/app/assets/stylesheets/sass/grid/_all.sass +3 -2
  41. data/app/assets/stylesheets/sass/grid/columns.sass +93 -84
  42. data/app/assets/stylesheets/sass/grid/tiles.sass +3 -1
  43. data/app/assets/stylesheets/sass/helpers/_all.sass +10 -8
  44. data/app/assets/stylesheets/sass/helpers/color.sass +2 -0
  45. data/app/assets/stylesheets/sass/helpers/flexbox.sass +35 -0
  46. data/app/assets/stylesheets/sass/helpers/float.sass +2 -0
  47. data/app/assets/stylesheets/sass/helpers/other.sass +6 -0
  48. data/app/assets/stylesheets/sass/helpers/position.sass +2 -0
  49. data/app/assets/stylesheets/sass/helpers/spacing.sass +4 -1
  50. data/app/assets/stylesheets/sass/helpers/typography.sass +5 -0
  51. data/app/assets/stylesheets/sass/helpers/visibility.sass +1 -1
  52. data/app/assets/stylesheets/sass/layout/_all.sass +4 -3
  53. data/app/assets/stylesheets/sass/layout/footer.sass +2 -0
  54. data/app/assets/stylesheets/sass/layout/hero.sass +11 -3
  55. data/app/assets/stylesheets/sass/layout/section.sass +6 -2
  56. data/app/assets/stylesheets/sass/utilities/_all.sass +7 -6
  57. data/app/assets/stylesheets/sass/utilities/animations.sass +1 -5
  58. data/app/assets/stylesheets/sass/utilities/controls.sass +2 -3
  59. data/app/assets/stylesheets/sass/utilities/derived-variables.sass +114 -0
  60. data/app/assets/stylesheets/sass/utilities/extends.sass +25 -0
  61. data/app/assets/stylesheets/sass/utilities/functions.sass +25 -4
  62. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +5 -5
  63. data/app/assets/stylesheets/sass/utilities/mixins.sass +18 -23
  64. data/bulma-rails.gemspec +1 -1
  65. metadata +10 -7
  66. data/app/assets/stylesheets/sass/utilities/derived-variables.scss +0 -132
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c187d8e95e7482bbecab4a5e320ccdce88f049367e3d639054d1845fc99d0f4
4
- data.tar.gz: 020c68825cef7a2d45a64d59f61b008326a99bd8cad9b6bd41a17a5c39b5edcf
3
+ metadata.gz: 0f23802006ea243e64255a3d2ba2c9bd82e4c6350fbbd8f9cf9a3feb700d1f56
4
+ data.tar.gz: 40de97f9bff592255f906be8eb1704a3b6f8514625536a1c17b8c7b10911feb0
5
5
  SHA512:
6
- metadata.gz: 01e0140a8537b859ea5ca35a1b31a93fd93a25737a69d42ce8d6f25ab4de50be9a7b3c8aedfeae6bfe1937475b620f4ad62dc97f1be3d0088080b3728e8b8650
7
- data.tar.gz: a84d032d4f015c10933c1d3cdf6a6a616da806c8301e887da6134c19a257f7c8941a126f4dd2157cf9ab8f23d93920495db9f54d2d9a0d4b3e675e556f98a782
6
+ metadata.gz: 6593971d948f8acfe1d51e6f431ab8ca3c31219c521ac6225da8017790b1e54bb3b1df61d1ceded04470d2777ec7e00edf25b92b334c1b6d145fe72a7b4f93cf
7
+ data.tar.gz: c4671fbe80312a4f2b5b169788126cd4cc2f576ecfbf573127dcbb3489878e195f1fafc5c6388fae04cb5d321acd4ae324ad21752d5fc8c060bfb83e708ce4c5
data/README.md CHANGED
@@ -8,7 +8,7 @@ A modern CSS framework based on Flexbox.
8
8
 
9
9
  Add this line to your application's Gemfile:
10
10
 
11
- gem "bulma-rails", "~> 0.9.0"
11
+ gem "bulma-rails", "~> 0.9.3"
12
12
 
13
13
  And then execute:
14
14
 
@@ -1,5 +1,5 @@
1
1
  @charset "utf-8"
2
- /*! bulma.io v0.9.0 | MIT License | github.com/jgthms/bulma */
2
+ /*! bulma.io v0.9.3 | MIT License | github.com/jgthms/bulma */
3
3
  @import "sass/utilities/_all"
4
4
  @import "sass/base/_all"
5
5
  @import "sass/elements/_all"
@@ -1,4 +1,6 @@
1
+ /* Bulma Base */
1
2
  @charset "utf-8"
2
3
 
3
- @import "minireset.sass"
4
- @import "generic.sass"
4
+ @import "minireset"
5
+ @import "generic"
6
+ @import "animations"
@@ -0,0 +1,5 @@
1
+ @keyframes spinAround
2
+ from
3
+ transform: rotate(0deg)
4
+ to
5
+ transform: rotate(359deg)
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $body-background-color: $scheme-main !default
2
4
  $body-size: 16px !default
3
5
  $body-min-width: 300px !default
@@ -52,6 +54,7 @@ section
52
54
  body,
53
55
  button,
54
56
  input,
57
+ optgroup,
55
58
  select,
56
59
  textarea
57
60
  font-family: $body-family
@@ -1,14 +1,15 @@
1
+ /* Bulma Components */
1
2
  @charset "utf-8"
2
3
 
3
- @import "breadcrumb.sass"
4
- @import "card.sass"
5
- @import "dropdown.sass"
6
- @import "level.sass"
7
- @import "media.sass"
8
- @import "menu.sass"
9
- @import "message.sass"
10
- @import "modal.sass"
11
- @import "navbar.sass"
12
- @import "pagination.sass"
13
- @import "panel.sass"
14
- @import "tabs.sass"
4
+ @import "breadcrumb"
5
+ @import "card"
6
+ @import "dropdown"
7
+ @import "level"
8
+ @import "media"
9
+ @import "menu"
10
+ @import "message"
11
+ @import "modal"
12
+ @import "navbar"
13
+ @import "pagination"
14
+ @import "panel"
15
+ @import "tabs"
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $breadcrumb-item-color: $link !default
2
4
  $breadcrumb-item-hover-color: $link-hover !default
3
5
  $breadcrumb-item-active-color: $text-strong !default
@@ -1,6 +1,9 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $card-color: $text !default
2
4
  $card-background-color: $scheme-main !default
3
- $card-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
5
+ $card-shadow: $shadow !default
6
+ $card-radius: 0.25rem !default
4
7
 
5
8
  $card-header-background-color: transparent !default
6
9
  $card-header-color: $text-strong !default
@@ -19,12 +22,22 @@ $card-media-margin: $block-spacing !default
19
22
 
20
23
  .card
21
24
  background-color: $card-background-color
25
+ border-radius: $card-radius
22
26
  box-shadow: $card-shadow
23
27
  color: $card-color
24
28
  max-width: 100%
25
29
  position: relative
26
30
 
31
+ %card-item
32
+ &:first-child
33
+ border-top-left-radius: $card-radius
34
+ border-top-right-radius: $card-radius
35
+ &:last-child
36
+ border-bottom-left-radius: $card-radius
37
+ border-bottom-right-radius: $card-radius
38
+
27
39
  .card-header
40
+ @extend %card-item
28
41
  background-color: $card-header-background-color
29
42
  align-items: stretch
30
43
  box-shadow: $card-header-shadow
@@ -41,6 +54,7 @@ $card-media-margin: $block-spacing !default
41
54
  justify-content: center
42
55
 
43
56
  .card-header-icon
57
+ +reset
44
58
  align-items: center
45
59
  cursor: pointer
46
60
  display: flex
@@ -50,12 +64,22 @@ $card-media-margin: $block-spacing !default
50
64
  .card-image
51
65
  display: block
52
66
  position: relative
67
+ &:first-child
68
+ img
69
+ border-top-left-radius: $card-radius
70
+ border-top-right-radius: $card-radius
71
+ &:last-child
72
+ img
73
+ border-bottom-left-radius: $card-radius
74
+ border-bottom-right-radius: $card-radius
53
75
 
54
76
  .card-content
77
+ @extend %card-item
55
78
  background-color: $card-content-background-color
56
79
  padding: $card-content-padding
57
80
 
58
81
  .card-footer
82
+ @extend %card-item
59
83
  background-color: $card-footer-background-color
60
84
  border-top: $card-footer-border-top
61
85
  align-items: stretch
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $dropdown-menu-min-width: 12rem !default
2
4
 
3
5
  $dropdown-content-background-color: $scheme-main !default
@@ -6,7 +8,7 @@ $dropdown-content-offset: 4px !default
6
8
  $dropdown-content-padding-bottom: 0.5rem !default
7
9
  $dropdown-content-padding-top: 0.5rem !default
8
10
  $dropdown-content-radius: $radius !default
9
- $dropdown-content-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
11
+ $dropdown-content-shadow: $shadow !default
10
12
  $dropdown-content-z: 20 !default
11
13
 
12
14
  $dropdown-item-color: $text !default
@@ -1,4 +1,6 @@
1
- $level-item-spacing: ($block-spacing / 2) !default
1
+ @import "../utilities/mixins"
2
+
3
+ $level-item-spacing: ($block-spacing * 0.5) !default
2
4
 
3
5
  .level
4
6
  @extend %block
@@ -1,26 +1,33 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $media-border-color: bulmaRgba($border, 0.5) !default
2
- $media-spacing: 1rem
3
- $media-spacing-large: 1.5rem
4
+ $media-border-size: 1px !default
5
+ $media-spacing: 1rem !default
6
+ $media-spacing-large: 1.5rem !default
7
+ $media-content-spacing: 0.75rem !default
8
+ $media-level-1-spacing: 0.75rem !default
9
+ $media-level-1-content-spacing: 0.5rem !default
10
+ $media-level-2-spacing: 0.5rem !default
4
11
 
5
12
  .media
6
13
  align-items: flex-start
7
14
  display: flex
8
15
  text-align: inherit
9
16
  .content:not(:last-child)
10
- margin-bottom: 0.75rem
17
+ margin-bottom: $media-content-spacing
11
18
  .media
12
- border-top: 1px solid $media-border-color
19
+ border-top: $media-border-size solid $media-border-color
13
20
  display: flex
14
- padding-top: 0.75rem
21
+ padding-top: $media-level-1-spacing
15
22
  .content:not(:last-child),
16
23
  .control:not(:last-child)
17
- margin-bottom: 0.5rem
24
+ margin-bottom: $media-level-1-content-spacing
18
25
  .media
19
- padding-top: 0.5rem
26
+ padding-top: $media-level-2-spacing
20
27
  & + .media
21
- margin-top: 0.5rem
28
+ margin-top: $media-level-2-spacing
22
29
  & + .media
23
- border-top: 1px solid $media-border-color
30
+ border-top: $media-border-size solid $media-border-color
24
31
  margin-top: $media-spacing
25
32
  padding-top: $media-spacing
26
33
  // Sizes
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $menu-item-color: $text !default
2
4
  $menu-item-radius: $radius-small !default
3
5
  $menu-item-hover-color: $text-strong !default
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $message-background-color: $background !default
2
4
  $message-radius: $radius !default
3
5
 
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $modal-z: 40 !default
2
4
 
3
5
  $modal-background-background-color: bulmaRgba($scheme-invert, 0.86) !default
@@ -28,6 +30,8 @@ $modal-card-foot-border-top: 1px solid $border !default
28
30
  $modal-card-body-background-color: $scheme-main !default
29
31
  $modal-card-body-padding: 20px !default
30
32
 
33
+ $modal-breakpoint: $tablet !default
34
+
31
35
  .modal
32
36
  @extend %overlay
33
37
  align-items: center
@@ -53,7 +57,7 @@ $modal-card-body-padding: 20px !default
53
57
  position: relative
54
58
  width: 100%
55
59
  // Responsiveness
56
- +tablet
60
+ +from($modal-breakpoint)
57
61
  margin: 0 auto
58
62
  max-height: calc(100vh - #{$modal-content-spacing-tablet})
59
63
  width: $modal-content-width
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $navbar-background-color: $scheme-main !default
2
4
  $navbar-box-shadow-size: 0 2px 0 0 !default
3
5
  $navbar-box-shadow-color: $background !default
@@ -46,6 +48,8 @@ $navbar-bottom-box-shadow-size: 0 -2px 0 0 !default
46
48
 
47
49
  $navbar-breakpoint: $desktop !default
48
50
 
51
+ $navbar-colors: $colors !default
52
+
49
53
  =navbar-fixed
50
54
  left: 0
51
55
  position: fixed
@@ -57,7 +61,7 @@ $navbar-breakpoint: $desktop !default
57
61
  min-height: $navbar-height
58
62
  position: relative
59
63
  z-index: $navbar-z
60
- @each $name, $pair in $colors
64
+ @each $name, $pair in $navbar-colors
61
65
  $color: nth($pair, 1)
62
66
  $color-invert: nth($pair, 2)
63
67
  &.is-#{$name}
@@ -149,6 +153,7 @@ body
149
153
  overflow-y: hidden
150
154
 
151
155
  .navbar-burger
156
+ @extend %reset
152
157
  color: $navbar-burger-color
153
158
  +hamburger($navbar-height)
154
159
  +ltr-property("margin", auto, false)
@@ -1,3 +1,6 @@
1
+ @import "../utilities/controls"
2
+ @import "../utilities/mixins"
3
+
1
4
  $pagination-color: $text-strong !default
2
5
  $pagination-border-color: $border !default
3
6
  $pagination-margin: -0.25rem !default
@@ -8,6 +11,9 @@ $pagination-item-margin: 0.25rem !default
8
11
  $pagination-item-padding-left: 0.5em !default
9
12
  $pagination-item-padding-right: 0.5em !default
10
13
 
14
+ $pagination-nav-padding-left: 0.75em !default
15
+ $pagination-nav-padding-right: 0.75em !default
16
+
11
17
  $pagination-hover-color: $link-hover !default
12
18
  $pagination-hover-border-color: $link-hover-border !default
13
19
 
@@ -27,7 +33,7 @@ $pagination-current-border-color: $link !default
27
33
 
28
34
  $pagination-ellipsis-color: $grey-light !default
29
35
 
30
- $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2)
36
+ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default
31
37
 
32
38
  .pagination
33
39
  @extend %block
@@ -91,8 +97,8 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2)
91
97
 
92
98
  .pagination-previous,
93
99
  .pagination-next
94
- padding-left: 0.75em
95
- padding-right: 0.75em
100
+ padding-left: $pagination-nav-padding-left
101
+ padding-right: $pagination-nav-padding-right
96
102
  white-space: nowrap
97
103
 
98
104
  .pagination-link
@@ -107,6 +113,8 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2)
107
113
 
108
114
  .pagination-list
109
115
  flex-wrap: wrap
116
+ li
117
+ list-style: none
110
118
 
111
119
  +mobile
112
120
  .pagination
@@ -126,12 +134,20 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2)
126
134
  flex-shrink: 1
127
135
  justify-content: flex-start
128
136
  order: 1
137
+ .pagination-previous,
138
+ .pagination-next,
139
+ .pagination-link,
140
+ .pagination-ellipsis
141
+ margin-bottom: 0
142
+ margin-top: 0
129
143
  .pagination-previous
130
144
  order: 2
131
145
  .pagination-next
132
146
  order: 3
133
147
  .pagination
134
148
  justify-content: space-between
149
+ margin-bottom: 0
150
+ margin-top: 0
135
151
  &.is-centered
136
152
  .pagination-previous
137
153
  order: 1
@@ -1,7 +1,9 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $panel-margin: $block-spacing !default
2
4
  $panel-item-border: 1px solid $border-light !default
3
5
  $panel-radius: $radius-large !default
4
- $panel-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
6
+ $panel-shadow: $shadow !default
5
7
 
6
8
  $panel-heading-background-color: $border-light !default
7
9
  $panel-heading-color: $text-strong !default
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $tabs-border-bottom-color: $border !default
2
4
  $tabs-border-bottom-style: solid !default
3
5
  $tabs-border-bottom-width: 1px !default
@@ -1,15 +1,16 @@
1
+ /* Bulma Elements */
1
2
  @charset "utf-8"
2
3
 
3
- @import "box.sass"
4
- @import "button.sass"
5
- @import "container.sass"
6
- @import "content.sass"
7
- @import "icon.sass"
8
- @import "image.sass"
9
- @import "notification.sass"
10
- @import "progress.sass"
11
- @import "table.sass"
12
- @import "tag.sass"
13
- @import "title.sass"
4
+ @import "box"
5
+ @import "button"
6
+ @import "container"
7
+ @import "content"
8
+ @import "icon"
9
+ @import "image"
10
+ @import "notification"
11
+ @import "progress"
12
+ @import "table"
13
+ @import "tag"
14
+ @import "title"
14
15
 
15
- @import "other.sass"
16
+ @import "other"
@@ -1,7 +1,9 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $box-color: $text !default
2
4
  $box-background-color: $scheme-main !default
3
5
  $box-radius: $radius-large !default
4
- $box-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
6
+ $box-shadow: $shadow !default
5
7
  $box-padding: 1.25rem !default
6
8
 
7
9
  $box-link-hover-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0 0 1px $link !default
@@ -1,3 +1,6 @@
1
+ @import "../utilities/controls"
2
+ @import "../utilities/mixins"
3
+
1
4
  $button-color: $text-strong !default
2
5
  $button-background-color: $scheme-main !default
3
6
  $button-family: false !default
@@ -24,6 +27,13 @@ $button-text-decoration: underline !default
24
27
  $button-text-hover-background-color: $background !default
25
28
  $button-text-hover-color: $text-strong !default
26
29
 
30
+ $button-ghost-background: none !default
31
+ $button-ghost-border-color: transparent !default
32
+ $button-ghost-color: $link !default
33
+ $button-ghost-decoration: none !default
34
+ $button-ghost-hover-color: $link !default
35
+ $button-ghost-hover-decoration: underline !default
36
+
27
37
  $button-disabled-background-color: $scheme-main !default
28
38
  $button-disabled-border-color: $border !default
29
39
  $button-disabled-shadow: none !default
@@ -33,9 +43,12 @@ $button-static-color: $text-light !default
33
43
  $button-static-background-color: $scheme-main-ter !default
34
44
  $button-static-border-color: $border !default
35
45
 
46
+ $button-colors: $colors !default
47
+
36
48
  // The button sizes use mixins so they can be used at different breakpoints
37
49
  =button-small
38
- border-radius: $radius-small
50
+ &:not(.is-rounded)
51
+ border-radius: $radius-small
39
52
  font-size: $size-small
40
53
  =button-normal
41
54
  font-size: $size-normal
@@ -71,14 +84,14 @@ $button-static-border-color: $border !default
71
84
  height: 1.5em
72
85
  width: 1.5em
73
86
  &:first-child:not(:last-child)
74
- +ltr-property("margin", calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width}), false)
75
- +ltr-property("margin", $button-padding-horizontal / 4)
87
+ +ltr-property("margin", calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width}), false)
88
+ +ltr-property("margin", $button-padding-horizontal * 0.25)
76
89
  &:last-child:not(:first-child)
77
- +ltr-property("margin", $button-padding-horizontal / 4, false)
78
- +ltr-property("margin", calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width}))
90
+ +ltr-property("margin", $button-padding-horizontal * 0.25, false)
91
+ +ltr-property("margin", calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width}))
79
92
  &:first-child:last-child
80
- margin-left: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
81
- margin-right: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
93
+ margin-left: calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width})
94
+ margin-right: calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width})
82
95
  // States
83
96
  &:hover,
84
97
  &.is-hovered
@@ -115,7 +128,16 @@ $button-static-border-color: $border !default
115
128
  background-color: transparent
116
129
  border-color: transparent
117
130
  box-shadow: none
118
- @each $name, $pair in $colors
131
+ &.is-ghost
132
+ background: $button-ghost-background
133
+ border-color: $button-ghost-border-color
134
+ color: $button-ghost-color
135
+ text-decoration: $button-ghost-decoration
136
+ &:hover,
137
+ &.is-hovered
138
+ color: $button-ghost-hover-color
139
+ text-decoration: $button-ghost-hover-decoration
140
+ @each $name, $pair in $button-colors
119
141
  $color: nth($pair, 1)
120
142
  $color-invert: nth($pair, 2)
121
143
  &.is-#{$name}
@@ -1,4 +1,7 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $container-offset: (2 * $gap) !default
4
+ $container-max-width: $fullhd !default
2
5
 
3
6
  .container
4
7
  flex-grow: 1
@@ -6,19 +9,21 @@ $container-offset: (2 * $gap) !default
6
9
  position: relative
7
10
  width: auto
8
11
  &.is-fluid
9
- max-width: none
12
+ max-width: none !important
10
13
  padding-left: $gap
11
14
  padding-right: $gap
12
15
  width: 100%
13
16
  +desktop
14
17
  max-width: $desktop - $container-offset
15
18
  +until-widescreen
16
- &.is-widescreen
17
- max-width: $widescreen - $container-offset
19
+ &.is-widescreen:not(.is-max-desktop)
20
+ max-width: min($widescreen, $container-max-width) - $container-offset
18
21
  +until-fullhd
19
- &.is-fullhd
20
- max-width: $fullhd - $container-offset
22
+ &.is-fullhd:not(.is-max-desktop):not(.is-max-widescreen)
23
+ max-width: min($fullhd, $container-max-width) - $container-offset
21
24
  +widescreen
22
- max-width: $widescreen - $container-offset
25
+ &:not(.is-max-desktop)
26
+ max-width: min($widescreen, $container-max-width) - $container-offset
23
27
  +fullhd
24
- max-width: $fullhd - $container-offset
28
+ &:not(.is-max-desktop):not(.is-max-widescreen)
29
+ max-width: min($fullhd, $container-max-width) - $container-offset
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $content-heading-color: $text-strong !default
2
4
  $content-heading-weight: $weight-semibold !default
3
5
  $content-heading-line-height: 1.125 !default
@@ -149,6 +151,8 @@ $content-table-foot-cell-color: $text-strong !default
149
151
  // Sizes
150
152
  &.is-small
151
153
  font-size: $size-small
154
+ &.is-normal
155
+ font-size: $size-normal
152
156
  &.is-medium
153
157
  font-size: $size-medium
154
158
  &.is-large
@@ -2,6 +2,7 @@ $icon-dimensions: 1.5rem !default
2
2
  $icon-dimensions-small: 1rem !default
3
3
  $icon-dimensions-medium: 2rem !default
4
4
  $icon-dimensions-large: 3rem !default
5
+ $icon-text-spacing: 0.25em !default
5
6
 
6
7
  .icon
7
8
  align-items: center
@@ -19,3 +20,27 @@ $icon-dimensions-large: 3rem !default
19
20
  &.is-large
20
21
  height: $icon-dimensions-large
21
22
  width: $icon-dimensions-large
23
+
24
+ .icon-text
25
+ align-items: flex-start
26
+ color: inherit
27
+ display: inline-flex
28
+ flex-wrap: wrap
29
+ line-height: $icon-dimensions
30
+ vertical-align: top
31
+ .icon
32
+ flex-grow: 0
33
+ flex-shrink: 0
34
+ &:not(:last-child)
35
+ +ltr
36
+ margin-right: $icon-text-spacing
37
+ +rtl
38
+ margin-left: $icon-text-spacing
39
+ &:not(:first-child)
40
+ +ltr
41
+ margin-left: $icon-text-spacing
42
+ +rtl
43
+ margin-right: $icon-text-spacing
44
+
45
+ div.icon-text
46
+ display: flex
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $dimensions: 16 24 32 48 64 96 128 !default
2
4
 
3
5
  .image
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $notification-background-color: $background !default
2
4
  $notification-code-background-color: $scheme-main !default
3
5
  $notification-radius: $radius !default
@@ -5,6 +7,8 @@ $notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default
5
7
  $notification-padding-ltr: 1.25rem 2.5rem 1.25rem 1.5rem !default
6
8
  $notification-padding-rtl: 1.25rem 1.5rem 1.25rem 2.5rem !default
7
9
 
10
+ $notification-colors: $colors !default
11
+
8
12
  .notification
9
13
  @extend %block
10
14
  background-color: $notification-background-color
@@ -33,7 +37,7 @@ $notification-padding-rtl: 1.25rem 1.5rem 1.25rem 2.5rem !default
33
37
  .content
34
38
  color: currentColor
35
39
  // Colors
36
- @each $name, $pair in $colors
40
+ @each $name, $pair in $notification-colors
37
41
  $color: nth($pair, 1)
38
42
  $color-invert: nth($pair, 2)
39
43
  &.is-#{$name}
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  .block
2
4
  @extend %block
3
5
 
@@ -11,16 +13,6 @@
11
13
  margin-bottom: 5px
12
14
  text-transform: uppercase
13
15
 
14
- .highlight
15
- @extend %block
16
- font-weight: $weight-normal
17
- max-width: 100%
18
- overflow: hidden
19
- padding: 0
20
- pre
21
- overflow: auto
22
- max-width: 100%
23
-
24
16
  .loader
25
17
  @extend %loader
26
18