bulma-rails 0.9.3 → 1.0.0

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 (144) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +49 -14
  3. data/app/assets/stylesheets/bulma.scss +4 -0
  4. data/app/assets/stylesheets/sass/_index.scss +10 -0
  5. data/app/assets/stylesheets/sass/base/_index.scss +6 -0
  6. data/app/assets/stylesheets/sass/base/animations.scss +15 -0
  7. data/app/assets/stylesheets/sass/base/generic.scss +239 -0
  8. data/app/assets/stylesheets/sass/base/minireset.scss +92 -0
  9. data/app/assets/stylesheets/sass/base/skeleton.scss +126 -0
  10. data/app/assets/stylesheets/sass/components/_index.scss +13 -0
  11. data/app/assets/stylesheets/sass/components/breadcrumb.scss +139 -0
  12. data/app/assets/stylesheets/sass/components/card.scss +162 -0
  13. data/app/assets/stylesheets/sass/components/dropdown.scss +188 -0
  14. data/app/assets/stylesheets/sass/components/menu.scss +165 -0
  15. data/app/assets/stylesheets/sass/components/message.scss +183 -0
  16. data/app/assets/stylesheets/sass/components/modal.scss +164 -0
  17. data/app/assets/stylesheets/sass/components/navbar.scss +788 -0
  18. data/app/assets/stylesheets/sass/components/pagination.scss +379 -0
  19. data/app/assets/stylesheets/sass/components/panel.scss +218 -0
  20. data/app/assets/stylesheets/sass/components/tabs.scss +273 -0
  21. data/app/assets/stylesheets/sass/elements/_index.scss +16 -0
  22. data/app/assets/stylesheets/sass/elements/block.scss +6 -0
  23. data/app/assets/stylesheets/sass/elements/box.scss +59 -0
  24. data/app/assets/stylesheets/sass/elements/button.scss +640 -0
  25. data/app/assets/stylesheets/sass/elements/content.scss +283 -0
  26. data/app/assets/stylesheets/sass/elements/delete.scss +6 -0
  27. data/app/assets/stylesheets/sass/elements/icon.scss +67 -0
  28. data/app/assets/stylesheets/sass/elements/image.scss +62 -0
  29. data/app/assets/stylesheets/sass/elements/loader.scss +15 -0
  30. data/app/assets/stylesheets/sass/elements/notification.scss +105 -0
  31. data/app/assets/stylesheets/sass/elements/progress.scss +115 -0
  32. data/app/assets/stylesheets/sass/elements/table.scss +261 -0
  33. data/app/assets/stylesheets/sass/elements/tag.scss +219 -0
  34. data/app/assets/stylesheets/sass/elements/title.scss +128 -0
  35. data/app/assets/stylesheets/sass/form/_index.scss +9 -0
  36. data/app/assets/stylesheets/sass/form/checkbox-radio.scss +32 -0
  37. data/app/assets/stylesheets/sass/form/file.scss +330 -0
  38. data/app/assets/stylesheets/sass/form/input-textarea.scss +123 -0
  39. data/app/assets/stylesheets/sass/form/select.scss +143 -0
  40. data/app/assets/stylesheets/sass/form/shared.scss +172 -0
  41. data/app/assets/stylesheets/sass/form/tools.scss +341 -0
  42. data/app/assets/stylesheets/sass/grid/_index.scss +5 -0
  43. data/app/assets/stylesheets/sass/grid/columns-v2.scss +957 -0
  44. data/app/assets/stylesheets/sass/grid/columns.scss +877 -0
  45. data/app/assets/stylesheets/sass/grid/grid.scss +209 -0
  46. data/app/assets/stylesheets/sass/helpers/_index.scss +15 -0
  47. data/app/assets/stylesheets/sass/helpers/aspect-ratio.scss +10 -0
  48. data/app/assets/stylesheets/sass/helpers/border.scss +15 -0
  49. data/app/assets/stylesheets/sass/helpers/color.scss +364 -0
  50. data/app/assets/stylesheets/sass/helpers/flexbox.scss +62 -0
  51. data/app/assets/stylesheets/sass/helpers/float.scss +28 -0
  52. data/app/assets/stylesheets/sass/helpers/gap.scss +24 -0
  53. data/app/assets/stylesheets/sass/helpers/other.scss +19 -0
  54. data/app/assets/stylesheets/sass/helpers/overflow.scss +21 -0
  55. data/app/assets/stylesheets/sass/helpers/position.scss +19 -0
  56. data/app/assets/stylesheets/sass/helpers/spacing.scss +64 -0
  57. data/app/assets/stylesheets/sass/helpers/typography.scss +168 -0
  58. data/app/assets/stylesheets/sass/helpers/visibility.scss +221 -0
  59. data/app/assets/stylesheets/sass/layout/_index.scss +9 -0
  60. data/app/assets/stylesheets/sass/layout/container.scss +51 -0
  61. data/app/assets/stylesheets/sass/layout/footer.scss +23 -0
  62. data/app/assets/stylesheets/sass/layout/hero.scss +270 -0
  63. data/app/assets/stylesheets/sass/layout/level.scss +107 -0
  64. data/app/assets/stylesheets/sass/layout/media.scss +106 -0
  65. data/app/assets/stylesheets/sass/layout/section.scss +34 -0
  66. data/app/assets/stylesheets/sass/themes/_index.scss +35 -0
  67. data/app/assets/stylesheets/sass/themes/dark.scss +56 -0
  68. data/app/assets/stylesheets/sass/themes/light.scss +145 -0
  69. data/app/assets/stylesheets/sass/themes/setup.scss +174 -0
  70. data/app/assets/stylesheets/sass/utilities/_index.scss +7 -0
  71. data/app/assets/stylesheets/sass/utilities/controls.scss +85 -0
  72. data/app/assets/stylesheets/sass/utilities/css-variables.scss +425 -0
  73. data/app/assets/stylesheets/sass/utilities/derived-variables.scss +112 -0
  74. data/app/assets/stylesheets/sass/utilities/extends.scss +34 -0
  75. data/app/assets/stylesheets/sass/utilities/functions.scss +258 -0
  76. data/app/assets/stylesheets/sass/utilities/initial-variables.scss +155 -0
  77. data/app/assets/stylesheets/sass/utilities/mixins.scss +460 -0
  78. data/bulma-rails.gemspec +4 -6
  79. metadata +84 -74
  80. data/app/assets/stylesheets/bulma.sass +0 -10
  81. data/app/assets/stylesheets/sass/base/_all.sass +0 -6
  82. data/app/assets/stylesheets/sass/base/animations.sass +0 -5
  83. data/app/assets/stylesheets/sass/base/generic.sass +0 -145
  84. data/app/assets/stylesheets/sass/base/helpers.sass +0 -1
  85. data/app/assets/stylesheets/sass/base/minireset.sass +0 -79
  86. data/app/assets/stylesheets/sass/components/_all.sass +0 -15
  87. data/app/assets/stylesheets/sass/components/breadcrumb.sass +0 -77
  88. data/app/assets/stylesheets/sass/components/card.sass +0 -103
  89. data/app/assets/stylesheets/sass/components/dropdown.sass +0 -83
  90. data/app/assets/stylesheets/sass/components/level.sass +0 -79
  91. data/app/assets/stylesheets/sass/components/media.sass +0 -59
  92. data/app/assets/stylesheets/sass/components/menu.sass +0 -59
  93. data/app/assets/stylesheets/sass/components/message.sass +0 -101
  94. data/app/assets/stylesheets/sass/components/modal.sass +0 -117
  95. data/app/assets/stylesheets/sass/components/navbar.sass +0 -446
  96. data/app/assets/stylesheets/sass/components/pagination.sass +0 -166
  97. data/app/assets/stylesheets/sass/components/panel.sass +0 -121
  98. data/app/assets/stylesheets/sass/components/tabs.sass +0 -176
  99. data/app/assets/stylesheets/sass/elements/_all.sass +0 -16
  100. data/app/assets/stylesheets/sass/elements/box.sass +0 -26
  101. data/app/assets/stylesheets/sass/elements/button.sass +0 -345
  102. data/app/assets/stylesheets/sass/elements/container.sass +0 -29
  103. data/app/assets/stylesheets/sass/elements/content.sass +0 -159
  104. data/app/assets/stylesheets/sass/elements/form.sass +0 -1
  105. data/app/assets/stylesheets/sass/elements/icon.sass +0 -46
  106. data/app/assets/stylesheets/sass/elements/image.sass +0 -73
  107. data/app/assets/stylesheets/sass/elements/notification.sass +0 -52
  108. data/app/assets/stylesheets/sass/elements/other.sass +0 -31
  109. data/app/assets/stylesheets/sass/elements/progress.sass +0 -73
  110. data/app/assets/stylesheets/sass/elements/table.sass +0 -133
  111. data/app/assets/stylesheets/sass/elements/tag.sass +0 -140
  112. data/app/assets/stylesheets/sass/elements/title.sass +0 -70
  113. data/app/assets/stylesheets/sass/form/_all.sass +0 -9
  114. data/app/assets/stylesheets/sass/form/checkbox-radio.sass +0 -22
  115. data/app/assets/stylesheets/sass/form/file.sass +0 -184
  116. data/app/assets/stylesheets/sass/form/input-textarea.sass +0 -66
  117. data/app/assets/stylesheets/sass/form/select.sass +0 -87
  118. data/app/assets/stylesheets/sass/form/shared.sass +0 -60
  119. data/app/assets/stylesheets/sass/form/tools.sass +0 -215
  120. data/app/assets/stylesheets/sass/grid/_all.sass +0 -5
  121. data/app/assets/stylesheets/sass/grid/columns.sass +0 -513
  122. data/app/assets/stylesheets/sass/grid/tiles.sass +0 -36
  123. data/app/assets/stylesheets/sass/helpers/_all.sass +0 -12
  124. data/app/assets/stylesheets/sass/helpers/color.sass +0 -39
  125. data/app/assets/stylesheets/sass/helpers/flexbox.sass +0 -35
  126. data/app/assets/stylesheets/sass/helpers/float.sass +0 -10
  127. data/app/assets/stylesheets/sass/helpers/other.sass +0 -14
  128. data/app/assets/stylesheets/sass/helpers/overflow.sass +0 -2
  129. data/app/assets/stylesheets/sass/helpers/position.sass +0 -7
  130. data/app/assets/stylesheets/sass/helpers/spacing.sass +0 -31
  131. data/app/assets/stylesheets/sass/helpers/typography.sass +0 -103
  132. data/app/assets/stylesheets/sass/helpers/visibility.sass +0 -122
  133. data/app/assets/stylesheets/sass/layout/_all.sass +0 -6
  134. data/app/assets/stylesheets/sass/layout/footer.sass +0 -11
  135. data/app/assets/stylesheets/sass/layout/hero.sass +0 -153
  136. data/app/assets/stylesheets/sass/layout/section.sass +0 -17
  137. data/app/assets/stylesheets/sass/utilities/_all.sass +0 -9
  138. data/app/assets/stylesheets/sass/utilities/animations.sass +0 -1
  139. data/app/assets/stylesheets/sass/utilities/controls.sass +0 -49
  140. data/app/assets/stylesheets/sass/utilities/derived-variables.sass +0 -114
  141. data/app/assets/stylesheets/sass/utilities/extends.sass +0 -25
  142. data/app/assets/stylesheets/sass/utilities/functions.sass +0 -136
  143. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +0 -78
  144. data/app/assets/stylesheets/sass/utilities/mixins.sass +0 -280
