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,32 @@
1
+ .tile
2
+ align-items: stretch
3
+ display: block
4
+ flex-basis: 0
5
+ flex-grow: 1
6
+ flex-shrink: 1
7
+ min-height: min-content
8
+ // Modifiers
9
+ &.is-ancestor
10
+ margin-left: -0.75rem
11
+ margin-right: -0.75rem
12
+ margin-top: -0.75rem
13
+ &:last-child
14
+ margin-bottom: -0.75rem
15
+ &:not(:last-child)
16
+ margin-bottom: 0.75rem
17
+ &.is-child
18
+ margin: 0 !important
19
+ &.is-parent
20
+ padding: 0.75rem
21
+ &.is-vertical
22
+ flex-direction: column
23
+ & > .tile.is-child:not(:last-child)
24
+ margin-bottom: 1.5rem !important
25
+ // Responsiveness
26
+ +tablet
27
+ &:not(.is-child)
28
+ display: flex
29
+ @for $i from 1 through 12
30
+ &.is-#{$i}
31
+ flex: none
32
+ width: ($i / 12) * 100%
@@ -0,0 +1,5 @@
1
+ @charset "utf-8"
2
+
3
+ @import "hero.sass"
4
+ @import "section.sass"
5
+ @import "footer.sass"
@@ -0,0 +1,5 @@
1
+ $footer-background-color: $background !default
2
+
3
+ .footer
4
+ background-color: $footer-background-color
5
+ padding: 3rem 1.5rem 6rem
@@ -0,0 +1,155 @@
1
+ // Main container
2
+
3
+ .hero
4
+ align-items: stretch
5
+ display: flex
6
+ flex-direction: column
7
+ justify-content: space-between
8
+ .navbar
9
+ background: none
10
+ .tabs
11
+ ul
12
+ border-bottom: none
13
+ // Colors
14
+ @each $name, $pair in $colors
15
+ $color: nth($pair, 1)
16
+ $color-invert: nth($pair, 2)
17
+ &.is-#{$name}
18
+ background-color: $color
19
+ color: $color-invert
20
+ a:not(.button),
21
+ strong
22
+ color: inherit
23
+ .title
24
+ color: $color-invert
25
+ .subtitle
26
+ color: rgba($color-invert, 0.9)
27
+ a:not(.button),
28
+ strong
29
+ color: $color-invert
30
+ .navbar-menu
31
+ +touch
32
+ background-color: $color
33
+ .navbar-item,
34
+ .navbar-link
35
+ color: rgba($color-invert, 0.7)
36
+ a.navbar-item,
37
+ .navbar-link
38
+ &:hover,
39
+ &.is-active
40
+ background-color: darken($color, 5%)
41
+ color: $color-invert
42
+ .tabs
43
+ a
44
+ color: $color-invert
45
+ opacity: 0.9
46
+ &:hover
47
+ opacity: 1
48
+ li
49
+ &.is-active a
50
+ opacity: 1
51
+ &.is-boxed,
52
+ &.is-toggle
53
+ a
54
+ color: $color-invert
55
+ &:hover
56
+ background-color: rgba($black, 0.1)
57
+ li.is-active a
58
+ &,
59
+ &:hover
60
+ background-color: $color-invert
61
+ border-color: $color-invert
62
+ color: $color
63
+ // Modifiers
64
+ &.is-bold
65
+ $gradient-top-left: darken(saturate(adjust-hue($color, -10deg), 10%), 10%)
66
+ $gradient-bottom-right: lighten(saturate(adjust-hue($color, 10deg), 5%), 5%)
67
+ background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
68
+ +mobile
69
+ .navbar-menu
70
+ background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
71
+ // Responsiveness
72
+ // +mobile
73
+ // .nav-toggle
74
+ // span
75
+ // background-color: $color-invert
76
+ // &:hover
77
+ // background-color: rgba($black, 0.1)
78
+ // &.is-active
79
+ // span
80
+ // background-color: $color-invert
81
+ // .nav-menu
82
+ // .nav-item
83
+ // border-top-color: rgba($color-invert, 0.2)
84
+ // Sizes
85
+ &.is-small
86
+ .hero-body
87
+ padding-bottom: 1.5rem
88
+ padding-top: 1.5rem
89
+ &.is-medium
90
+ +tablet
91
+ .hero-body
92
+ padding-bottom: 9rem
93
+ padding-top: 9rem
94
+ &.is-large
95
+ +tablet
96
+ .hero-body
97
+ padding-bottom: 18rem
98
+ padding-top: 18rem
99
+ &.is-halfheight,
100
+ &.is-fullheight
101
+ .hero-body
102
+ align-items: center
103
+ display: flex
104
+ & > .container
105
+ flex-grow: 1
106
+ flex-shrink: 1
107
+ &.is-halfheight
108
+ min-height: 50vh
109
+ &.is-fullheight
110
+ min-height: 100vh
111
+
112
+ // Components
113
+
114
+ .hero-video
115
+ +overlay
116
+ overflow: hidden
117
+ video
118
+ left: 50%
119
+ min-height: 100%
120
+ min-width: 100%
121
+ position: absolute
122
+ top: 50%
123
+ transform: translate3d(-50%, -50%, 0)
124
+ // Modifiers
125
+ &.is-transparent
126
+ opacity: 0.3
127
+ // Responsiveness
128
+ +mobile
129
+ display: none
130
+
131
+ .hero-buttons
132
+ margin-top: 1.5rem
133
+ // Responsiveness
134
+ +mobile
135
+ .button
136
+ display: flex
137
+ &:not(:last-child)
138
+ margin-bottom: 0.75rem
139
+ +tablet
140
+ display: flex
141
+ justify-content: center
142
+ .button:not(:last-child)
143
+ margin-right: 1.5rem
144
+
145
+ // Containers
146
+
147
+ .hero-head,
148
+ .hero-foot
149
+ flex-grow: 0
150
+ flex-shrink: 0
151
+
152
+ .hero-body
153
+ flex-grow: 1
154
+ flex-shrink: 0
155
+ padding: 3rem 1.5rem
@@ -0,0 +1,13 @@
1
+ $section-padding: 3rem 1.5rem !default
2
+ $section-padding-medium: 9rem 1.5rem !default
3
+ $section-padding-large: 18rem 1.5rem !default
4
+
5
+ .section
6
+ padding: $section-padding
7
+ // Responsiveness
8
+ +desktop
9
+ // Sizes
10
+ &.is-medium
11
+ padding: $section-padding-medium
12
+ &.is-large
13
+ padding: $section-padding-large
@@ -0,0 +1,8 @@
1
+ @charset "utf-8"
2
+
3
+ @import "initial-variables.sass"
4
+ @import "functions.sass"
5
+ @import "derived-variables.sass"
6
+ @import "animations.sass"
7
+ @import "mixins.sass"
8
+ @import "controls.sass"
@@ -1,4 +1,4 @@
1
- @keyframes spin-around
1
+ @keyframes spinAround
2
2
  from
