jekyll-bulma 0.9.2 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/_sass/base/_all.sass +4 -3
  3. data/_sass/base/animations.sass +5 -0
  4. data/_sass/base/generic.sass +4 -1
  5. data/_sass/base/helpers.sass +1 -281
  6. data/_sass/base/minireset.sass +1 -1
  7. data/_sass/bulma.sass +2 -1
  8. data/_sass/components/_all.sass +13 -13
  9. data/_sass/components/breadcrumb.sass +5 -3
  10. data/_sass/components/card.sass +26 -2
  11. data/_sass/components/dropdown.sass +6 -4
  12. data/_sass/components/level.sass +5 -3
  13. data/_sass/components/media.sass +25 -16
  14. data/_sass/components/menu.sass +4 -2
  15. data/_sass/components/message.sass +3 -1
  16. data/_sass/components/modal.sass +8 -4
  17. data/_sass/components/navbar.sass +24 -21
  18. data/_sass/components/pagination.sass +19 -3
  19. data/_sass/components/panel.sass +7 -4
  20. data/_sass/components/tabs.sass +37 -12
  21. data/_sass/elements/_all.sass +13 -12
  22. data/_sass/elements/box.sass +3 -1
  23. data/_sass/elements/button.sass +43 -20
  24. data/_sass/elements/container.sass +12 -7
  25. data/_sass/elements/content.sass +9 -5
  26. data/_sass/elements/icon.sass +25 -0
  27. data/_sass/elements/image.sass +2 -0
  28. data/_sass/elements/notification.sass +19 -3
  29. data/_sass/elements/other.sass +2 -10
  30. data/_sass/elements/progress.sass +7 -1
  31. data/_sass/elements/table.sass +8 -2
  32. data/_sass/elements/tag.sass +29 -17
  33. data/_sass/elements/title.sass +2 -2
  34. data/_sass/form/_all.sass +7 -6
  35. data/_sass/form/checkbox-radio.sass +3 -2
  36. data/_sass/form/file.sass +14 -10
  37. data/_sass/form/input-textarea.sass +4 -2
  38. data/_sass/form/select.sass +9 -7
  39. data/_sass/form/shared.sass +8 -3
  40. data/_sass/form/tools.sass +21 -11
  41. data/_sass/grid/_all.sass +3 -2
  42. data/_sass/grid/columns.sass +93 -84
  43. data/_sass/grid/tiles.sass +3 -1
  44. data/_sass/helpers/_all.sass +12 -0
  45. data/_sass/helpers/color.sass +39 -0
  46. data/_sass/helpers/flexbox.sass +35 -0
  47. data/_sass/helpers/float.sass +10 -0
  48. data/_sass/helpers/other.sass +14 -0
  49. data/_sass/helpers/overflow.sass +2 -0
  50. data/_sass/helpers/position.sass +7 -0
  51. data/_sass/helpers/spacing.sass +31 -0
  52. data/_sass/helpers/typography.sass +103 -0
  53. data/_sass/helpers/visibility.sass +122 -0
  54. data/_sass/jekyll-bulma.code-workspace +8 -0
  55. data/_sass/layout/_all.sass +4 -3
  56. data/_sass/layout/footer.sass +2 -0
  57. data/_sass/layout/hero.sass +31 -21
  58. data/_sass/layout/section.sass +6 -2
  59. data/_sass/utilities/_all.sass +7 -6
  60. data/_sass/utilities/animations.sass +1 -5
  61. data/_sass/utilities/controls.sass +2 -3
  62. data/_sass/utilities/derived-variables.sass +9 -1
  63. data/_sass/utilities/extends.sass +25 -0
  64. data/_sass/utilities/functions.sass +42 -4
  65. data/_sass/utilities/initial-variables.sass +6 -5
  66. data/_sass/utilities/mixins.sass +46 -27
  67. metadata +16 -4
  68. data/_sass/components/list.sass +0 -39
@@ -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,14 +1,23 @@
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
4
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
5
11
 
6
12
  .notification
7
13
  @extend %block
8
14
  background-color: $notification-background-color
9
15
  border-radius: $notification-radius
10
- padding: $notification-padding
11
16
  position: relative