@@ -1,345 +0,0 @@
1
- @import "../utilities/controls"
2
- @import "../utilities/mixins"
3
-
4
- $button-color: $text-strong !default
5
- $button-background-color: $scheme-main !default
6
- $button-family: false !default
7
-
8
- $button-border-color: $border !default
9
- $button-border-width: $control-border-width !default
10
-
11
- $button-padding-vertical: calc(0.5em - #{$button-border-width}) !default
12
- $button-padding-horizontal: 1em !default
13
-
14
- $button-hover-color: $link-hover !default
15
- $button-hover-border-color: $link-hover-border !default
16
-
17
- $button-focus-color: $link-focus !default
18
- $button-focus-border-color: $link-focus-border !default
19
- $button-focus-box-shadow-size: 0 0 0 0.125em !default
20
- $button-focus-box-shadow-color: bulmaRgba($link, 0.25) !default
21
-
22
- $button-active-color: $link-active !default
23
- $button-active-border-color: $link-active-border !default
24
-
25
- $button-text-color: $text !default
26
- $button-text-decoration: underline !default
27
- $button-text-hover-background-color: $background !default
28
- $button-text-hover-color: $text-strong !default
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
-
37
- $button-disabled-background-color: $scheme-main !default
38
- $button-disabled-border-color: $border !default
39
- $button-disabled-shadow: none !default
40
- $button-disabled-opacity: 0.5 !default
41
-
42
- $button-static-color: $text-light !default
43
- $button-static-background-color: $scheme-main-ter !default
44
- $button-static-border-color: $border !default
45
-
46
- $button-colors: $colors !default
47
-
48
- // The button sizes use mixins so they can be used at different breakpoints
49
- =button-small
50
- &:not(.is-rounded)
51
- border-radius: $radius-small
52
- font-size: $size-small
53
- =button-normal
54
- font-size: $size-normal
55
- =button-medium
56
- font-size: $size-medium
57
- =button-large
58
- font-size: $size-large
59
-
60
- .button
61
- @extend %control
62
- @extend %unselectable
63
- background-color: $button-background-color
64
- border-color: $button-border-color
65
- border-width: $button-border-width
66
- color: $button-color
67
- cursor: pointer
68
- @if $button-family
69
- font-family: $button-family
70
- justify-content: center
71
- padding-bottom: $button-padding-vertical
72
- padding-left: $button-padding-horizontal
73
- padding-right: $button-padding-horizontal
74
- padding-top: $button-padding-vertical
75
- text-align: center
76
- white-space: nowrap
77
- strong
78
- color: inherit
79
- .icon
80
- &,
81
- &.is-small,
82
- &.is-medium,
83
- &.is-large
84
- height: 1.5em
85
- width: 1.5em
86
- &:first-child:not(:last-child)
87
- +ltr-property("margin", calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width}), false)
88
- +ltr-property("margin", $button-padding-horizontal * 0.25)
89
- &:last-child:not(:first-child)
90
- +ltr-property("margin", $button-padding-horizontal * 0.25, false)
91
- +ltr-property("margin", calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width}))
92
- &:first-child:last-child
93
- margin-left: calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width})
94
- margin-right: calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width})
95
- // States
96
- &:hover,
97
- &.is-hovered
98
- border-color: $button-hover-border-color
99
- color: $button-hover-color
100
- &:focus,
101
- &.is-focused
102
- border-color: $button-focus-border-color
103
- color: $button-focus-color
104
- &:not(:active)
105
- box-shadow: $button-focus-box-shadow-size $button-focus-box-shadow-color
106
- &:active,
107
- &.is-active
108
- border-color: $button-active-border-color
109
- color: $button-active-color
110
- // Colors
111
- &.is-text
112
- background-color: transparent
113
- border-color: transparent
114
- color: $button-text-color
115
- text-decoration: $button-text-decoration
116
- &:hover,
117
- &.is-hovered,
118
- &:focus,
119
- &.is-focused
120
- background-color: $button-text-hover-background-color
121
- color: $button-text-hover-color
122
- &:active,
123
- &.is-active
124
- background-color: bulmaDarken($button-text-hover-background-color, 5%)
125
- color: $button-text-hover-color
126
- &[disabled],
127
- fieldset[disabled] &
128
- background-color: transparent
129
- border-color: transparent
130
- box-shadow: none
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
141
- $color: nth($pair, 1)
142
- $color-invert: nth($pair, 2)
143
- &.is-#{$name}
144
- background-color: $color
145
- border-color: transparent
146
- color: $color-invert
147
- &:hover,
148
- &.is-hovered
149
- background-color: bulmaDarken($color, 2.5%)
150
- border-color: transparent
151
- color: $color-invert
152
- &:focus,
153
- &.is-focused
154
- border-color: transparent
155
- color: $color-invert
156
- &:not(:active)
157
- box-shadow: $button-focus-box-shadow-size bulmaRgba($color, 0.25)
158
- &:active,
159
- &.is-active
160
- background-color: bulmaDarken($color, 5%)
161
- border-color: transparent
162
- color: $color-invert
163
- &[disabled],
164
- fieldset[disabled] &
165
- background-color: $color
166
- border-color: transparent
167
- box-shadow: none
168
- &.is-inverted
169
- background-color: $color-invert
170
- color: $color
171
- &:hover,
172
- &.is-hovered
173
- background-color: bulmaDarken($color-invert, 5%)
174
- &[disabled],
175
- fieldset[disabled] &
176
- background-color: $color-invert
177
- border-color: transparent
178
- box-shadow: none
179
- color: $color
180
- &.is-loading
181
- &::after
182
- border-color: transparent transparent $color-invert $color-invert !important
183
- &.is-outlined
184
- background-color: transparent
185
- border-color: $color
186
- color: $color
187
- &:hover,
188
- &.is-hovered,
189
- &:focus,
190
- &.is-focused
191
- background-color: $color
192
- border-color: $color
193
- color: $color-invert
194
- &.is-loading
195
- &::after
196
- border-color: transparent transparent $color $color !important
197
- &:hover,
198
- &.is-hovered,
199
- &:focus,
200
- &.is-focused
201
- &::after
202
- border-color: transparent transparent $color-invert $color-invert !important
203
- &[disabled],
204
- fieldset[disabled] &
205
- background-color: transparent
206
- border-color: $color
207
- box-shadow: none
208
- color: $color
209
- &.is-inverted.is-outlined
210
- background-color: transparent
211
- border-color: $color-invert
212
- color: $color-invert
213
- &:hover,
214
- &.is-hovered,
215
- &:focus,
216
- &.is-focused
217
- background-color: $color-invert
218
- color: $color
219
- &.is-loading
220
- &:hover,
221
- &.is-hovered,
222
- &:focus,
223
- &.is-focused
224
- &::after
225
- border-color: transparent transparent $color $color !important
226
- &[disabled],
227
- fieldset[disabled] &
228
- background-color: transparent
229
- border-color: $color-invert
230
- box-shadow: none
231
- color: $color-invert
232
- // If light and dark colors are provided
233
- @if length($pair) >= 4
234
- $color-light: nth($pair, 3)
235
- $color-dark: nth($pair, 4)
236
- &.is-light
237
- background-color: $color-light
238
- color: $color-dark
239
- &:hover,
240
- &.is-hovered
241
- background-color: bulmaDarken($color-light, 2.5%)
242
- border-color: transparent
243
- color: $color-dark
244
- &:active,
245
- &.is-active
246
- background-color: bulmaDarken($color-light, 5%)
247
- border-color: transparent
248
- color: $color-dark
249
- // Sizes
250
- &.is-small
251
- +button-small
252
- &.is-normal
253
- +button-normal
254
- &.is-medium
255
- +button-medium
256
- &.is-large
257
- +button-large
258
- // Modifiers
259
- &[disabled],
260
- fieldset[disabled] &
261
- background-color: $button-disabled-background-color
262
- border-color: $button-disabled-border-color
263
- box-shadow: $button-disabled-shadow
264
- opacity: $button-disabled-opacity
265
- &.is-fullwidth
266
- display: flex
267
- width: 100%
268
- &.is-loading
269
- color: transparent !important
270
- pointer-events: none
271
- &::after
272
- @extend %loader
273
- +center(1em)
274
- position: absolute !important
275
- &.is-static
276
- background-color: $button-static-background-color
277
- border-color: $button-static-border-color
278
- color: $button-static-color
279
- box-shadow: none
280
- pointer-events: none
281
- &.is-rounded
282
- border-radius: $radius-rounded
283
- padding-left: calc(#{$button-padding-horizontal} + 0.25em)
284
- padding-right: calc(#{$button-padding-horizontal} + 0.25em)
285
-
286
- .buttons
287
- align-items: center
288
- display: flex
289
- flex-wrap: wrap
290
- justify-content: flex-start
291
- .button
292
- margin-bottom: 0.5rem
293
- &:not(:last-child):not(.is-fullwidth)
294
- +ltr-property("margin", 0.5rem)
295
- &:last-child
296
- margin-bottom: -0.5rem
297
- &:not(:last-child)
298
- margin-bottom: 1rem
299
- // Sizes
300
- &.are-small
301
- .button:not(.is-normal):not(.is-medium):not(.is-large)
302
- +button-small
303
- &.are-medium
304
- .button:not(.is-small):not(.is-normal):not(.is-large)
305
- +button-medium
306
- &.are-large
307
- .button:not(.is-small):not(.is-normal):not(.is-medium)
308
- +button-large
309
- &.has-addons
310
- .button
311
- &:not(:first-child)
312
- border-bottom-left-radius: 0
313
- border-top-left-radius: 0
314
- &:not(:last-child)
315
- border-bottom-right-radius: 0
316
- border-top-right-radius: 0
317
- +ltr-property("margin", -1px)
318
- &:last-child
319
- +ltr-property("margin", 0)
320
- &:hover,
321
- &.is-hovered
322
- z-index: 2
323
- &:focus,
324
- &.is-focused,
325
- &:active,
326
- &.is-active,
327
- &.is-selected
328
- z-index: 3
329
- &:hover
330
- z-index: 4
331
- &.is-expanded
332
- flex-grow: 1
333
- flex-shrink: 1
334
- &.is-centered
335
- justify-content: center
336
- &:not(.has-addons)
337
- .button:not(.is-fullwidth)
338
- margin-left: 0.25rem
339
- margin-right: 0.25rem
340
- &.is-right
341
- justify-content: flex-end
342
- &:not(.has-addons)
343
- .button:not(.is-fullwidth)
344
- margin-left: 0.25rem
345
- margin-right: 0.25rem
@@ -1,29 +0,0 @@
1
- @import "../utilities/mixins"
2
-
3
- $container-offset: (2 * $gap) !default
4
- $container-max-width: $fullhd !default
5
-
6
- .container
7
- flex-grow: 1
8
- margin: 0 auto
9
- position: relative
10
- width: auto
11
- &.is-fluid
12
- max-width: none !important
13
- padding-left: $gap
14
- padding-right: $gap
15
- width: 100%
16
- +desktop
17
- max-width: $desktop - $container-offset
18
- +until-widescreen
19
- &.is-widescreen:not(.is-max-desktop)
20
- max-width: min($widescreen, $container-max-width) - $container-offset
21
- +until-fullhd
22
- &.is-fullhd:not(.is-max-desktop):not(.is-max-widescreen)
23
- max-width: min($fullhd, $container-max-width) - $container-offset
24
- +widescreen
25
- &:not(.is-max-desktop)
26
- max-width: min($widescreen, $container-max-width) - $container-offset
27
- +fullhd
28
- &:not(.is-max-desktop):not(.is-max-widescreen)
29
- max-width: min($fullhd, $container-max-width) - $container-offset
@@ -1,159 +0,0 @@
1
- @import "../utilities/mixins"
2
-
3
- $content-heading-color: $text-strong !default
4
- $content-heading-weight: $weight-semibold !default
5
- $content-heading-line-height: 1.125 !default
6
-
7
- $content-blockquote-background-color: $background !default
8
- $content-blockquote-border-left: 5px solid $border !default
9
- $content-blockquote-padding: 1.25em 1.5em !default
10
-
11
- $content-pre-padding: 1.25em 1.5em !default
12
-
13
- $content-table-cell-border: 1px solid $border !default
14
- $content-table-cell-border-width: 0 0 1px !default
15
- $content-table-cell-padding: 0.5em 0.75em !default
16
- $content-table-cell-heading-color: $text-strong !default
17
- $content-table-head-cell-border-width: 0 0 2px !default
18
- $content-table-head-cell-color: $text-strong !default
19
- $content-table-foot-cell-border-width: 2px 0 0 !default
20
- $content-table-foot-cell-color: $text-strong !default
21
-
22
- .content
23
- @extend %block
24
- // Inline
25
- li + li
26
- margin-top: 0.25em
27
- // Block
28
- p,
29
- dl,
30
- ol,
31
- ul,
32
- blockquote,
33
- pre,
34
- table
35
- &:not(:last-child)
36
- margin-bottom: 1em
37
- h1,
38
- h2,
39
- h3,
40
- h4,
41
- h5,
42
- h6
43
- color: $content-heading-color
44
- font-weight: $content-heading-weight
45
- line-height: $content-heading-line-height
46
- h1
47
- font-size: 2em
48
- margin-bottom: 0.5em
49
- &:not(:first-child)
50
- margin-top: 1em
51
- h2
52
- font-size: 1.75em
53
- margin-bottom: 0.5714em
54
- &:not(:first-child)
55
- margin-top: 1.1428em
56
- h3
57
- font-size: 1.5em
58
- margin-bottom: 0.6666em
59
- &:not(:first-child)
60
- margin-top: 1.3333em
61
- h4
62
- font-size: 1.25em
63
- margin-bottom: 0.8em
64
- h5
65
- font-size: 1.125em
66
- margin-bottom: 0.8888em
67
- h6
68
- font-size: 1em
69
- margin-bottom: 1em
70
- blockquote
71
- background-color: $content-blockquote-background-color
72
- +ltr-property("border", $content-blockquote-border-left, false)
73
- padding: $content-blockquote-padding
74
- ol
75
- list-style-position: outside
76
- +ltr-property("margin", 2em, false)
77
- margin-top: 1em
78
- &:not([type])
79
- list-style-type: decimal
80
- &.is-lower-alpha
81
- list-style-type: lower-alpha
82
- &.is-lower-roman
83
- list-style-type: lower-roman
84
- &.is-upper-alpha
85
- list-style-type: upper-alpha
86
- &.is-upper-roman
87
- list-style-type: upper-roman
88
- ul
89
- list-style: disc outside
90
- +ltr-property("margin", 2em, false)
91
- margin-top: 1em
92
- ul
93
- list-style-type: circle
94
- margin-top: 0.5em
95
- ul
96
- list-style-type: square
97
- dd
98
- +ltr-property("margin", 2em, false)
99
- figure
100
- margin-left: 2em
101
- margin-right: 2em
102
- text-align: center
103
- &:not(:first-child)
104
- margin-top: 2em
105
- &:not(:last-child)
106
- margin-bottom: 2em
107
- img
108
- display: inline-block
109
- figcaption
110
- font-style: italic
111
- pre
112
- +overflow-touch
113
- overflow-x: auto
114
- padding: $content-pre-padding
115
- white-space: pre
116
- word-wrap: normal
117
- sup,
118
- sub
119
- font-size: 75%
120
- table
121
- width: 100%
122
- td,
123
- th
124
- border: $content-table-cell-border
125
- border-width: $content-table-cell-border-width
126
- padding: $content-table-cell-padding
127
- vertical-align: top
128
- th
129
- color: $content-table-cell-heading-color
130
- &:not([align])
131
- text-align: inherit
132
- thead
133
- td,
134
- th
135
- border-width: $content-table-head-cell-border-width
136
- color: $content-table-head-cell-color
137
- tfoot
138
- td,
139
- th
140
- border-width: $content-table-foot-cell-border-width
141
- color: $content-table-foot-cell-color
142
- tbody
143
- tr
144
- &:last-child
145
- td,
146
- th
147
- border-bottom-width: 0
148
- .tabs
149
- li + li
150
- margin-top: 0
151
- // Sizes
152
- &.is-small
153
- font-size: $size-small
154
- &.is-normal
155
- font-size: $size-normal
156
- &.is-medium
157
- font-size: $size-medium
158
- &.is-large
159
- font-size: $size-large
@@ -1 +0,0 @@
1
- @warn "The form.sass file is DEPRECATED. It has moved into its own /form folder. Please import sass/form/_all instead."
@@ -1,46 +0,0 @@
1
- $icon-dimensions: 1.5rem !default
2
- $icon-dimensions-small: 1rem !default
3
- $icon-dimensions-medium: 2rem !default
4
- $icon-dimensions-large: 3rem !default
5
- $icon-text-spacing: 0.25em !default
6
-
7
- .icon
8
- align-items: center
9
- display: inline-flex
10
- justify-content: center
11
- height: $icon-dimensions
12
- width: $icon-dimensions
13
- // Sizes
14
- &.is-small
15
- height: $icon-dimensions-small
16
- width: $icon-dimensions-small
17
- &.is-medium
18
- height: $icon-dimensions-medium
19
- width: $icon-dimensions-medium
20
- &.is-large
21
- height: $icon-dimensions-large
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,73 +0,0 @@
1
- @import "../utilities/mixins"
2
-
3
- $dimensions: 16 24 32 48 64 96 128 !default
4
-
5
- .image
6
- display: block
7
- position: relative
8
- img
9
- display: block
10
- height: auto
11
- width: 100%
12
- &.is-rounded
13
- border-radius: $radius-rounded
14
- &.is-fullwidth
15
- width: 100%
16
- // Ratio
17
- &.is-square,
18
- &.is-1by1,
19
- &.is-5by4,
20
- &.is-4by3,
21
- &.is-3by2,
22
- &.is-5by3,
23
- &.is-16by9,
24
- &.is-2by1,
25
- &.is-3by1,
26
- &.is-4by5,
27
- &.is-3by4,
28
- &.is-2by3,
29
- &.is-3by5,
30
- &.is-9by16,
31
- &.is-1by2,
32
- &.is-1by3
33
- img,
34
- .has-ratio
35
- @extend %overlay
36
- height: 100%
37
- width: 100%
38
- &.is-square,
39
- &.is-1by1
40
- padding-top: 100%
41
- &.is-5by4
42
- padding-top: 80%
43
- &.is-4by3
44
- padding-top: 75%
45
- &.is-3by2
46
- padding-top: 66.6666%
47
- &.is-5by3
48
- padding-top: 60%
49
- &.is-16by9
50
- padding-top: 56.25%
51
- &.is-2by1
52
- padding-top: 50%
53
- &.is-3by1
54
- padding-top: 33.3333%
55
- &.is-4by5
56
- padding-top: 125%
57
- &.is-3by4
58
- padding-top: 133.3333%
59
- &.is-2by3
60
- padding-top: 150%
61
- &.is-3by5
62
- padding-top: 166.6666%
63
- &.is-9by16
64
- padding-top: 177.7777%
65
- &.is-1by2
66
- padding-top: 200%
67
- &.is-1by3
68
- padding-top: 300%
69
- // Sizes
70
- @each $dimension in $dimensions
71
- &.is-#{$dimension}x#{$dimension}
72
- height: $dimension * 1px
73
- width: $dimension * 1px
@@ -1,52 +0,0 @@
1
- @import "../utilities/mixins"
2
-
3
- $notification-background-color: $background !default
4
- $notification-code-background-color: $scheme-main !default
5
- $notification-radius: $radius !default
6
- $notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default
7
- $notification-padding-ltr: 1.25rem 2.5rem 1.25rem 1.5rem !default
8
- $notification-padding-rtl: 1.25rem 1.5rem 1.25rem 2.5rem !default
9
-
10
- $notification-colors: $colors !default
11
-
12
- .notification
13
- @extend %block
14
- background-color: $notification-background-color
15
- border-radius: $notification-radius
16
- position: relative
17
- +ltr
18
- padding: $notification-padding-ltr
19
- +rtl
20
- padding: $notification-padding-rtl
21
- a:not(.button):not(.dropdown-item)
22
- color: currentColor
23
- text-decoration: underline
24
- strong
25
- color: currentColor
26
- code,
27
- pre
28
- background: $notification-code-background-color
29
- pre code
30
- background: transparent
31
- & > .delete
32
- +ltr-position(0.5rem)
33
- position: absolute
34
- top: 0.5rem
35
- .title,
36
- .subtitle,
37
- .content
38
- color: currentColor
39
- // Colors
40
- @each $name, $pair in $notification-colors
41
- $color: nth($pair, 1)
42
- $color-invert: nth($pair, 2)
43
- &.is-#{$name}
44
- background-color: $color
45
- color: $color-invert
46
- // If light and dark colors are provided
47
- @if length($pair) >= 4
48
- $color-light: nth($pair, 3)
49
- $color-dark: nth($pair, 4)
50
- &.is-light
51
- background-color: $color-light
52
- color: $color-dark