3
3
  transform: rotate(0deg)
4
4
  to
@@ -0,0 +1,41 @@
1
+ $control-radius: $radius !default
2
+ $control-radius-small: $radius-small !default
3
+
4
+ $control-padding-vertical: calc(0.375em - 1px) !default
5
+ $control-padding-horizontal: calc(0.625em - 1px) !default
6
+
7
+ =control
8
+ -moz-appearance: none
9
+ -webkit-appearance: none
10
+ align-items: center
11
+ border: 1px solid transparent
12
+ border-radius: $control-radius
13
+ box-shadow: none
14
+ display: inline-flex
15
+ font-size: $size-normal
16
+ height: 2.25em
17
+ justify-content: flex-start
18
+ line-height: 1.5
19
+ padding-bottom: $control-padding-vertical
20
+ padding-left: $control-padding-horizontal
21
+ padding-right: $control-padding-horizontal
22
+ padding-top: $control-padding-vertical
23
+ position: relative
24
+ vertical-align: top
25
+ // States
26
+ &:focus,
27
+ &.is-focused,
28
+ &:active,
29
+ &.is-active
30
+ outline: none
31
+ &[disabled]
32
+ cursor: not-allowed
33
+
34
+ // The controls sizes use mixins so they can be used at different breakpoints
35
+ =control-small
36
+ border-radius: $control-radius-small
37
+ font-size: $size-small
38
+ =control-medium
39
+ font-size: $size-medium
40
+ =control-large
41
+ font-size: $size-large
@@ -0,0 +1,82 @@
1
+ $primary: $turquoise !default
2
+
3
+ $info: $cyan !default
4
+ $success: $green !default
5
+ $warning: $yellow !default
6
+ $danger: $red !default
7
+
8
+ $light: $white-ter !default
9
+ $dark: $grey-darker !default
10
+
11
+ // Invert colors
12
+
13
+ $orange-invert: findColorInvert($orange) !default
14
+ $yellow-invert: findColorInvert($yellow) !default
15
+ $green-invert: findColorInvert($green) !default
16
+ $turquoise-invert: findColorInvert($turquoise) !default
17
+ $cyan-invert: findColorInvert($cyan) !default
18
+ $blue-invert: findColorInvert($blue) !default
19
+ $purple-invert: findColorInvert($purple) !default
20
+ $red-invert: findColorInvert($red) !default
21
+
22
+ $primary-invert: $turquoise-invert !default
23
+ $info-invert: $cyan-invert !default
24
+ $success-invert: $green-invert !default
25
+ $warning-invert: $yellow-invert !default
26
+ $danger-invert: $red-invert !default
27
+ $light-invert: $dark !default
28
+ $dark-invert: $light !default
29
+
30
+ // General colors
31
+
32
+ $background: $white-ter !default
33
+
34
+ $border: $grey-lighter !default
35
+ $border-hover: $grey-light !default
36
+
37
+ // Text colors
38
+
39
+ $text: $grey-dark !default
40
+ $text-invert: findColorInvert($text) !default
41
+ $text-light: $grey !default
42
+ $text-strong: $grey-darker !default
43
+
44
+ // Code colors
45
+
46
+ $code: $red !default
47
+ $code-background: $background !default
48
+
49
+ $pre: $text !default
50
+ $pre-background: $background !default
51
+
52
+ // Link colors
53
+
54
+ $link: $blue !default
55
+ $link-invert: $blue-invert !default
56
+ $link-visited: $purple !default
57
+
58
+ $link-hover: $grey-darker !default
59
+ $link-hover-border: $grey-light !default
60
+
61
+ $link-focus: $grey-darker !default
62
+ $link-focus-border: $blue !default
63
+
64
+ $link-active: $grey-darker !default
65
+ $link-active-border: $grey-dark !default
66
+
67
+ // Typography
68
+
69
+ $family-primary: $family-sans-serif !default
70
+ $family-code: $family-monospace !default
71
+
72
+ $size-small: $size-7 !default
73
+ $size-normal: $size-6 !default
74
+ $size-medium: $size-5 !default
75
+ $size-large: $size-4 !default
76
+
77
+ // Lists and maps
78
+
79
+ $colors: ("white": ($white, $black), "black": ($black, $white), "light": ($light, $light-invert), "dark": ($dark, $dark-invert), "primary": ($primary, $primary-invert), "link": ($link, $link-invert), "info": ($info, $info-invert), "success": ($success, $success-invert), "warning": ($warning, $warning-invert), "danger": ($danger, $danger-invert)) !default
80
+ $shades: ("black-bis": $black-bis, "black-ter": $black-ter, "grey-darker": $grey-darker, "grey-dark": $grey-dark, "grey": $grey, "grey-light": $grey-light, "grey-lighter": $grey-lighter, "white-ter": $white-ter, "white-bis": $white-bis) !default
81
+
82
+ $sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 $size-7 !default
@@ -9,8 +9,8 @@
9
9
  @return $value
