bulma-sass 0.0.2 → 0.6.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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +2 -0
  4. data/app/assets/stylesheets/bulma.sass +7 -8
  5. data/app/assets/stylesheets/sass/base/_all.sass +5 -0
  6. data/app/assets/stylesheets/sass/base/generic.sass +127 -0
  7. data/app/assets/stylesheets/sass/base/helpers.sass +203 -0
  8. data/app/assets/stylesheets/sass/base/minireset.sass +80 -0
  9. data/app/assets/stylesheets/sass/components/_all.sass +14 -0
  10. data/app/assets/stylesheets/sass/components/breadcrumb.sass +74 -0
  11. data/app/assets/stylesheets/sass/components/card.sass +67 -0
  12. data/app/assets/stylesheets/sass/components/dropdown.sass +74 -0
  13. data/app/assets/stylesheets/sass/components/level.sass +75 -0
  14. data/app/assets/stylesheets/sass/components/media.sass +44 -0
  15. data/app/assets/stylesheets/sass/components/menu.sass +50 -0
  16. data/app/assets/stylesheets/sass/components/message.sass +79 -0
  17. data/app/assets/stylesheets/sass/components/modal.sass +111 -0
  18. data/app/assets/stylesheets/sass/components/navbar.sass +301 -0
  19. data/app/assets/stylesheets/sass/components/pagination.sass +134 -0
  20. data/app/assets/stylesheets/sass/components/panel.sass +101 -0
  21. data/app/assets/stylesheets/sass/components/tabs.sass +141 -0
  22. data/app/assets/stylesheets/sass/elements/_all.sass +16 -0
  23. data/app/assets/stylesheets/sass/elements/box.sass +24 -0
  24. data/app/assets/stylesheets/sass/elements/button.sass +201 -0
  25. data/app/assets/stylesheets/sass/elements/container.sass +25 -0
  26. data/app/assets/stylesheets/sass/elements/content.sass +145 -0
  27. data/app/assets/stylesheets/sass/elements/form.sass +605 -0
  28. data/app/assets/stylesheets/sass/elements/icon.sass +21 -0
  29. data/app/assets/stylesheets/sass/elements/image.sass +36 -0
  30. data/app/assets/stylesheets/sass/elements/notification.sass +35 -0
  31. data/app/assets/stylesheets/sass/elements/other.sass +39 -0
  32. data/app/assets/stylesheets/sass/elements/progress.sass +35 -0
  33. data/app/assets/stylesheets/sass/elements/table.sass +104 -0
  34. data/app/assets/stylesheets/sass/elements/tag.sass +89 -0
  35. data/app/assets/stylesheets/sass/elements/title.sass +55 -0
  36. data/app/assets/stylesheets/sass/grid/_all.sass +4 -0
  37. data/app/assets/stylesheets/sass/grid/columns.sass +328 -0
  38. data/app/assets/stylesheets/sass/grid/tiles.sass +32 -0
  39. data/app/assets/stylesheets/sass/layout/_all.sass +5 -0
  40. data/app/assets/stylesheets/sass/layout/footer.sass +5 -0
  41. data/app/assets/stylesheets/sass/layout/hero.sass +155 -0
  42. data/app/assets/stylesheets/sass/layout/section.sass +13 -0
  43. data/app/assets/stylesheets/sass/utilities/_all.sass +8 -0
  44. data/app/assets/stylesheets/{bulma → sass}/utilities/animations.sass +1 -1
  45. data/app/assets/stylesheets/sass/utilities/controls.sass +41 -0
  46. data/app/assets/stylesheets/sass/utilities/derived-variables.sass +82 -0
  47. data/app/assets/stylesheets/{bulma → sass}/utilities/functions.sass +7 -13
  48. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +65 -0
  49. data/app/assets/stylesheets/sass/utilities/mixins.sass +226 -0
  50. data/lib/bulma/sass/version.rb +1 -1
  51. metadata +46 -32
  52. data/app/assets/stylesheets/bulma/base/base.sass +0 -6
  53. data/app/assets/stylesheets/bulma/base/content.sass +0 -51
  54. data/app/assets/stylesheets/bulma/base/generic.sass +0 -101
  55. data/app/assets/stylesheets/bulma/base/helpers.sass +0 -27
  56. data/app/assets/stylesheets/bulma/base/highlight.sass +0 -123
  57. data/app/assets/stylesheets/bulma/components/card.sass +0 -36
  58. data/app/assets/stylesheets/bulma/components/components.sass +0 -11
  59. data/app/assets/stylesheets/bulma/components/grid.sass +0 -48
  60. data/app/assets/stylesheets/bulma/components/media.sass +0 -69
  61. data/app/assets/stylesheets/bulma/components/menu.sass +0 -25
  62. data/app/assets/stylesheets/bulma/components/navbar.sass +0 -45
  63. data/app/assets/stylesheets/bulma/components/table.sass +0 -73
  64. data/app/assets/stylesheets/bulma/components/tabs.sass +0 -84
  65. data/app/assets/stylesheets/bulma/config/generated-variables.sass +0 -74
  66. data/app/assets/stylesheets/bulma/config/variables.sass +0 -41
  67. data/app/assets/stylesheets/bulma/elements/buttons.sass +0 -96
  68. data/app/assets/stylesheets/bulma/elements/controls.sass +0 -213
  69. data/app/assets/stylesheets/bulma/elements/elements.sass +0 -172
  70. data/app/assets/stylesheets/bulma/elements/messages.sass +0 -41
  71. data/app/assets/stylesheets/bulma/elements/notifications.sass +0 -20
  72. data/app/assets/stylesheets/bulma/elements/titles.sass +0 -57
  73. data/app/assets/stylesheets/bulma/layout/footer.sass +0 -11
  74. data/app/assets/stylesheets/bulma/layout/header.sass +0 -149
  75. data/app/assets/stylesheets/bulma/layout/hero.sass +0 -148
  76. data/app/assets/stylesheets/bulma/layout/layout.sass +0 -6
  77. data/app/assets/stylesheets/bulma/layout/section.sass +0 -11
  78. data/app/assets/stylesheets/bulma/utilities/mixins.sass +0 -83
  79. data/app/assets/stylesheets/bulma/utilities/reset.sass +0 -174
  80. data/app/assets/stylesheets/bulma/utilities/utilities.sass +0 -6