17
+ +ltr
18
+ padding: $notification-padding-ltr
19
+ +rtl
20
+ padding: $notification-padding-rtl
12
21
  a:not(.button):not(.dropdown-item)
13
22
  color: currentColor
14
23
  text-decoration: underline
@@ -20,17 +29,24 @@ $notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default
20
29
  pre code
21
30
  background: transparent
22
31
  & > .delete
32
+ +ltr-position(0.5rem)
23
33
  position: absolute
24
- right: 0.5rem
25
34
  top: 0.5rem
26
35
  .title,
27
36
  .subtitle,
28
37
  .content
29
38
  color: currentColor
30
39
  // Colors
31
- @each $name, $pair in $colors
40
+ @each $name, $pair in $notification-colors
32
41
  $color: nth($pair, 1)
33
42
  $color-invert: nth($pair, 2)
34
43
  &.is-#{$name}
35
44
  background-color: $color
36
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
@@ -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
 
@@ -1,9 +1,13 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $progress-bar-background-color: $border-light !default
2
4
  $progress-value-background-color: $text !default
3
5
  $progress-border-radius: $radius-rounded !default
4
6
 
5
7
  $progress-indeterminate-duration: 1.5s !default
6
8
 
9
+ $progress-colors: $colors !default
10
+
7
11
  .progress
8
12
  @extend %block
9
13
  -moz-appearance: none
@@ -25,7 +29,7 @@ $progress-indeterminate-duration: 1.5s !default
25
29
  background-color: $progress-value-background-color
26
30
  border: none
27
31
  // Colors
28
- @each $name, $pair in $colors
32
+ @each $name, $pair in $progress-colors
29
33
  $color: nth($pair, 1)
30
34
  &.is-#{$name}
31
35
  &::-webkit-progress-value
@@ -51,6 +55,8 @@ $progress-indeterminate-duration: 1.5s !default
51
55
  background-color: transparent
52
56
  &::-moz-progress-bar
53
57
  background-color: transparent
58
+ &::-ms-fill
59
+ animation-name: none
54
60
 
55
61
  // Sizes
56
62
  &.is-small
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $table-color: $text-strong !default
2
4
  $table-background-color: $scheme-main !default
3
5
 
@@ -23,6 +25,8 @@ $table-row-active-color: $primary-invert !default
23
25
  $table-striped-row-even-background-color: $scheme-main-bis !default
24
26
  $table-striped-row-even-hover-background-color: $scheme-main-ter !default
25
27
 
28
+ $table-colors: $colors !default
29
+
26
30
  .table
27
31
  @extend %block
28
32
  background-color: $table-background-color
@@ -34,7 +38,7 @@ $table-striped-row-even-hover-background-color: $scheme-main-ter !default
34
38
  padding: $table-cell-padding
35
39
  vertical-align: top
36
40
  // Colors
37
- @each $name, $pair in $colors
41
+ @each $name, $pair in $table-colors
38
42
  $color: nth($pair, 1)
39
43
  $color-invert: nth($pair, 2)
40
44
  &.is-#{$name}
@@ -51,10 +55,12 @@ $table-striped-row-even-hover-background-color: $scheme-main-ter !default
51
55
  a,
52
56
  strong
53
57
  color: currentColor
58
+ &.is-vcentered
59
+ vertical-align: middle
54
60
  th
55
61
  color: $table-cell-heading-color
56
62
  &:not([align])
57
- text-align: left
63
+ text-align: inherit
58
64
  tr
59
65
  &.is-selected
60
66
  background-color: $table-row-active-background-color
@@ -1,8 +1,12 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $tag-background-color: $background !default
2
4
  $tag-color: $text !default
3
5
  $tag-radius: $radius !default
4
6
  $tag-delete-margin: 1px !default
5
7
 
8
+ $tag-colors: $colors !default
9
+
6
10
  .tags
7
11
  align-items: center
8
12
  display: flex
@@ -11,7 +15,7 @@ $tag-delete-margin: 1px !default
11
15
  .tag
12
16
  margin-bottom: 0.5rem
13
17
  &:not(:last-child)
14
- margin-right: 0.5rem
18
+ +ltr-property("margin", 0.5rem)
15
19
  &:last-child
16
20
  margin-bottom: -0.5rem
17
21
  &:not(:last-child)
