bulma-sass 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +29 -0
  6. data/Rakefile +2 -0
  7. data/app/assets/stylesheets/bulma.sass +9 -0
  8. data/app/assets/stylesheets/bulma/base/base.sass +6 -0
  9. data/app/assets/stylesheets/bulma/base/content.sass +51 -0
  10. data/app/assets/stylesheets/bulma/base/generic.sass +101 -0
  11. data/app/assets/stylesheets/bulma/base/helpers.sass +27 -0
  12. data/app/assets/stylesheets/bulma/base/highlight.sass +123 -0
  13. data/app/assets/stylesheets/bulma/components/card.sass +36 -0
  14. data/app/assets/stylesheets/bulma/components/components.sass +11 -0
  15. data/app/assets/stylesheets/bulma/components/grid.sass +48 -0
  16. data/app/assets/stylesheets/bulma/components/media.sass +69 -0
  17. data/app/assets/stylesheets/bulma/components/menu.sass +25 -0
  18. data/app/assets/stylesheets/bulma/components/navbar.sass +45 -0
  19. data/app/assets/stylesheets/bulma/components/table.sass +73 -0
  20. data/app/assets/stylesheets/bulma/components/tabs.sass +84 -0
  21. data/app/assets/stylesheets/bulma/config/generated-variables.sass +74 -0
  22. data/app/assets/stylesheets/bulma/config/variables.sass +41 -0
  23. data/app/assets/stylesheets/bulma/elements/buttons.sass +96 -0
  24. data/app/assets/stylesheets/bulma/elements/controls.sass +213 -0
  25. data/app/assets/stylesheets/bulma/elements/elements.sass +172 -0
  26. data/app/assets/stylesheets/bulma/elements/messages.sass +41 -0
  27. data/app/assets/stylesheets/bulma/elements/notifications.sass +20 -0
  28. data/app/assets/stylesheets/bulma/elements/titles.sass +57 -0
  29. data/app/assets/stylesheets/bulma/layout/footer.sass +11 -0
  30. data/app/assets/stylesheets/bulma/layout/header.sass +149 -0
  31. data/app/assets/stylesheets/bulma/layout/hero.sass +143 -0
  32. data/app/assets/stylesheets/bulma/layout/layout.sass +6 -0
  33. data/app/assets/stylesheets/bulma/layout/section.sass +11 -0
  34. data/app/assets/stylesheets/bulma/utilities/animations.sass +5 -0
  35. data/app/assets/stylesheets/bulma/utilities/functions.sass +34 -0
  36. data/app/assets/stylesheets/bulma/utilities/mixins.sass +83 -0
  37. data/app/assets/stylesheets/bulma/utilities/reset.sass +174 -0
  38. data/app/assets/stylesheets/bulma/utilities/utilities.sass +6 -0
  39. data/bulma-sass.gemspec +25 -0
  40. data/lib/bulma-sass.rb +7 -0
  41. data/lib/bulma/sass/engine.rb +6 -0
  42. data/lib/bulma/sass/version.rb +5 -0
  43. metadata +113 -0
