bulma-rails 0.9.0 → 1.0.0

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