@@ -37,14 +41,22 @@ $tag-delete-margin: 1px !default
37
41
  margin-right: 0
38
42
  &.has-addons
39
43
  .tag
40
- margin-right: 0
44
+ +ltr-property("margin", 0)
41
45
  &:not(:first-child)
42
- margin-left: 0
43
- border-bottom-left-radius: 0
44
- border-top-left-radius: 0
46
+ +ltr-property("margin", 0, false)
47
+ +ltr
48
+ border-top-left-radius: 0
49
+ border-bottom-left-radius: 0
50
+ +rtl
51
+ border-top-right-radius: 0
52
+ border-bottom-right-radius: 0
45
53
  &:not(:last-child)
46
- border-bottom-right-radius: 0
47
- border-top-right-radius: 0
54
+ +ltr
55
+ border-top-right-radius: 0
56
+ border-bottom-right-radius: 0
57
+ +rtl
58
+ border-top-left-radius: 0
59
+ border-bottom-left-radius: 0
48
60
 
49
61
  .tag:not(body)
50
62
  align-items: center
@@ -60,10 +72,10 @@ $tag-delete-margin: 1px !default
60
72
  padding-right: 0.75em
61
73
  white-space: nowrap
62
74
  .delete
63
- margin-left: 0.25rem
64
- margin-right: -0.375rem
75
+ +ltr-property("margin", 0.25rem, false)
76
+ +ltr-property("margin", -0.375rem)
65
77
  // Colors
66
- @each $name, $pair in $colors
78
+ @each $name, $pair in $tag-colors
67
79
  $color: nth($pair, 1)
68
80
  $color-invert: nth($pair, 2)
69
81
  &.is-#{$name}
@@ -85,17 +97,17 @@ $tag-delete-margin: 1px !default
85
97
  font-size: $size-medium
86
98
  .icon
87
99
  &:first-child:not(:last-child)
88
- margin-left: -0.375em
89
- margin-right: 0.1875em
100
+ +ltr-property("margin", -0.375em, false)
101
+ +ltr-property("margin", 0.1875em)
90
102
  &:last-child:not(:first-child)
91
- margin-left: 0.1875em
92
- margin-right: -0.375em
103
+ +ltr-property("margin", 0.1875em, false)
104
+ +ltr-property("margin", -0.375em)
93
105
  &:first-child:last-child
94
- margin-left: -0.375em
95
- margin-right: -0.375em
106
+ +ltr-property("margin", -0.375em, false)
107
+ +ltr-property("margin", -0.375em)
96
108
  // Modifiers
97
109
  &.is-delete
98
- margin-left: $tag-delete-margin
110
+ +ltr-property("margin", $tag-delete-margin, false)
99
111
  padding: 0
100
112
  position: relative
101
113
  width: 2em
@@ -1,3 +1,5 @@
1
+ @import "../utilities/mixins"
2
+
1
3
  $title-color: $text-strong !default
2
4
  $title-family: false !default
3
5
  $title-size: $size-3 !default
@@ -41,8 +43,6 @@ $subtitle-negative-margin: -1.25rem !default
41
43
  strong
42
44
  color: $title-strong-color
43
45
  font-weight: $title-strong-weight
44
- & + .highlight
45
- margin-top: -0.75rem
46
46
  &:not(.is-spaced) + .subtitle
47
47
  margin-top: $subtitle-negative-margin
48
48
  // Sizes
data/_sass/form/_all.sass CHANGED
@@ -1,8 +1,9 @@
1
+ /* Bulma Form */
1
2
  @charset "utf-8"
2
3
 
3
- @import "shared.sass"
4
- @import "input-textarea.sass"
5
- @import "checkbox-radio.sass"
6
- @import "select.sass"
7
- @import "file.sass"
8
- @import "tools.sass"
4
+ @import "shared"
5
+ @import "input-textarea"
6
+ @import "checkbox-radio"
7
+ @import "select"
8
+ @import "file"
9
+ @import "tools"
@@ -8,7 +8,8 @@
8
8
  &:hover
9
9
  color: $input-hover-color
10
10
  &[disabled],
11
- fieldset[disabled] &
11
+ fieldset[disabled] &,
12
+ input[disabled]
12
13
  color: $input-disabled-color
13
14
  cursor: not-allowed
14
15
 
