bulma-sass 0.0.2 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -0,0 +1,101 @@
1
+ $panel-item-border: 1px solid $border !default
2
+
3
+ $panel-heading-background-color: $background !default
4
+ $panel-heading-color: $text-strong !default
5
+ $panel-heading-line-height: 1.25 !default
6
+ $panel-heading-padding: 0.5em 0.75em !default
7
+ $panel-heading-radius: $radius !default
8
+ $panel-heading-size: 1.25em !default
9
+ $panel-heading-weight: $weight-light !default
10
+
11
+ $panel-tab-border-bottom: 1px solid $border !default
12
+ $panel-tab-active-border-bottom-color: $link-active-border !default
13
+ $panel-tab-active-color: $link-active !default
14
+
15
+ $panel-list-item-color: $text !default
16
+ $panel-list-item-hover-color: $link !default
17
+
18
+ $panel-block-color: $text-strong !default
19
+ $panel-block-hover-background-color: $background !default
20
+ $panel-block-active-border-left-color: $link !default
21
+ $panel-block-active-color: $link-active !default
22
+ $panel-block-active-icon-color: $link !default
23
+
24
+ $panel-icon-color: $text-light !default
25
+
26
+ .panel
27
+ font-size: $size-normal
28
+ &:not(:last-child)
29
+ margin-bottom: 1.5rem
30
+
31
+ .panel-heading,
32
+ .panel-tabs,
33
+ .panel-block
34
+ border-bottom: $panel-item-border
35
+ border-left: $panel-item-border
36
+ border-right: $panel-item-border
37
+ &:first-child
38
+ border-top: $panel-item-border
39
+
40
+ .panel-heading
41
+ background-color: $panel-heading-background-color
42
+ border-radius: $panel-heading-radius $panel-heading-radius 0 0
43
+ color: $panel-heading-color
44
+ font-size: $panel-heading-size
45
+ font-weight: $panel-heading-weight
46
+ line-height: $panel-heading-line-height
47
+ padding: $panel-heading-padding
48
+
49
+ .panel-tabs
50
+ align-items: flex-end
51
+ display: flex
52
+ font-size: 0.875em
53
+ justify-content: center
54
+ a
55
+ border-bottom: $panel-tab-border-bottom
56
+ margin-bottom: -1px
57
+ padding: 0.5em
58
+ // Modifiers
59
+ &.is-active
60
+ border-bottom-color: $panel-tab-active-border-bottom-color
61
+ color: $panel-tab-active-color
62
+
63
+ .panel-list
64
+ a
65
+ color: $panel-list-item-color
66
+ &:hover
67
+ color: $panel-list-item-hover-color
68
+
69
+ .panel-block
70
+ align-items: center
71
+ color: $panel-block-color
72
+ display: flex
73
+ justify-content: flex-start
74
+ padding: 0.5em 0.75em
75
+ input[type="checkbox"]
76
+ margin-right: 0.75em
77
+ & > .control
78
+ flex-grow: 1
79
+ flex-shrink: 1
80
+ width: 100%
81
+ &.is-wrapped
82
+ flex-wrap: wrap
83
+ &.is-active
84
+ border-left-color: $panel-block-active-border-left-color
85
+ color: $panel-block-active-color
86
+ .panel-icon
87
+ color: $panel-block-active-icon-color
88
+
89
+ a.panel-block,
90
+ label.panel-block
91
+ cursor: pointer
92
+ &:hover
93
+ background-color: $panel-block-hover-background-color
94
+
95
+ .panel-icon
96
+ +fa(14px, 1em)
97
+ color: $panel-icon-color
98
+ margin-right: 0.75em
99
+ .fa
100
+ font-size: inherit
101
+ line-height: inherit
@@ -0,0 +1,141 @@
1
+ $tabs-border-bottom-color: $border !default
2
+ $tabs-border-bottom-style: solid !default
3
+ $tabs-border-bottom-width: 1px !default
4
+ $tabs-link-color: $text !default
5
+ $tabs-link-hover-border-bottom-color: $text-strong !default
6
+ $tabs-link-hover-color: $text-strong !default
7
+ $tabs-link-active-border-bottom-color: $link !default
8
+ $tabs-link-active-color: $link !default
9
+ $tabs-link-padding: 0.5em 1em !default
10
+
11
+ $tabs-boxed-link-radius: $radius !default
12
+ $tabs-boxed-link-hover-background-color: $background !default
13
+ $tabs-boxed-link-hover-border-bottom-color: $border !default
14
+
15
+ $tabs-boxed-link-active-background-color: $white !default
16
+ $tabs-boxed-link-active-border-color: $border !default
17
+ $tabs-boxed-link-active-border-bottom-color: transparent !default
18
+
19
+ $tabs-toggle-link-border-color: $border !default
20
+ $tabs-toggle-link-border-style: solid !default
21
+ $tabs-toggle-link-border-width: 1px !default
22
+ $tabs-toggle-link-hover-background-color: $background !default
23
+ $tabs-toggle-link-hover-border-color: $border-hover !default
24
+ $tabs-toggle-link-radius: $radius !default
25
+ $tabs-toggle-link-active-background-color: $link !default
26
+ $tabs-toggle-link-active-border-color: $link !default
27
+ $tabs-toggle-link-active-color: $link-invert !default
28
+
29
+ .tabs
30
+ +block
31
+ +overflow-touch
32
+ +unselectable
33
+ align-items: stretch
34
+ display: flex
35
+ font-size: $size-normal
36
+ justify-content: space-between
37
+ overflow: hidden
38
+ overflow-x: auto
39
+ white-space: nowrap
40
+ a
41
+ align-items: center
42
+ border-bottom-color: $tabs-border-bottom-color
43
+ border-bottom-style: $tabs-border-bottom-style
44
+ border-bottom-width: $tabs-border-bottom-width
45
+ color: $tabs-link-color
46
+ display: flex
47
+ justify-content: center
48
+ margin-bottom: -#{$tabs-border-bottom-width}
49
+ padding: $tabs-link-padding
50
+ vertical-align: top
51
+ &:hover
52
+ border-bottom-color: $tabs-link-hover-border-bottom-color
53
+ color: $tabs-link-hover-color
54
+ li
55
+ display: block
56
+ &.is-active
57
+ a
58
+ border-bottom-color: $tabs-link-active-border-bottom-color
59
+ color: $tabs-link-active-color
60
+ ul
61
+ align-items: center
62
+ border-bottom-color: $tabs-border-bottom-color
63
+ border-bottom-style: $tabs-border-bottom-style
64
+ border-bottom-width: $tabs-border-bottom-width
65
+ display: flex
66
+ flex-grow: 1
67
+ flex-shrink: 0
68
+ justify-content: flex-start
69
+ &.is-left
70
+ padding-right: 0.75em
71
+ &.is-center
72
+ flex: none
73
+ justify-content: center
74
+ padding-left: 0.75em
75
+ padding-right: 0.75em
76
+ &.is-right
77
+ justify-content: flex-end
78
+ padding-left: 0.75em
79
+ .icon
80
+ &:first-child
81
+ margin-right: 0.5em
82
+ &:last-child
83
+ margin-left: 0.5em
84
+ // Alignment
85
+ &.is-centered
86
+ ul
87
+ justify-content: center
88
+ &.is-right
89
+ ul
90
+ justify-content: flex-end
91
+ // Styles
92
+ &.is-boxed
93
+ a
94
+ border: 1px solid transparent
95
+ border-radius: $tabs-boxed-link-radius $tabs-boxed-link-radius 0 0
96
+ &:hover
97
+ background-color: $tabs-boxed-link-hover-background-color
98
+ border-bottom-color: $tabs-boxed-link-hover-border-bottom-color
99
+ li
100
+ &.is-active
101
+ a
102
+ background-color: $tabs-boxed-link-active-background-color
103
+ border-color: $tabs-boxed-link-active-border-color
104
+ border-bottom-color: $tabs-boxed-link-active-border-bottom-color !important
105
+ &.is-fullwidth
106
+ li
107
+ flex-grow: 1
108
+ flex-shrink: 0
109
+ &.is-toggle
110
+ a
111
+ border-color: $tabs-toggle-link-border-color
112
+ border-style: $tabs-toggle-link-border-style
113
+ border-width: $tabs-toggle-link-border-width
114
+ margin-bottom: 0
115
+ position: relative
116
+ &:hover
117
+ background-color: $tabs-toggle-link-hover-background-color
118
+ border-color: $tabs-toggle-link-hover-border-color
119
+ z-index: 2
120
+ li
121
+ & + li
122
+ margin-left: -#{$tabs-toggle-link-border-width}
123
+ &:first-child a
124
+ border-radius: $tabs-toggle-link-radius 0 0 $tabs-toggle-link-radius
125
+ &:last-child a
126
+ border-radius: 0 $tabs-toggle-link-radius $tabs-toggle-link-radius 0
127
+ &.is-active
128
+ a
129
+ background-color: $tabs-toggle-link-active-background-color
130
+ border-color: $tabs-toggle-link-active-border-color
131
+ color: $tabs-toggle-link-active-color
132
+ z-index: 1
133
+ ul
134
+ border-bottom: none
135
+ // Sizes
136
+ &.is-small
137
+ font-size: $size-small
138
+ &.is-medium
139
+ font-size: $size-medium
140
+ &.is-large
141
+ font-size: $size-large
@@ -0,0 +1,16 @@
1
+ @charset "utf-8"
2
+
3
+ @import "box.sass"
4
+ @import "button.sass"
5
+ @import "container.sass"
6
+ @import "content.sass"
7
+ @import "form.sass"
8
+ @import "icon.sass"
9
+ @import "image.sass"
10
+ @import "notification.sass"
11
+ @import "progress.sass"
12
+ @import "table.sass"
13
+ @import "tag.sass"
14
+ @import "title.sass"
15
+
16
+ @import "other.sass"
@@ -0,0 +1,24 @@
1
+ $box-color: $text !default
2
+ $box-background-color: $white !default
3
+ $box-radius: $radius-large !default
4
+ $box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default
5
+ $box-padding: 1.25rem !default
6
+
7
+ $box-link-hover-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px $link !default
8
+ $box-link-active-shadow: inset 0 1px 2px rgba($black, 0.2), 0 0 0 1px $link !default
9
+
10
+ .box
11
+ +block
12
+ background-color: $box-background-color
13
+ border-radius: $box-radius
14
+ box-shadow: $box-shadow
15
+ color: $box-color
16
+ display: block
17
+ padding: $box-padding
18
+
19
+ a.box
20
+ &:hover,
21
+ &:focus
22
+ box-shadow: $box-link-hover-shadow
23
+ &:active
24
+ box-shadow: $box-link-active-shadow
@@ -0,0 +1,201 @@
1
+ $button-color: $grey-darker !default
2
+ $button-background-color: $white !default
3
+ $button-border-color: $grey-lighter !default
4
+
5
+ $button-hover-color: $link-hover !default
6
+ $button-hover-border-color: $link-hover-border !default
7
+
8
+ $button-focus-color: $link-focus !default
9
+ $button-focus-border-color: $link-focus-border !default
10
+ $button-focus-box-shadow-size: 0 0 0 0.125em !default
11
+ $button-focus-box-shadow-color: rgba($link, 0.25) !default
12
+
13
+ $button-active-color: $link-active !default
14
+ $button-active-border-color: $link-active-border !default
15
+
16
+ $button-text-color: $text !default
17
+ $button-text-hover-background-color: $background !default
18
+ $button-text-hover-color: $text-strong !default
19
+
20
+ $button-disabled-background-color: $white !default
21
+ $button-disabled-border-color: $grey-lighter !default
22
+ $button-disabled-shadow: none !default
23
+ $button-disabled-opacity: 0.5 !default
24
+
25
+ $button-static-color: $grey !default
26
+ $button-static-background-color: $white-ter !default
27
+ $button-static-border-color: $grey-lighter !default
28
+
29
+ // The button sizes use mixins so they can be used at different breakpoints
30
+ =button-small
31
+ border-radius: $radius-small
32
+ font-size: $size-small
33
+ =button-medium
34
+ font-size: $size-medium
35
+ =button-large
36
+ font-size: $size-large
37
+
38
+ .button
39
+ +control
40
+ +unselectable
41
+ background-color: $button-background-color
42
+ border-color: $button-border-color
43
+ color: $button-color
44
+ cursor: pointer
45
+ justify-content: center
46
+ padding-left: 0.75em
47
+ padding-right: 0.75em
48
+ text-align: center
49
+ white-space: nowrap
50
+ strong
51
+ color: inherit
52
+ .icon
53
+ &,
54
+ &.is-small,
55
+ &.is-medium,
56
+ &.is-large
57
+ height: 1.5em
58
+ width: 1.5em
59
+ &:first-child:not(:last-child)
60
+ margin-left: calc(-0.375em - 1px)
61
+ margin-right: 0.1875em
62
+ &:last-child:not(:first-child)
63
+ margin-left: 0.1875em
64
+ margin-right: calc(-0.375em - 1px)
65
+ &:first-child:last-child
66
+ margin-left: calc(-0.375em - 1px)
67
+ margin-right: calc(-0.375em - 1px)
68
+ // States
69
+ &:hover,
70
+ &.is-hovered
71
+ border-color: $button-hover-border-color
72
+ color: $button-hover-color
73
+ &:focus,
74
+ &.is-focused
75
+ border-color: $button-focus-border-color
76
+ color: $button-focus-color
77
+ &:not(:active)
78
+ box-shadow: $button-focus-box-shadow-size $button-focus-box-shadow-color
79
+ &:active,
80
+ &.is-active
81
+ border-color: $button-active-border-color
82
+ color: $button-active-color
83
+ // Colors
84
+ &.is-text
85
+ background-color: transparent
86
+ border-color: transparent
87
+ color: $button-text-color
88
+ text-decoration: underline
89
+ &:hover,
90
+ &.is-hovered,
91
+ &:focus,
92
+ &.is-focused
93
+ background-color: $button-text-hover-background-color
94
+ color: $button-text-hover-color
95
+ &:active,
96
+ &.is-active
97
+ background-color: darken($button-text-hover-background-color, 5%)
98
+ color: $button-text-hover-color
99
+ &[disabled]
100
+ background-color: transparent
101
+ border-color: transparent
102
+ box-shadow: none
103
+ @each $name, $pair in $colors
104
+ $color: nth($pair, 1)
105
+ $color-invert: nth($pair, 2)
106
+ &.is-#{$name}
107
+ background-color: $color
108
+ border-color: transparent
109
+ color: $color-invert
110
+ &:hover,
111
+ &.is-hovered
112
+ background-color: darken($color, 2.5%)
113
+ border-color: transparent
114
+ color: $color-invert
115
+ &:focus,
116
+ &.is-focused
117
+ border-color: transparent
118
+ color: $color-invert
119
+ &:not(:active)
120
+ box-shadow: $button-focus-box-shadow-size rgba($color, 0.25)
121
+ &:active,
122
+ &.is-active
123
+ background-color: darken($color, 5%)
124
+ border-color: transparent
125
+ color: $color-invert
126
+ &[disabled]
127
+ background-color: $color
128
+ border-color: transparent
129
+ box-shadow: none
130
+ &.is-inverted
131
+ background-color: $color-invert
132
+ color: $color
133
+ &:hover
134
+ background-color: darken($color-invert, 5%)
135
+ &[disabled]
136
+ background-color: $color-invert
137
+ border-color: transparent
138
+ box-shadow: none
139
+ color: $color
140
+ &.is-loading
141
+ &:after
142
+ border-color: transparent transparent $color-invert $color-invert !important
143
+ &.is-outlined
144
+ background-color: transparent
145
+ border-color: $color
146
+ color: $color
147
+ &:hover,
148
+ &:focus
149
+ background-color: $color
150
+ border-color: $color
151
+ color: $color-invert
152
+ &.is-loading
153
+ &:after
154
+ border-color: transparent transparent $color $color !important
155
+ &[disabled]
156
+ background-color: transparent
157
+ border-color: $color
158
+ box-shadow: none
159
+ color: $color
160
+ &.is-inverted.is-outlined
161
+ background-color: transparent
162
+ border-color: $color-invert
163
+ color: $color-invert
164
+ &:hover,
165
+ &:focus
166
+ background-color: $color-invert
167
+ color: $color
168
+ &[disabled]
169
+ background-color: transparent
170
+ border-color: $color-invert
171
+ box-shadow: none
172
+ color: $color-invert
173
+ // Sizes
174
+ &.is-small
175
+ +button-small
176
+ &.is-medium
177
+ +button-medium
178
+ &.is-large
179
+ +button-large
180
+ // Modifiers
181
+ &[disabled]
182
+ background-color: $button-disabled-background-color
183
+ border-color: $button-disabled-border-color
184
+ box-shadow: $button-disabled-shadow
185
+ opacity: $button-disabled-opacity
186
+ &.is-fullwidth
187
+ display: flex
188
+ width: 100%
189
+ &.is-loading
190
+ color: transparent !important
191
+ pointer-events: none
192
+ &:after
193
+ +loader
194
+ +center(1em)
195
+ position: absolute !important
196
+ &.is-static
197
+ background-color: $button-static-background-color
198
+ border-color: $button-static-border-color
199
+ color: $button-static-color
200
+ box-shadow: none
201
+ pointer-events: none