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,226 @@
1
+ @import "initial-variables"
2
+
3
+ =arrow($color)
4
+ border: 1px solid $color
5
+ border-right: 0
6
+ border-top: 0
7
+ content: " "
8
+ display: block
9
+ height: 0.5em
10
+ pointer-events: none
11
+ position: absolute
12
+ transform: rotate(-45deg)
13
+ width: 0.5em
14
+
15
+ =block
16
+ &:not(:last-child)
17
+ margin-bottom: 1.5rem
18
+
19
+ =clearfix
20
+ &:after
21
+ clear: both
22
+ content: " "
23
+ display: table
24
+
25
+ =center($width, $height: 0)
26
+ position: absolute
27
+ @if $height != 0
28
+ left: calc(50% - (#{$width} / 2))
29
+ top: calc(50% - (#{$height} / 2))
30
+ @else
31
+ left: calc(50% - (#{$width} / 2))
32
+ top: calc(50% - (#{$width} / 2))
33
+
34
+ =delete
35
+ +unselectable
36
+ -moz-appearance: none
37
+ -webkit-appearance: none
38
+ background-color: rgba($black, 0.2)
39
+ border: none
40
+ border-radius: 290486px
41
+ cursor: pointer
42
+ display: inline-block
43
+ flex-grow: 0
44
+ flex-shrink: 0
45
+ font-size: $size-normal
46
+ height: 20px
47
+ max-height: 20px
48
+ max-width: 20px
49
+ min-height: 20px
50
+ min-width: 20px
51
+ outline: none
52
+ position: relative
53
+ vertical-align: top
54
+ width: 20px
55
+ &:before,
56
+ &:after
57
+ background-color: $white
58
+ content: ""
59
+ display: block
60
+ left: 50%
61
+ position: absolute
62
+ top: 50%
63
+ transform: translateX(-50%) translateY(-50%) rotate(45deg)
64
+ transform-origin: center center
65
+ &:before
66
+ height: 2px
67
+ width: 50%
68
+ &:after
69
+ height: 50%
70
+ width: 2px
71
+ &:hover,
72
+ &:focus
73
+ background-color: rgba($black, 0.3)
74
+ &:active
75
+ background-color: rgba($black, 0.4)
76
+ // Sizes
77
+ &.is-small
78
+ height: 16px
79
+ max-height: 16px
80
+ max-width: 16px
81
+ min-height: 16px
82
+ min-width: 16px
83
+ width: 16px
84
+ &.is-medium
85
+ height: 24px
86
+ max-height: 24px
87
+ max-width: 24px
88
+ min-height: 24px
89
+ min-width: 24px
90
+ width: 24px
91
+ &.is-large
92
+ height: 32px
93
+ max-height: 32px
94
+ max-width: 32px
95
+ min-height: 32px
96
+ min-width: 32px
97
+ width: 32px
98
+
99
+ =fa($size, $dimensions)
100
+ display: inline-block
101
+ font-size: $size
102
+ height: $dimensions
103
+ line-height: $dimensions
104
+ text-align: center
105
+ vertical-align: top
106
+ width: $dimensions
107
+
108
+ =hamburger($dimensions)
109
+ cursor: pointer
110
+ display: block
111
+ height: $dimensions
112
+ position: relative
113
+ width: $dimensions
114
+ span
115
+ background-color: currentColor
116
+ display: block
117
+ height: 1px
118
+ left: 50%
119
+ margin-left: -7px
120
+ position: absolute
121
+ top: 50%
122
+ transition: none $speed $easing
123
+ transition-property: background, left, opacity, transform
124
+ width: 15px
125
+ &:nth-child(1)
126
+ margin-top: -6px
127
+ &:nth-child(2)
128
+ margin-top: -1px
129
+ &:nth-child(3)
130
+ margin-top: 4px
131
+ &:hover
132
+ background-color: rgba(black, 0.05)
133
+ // Modifers
134
+ &.is-active
135
+ span
136
+ &:nth-child(1)
137
+ margin-left: -5px
138
+ transform: rotate(45deg)
139
+ transform-origin: left top
140
+ &:nth-child(2)
141
+ opacity: 0
142
+ &:nth-child(3)
143
+ margin-left: -5px
144
+ transform: rotate(-45deg)
145
+ transform-origin: left bottom
146
+
147
+ =loader
148
+ animation: spinAround 500ms infinite linear
149
+ border: 2px solid $border
150
+ border-radius: 290486px
151
+ border-right-color: transparent
152
+ border-top-color: transparent
153
+ content: ""
154
+ display: block
155
+ height: 1em
156
+ position: relative
157
+ width: 1em
158
+
159
+ =overflow-touch
160
+ -webkit-overflow-scrolling: touch
161
+
162
+ =overlay($offset: 0)
163
+ bottom: $offset
164
+ left: $offset
165
+ position: absolute
166
+ right: $offset
167
+ top: $offset
168
+
169
+ =placeholder
170
+ $placeholders: ':-moz' ':-webkit-input' '-moz' '-ms-input'
171
+ @each $placeholder in $placeholders
172
+ &:#{$placeholder}-placeholder
173
+ @content
174
+
175
+ =unselectable
176
+ -webkit-touch-callout: none
177
+ -webkit-user-select: none
178
+ -moz-user-select: none
179
+ -ms-user-select: none
180
+ user-select: none
181
+
182
+ // Responsiveness
183
+
184
+ =from($device)
185
+ @media screen and (min-width: $device)
186
+ @content
187
+
188
+ =until($device)
189
+ @media screen and (max-width: $device - 1px)
190
+ @content
191
+
192
+ =mobile
193
+ @media screen and (max-width: $tablet - 1px)
194
+ @content
195
+
196
+ =tablet
197
+ @media screen and (min-width: $tablet), print
198
+ @content
199
+
200
+ =tablet-only
201
+ @media screen and (min-width: $tablet) and (max-width: $desktop - 1px)
202
+ @content
203
+
204
+ =touch
205
+ @media screen and (max-width: $desktop - 1px)
206
+ @content
207
+
208
+ =desktop
209
+ @media screen and (min-width: $desktop)
210
+ @content
211
+
212
+ =desktop-only
213
+ @media screen and (min-width: $desktop) and (max-width: $widescreen - 1px)
214
+ @content
215
+
216
+ =widescreen
217
+ @media screen and (min-width: $widescreen)
218
+ @content
219
+
220
+ =widescreen-only
221
+ @media screen and (min-width: $widescreen) and (max-width: $fullhd - 1px)
222
+ @content
223
+
224
+ =fullhd
225
+ @media screen and (min-width: $fullhd)
226
+ @content
@@ -1,5 +1,5 @@
1
1
  module Bulma
2
2
  module Sass
3
- VERSION = "0.0.2"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulma-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bananaappletw
@@ -65,37 +65,51 @@ files:
65
65
  - README.md
66
66
  - Rakefile
67
67
  - app/assets/stylesheets/bulma.sass
68
- - app/assets/stylesheets/bulma/base/base.sass
69
- - app/assets/stylesheets/bulma/base/content.sass
70
- - app/assets/stylesheets/bulma/base/generic.sass
71
- - app/assets/stylesheets/bulma/base/helpers.sass
72
- - app/assets/stylesheets/bulma/base/highlight.sass
73
- - app/assets/stylesheets/bulma/components/card.sass
74
- - app/assets/stylesheets/bulma/components/components.sass
75
- - app/assets/stylesheets/bulma/components/grid.sass
76
- - app/assets/stylesheets/bulma/components/media.sass
77
- - app/assets/stylesheets/bulma/components/menu.sass
78
- - app/assets/stylesheets/bulma/components/navbar.sass
79
- - app/assets/stylesheets/bulma/components/table.sass
80
- - app/assets/stylesheets/bulma/components/tabs.sass
81
- - app/assets/stylesheets/bulma/config/generated-variables.sass
82
- - app/assets/stylesheets/bulma/config/variables.sass
83
- - app/assets/stylesheets/bulma/elements/buttons.sass
84
- - app/assets/stylesheets/bulma/elements/controls.sass
85
- - app/assets/stylesheets/bulma/elements/elements.sass
86
- - app/assets/stylesheets/bulma/elements/messages.sass
87
- - app/assets/stylesheets/bulma/elements/notifications.sass
88
- - app/assets/stylesheets/bulma/elements/titles.sass
89
- - app/assets/stylesheets/bulma/layout/footer.sass
90
- - app/assets/stylesheets/bulma/layout/header.sass
91
- - app/assets/stylesheets/bulma/layout/hero.sass
92
- - app/assets/stylesheets/bulma/layout/layout.sass
93
- - app/assets/stylesheets/bulma/layout/section.sass
94
- - app/assets/stylesheets/bulma/utilities/animations.sass
95
- - app/assets/stylesheets/bulma/utilities/functions.sass
96
- - app/assets/stylesheets/bulma/utilities/mixins.sass
97
- - app/assets/stylesheets/bulma/utilities/reset.sass
98
- - app/assets/stylesheets/bulma/utilities/utilities.sass
68
+ - app/assets/stylesheets/sass/base/_all.sass
69
+ - app/assets/stylesheets/sass/base/generic.sass
70
+ - app/assets/stylesheets/sass/base/helpers.sass
71
+ - app/assets/stylesheets/sass/base/minireset.sass
72
+ - app/assets/stylesheets/sass/components/_all.sass
73
+ - app/assets/stylesheets/sass/components/breadcrumb.sass
74
+ - app/assets/stylesheets/sass/components/card.sass
75
+ - app/assets/stylesheets/sass/components/dropdown.sass
76
+ - app/assets/stylesheets/sass/components/level.sass
77
+ - app/assets/stylesheets/sass/components/media.sass
78
+ - app/assets/stylesheets/sass/components/menu.sass
79
+ - app/assets/stylesheets/sass/components/message.sass
80
+ - app/assets/stylesheets/sass/components/modal.sass
81
+ - app/assets/stylesheets/sass/components/navbar.sass
82
+ - app/assets/stylesheets/sass/components/pagination.sass
83
+ - app/assets/stylesheets/sass/components/panel.sass
84
+ - app/assets/stylesheets/sass/components/tabs.sass
85
+ - app/assets/stylesheets/sass/elements/_all.sass
86
+ - app/assets/stylesheets/sass/elements/box.sass
87
+ - app/assets/stylesheets/sass/elements/button.sass
88
+ - app/assets/stylesheets/sass/elements/container.sass
89
+ - app/assets/stylesheets/sass/elements/content.sass
90
+ - app/assets/stylesheets/sass/elements/form.sass
91
+ - app/assets/stylesheets/sass/elements/icon.sass
92
+ - app/assets/stylesheets/sass/elements/image.sass
93
+ - app/assets/stylesheets/sass/elements/notification.sass
94
+ - app/assets/stylesheets/sass/elements/other.sass
95
+ - app/assets/stylesheets/sass/elements/progress.sass
96
+ - app/assets/stylesheets/sass/elements/table.sass
97
+ - app/assets/stylesheets/sass/elements/tag.sass
98
+ - app/assets/stylesheets/sass/elements/title.sass
99
+ - app/assets/stylesheets/sass/grid/_all.sass
100
+ - app/assets/stylesheets/sass/grid/columns.sass
101
+ - app/assets/stylesheets/sass/grid/tiles.sass
102
+ - app/assets/stylesheets/sass/layout/_all.sass
103
+ - app/assets/stylesheets/sass/layout/footer.sass
104
+ - app/assets/stylesheets/sass/layout/hero.sass
105
+ - app/assets/stylesheets/sass/layout/section.sass
106
+ - app/assets/stylesheets/sass/utilities/_all.sass
107
+ - app/assets/stylesheets/sass/utilities/animations.sass
108
+ - app/assets/stylesheets/sass/utilities/controls.sass
109
+ - app/assets/stylesheets/sass/utilities/derived-variables.sass
110
+ - app/assets/stylesheets/sass/utilities/functions.sass
111
+ - app/assets/stylesheets/sass/utilities/initial-variables.sass
112
+ - app/assets/stylesheets/sass/utilities/mixins.sass
99
113
  - bulma-sass.gemspec
100
114
  - lib/bulma-sass.rb
101
115
  - lib/bulma/sass/engine.rb
@@ -1,6 +0,0 @@
1
- @charset "utf-8"
2
-
3
- @import generic
4
- @import content
5
- @import highlight
6
- @import helpers
@@ -1,51 +0,0 @@
1
- .content
2
- &:not(:last-child)
3
- margin-bottom: 20px
4
- h1,
5
- h2,
6
- h3,
7
- h4,
8
- h5,
9
- h6
10
- color: $text-strong
11
- font-weight: 300
12
- line-height: 1.125
13
- margin-bottom: 20px
14
- h1,
15
- h2,
16
- h3
17
- &:not(:first-child)
18
- margin-top: 40px
19
- h1
20
- font-size: 2em
21
- h2
22
- font-size: 1.75em
23
- h3
24
- font-size: 1.5em
25
- h4
26
- font-size: 1.25em
27
- h5
28
- font-size: 1.125em
29
- h6
30
- font-size: 1em
31
- p:not(:last-child)
32
- margin-bottom: 1em
33
- li + li
34
- margin-top: 0.25em
35
- ol
36
- list-style: decimal outside
37
- margin: 1em 2em
38
- ul
39
- list-style: disc outside
40
- margin: 1em 2em
41
- ul
42
- list-style-type: circle
43
- margin-top: 0.5em
44
- ul
45
- list-style-type: square
46
- blockquote
47
- background: $background
48
- border-left: 5px solid $border
49
- padding: 1.5em
50
- &:not(:last-child)
51
- margin-bottom: 1em
@@ -1,101 +0,0 @@
1
- html
2
- background: $body-background
3
- font-size: $size-normal
4
- -moz-osx-font-smoothing: grayscale
5
- -webkit-font-smoothing: antialiased
6
- min-width: 300px
7
- overflow-x: hidden
8
- overflow-y: scroll
9
- text-rendering: optimizeLegibility
10
-
11
- body,
12
- button,
13
- input,
14
- select,
15
- textarea
16
- font-family: $family-primary
17
-
18
- code,
19
- pre
20
- -moz-osx-font-smoothing: auto
21
- -webkit-font-smoothing: auto
22
- font-family: monospace
23
- line-height: 1.25
24
-
25
- body
26
- color: $text
27
- font-size: 1rem
28
- line-height: 1.428571428571429
29
-
30
- a
31
- color: $link
32
- cursor: pointer
33
- text-decoration: none
34
- transition: none $speed $easing
35
- &:hover
36
- color: $link-hover
37
-
38
- code
39
- background: $code-background
40
- color: $code
41
- font-size: 12px
42
- font-weight: normal
43
- padding: 1px 2px 2px
44
-
45
- hr
46
- border-top-color: $border
47
- margin: 20px 0
48
-
49
- img
50
- max-height: 100%
51
- max-width: 100%
52
-
53
- input[type="checkbox"],
54
- input[type="radio"]
55
- vertical-align: baseline
56
-
57
- small
58
- font-size: $size-small
59
-
60
- strong
61
- color: $text-strong
62
-
63
- article,
64
- aside,
65
- figure,
66
- footer,
67
- header,
68
- hgroup,
69
- section
70
- display: block
71
-
72
- pre
73
- background: $pre-background
74
- color: $pre
75
- white-space: pre
76
- word-wrap: normal
77
- code
78
- background: $pre-background
79
- color: $pre
80
- display: block
81
- overflow-x: auto
82
- padding: 16px 20px
83
-
84
- table
85
- width: 100%
86
- th,
87
- td
88
- text-align: left
89
- vertical-align: top
90
- th
91
- color: $text-strong
92
-
93
- .container
94
- margin: 0 auto
95
- max-width: 960px
96
- position: relative
97
-
98
- .fa
99
- font-size: 21px
100
- text-align: center
101
- vertical-align: top