@@ -18,4 +19,4 @@
18
19
  .radio
19
20
  @extend %checkbox-radio
20
21
  & + .radio
21
- margin-left: 0.5em
22
+ +ltr-property("margin", 0.5em, false)
data/_sass/form/file.sass CHANGED
@@ -11,6 +11,8 @@ $file-name-border-style: solid !default
11
11
  $file-name-border-width: 1px 1px 1px 0 !default
12
12
  $file-name-max-width: 16em !default
13
13
 
14
+ $file-colors: $form-colors !default
15
+
14
16
  .file
15
17
  @extend %unselectable
16
18
  align-items: stretch
@@ -18,7 +20,7 @@ $file-name-max-width: 16em !default
18
20
  justify-content: flex-start
19
21
  position: relative
20
22
  // Colors
21
- @each $name, $pair in $colors
23
+ @each $name, $pair in $file-colors
22
24
  $color: nth($pair, 1)
23
25
  $color-invert: nth($pair, 2)
24
26
  &.is-#{$name}
@@ -29,24 +31,26 @@ $file-name-max-width: 16em !default
29
31
  &:hover,
30
32
  &.is-hovered
31
33
  .file-cta
32
- background-color: darken($color, 2.5%)
34
+ background-color: bulmaDarken($color, 2.5%)
33
35
  border-color: transparent
34
36
  color: $color-invert
35
37
  &:focus,
36
38
  &.is-focused
37
39
  .file-cta
38
40
  border-color: transparent
39
- box-shadow: 0 0 0.5em rgba($color, 0.25)
41
+ box-shadow: 0 0 0.5em bulmaRgba($color, 0.25)
40
42
  color: $color-invert
41
43
  &:active,
42
44
  &.is-active
43
45
  .file-cta
44
- background-color: darken($color, 5%)
46
+ background-color: bulmaDarken($color, 5%)
45
47
  border-color: transparent
46
48
  color: $color-invert
47
49
  // Sizes
48
50
  &.is-small
49
51
  font-size: $size-small
52
+ &.is-normal
53
+ font-size: $size-normal
50
54
  &.is-medium
51
55
  font-size: $size-medium
52
56
  .file-icon
@@ -125,16 +129,16 @@ $file-name-max-width: 16em !default
125
129
  position: relative
126
130
  &:hover
127
131
  .file-cta
128
- background-color: darken($file-cta-background-color, 2.5%)
132
+ background-color: bulmaDarken($file-cta-background-color, 2.5%)
129
133
  color: $file-cta-hover-color
130
134
  .file-name
131
- border-color: darken($file-name-border-color, 2.5%)
135
+ border-color: bulmaDarken($file-name-border-color, 2.5%)
132
136
  &:active
133
137
  .file-cta
134
- background-color: darken($file-cta-background-color, 5%)
138
+ background-color: bulmaDarken($file-cta-background-color, 5%)
135
139
  color: $file-cta-active-color
136
140
  .file-name
137
- border-color: darken($file-name-border-color, 5%)
141
+ border-color: bulmaDarken($file-name-border-color, 5%)
138
142
 
139
143
  .file-input
140
144
  height: 100%
@@ -166,7 +170,7 @@ $file-name-max-width: 16em !default
166
170
  display: block
167
171
  max-width: $file-name-max-width
168
172
  overflow: hidden
169
- text-align: left
173
+ text-align: inherit
170
174
  text-overflow: ellipsis
171
175
 
172
176
  .file-icon
@@ -174,7 +178,7 @@ $file-name-max-width: 16em !default
174
178
  display: flex
175
179
  height: 1em
176
180
  justify-content: center
177
- margin-right: 0.5em
181
+ +ltr-property("margin", 0.5em)
178
182
  width: 1em
179
183
  .fa
180
184
  font-size: 14px
@@ -2,6 +2,8 @@ $textarea-padding: $control-padding-horizontal !default
2
2
  $textarea-max-height: 40em !default
3
3
  $textarea-min-height: 8em !default
4
4
 
5
+ $textarea-colors: $form-colors !default
6
+
5
7
  %input-textarea
6
8
  @extend %input
7
9
  box-shadow: $input-shadow
@@ -10,7 +12,7 @@ $textarea-min-height: 8em !default
10
12
  &[readonly]