10
10
 
11
11
  @function colorLuminance($color)
12
- $colors: ('red': red($color),'green': green($color),'blue': blue($color))
13
- @each $name, $value in $colors
12
+ $color-rgb: ('red': red($color),'green': green($color),'blue': blue($color))
13
+ @each $name, $value in $color-rgb
14
14
  $adjusted: 0
15
15
  $value: $value / 255
16
16
  @if $value < 0.03928
@@ -18,17 +18,11 @@
18
18
  @else
19
19
  $value: ($value + .055) / 1.055
20
20
  $value: powerNumber($value, 2)
21
- $colors: map-merge($colors, ($name: $value))
22
- @return (map-get($colors, 'red') * .2126) + (map-get($colors, 'green') * .7152) + (map-get($colors, 'blue') * .0722)
23
-
24
- @function closestEvenNumber($number)
25
- @if ($number % 2 == 0px)
26
- @return $number
27
- @else
28
- @return ($number + 1px)
21
+ $color-rgb: map-merge($color-rgb, ($name: $value))
22
+ @return (map-get($color-rgb, 'red') * .2126) + (map-get($color-rgb, 'green') * .7152) + (map-get($color-rgb, 'blue') * .0722)
29
23
 
30
24
  @function findColorInvert($color)
31
- @if (colorLuminance($color) > 0.8)
32
- @return rgba(black, 0.5)
25
+ @if (colorLuminance($color) > 0.55)
26
+ @return rgba(#000, 0.7)
33
27
  @else
34
- @return white
28
+ @return #fff
@@ -0,0 +1,65 @@
1
+ // Colors
2
+
3
+ $black: hsl(0, 0%, 4%) !default
4
+ $black-bis: hsl(0, 0%, 7%) !default
5
+ $black-ter: hsl(0, 0%, 14%) !default
6
+
7
+ $grey-darker: hsl(0, 0%, 21%) !default
8
+ $grey-dark: hsl(0, 0%, 29%) !default
9
+ $grey: hsl(0, 0%, 48%) !default
10
+ $grey-light: hsl(0, 0%, 71%) !default
11
+ $grey-lighter: hsl(0, 0%, 86%) !default
12
+
13
+ $white-ter: hsl(0, 0%, 96%) !default
14
+ $white-bis: hsl(0, 0%, 98%) !default
15
+ $white: hsl(0, 0%, 100%) !default
16
+
17
+ $orange: hsl(14, 100%, 53%) !default
18
+ $yellow: hsl(48, 100%, 67%) !default
19
+ $green: hsl(141, 71%, 48%) !default
20
+ $turquoise: hsl(171, 100%, 41%) !default
21
+ $cyan: hsl(204, 86%, 53%) !default
22
+ $blue: hsl(217, 71%, 53%) !default
23
+ $purple: hsl(271, 100%, 71%) !default
24
+ $red: hsl(348, 100%, 61%) !default
25
+
26
+ // Typography
27
+
28
+ $family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default
29
+ $family-monospace: monospace !default
30
+ $render-mode: optimizeLegibility !default
31
+
32
+ $size-1: 3rem !default
33
+ $size-2: 2.5rem !default
34
+ $size-3: 2rem !default
35
+ $size-4: 1.5rem !default
36
+ $size-5: 1.25rem !default
37
+ $size-6: 1rem !default
38
+ $size-7: 0.75rem !default
39
+
40
+ $weight-light: 300 !default
41
+ $weight-normal: 400 !default
42
+ $weight-medium: 500 !default
43
+ $weight-semibold: 600 !default
44
+ $weight-bold: 700 !default
45
+
46
+ // Responsiveness
47
+
48
+ // The container horizontal gap, which acts as the offset for breakpoints
49
+ $gap: 32px !default
50
+ // 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16
51
+ $tablet: 769px !default
52
+ // 960px container + 3rem
53
+ $desktop: 960px + (2 * $gap) !default
54
+ // 1152px container + 3rem
55
+ $widescreen: 1152px + (2 * $gap) !default
56
+ // 1344px container + 3rem
57
+ $fullhd: 1344px + (2 * $gap) !default
58
+
59
+ // Miscellaneous
60
+
61
+ $easing: ease-out !default
62
+ $radius-small: 2px !default
63
+ $radius: 3px !default
64
+ $radius-large: 5px !default
65
+ $speed: 86ms !default