@@ -1,84 +0,0 @@
1
- .tabs
2
- line-height: 24px
3
- overflow: hidden
4
- overflow-x: auto
5
- white-space: nowrap
6
- &:not(:last-child)
7
- margin-bottom: 20px
8
- .fa
9
- line-height: 24px
10
- margin: 0 -2px
11
- width: 24px
12
- a
13
- border-bottom: 1px solid $border
14
- color: $text
15
- display: block
16
- margin-bottom: -1px
17
- padding: 5px 0
18
- vertical-align: top
19
- &:hover
20
- border-bottom-color: $text-strong
21
- color: $text-strong
22
- li
23
- display: inline-block
24
- vertical-align: top
25
- & + li
26
- margin-left: 20px
27
- &.is-active
28
- a
29
- border-bottom-color: $link
30
- color: $link
31
- ul
32
- border-bottom: 1px solid $border
33
- &.is-boxed
34
- a
35
- border: 1px solid transparent
36
- border-radius: $radius $radius 0 0
37
- padding: 5px 15px
38
- &:hover
39
- background: $background
40
- border-bottom-color: $border
41
- li
42
- & + li
43
- margin-left: 5px
44
- &.is-active
45
- a
46
- background: white
47
- border-color: $border
48
- border-bottom-color: transparent
49
- &.is-toggle
50
- ul
51
- border-bottom: none
52
- display: flex
53
- a
54
- border: 1px solid $border
55
- margin-bottom: 0
56
- padding: 5px 10px
57
- position: relative
58
- &:hover
59
- background: $background
60
- border-color: $border-hover
61
- z-index: 2
62
- li
63
- & + li
64
- margin-left: -1px
65
- &:first-child a
66
- border-radius: $radius 0 0 $radius
67
- &:last-child a
68
- border-radius: 0 $radius $radius 0
69
- &.is-active
70
- a
71
- background: $primary
72
- border-color: $primary
73
- color: $primary-invert
74
- z-index: 1
75
- &.is-fullwidth
76
- +tablet
77
- ul
78
- display: flex
79
- justify-content: center
80
- text-align: center
81
- li
82
- flex: 1
83
- & + li
84
- margin-left: 0
@@ -1,74 +0,0 @@
1
- // Colors
2
-
3
- $primary-invert: findColorInvert($primary)
4
- $info: $blue
5
- $info-invert: findColorInvert($info)
6
- $success: $green
7
- $success-invert: findColorInvert($success)
8
- $warning: $yellow
9
- $warning-invert: findColorInvert($warning)
10
- $danger: $red
11
- $danger-invert: findColorInvert($danger)
12
-
13
- $colors: (primary: ($primary, $primary-invert), info: ($info, $info-invert), success: ($success, $success-invert), warning: ($warning, $warning-invert), danger: ($danger, $danger-invert))
14
-
15
- $body-background: $grey-lighter
16
-
17
- $background: $grey-lighter
18
-
19
- $border: $grey-light
20
- $border-hover: $grey
21
-
22
- // Text
23
-
24
- $text: $grey-dark
25
- $text-invert: findColorInvert($text)
26
- $text-light: $grey
27
- $text-strong: $grey-darker
28
-
29
- // Code
30
-
31
- $code: $info
32
- $code-background: $background
33
-
34
- $pre: $text
35
- $pre-background: $background
36
-
37
- // Links
38
-
39
- $link: $primary
40
- $link-invert: $primary-invert
41
- $link-visited: $purple
42
-
43
- $link-hover: $grey-darker
44
- $link-hover-background: $grey-lighter
45
- $link-hover-border: $grey-darker
46
-
47
- $link-active: $grey-darker
48
- $link-active-border: $grey-darker
49
-
50
- // Controls
51
-
52
- $control: $text-strong
53
- $control-background: $text-invert
54
- $control-border: $border
55
-
56
- $control-hover: $link-hover
57
- $control-hover-border: $border-hover
58
-
59
- $control-active: $link
60
- $control-active-background: $link
61
- $control-active-background-invert: $link-invert
62
- $control-active-border: $link
63
-
64
- // Typography
65
-
66
- $family-primary: $family-sans-serif
67
-
68
- $size-small: $size-7
69
- $size-normal: $size-6
70
- $size-medium: $size-5
71
- $size-large: $size-3
72
- $size-huge: $size-1
73
-
74
- $sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6
@@ -1,41 +0,0 @@
1
- // Colors
2
-
3
- $grey-darker: #222324
4
- $grey-dark: #69707a
5
- $grey: #aeb1b5
6
- $grey-light: #d3d6db
7
- $grey-lighter: #ebeff5
8
- $grey-lighter: #f5f7fa
9
-
10
- $blue: #42afe3
11
- $green: #97cd76
12
- $orange: #f68b39
13
- $purple: #847bb9
14
- $red: #ed6c63
15
- $turquoise: #1fc8db
16
- $yellow: #fce473
17
-
18
- $primary: $turquoise
19
-
20
- // Typography
21
-
22
- $family-sans-serif: "Helvetica Neue", "Helvetica", "Arial", sans-serif
23
-
24
- $size-1: 48px
25
- $size-2: 40px
26
- $size-3: 28px
27
- $size-4: 24px
28
- $size-5: 18px
29
- $size-6: 14px
30
-
31
- $size-7: 11px
32
-
33
- // Dimensions
34
-
35
- $header-height: 50px
36
-
37
- // Miscellaneous
38
-
39
- $easing: ease-out
40
- $radius: 3px
41
- $speed: 86ms
@@ -1,96 +0,0 @@
1
- =button-small
2
- border-radius: 2px
3
- font-size: 11px
4
- height: 24px
5
- line-height: 16px
6
- padding: 3px 6px
7
- =button-medium
8
- font-size: 18px
9
- height: 40px
10
- padding: 7px 14px
11
- =button-large
12
- font-size: 22px
13
- height: 48px
14
- padding: 11px 20px
15
-
16
- .button
17
- +control
18
- padding: 3px 10px
19
- strong
20
- color: inherit
21
- small
22
- display: block
23
- font-size: $size-small
24
- line-height: 1
25
- margin-top: 5px
26
- .fa
27
- line-height: 24px
28
- margin: 0 -2px
29
- width: 24px
30
- &:hover
31
- color: $control-hover
32
- &:active
33
- box-shadow: inset 0 1px 2px rgba(black, 0.2)
34
- @each $name, $pair in $colors
35
- $color: nth($pair, 1)
36
- $color-invert: nth($pair, 2)
37
- &.is-#{$name}
38
- background: $color
39
- border-color: transparent
40
- color: $color-invert
41
- &:hover,
42
- &:focus
43
- background: darken($color, 10%)
44
- border-color: transparent
45
- color: $color-invert
46
- &:active
47
- border-color: transparent
48
- &.is-outlined
49
- background: transparent
50
- border-color: $color
51
- color: $color
52
- &:hover,
53
- &:focus
54
- border-color: darken($color, 10%)
55
- color: darken($color, 10%)
56
- &.is-inverted
57
- background: $color-invert
58
- color: $color
59
- &:hover
60
- background: darken($color-invert, 5%)
61
- &.is-outlined
62
- background-color: transparent
63
- border-color: $color-invert
64
- color: $color-invert
65
- &:hover
66
- background: rgba(black, 0.05)
67
- &.is-loading:after
68
- border-color: transparent transparent $color-invert $color-invert !important
69
- &.is-small
70
- +button-small
71
- &.is-medium
72
- +button-medium
73
- &.is-large
74
- +button-large
75
- &.is-flexible
76
- height: auto
77
- &.is-loading
78
- color: transparent
79
- pointer-events: none
80
- &:after
81
- @extend .loader
82
- +center(16px)
83
- position: absolute !important
84
- &.is-disabled,
85
- &[disabled]
86
- opacity: 0.5
87
- pointer-events: none
88
- +tablet
89
- small
90
- color: $text
91
- left: 0
92
- margin-top: 10px
93
- position: absolute
94
- top: 100%
95
- width: 100%
96
-
@@ -1,213 +0,0 @@
1
- =control
2
- -moz-appearance: none
3
- -webkit-appearance: none
4
- background: $control-background
5
- border: 1px solid $control-border
6
- border-radius: $radius
7
- color: $control
8
- display: inline-block
9
- font-size: $size-normal
10
- height: 32px
11
- line-height: 24px
12
- padding: 3px 8px
13
- position: relative
14
- vertical-align: top
15
- &:hover
16
- border-color: $control-hover-border
17
- &:active,
18
- &:focus
19
- border-color: $control-active-border
20
- outline: none
21
- &[disabled]
22
- &,
23
- &:hover
24
- background: $background
25
- border-color: $control-border
26
- +placeholder
27
- color: rgba($control, 0.3)
28
-
29
- =control-small
30
- border-radius: 2px
31
- font-size: 11px
32
- height: 24px
33
- line-height: 16px
34
- padding: 3px 6px
35
- =control-medium
36
- font-size: 18px
37
- height: 40px
38
- line-height: 32px
39
- padding: 3px 10px
40
- =control-large
41
- font-size: 24px
42
- height: 48px
43
- line-height: 40px
44
- padding: 3px 12px
45
-
46
- .input
47
- +control
48
- box-shadow: inset 0 1px 2px rgba(black, 0.1)
49
- display: block
50
- max-width: 100%
51
- width: 100%
52
- &[type="search"]
53
- border-radius: 290486px
54
- &.is-small
55
- +control-small
56
- &.is-medium
57
- +control-medium
58
- &.is-large
59
- +control-large
60
- &.is-fullwidth
61
- display: block
62
- width: 100%
63
- &.is-inline
64
- display: inline
65
- width: auto
66
-
67
- .textarea
68
- @extend .input
69
- line-height: 1.2
70
- max-height: 600px
71
- max-width: 100%
72
- min-height: 120px
73
- min-width: 100%
74
- padding: 10px
75
- resize: vertical
76
-
77
- %control-with-element
78
- cursor: pointer
79
- display: inline-block
80
- line-height: 16px
81
- padding-left: 18px
82
- position: relative
83
- vertical-align: top
84
- input
85
- +control
86
- border-radius: 1px
87
- box-shadow: inset 0 1px 1px rgba(black, 0.1)
88
- cursor: pointer
89
- float: left
90
- height: 14px
91
- left: 0
92
- outline: none
93
- padding: 0
94
- position: absolute
95
- top: 1px
96
- width: 14px
97
- &:after
98
- +arrow($control-active-background-invert)
99
- height: 4px
100
- left: 3px
101
- opacity: 0
102
- position: absolute
103
- top: 3px
104
- transform: rotate(-45deg) scale(1)
105
- &:checked
106
- background: $control-active-background
107
- border-color: $control-active-background
108
- box-shadow: none
109
- &:after
110
- opacity: 1
111
- &:hover
112
- color: $control-hover
113
- input
114
- border-color: $control-hover-border
115
- &:checked
116
- border-color: $control-active-border
117
- &.is-disabled
118
- &,
119
- &:hover
120
- color: $text-light
121
-
122
- .checkbox
123
- @extend %control-with-element
124
-
125
- .radio
126
- @extend %control-with-element
127
- & + .radio
128
- margin-left: 10px
129
- input
130
- border-radius: 8px
131
- &:after
132
- background: $link-invert
133
- border: 0
134
- border-radius: 2px
135
- left: 4px
136
- top: 4px
137
- transform: none
138
- width: 4px
139
-
140
- .select
141
- display: inline-block
142
- height: 32px
143
- position: relative
144
- vertical-align: top
145
- select
146
- +control
147
- cursor: pointer
148
- display: block
149
- outline: none
150
- padding-right: 36px
151
- &:hover
152
- border-color: $control-hover-border
153
- &:after
154
- +arrow($link)
155
- margin-top: -6px
156
- right: 16px
157
- top: 50%
158
- &:hover
159
- &:after
160
- border-color: $link-hover
161
-
162
- .control
163
- position: relative
164
- &.is-loading
165
- &:after
166
- @extend .loader
167
- position: absolute !important
168
- right: 8px
169
- top: 8px
170
- &:not(:last-child)
171
- margin-bottom: 10px
172
- &.is-withicon
173
- .fa
174
- +fa(14px, 20px)
175
- color: $text-light
176
- left: 6px
177
- pointer-events: none
178
- position: absolute
179
- top: 6px
180
- z-index: 1
181
- .input
182
- padding-left: 32px
183
- &:focus + .fa
184
- color: $control-active
185
- &.is-horizontal
186
- display: flex
187
- & > .button,
188
- & > .input,
189
- & > .select
190
- &:not(:last-child)
191
- margin-right: 10px
192
- & > .input
193
- flex: 1
194
- &.is-grouped
195
- display: flex
196
- .input,
197
- .button,
198
- .select
199
- border-radius: 0
200
- margin-right: -1px
201
- &:hover
202
- z-index: 2
203
- &:active,
204
- &:focus
205
- z-index: 3
206
- &:first-child
207
- border-radius: $radius 0 0 $radius
208
- select
209
- border-radius: $radius 0 0 $radius
210
- &:last-child
211
- border-radius: 0 $radius $radius 0
212
- &.is-centered
213
- justify-content: center