11
13
  box-shadow: none
12
14
  // Colors
13
- @each $name, $pair in $colors
15
+ @each $name, $pair in $textarea-colors
14
16
  $color: nth($pair, 1)
15
17
  &.is-#{$name}
16
18
  border-color: $color
@@ -18,7 +20,7 @@ $textarea-min-height: 8em !default
18
20
  &.is-focused,
19
21
  &:active,
20
22
  &.is-active
21
- box-shadow: $input-focus-box-shadow-size rgba($color, 0.25)
23
+ box-shadow: $input-focus-box-shadow-size bulmaRgba($color, 0.25)
22
24
  // Sizes
23
25
  &.is-small
24
26
  +control-small
@@ -1,3 +1,5 @@
1
+ $select-colors: $form-colors !default
2
+
1
3
  .select
2
4
  display: inline-block
3
5
  max-width: 100%
@@ -9,12 +11,12 @@
9
11
  &::after
10
12
  @extend %arrow
11
13
  border-color: $input-arrow
12
- right: 1.125em
14
+ +ltr-position(1.125em)
13
15
  z-index: 4
14
16
  &.is-rounded
15
17
  select
16
18
  border-radius: $radius-rounded
17
- padding-left: 1em
19
+ +ltr-property("padding", 1em, false)
18
20
  select
19
21
  @extend %input
20
22
  cursor: pointer
@@ -28,7 +30,7 @@
28
30
  fieldset[disabled] &:hover
29
31
  border-color: $input-disabled-border-color
30
32
  &:not([multiple])
31
- padding-right: 2.5em
33
+ +ltr-property("padding", 2.5em)
32
34
  &[multiple]
33
35
  height: auto
34
36
  padding: 0
@@ -39,7 +41,7 @@
39
41
  &::after
40
42
  border-color: $input-hover-color
41
43
  // Colors
42
- @each $name, $pair in $colors
44
+ @each $name, $pair in $select-colors
43
45
  $color: nth($pair, 1)
44
46
  &.is-#{$name}
45
47
  &:not(:hover)::after
@@ -48,12 +50,12 @@
48
50
  border-color: $color
49
51
  &:hover,
50
52
  &.is-hovered
51
- border-color: darken($color, 5%)
53
+ border-color: bulmaDarken($color, 5%)
52
54
  &:focus,
53
55
  &.is-focused,
54
56
  &:active,
55
57
  &.is-active
56
- box-shadow: $input-focus-box-shadow-size rgba($color, 0.25)
58
+ box-shadow: $input-focus-box-shadow-size bulmaRgba($color, 0.25)
57
59
  // Sizes
58
60
  &.is-small
59
61
  +control-small
@@ -74,7 +76,7 @@
74
76
  @extend %loader
75
77
  margin-top: 0
76
78
  position: absolute
77
- right: 0.625em
79
+ +ltr-position(0.625em)
78
80
  top: 0.625em
79
81
  transform: none
80
82
  &.is-small:after
@@ -1,9 +1,14 @@
1
+ @import "../utilities/controls"
2
+ @import "../utilities/mixins"
3
+
4
+ $form-colors: $colors !default
5
+
1
6
  $input-color: $text-strong !default
2
7
  $input-background-color: $scheme-main !default
3
8
  $input-border-color: $border !default
4
9
  $input-height: $control-height !default
5
10
  $input-shadow: inset 0 0.0625em 0.125em rgba($scheme-invert, 0.05) !default
6
- $input-placeholder-color: rgba($input-color, 0.3) !default
11
+ $input-placeholder-color: bulmaRgba($input-color, 0.3) !default
7
12
 
8
13
  $input-hover-color: $text-strong !default
9
14
  $input-hover-border-color: $border-hover !default
@@ -11,12 +16,12 @@ $input-hover-border-color: $border-hover !default
11
16
  $input-focus-color: $text-strong !default
12
17
  $input-focus-border-color: $link !default
13
18
  $input-focus-box-shadow-size: 0 0 0 0.125em !default
14
- $input-focus-box-shadow-color: rgba($link, 0.25) !default
19
+ $input-focus-box-shadow-color: bulmaRgba($link, 0.25) !default
15
20
 
16
21
  $input-disabled-color: $text-light !default