@@ -0,0 +1,41 @@
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%)
@@ -0,0 +1,20 @@
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
@@ -0,0 +1,57 @@
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))
@@ -0,0 +1,11 @@
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
@@ -0,0 +1,149 @@
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
+
@@ -0,0 +1,143 @@
1
+ .hero
2
+ background: white
3
+ text-align: center
4
+ & > .container
5
+ padding: 40px 20px
6
+ a
7
+ color: inherit
8
+ .header
9
+ background: none
10
+ box-shadow: none
11
+ .tabs
12
+ ul
13
+ border-bottom: none
14
+ a
15
+ border: none
16
+ margin-bottom: 0
17
+ padding: 0 0 10px
18
+ &.is-boxed
19
+ a
20
+ border: none
21
+ padding: 6px 12px
22
+ +desktop
23
+ & > .container
24
+ padding: 40px 0
25
+ &.is-alt
26
+ background: $background
27
+ color: $text-light
28
+ @each $name, $pair in $colors
29
+ $color: nth($pair, 1)
30
+ $color-invert: nth($pair, 2)
31
+ &.is-#{$name}
32
+ background: $color
33
+ color: $color-invert
34
+ .title
35
+ color: $color-invert
36
+ strong
37
+ color: inherit
38
+ .subtitle
39
+ color: rgba($color-invert, 0.7)
40
+ strong
41
+ color: $color-invert
42
+ .header .container
43
+ box-shadow: 0 1px 0 rgba($color-invert, 0.2)
44
+ .header-icon,
45
+ .header-item > a:not(.button)
46
+ color: $color-invert
47
+ opacity: 0.5
48
+ &:hover,
49
+ &.is-active
50
+ opacity: 1
51
+ .tabs
52
+ a
53
+ color: $color-invert
54
+ opacity: 0.5
55
+ &:hover
56
+ opacity: 1
57
+ li.is-active a
58
+ opacity: 1
59
+ &.is-boxed
60
+ a
61
+ color: $color-invert
62
+ &:hover
63
+ background: rgba(black, 0.1)
64
+ li.is-active a
65
+ &,
66
+ &:hover
67
+ background: $color-invert
68
+ color: $color
69
+ &.is-bold
70
+ $gradient-top-left: darken(saturate(adjust-hue($color, -10deg), 10%), 10%)
71
+ $gradient-bottom-right: lighten(saturate(adjust-hue($color, 10deg), 5%), 5%)
72
+ background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
73
+ +mobile
74
+ .header-toggle
75
+ span
76
+ background: $color-invert
77
+ &:hover
78
+ background: rgba(black, 0.1)
79
+ &.is-active
80
+ span
81
+ background: $color-invert
82
+ .header-menu
83
+ background: $color
84
+ .header-item
85
+ border-top-color: rgba($color-invert, 0.2)
86
+ &.is-fullheight,
87
+ &.is-medium,
88
+ &.is-large
89
+ +tablet
90
+ .title
91
+ font-size: $size-huge
92
+ .subtitle
93
+ font-size: $size-large
94
+ .tabs
95
+ font-size: $size-medium
96
+ a
97
+ padding-bottom: 15px
98
+ &.is-boxed
99
+ a
100
+ padding: 12px 16px
101
+ &.is-fullheight
102
+ align-items: center
103
+ display: flex
104
+ height: 100vh
105
+ .tabs
106
+ white-space: normal
107
+ &.is-medium
108
+ +tablet
109
+ & > .container
110
+ padding: 120px 20px
111
+ .title
112
+ font-size: 40px
113
+ .subtitle
114
+ font-size: 24px
115
+ .tabs
116
+ font-size: 16px
117
+ +desktop
118
+ & > .container
119
+ padding: 120px 0
120
+ &.is-large
121
+ +tablet
122
+ & > .container
123
+ padding: 240px 20px
124
+ +desktop
125
+ & > .container
126
+ padding: 240px 0
127
+ &.is-left
128
+ text-align: left
129
+ &.is-right
130
+ text-align: right
131
+
132
+ .hero-buttons
133
+ margin-top: 20px
134
+ +mobile
135
+ .button
136
+ display: block
137
+ &:not(:last-child)
138
+ margin-bottom: 10px
139
+ +tablet
140
+ display: flex
141
+ justify-content: center
142
+ .button:not(:last-child)
143
+ margin-right: 20px
@@ -0,0 +1,6 @@
1
+ @charset "utf-8"
2
+
3
+ @import header
4
+ @import hero
5
+ @import section
6
+ @import footer
@@ -0,0 +1,11 @@
1
+ .section
2
+ background: white
3
+ padding: 40px 20px
4
+ & + .section
5
+ border-top: 1px solid rgba($border, 0.5)
6
+ +desktop
7
+ padding: 40px 0
8
+ &.is-medium
9
+ padding: 120px 0
10
+ &.is-large
11
+ padding: 240px 0