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
@@ -1,172 +0,0 @@
1
- @charset "utf-8"
2
-
3
- @import controls
4
- @import buttons
5
- @import titles
6
- @import messages
7
- @import notifications
8
-
9
- .highlight
10
- font-size: 12px
11
- font-weight: normal
12
- max-width: 100%
13
- overflow: hidden
14
- padding: 0
15
- &:not(:last-child)
16
- margin-bottom: 20px
17
- pre
18
- overflow: auto
19
- max-width: 100%
20
-
21
- .delete
22
- background: rgba(black, 0.2)
23
- border-radius: 290486px
24
- cursor: pointer
25
- display: inline-block
26
- height: 24px
27
- position: relative
28
- vertical-align: top
29
- width: 24px
30
- &:before,
31
- &:after
32
- background: white
33
- content: ""
34
- display: block
35
- height: 2px
36
- left: 6px
37
- position: absolute
38
- top: 11px
39
- width: 12px
40
- &:before
41
- transform: rotate(45deg)
42
- &:after
43
- transform: rotate(-45deg)
44
- &:hover
45
- background: rgba(black, 0.5)
46
- &.is-small
47
- height: 16px
48
- width: 16px
49
- &:before,
50
- &:after
51
- left: 4px
52
- top: 7px
53
- width: 8px
54
-
55
- .icon
56
- +fa(21px, 24px)
57
- .fa
58
- font-size: inherit
59
- line-height: inherit
60
- &.is-small
61
- +fa(14px, 20px)
62
- &.is-medium
63
- +fa(28px, 32px)
64
- &.is-large
65
- +fa(42px, 48px)
66
-
67
- .hamburger
68
- cursor: pointer
69
- display: block
70
- height: $header-height
71
- padding: 19px 17px
72
- position: relative
73
- width: $header-height
74
- span
75
- background: $text
76
- display: block
77
- height: 1px
78
- left: 17px
79
- position: absolute
80
- transition: none $speed $easing
81
- transition-property: background, left, opacity, transform
82
- width: 15px
83
- &:nth-child(1)
84
- top: 19px
85
- &:nth-child(2)
86
- top: 24px
87
- &:nth-child(3)
88
- bottom: 20px
89
- &:hover
90
- background: $background
91
- &.is-active
92
- span
93
- background: $link
94
- &:nth-child(1)
95
- left: 20px
96
- transform: rotate(45deg)
97
- transform-origin: left top
98
- &:nth-child(2)
99
- opacity: 0
100
- &:nth-child(3)
101
- left: 20px
102
- transform: rotate(-45deg)
103
- transform-origin: left bottom
104
-
105
- .heading
106
- display: block
107
- font-size: 11px
108
- letter-spacing: 1px
109
- margin-bottom: 5px
110
- text-transform: uppercase
111
-
112
- .loader
113
- animation: spin-around 500ms infinite linear
114
- border: 2px solid $border
115
- border-radius: 290486px
116
- border-right-color: transparent
117
- border-top-color: transparent
118
- content: ""
119
- display: block
120
- height: 16px
121
- position: relative
122
- width: 16px
123
-
124
- .number
125
- background: $background
126
- border-radius: 290486px
127
- display: inline-block
128
- font-size: $size-medium
129
- vertical-align: top
130
-
131
- .tag
132
- background: $background
133
- border-radius: $radius
134
- box-shadow: inset 0 -1px 0 rgba(black, 0.1)
135
- color: $text
136
- display: inline-block
137
- font-size: 12px
138
- height: 24px
139
- line-height: 16px
140
- padding: 4px 10px
141
- vertical-align: top
142
- white-space: nowrap
143
- &.is-dark
144
- background: $text
145
- color: $text-invert
146
- &.is-rounded
147
- border-radius: 290486px
148
- &.is-medium
149
- box-shadow: inset 0 -2px 0 rgba(black, 0.1)
150
- font-size: $size-normal
151
- height: 32px
152
- padding: 7px 14px 9px
153
- &:not(.is-large)
154
- .delete
155
- @extend .delete.is-small
156
- margin-left: 4px
157
- margin-right: -6px
158
- &.is-large
159
- box-shadow: inset 0 -2px 0 rgba(black, 0.1)
160
- font-size: $size-5
161
- height: 40px
162
- line-height: 24px
163
- padding: 7px 18px 9px
164
- .delete
165
- margin-left: 4px
166
- margin-right: -8px
167
- @each $name, $pair in $colors
168
- $color: nth($pair, 1)
169
- $color-invert: nth($pair, 2)
170
- &.is-#{$name}
171
- background: $color
172
- color: $color-invert
@@ -1,41 +0,0 @@
1
- .message-body
2
- border: 1px solid $border
3
- border-radius: $radius
4
- padding: 12px 15px
5
- strong
6
- color: inherit
7
-
8
- .message-header
9
- background: $text
10
- border-radius: $radius $radius 0 0
11
- color: $text-invert
12
- font-size: 10px
13
- font-weight: bold
14
- letter-spacing: 1px
15
- padding: 3px 8px
16
- text-transform: uppercase
17
- & + .message-body
18
- border-radius: 0 0 $radius $radius
19
- border-top: none
20
-
21
- .message
22
- background: $background
23
- border-radius: $radius
24
- &:not(:last-child)
25
- margin-bottom: 20px
26
- @each $name, $pair in $colors
27
- $color: nth($pair, 1)
28
- $color-invert: nth($pair, 2)
29
- $lightning: (100% - lightness($color)) - 4%
30
- $darkness: max(lightness($color) - 10%, lightness($color))
31
- &.is-#{$name}
32
- background: lighten($color, $lightning)
33
- .message-header
34
- background: $color
35
- color: $color-invert
36
- .message-body
37
- border-color: $color
38
- @if (colorLuminance($color) > 0.8)
39
- color: desaturate(lighten(darken($color, 100%), 40%), 40%)
40
- @else
41
- color: desaturate(lighten(darken($color, 100%), 50%), 30%)
@@ -1,20 +0,0 @@
1
- .notification
2
- +clearfix
3
- background: $background
4
- border-radius: $radius
5
- padding: 16px 20px
6
- position: relative
7
- &:not(:last-child)
8
- margin-bottom: 20px
9
- .title
10
- color: inherit
11
- @each $name, $pair in $colors
12
- $color: nth($pair, 1)
13
- $color-invert: nth($pair, 2)
14
- &.is-#{$name}
15
- background: $color
16
- color: $color-invert
17
- .delete
18
- border-radius: 0 $radius
19
- float: right
20
- margin: -16px -20px 0 20px
@@ -1,57 +0,0 @@
1
- .title,
2
- .subtitle
3
- font-weight: 300
4
- &:not(:last-child)
5
- margin-bottom: 20px
6
-
7
- .title
8
- color: $text-strong
9
- font-size: $size-large
10
- line-height: 1
11
- strong
12
- color: inherit
13
- code
14
- display: inline-block
15
- font-size: $size-large
16
- & + .subtitle
17
- margin-top: -10px
18
- & + .highlight
19
- margin-top: -10px
20
- &.is-normal
21
- font-weight: 400
22
- strong
23
- font-weight: 700
24
- @each $size in $sizes
25
- $i: index($sizes, $size)
26
- &.is-#{$i}
27
- font-size: $size
28
- code
29
- font-size: nth($sizes, min($i + 1, 6))
30
- +tablet
31
- & + .subtitle
32
- margin-top: -15px
33
-
34
- .subtitle
35
- font-size: $size-medium
36
- line-height: 1.125
37
- strong
38
- color: $text-strong
39
- font-weight: 400
40
- code
41
- border-radius: $radius
42
- display: inline-block
43
- font-size: $size-normal
44
- padding: 2px 3px
45
- vertical-align: top
46
- & + .text
47
- margin-top: 20px
48
- &.is-normal
49
- font-weight: 400
50
- strong
51
- font-weight: 700
52
- @each $size in $sizes
53
- $i: index($sizes, $size)
54
- &.is-#{$i}
55
- font-size: $size
56
- code
57
- font-size: nth($sizes, min($i + 1, 6))
@@ -1,11 +0,0 @@
1
- .footer
2
- background: $background
3
- padding: 40px 20px 80px
4
- a
5
- color: $text
6
- &:hover
7
- color: $text-strong
8
- &:not(.icon)
9
- border-bottom: 1px solid $border
10
- &:hover
11
- border-bottom-color: $link
@@ -1,149 +0,0 @@
1
- .header
2
- +clearfix
3
- background: white
4
- box-shadow: 0 1px 2px rgba(black, 0.1)
5
- height: $header-height
6
- line-height: 24px
7
- position: relative
8
- text-align: center
9
- z-index: 2
10
- .container
11
- align-items: center
12
- box-shadow: 0 1px 0 rgba($border, 0.3)
13
- display: flex
14
- height: $header-height
15
-
16
- .header-toggle
17
- @extend .hamburger
18
- +tablet
19
- display: none
20
-
21
- // Elements
22
-
23
- .header-item
24
- display: block
25
- padding: 0 10px
26
- a
27
- color: $text
28
- &:hover
29
- color: $link-hover
30
- &.is-active
31
- color: $link-active
32
- .fa
33
- font-size: 21px
34
- line-height: 24px
35
-
36
- .header-icon
37
- +fa(14px, 24px)
38
- color: $text
39
- margin: 0 5px
40
- &:hover
41
- color: $link-hover
42
-
43
- .header-tab
44
- border-bottom: 1px solid transparent
45
- color: $text
46
- display: block
47
- height: $header-height
48
- line-height: 24px
49
- padding: 13px 15px
50
- &:hover
51
- border-bottom: 1px solid $link
52
- &.is-active
53
- border-bottom: 3px solid $link
54
- color: $link
55
-
56
- .header-logo
57
- align-items: center
58
- display: flex
59
- img
60
- max-height: 24px
61
- +touch
62
- padding: 0 10px
63
- +tablet
64
- padding-right: 10px
65
-
66
- // Containers
67
-
68
- .header-left
69
- align-items: center
70
- display: flex
71
- flex: 1
72
- overflow: hidden
73
- overflow-x: auto
74
- white-space: nowrap
75
-
76
- .header-center
77
- align-items: center
78
- display: flex
79
- height: $header-height
80
- left: 50%
81
- position: absolute
82
- transform: translateX(-50%)
83
-
84
- .header-right
85
- align-items: center
86
- +tablet
87
- display: flex
88
- +desktop
89
- .header-item:last-child
90
- padding-right: 0
91
-
92
- .header-full
93
- align-items: stretch
94
- display: flex
95
- height: $header-height
96
- justify-content: center
97
- text-align: center
98
- width: 100%
99
- & > .header-item
100
- align-items: stretch
101
- display: flex
102
- flex: 1
103
- justify-content: center
104
- padding: 0
105
- & > a
106
- align-items: center
107
- display: flex
108
- justify-content: center
109
- width: 100%
110
-
111
- .header-menu
112
- +mobile
113
- background: white
114
- box-shadow: 0 4px 7px rgba(black, 0.1)
115
- display: none
116
- position: absolute
117
- right: 0
118
- top: $header-height
119
- z-index: 100
120
- .header-item
121
- border-top: 1px solid rgba($border, 0.5)
122
- padding: 10px
123
- &.is-active
124
- display: block
125
-
126
- // States
127
-
128
- .header.is-centered
129
- justify-content: center
130
- .header-left,
131
- .header-center,
132
- .header-right
133
- justify-content: center
134
-
135
- .header.is-small
136
- background: $background
137
- box-shadow: none
138
- height: 40px
139
- z-index: 1
140
- .container
141
- height: 40px
142
- .header-tab
143
- font-size: 13px
144
- height: 40px
145
- padding: 8px 10px
146
- &:hover,
147
- &.is-active
148
- border-bottom-width: 2px
149
-