17
22
  $input-disabled-background-color: $background !default
18
23
  $input-disabled-border-color: $background !default
19
- $input-disabled-placeholder-color: rgba($input-disabled-color, 0.3) !default
24
+ $input-disabled-placeholder-color: bulmaRgba($input-disabled-color, 0.3) !default
20
25
 
21
26
  $input-arrow: $link !default
22
27
 
@@ -3,6 +3,8 @@ $label-weight: $weight-bold !default
3
3
 
4
4
  $help-size: $size-small !default
5
5
 
6
+ $label-colors: $form-colors !default
7
+
6
8
  .label
7
9
  color: $label-color
8
10
  display: block
@@ -22,7 +24,7 @@ $help-size: $size-small !default
22
24
  display: block
23
25
  font-size: $help-size
24
26
  margin-top: 0.25rem
25
- @each $name, $pair in $colors
27
+ @each $name, $pair in $label-colors
26
28
  $color: nth($pair, 1)
27
29
  &.is-#{$name}
28
30
  color: $color
@@ -38,7 +40,7 @@ $help-size: $size-small !default
38
40
  justify-content: flex-start
39
41
  .control
40
42
  &:not(:last-child)
41
- margin-right: -1px
43
+ +ltr-property("margin", -1px)
42
44
  &:not(:first-child):not(:last-child)
43
45
  .button,
44
46
  .input,
@@ -48,14 +50,22 @@ $help-size: $size-small !default
48
50
  .button,
49
51
  .input,
50
52
  .select select
51
- border-bottom-right-radius: 0
52
- border-top-right-radius: 0
53
+ +ltr
54
+ border-bottom-right-radius: 0
55
+ border-top-right-radius: 0
56
+ +rtl
57
+ border-bottom-left-radius: 0
58
+ border-top-left-radius: 0
53
59
  &:last-child:not(:only-child)
54
60
  .button,
55
61
  .input,
56
62
  .select select
57
- border-bottom-left-radius: 0
58
- border-top-left-radius: 0
63
+ +ltr
64
+ border-bottom-left-radius: 0
65
+ border-top-left-radius: 0
66
+ +rtl
67
+ border-bottom-right-radius: 0
68
+ border-top-right-radius: 0
59
69
  .button,
60
70
  .input,
61
71
  .select select
@@ -88,7 +98,7 @@ $help-size: $size-small !default
88
98
  flex-shrink: 0
89
99
  &:not(:last-child)
90
100
  margin-bottom: 0
91
- margin-right: 0.75rem
101
+ +ltr-property("margin", 0.75rem)
92
102
  &.is-expanded
93
103
  flex-grow: 1
94
104
  flex-shrink: 1
@@ -119,7 +129,7 @@ $help-size: $size-small !default
119
129
  flex-basis: 0
120
130
  flex-grow: 1
121
131
  flex-shrink: 0
122
- margin-right: 1.5rem
132
+ +ltr-property("margin", 1.5rem)
123
133
  text-align: right
124
134
  &.is-small
125
135
  font-size: $size-small
@@ -148,14 +158,14 @@ $help-size: $size-small !default
148
158
  &:not(.is-narrow)
149
159
  flex-grow: 1
150
160
  &:not(:last-child)
151
- margin-right: 0.75rem
161
+ +ltr-property("margin", 0.75rem)
152
162
 
153
163
  .control
154
164
  box-sizing: border-box
155
165
  clear: both
156
166
  font-size: $size-normal
157
167
  position: relative
158
- text-align: left
168
+ text-align: inherit
159
169
  // Modifiers
160
170
  &.has-icons-left,
161
171
  &.has-icons-right
@@ -194,7 +204,7 @@ $help-size: $size-small !default
194
204
  &::after
195
205
  @extend %loader
196
206
  position: absolute !important
197
- right: 0.625em
207
+ +ltr-position(0.625em)
198
208
  top: 0.625em
199
209
  z-index: 4
200
210
  &.is-small:after
data/_sass/grid/_all.sass CHANGED
@@ -1,4 +1,5 @@
1
+ /* Bulma Grid */
1
2
  @charset "utf-8"
2
3
 
3
- @import "columns.sass"
4
- @import "tiles.sass"
4
+ @import "columns"
5
+ @import "tiles"