bulma-sass-rails 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/README.md +43 -0
- data/app/assets/stylesheets/bulma-rtl.sass +3 -0
- data/app/assets/stylesheets/bulma.sass +10 -0
- data/app/assets/stylesheets/sass/base/_all.sass +6 -0
- data/app/assets/stylesheets/sass/base/animations.sass +5 -0
- data/app/assets/stylesheets/sass/base/generic.sass +145 -0
- data/app/assets/stylesheets/sass/base/helpers.sass +1 -0
- data/app/assets/stylesheets/sass/base/minireset.sass +79 -0
- data/app/assets/stylesheets/sass/components/_all.sass +15 -0
- data/app/assets/stylesheets/sass/components/breadcrumb.sass +77 -0
- data/app/assets/stylesheets/sass/components/card.sass +103 -0
- data/app/assets/stylesheets/sass/components/dropdown.sass +83 -0
- data/app/assets/stylesheets/sass/components/level.sass +79 -0
- data/app/assets/stylesheets/sass/components/media.sass +59 -0
- data/app/assets/stylesheets/sass/components/menu.sass +59 -0
- data/app/assets/stylesheets/sass/components/message.sass +101 -0
- data/app/assets/stylesheets/sass/components/modal.sass +117 -0
- data/app/assets/stylesheets/sass/components/navbar.sass +446 -0
- data/app/assets/stylesheets/sass/components/pagination.sass +167 -0
- data/app/assets/stylesheets/sass/components/panel.sass +121 -0
- data/app/assets/stylesheets/sass/components/tabs.sass +176 -0
- data/app/assets/stylesheets/sass/elements/_all.sass +16 -0
- data/app/assets/stylesheets/sass/elements/box.sass +26 -0
- data/app/assets/stylesheets/sass/elements/button.sass +345 -0
- data/app/assets/stylesheets/sass/elements/container.sass +29 -0
- data/app/assets/stylesheets/sass/elements/content.sass +159 -0
- data/app/assets/stylesheets/sass/elements/form.sass +1 -0
- data/app/assets/stylesheets/sass/elements/icon.sass +46 -0
- data/app/assets/stylesheets/sass/elements/image.sass +73 -0
- data/app/assets/stylesheets/sass/elements/notification.sass +52 -0
- data/app/assets/stylesheets/sass/elements/other.sass +31 -0
- data/app/assets/stylesheets/sass/elements/progress.sass +73 -0
- data/app/assets/stylesheets/sass/elements/table.sass +133 -0
- data/app/assets/stylesheets/sass/elements/tag.sass +140 -0
- data/app/assets/stylesheets/sass/elements/title.sass +70 -0
- data/app/assets/stylesheets/sass/form/_all.sass +9 -0
- data/app/assets/stylesheets/sass/form/checkbox-radio.sass +22 -0
- data/app/assets/stylesheets/sass/form/file.sass +184 -0
- data/app/assets/stylesheets/sass/form/input-textarea.sass +66 -0
- data/app/assets/stylesheets/sass/form/select.sass +87 -0
- data/app/assets/stylesheets/sass/form/shared.sass +60 -0
- data/app/assets/stylesheets/sass/form/tools.sass +215 -0
- data/app/assets/stylesheets/sass/grid/_all.sass +5 -0
- data/app/assets/stylesheets/sass/grid/columns.sass +513 -0
- data/app/assets/stylesheets/sass/grid/tiles.sass +36 -0
- data/app/assets/stylesheets/sass/helpers/_all.sass +12 -0
- data/app/assets/stylesheets/sass/helpers/color.sass +39 -0
- data/app/assets/stylesheets/sass/helpers/flexbox.sass +35 -0
- data/app/assets/stylesheets/sass/helpers/float.sass +10 -0
- data/app/assets/stylesheets/sass/helpers/other.sass +14 -0
- data/app/assets/stylesheets/sass/helpers/overflow.sass +2 -0
- data/app/assets/stylesheets/sass/helpers/position.sass +7 -0
- data/app/assets/stylesheets/sass/helpers/spacing.sass +31 -0
- data/app/assets/stylesheets/sass/helpers/typography.sass +103 -0
- data/app/assets/stylesheets/sass/helpers/visibility.sass +122 -0
- data/app/assets/stylesheets/sass/layout/_all.sass +6 -0
- data/app/assets/stylesheets/sass/layout/footer.sass +11 -0
- data/app/assets/stylesheets/sass/layout/hero.sass +153 -0
- data/app/assets/stylesheets/sass/layout/section.sass +17 -0
- data/app/assets/stylesheets/sass/utilities/_all.sass +9 -0
- data/app/assets/stylesheets/sass/utilities/animations.sass +1 -0
- data/app/assets/stylesheets/sass/utilities/controls.sass +49 -0
- data/app/assets/stylesheets/sass/utilities/derived-variables.sass +114 -0
- data/app/assets/stylesheets/sass/utilities/extends.sass +25 -0
- data/app/assets/stylesheets/sass/utilities/functions.sass +135 -0
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +78 -0
- data/app/assets/stylesheets/sass/utilities/mixins.sass +284 -0
- data/bulma-sass-rails.gemspec +18 -0
- data/lib/bulma/engine.rb +4 -0
- data/lib/bulma/version.rb +3 -0
- data/lib/bulma-sass-rails.rb +5 -0
- metadata +130 -0
@@ -0,0 +1,135 @@
|
|
1
|
+
@function mergeColorMaps($bulma-colors, $custom-colors)
|
2
|
+
// We return at least Bulma's hard-coded colors
|
3
|
+
$merged-colors: $bulma-colors
|
4
|
+
|
5
|
+
// We want a map as input
|
6
|
+
@if type-of($custom-colors) == 'map'
|
7
|
+
@each $name, $components in $custom-colors
|
8
|
+
// The color name should be a string
|
9
|
+
// and the components either a single color
|
10
|
+
// or a colors list with at least one element
|
11
|
+
@if type-of($name) == 'string' and (type-of($components) == 'list' or type-of($components) == 'color') and length($components) >= 1
|
12
|
+
$color-base: null
|
13
|
+
$color-invert: null
|
14
|
+
$color-light: null
|
15
|
+
$color-dark: null
|
16
|
+
$value: null
|
17
|
+
|
18
|
+
// The param can either be a single color
|
19
|
+
// or a list of 2 colors
|
20
|
+
@if type-of($components) == 'color'
|
21
|
+
$color-base: $components
|
22
|
+
$color-invert: findColorInvert($color-base)
|
23
|
+
$color-light: findLightColor($color-base)
|
24
|
+
$color-dark: findDarkColor($color-base)
|
25
|
+
@else if type-of($components) == 'list'
|
26
|
+
$color-base: nth($components, 1)
|
27
|
+
// If Invert, Light and Dark are provided
|
28
|
+
@if length($components) > 3
|
29
|
+
$color-invert: nth($components, 2)
|
30
|
+
$color-light: nth($components, 3)
|
31
|
+
$color-dark: nth($components, 4)
|
32
|
+
// If only Invert and Light are provided
|
33
|
+
@else if length($components) > 2
|
34
|
+
$color-invert: nth($components, 2)
|
35
|
+
$color-light: nth($components, 3)
|
36
|
+
$color-dark: findDarkColor($color-base)
|
37
|
+
// If only Invert is provided
|
38
|
+
@else
|
39
|
+
$color-invert: nth($components, 2)
|
40
|
+
$color-light: findLightColor($color-base)
|
41
|
+
$color-dark: findDarkColor($color-base)
|
42
|
+
|
43
|
+
$value: ($color-base, $color-invert, $color-light, $color-dark)
|
44
|
+
|
45
|
+
// We only want to merge the map if the color base is an actual color
|
46
|
+
@if type-of($color-base) == 'color'
|
47
|
+
// We merge this colors elements as map with Bulma's colors map
|
48
|
+
// (we can override them this way, no multiple definition for the same name)
|
49
|
+
// $merged-colors: map_merge($merged-colors, ($name: ($color-base, $color-invert, $color-light, $color-dark)))
|
50
|
+
$merged-colors: map_merge($merged-colors, ($name: $value))
|
51
|
+
|
52
|
+
@return $merged-colors
|
53
|
+
|
54
|
+
@function powerNumber($number, $exp)
|
55
|
+
$value: 1
|
56
|
+
@if $exp > 0
|
57
|
+
@for $i from 1 through $exp
|
58
|
+
$value: $value * $number
|
59
|
+
@else if $exp < 0
|
60
|
+
@for $i from 1 through -$exp
|
61
|
+
$value: divide($value, $number)
|
62
|
+
@return $value
|
63
|
+
|
64
|
+
@function colorLuminance($color)
|
65
|
+
@if type-of($color) != 'color'
|
66
|
+
@return 0.55
|
67
|
+
$color-rgb: ('red': red($color),'green': green($color),'blue': blue($color))
|
68
|
+
@each $name, $value in $color-rgb
|
69
|
+
$adjusted: 0
|
70
|
+
$value: divide($value, 255)
|
71
|
+
@if $value < 0.03928
|
72
|
+
$value: divide($value, 12.92)
|
73
|
+
@else
|
74
|
+
$value: divide(($value + .055), 1.055)
|
75
|
+
$value: powerNumber($value, 2)
|
76
|
+
$color-rgb: map-merge($color-rgb, ($name: $value))
|
77
|
+
@return (map-get($color-rgb, 'red') * .2126) + (map-get($color-rgb, 'green') * .7152) + (map-get($color-rgb, 'blue') * .0722)
|
78
|
+
|
79
|
+
@function findColorInvert($color)
|
80
|
+
@if (colorLuminance($color) > 0.55)
|
81
|
+
@return rgba(#000, 0.7)
|
82
|
+
@else
|
83
|
+
@return #fff
|
84
|
+
|
85
|
+
@function findLightColor($color, $l: 96%)
|
86
|
+
@if type-of($color) == 'color'
|
87
|
+
$l: 96%
|
88
|
+
@if lightness($color) > 96%
|
89
|
+
$l: lightness($color)
|
90
|
+
@return change-color($color, $lightness: $l)
|
91
|
+
@return $background
|
92
|
+
|
93
|
+
@function findDarkColor($color, $base-l: 29%)
|
94
|
+
@if type-of($color) == 'color'
|
95
|
+
$luminance: colorLuminance($color)
|
96
|
+
$luminance-delta: (0.53 - $luminance)
|
97
|
+
$target-l: round($base-l + ($luminance-delta * 53))
|
98
|
+
@return change-color($color, $lightness: max($base-l, $target-l))
|
99
|
+
@return $text-strong
|
100
|
+
|
101
|
+
@function bulmaRgba($color, $alpha)
|
102
|
+
@if type-of($color) != 'color'
|
103
|
+
@return $color
|
104
|
+
@return rgba($color, $alpha)
|
105
|
+
|
106
|
+
@function bulmaDarken($color, $amount)
|
107
|
+
@if type-of($color) != 'color'
|
108
|
+
@return $color
|
109
|
+
@return darken($color, $amount)
|
110
|
+
|
111
|
+
@function bulmaLighten($color, $amount)
|
112
|
+
@if type-of($color) != 'color'
|
113
|
+
@return $color
|
114
|
+
@return lighten($color, $amount)
|
115
|
+
|
116
|
+
// Custom divide function by @mdo from https://github.com/twbs/bootstrap/pull/34245
|
117
|
+
// Replaces old slash division deprecated in Dart Sass
|
118
|
+
@function divide($dividend, $divisor, $precision: 10)
|
119
|
+
$sign: if($dividend > 0 and $divisor > 0, 1, -1)
|
120
|
+
$dividend: abs($dividend)
|
121
|
+
$divisor: abs($divisor)
|
122
|
+
$quotient: 0
|
123
|
+
$remainder: $dividend
|
124
|
+
@if $dividend == 0
|
125
|
+
@return 0
|
126
|
+
@if $divisor == 0
|
127
|
+
@error "Cannot divide by 0"
|
128
|
+
@if $divisor == 1
|
129
|
+
@return $dividend
|
130
|
+
@while $remainder >= $divisor
|
131
|
+
$quotient: $quotient + 1
|
132
|
+
$remainder: $remainder - $divisor
|
133
|
+
@if $remainder > 0 and $precision > 0
|
134
|
+
$remainder: divide($remainder * 10, $divisor, $precision - 1) * .1
|
135
|
+
@return ($quotient + $remainder) * $sign
|
@@ -0,0 +1,78 @@
|
|
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
|
+
$grey-lightest: hsl(0, 0%, 93%) !default
|
13
|
+
|
14
|
+
$white-ter: hsl(0, 0%, 96%) !default
|
15
|
+
$white-bis: hsl(0, 0%, 98%) !default
|
16
|
+
$white: hsl(0, 0%, 100%) !default
|
17
|
+
|
18
|
+
$orange: hsl(14, 100%, 53%) !default
|
19
|
+
$yellow: hsl(44, 100%, 77%) !default
|
20
|
+
$green: hsl(153, 53%, 53%) !default
|
21
|
+
$turquoise: hsl(171, 100%, 41%) !default
|
22
|
+
$cyan: hsl(207, 61%, 53%) !default
|
23
|
+
$blue: hsl(229, 53%, 53%) !default
|
24
|
+
$purple: hsl(271, 100%, 71%) !default
|
25
|
+
$red: hsl(348, 86%, 61%) !default
|
26
|
+
|
27
|
+
// Typography
|
28
|
+
|
29
|
+
$family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default
|
30
|
+
$family-monospace: monospace !default
|
31
|
+
$render-mode: optimizeLegibility !default
|
32
|
+
|
33
|
+
$size-1: 3rem !default
|
34
|
+
$size-2: 2.5rem !default
|
35
|
+
$size-3: 2rem !default
|
36
|
+
$size-4: 1.5rem !default
|
37
|
+
$size-5: 1.25rem !default
|
38
|
+
$size-6: 1rem !default
|
39
|
+
$size-7: 0.75rem !default
|
40
|
+
|
41
|
+
$weight-light: 300 !default
|
42
|
+
$weight-normal: 400 !default
|
43
|
+
$weight-medium: 500 !default
|
44
|
+
$weight-semibold: 600 !default
|
45
|
+
$weight-bold: 700 !default
|
46
|
+
|
47
|
+
// Spacing
|
48
|
+
|
49
|
+
$block-spacing: 1.5rem !default
|
50
|
+
|
51
|
+
// Responsiveness
|
52
|
+
|
53
|
+
// The container horizontal gap, which acts as the offset for breakpoints
|
54
|
+
$gap: 32px !default
|
55
|
+
// 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16
|
56
|
+
$tablet: 769px !default
|
57
|
+
// 960px container + 4rem
|
58
|
+
$desktop: 960px + (2 * $gap) !default
|
59
|
+
// 1152px container + 4rem
|
60
|
+
$widescreen: 1152px + (2 * $gap) !default
|
61
|
+
$widescreen-enabled: true !default
|
62
|
+
// 1344px container + 4rem
|
63
|
+
$fullhd: 1344px + (2 * $gap) !default
|
64
|
+
$fullhd-enabled: true !default
|
65
|
+
|
66
|
+
// Miscellaneous
|
67
|
+
|
68
|
+
$easing: ease-out !default
|
69
|
+
$radius-small: 2px !default
|
70
|
+
$radius: 4px !default
|
71
|
+
$radius-large: 6px !default
|
72
|
+
$radius-rounded: 9999px !default
|
73
|
+
$speed: 86ms !default
|
74
|
+
|
75
|
+
// Flags
|
76
|
+
|
77
|
+
$variable-columns: true !default
|
78
|
+
$rtl: false !default
|
@@ -0,0 +1,284 @@
|
|
1
|
+
@import "derived-variables"
|
2
|
+
|
3
|
+
=clearfix
|
4
|
+
&::after
|
5
|
+
clear: both
|
6
|
+
content: " "
|
7
|
+
display: table
|
8
|
+
|
9
|
+
=center($width, $height: 0)
|
10
|
+
position: absolute
|
11
|
+
@if $height != 0
|
12
|
+
left: calc(50% - (#{$width} * 0.5))
|
13
|
+
top: calc(50% - (#{$height} * 0.5))
|
14
|
+
@else
|
15
|
+
left: calc(50% - (#{$width} * 0.5))
|
16
|
+
top: calc(50% - (#{$width} * 0.5))
|
17
|
+
|
18
|
+
=fa($size, $dimensions)
|
19
|
+
display: inline-block
|
20
|
+
font-size: $size
|
21
|
+
height: $dimensions
|
22
|
+
line-height: $dimensions
|
23
|
+
text-align: center
|
24
|
+
vertical-align: top
|
25
|
+
width: $dimensions
|
26
|
+
|
27
|
+
=hamburger($dimensions)
|
28
|
+
-moz-appearance: none
|
29
|
+
-webkit-appearance: none
|
30
|
+
appearance: none
|
31
|
+
background: none
|
32
|
+
border: none
|
33
|
+
cursor: pointer
|
34
|
+
display: block
|
35
|
+
height: $dimensions
|
36
|
+
position: relative
|
37
|
+
width: $dimensions
|
38
|
+
span
|
39
|
+
background-color: currentColor
|
40
|
+
display: block
|
41
|
+
height: 1px
|
42
|
+
left: calc(50% - 8px)
|
43
|
+
position: absolute
|
44
|
+
transform-origin: center
|
45
|
+
transition-duration: $speed
|
46
|
+
transition-property: background-color, opacity, transform
|
47
|
+
transition-timing-function: $easing
|
48
|
+
width: 16px
|
49
|
+
&:nth-child(1)
|
50
|
+
top: calc(50% - 6px)
|
51
|
+
&:nth-child(2)
|
52
|
+
top: calc(50% - 1px)
|
53
|
+
&:nth-child(3)
|
54
|
+
top: calc(50% + 4px)
|
55
|
+
&:hover
|
56
|
+
background-color: bulmaRgba(black, 0.05)
|
57
|
+
// Modifers
|
58
|
+
&.is-active
|
59
|
+
span
|
60
|
+
&:nth-child(1)
|
61
|
+
transform: translateY(5px) rotate(45deg)
|
62
|
+
&:nth-child(2)
|
63
|
+
opacity: 0
|
64
|
+
&:nth-child(3)
|
65
|
+
transform: translateY(-5px) rotate(-45deg)
|
66
|
+
|
67
|
+
=overflow-touch
|
68
|
+
-webkit-overflow-scrolling: touch
|
69
|
+
|
70
|
+
=placeholder
|
71
|
+
$placeholders: ':-moz' ':-webkit-input' '-moz' '-ms-input'
|
72
|
+
@each $placeholder in $placeholders
|
73
|
+
&:#{$placeholder}-placeholder
|
74
|
+
@content
|
75
|
+
|
76
|
+
=reset
|
77
|
+
-moz-appearance: none
|
78
|
+
-webkit-appearance: none
|
79
|
+
appearance: none
|
80
|
+
background: none
|
81
|
+
border: none
|
82
|
+
color: currentColor
|
83
|
+
font-family: inherit
|
84
|
+
font-size: 1em
|
85
|
+
margin: 0
|
86
|
+
padding: 0
|
87
|
+
|
88
|
+
// Responsiveness
|
89
|
+
|
90
|
+
=from($device)
|
91
|
+
@media screen and (min-width: $device)
|
92
|
+
@content
|
93
|
+
|
94
|
+
=until($device)
|
95
|
+
@media screen and (max-width: $device - 1px)
|
96
|
+
@content
|
97
|
+
|
98
|
+
=mobile
|
99
|
+
@media screen and (max-width: $tablet - 1px)
|
100
|
+
@content
|
101
|
+
|
102
|
+
=tablet
|
103
|
+
@media screen and (min-width: $tablet), print
|
104
|
+
@content
|
105
|
+
|
106
|
+
=tablet-only
|
107
|
+
@media screen and (min-width: $tablet) and (max-width: $desktop - 1px)
|
108
|
+
@content
|
109
|
+
|
110
|
+
=touch
|
111
|
+
@media screen and (max-width: $desktop - 1px)
|
112
|
+
@content
|
113
|
+
|
114
|
+
=desktop
|
115
|
+
@media screen and (min-width: $desktop)
|
116
|
+
@content
|
117
|
+
|
118
|
+
=desktop-only
|
119
|
+
@if $widescreen-enabled
|
120
|
+
@media screen and (min-width: $desktop) and (max-width: $widescreen - 1px)
|
121
|
+
@content
|
122
|
+
|
123
|
+
=until-widescreen
|
124
|
+
@if $widescreen-enabled
|
125
|
+
@media screen and (max-width: $widescreen - 1px)
|
126
|
+
@content
|
127
|
+
|
128
|
+
=widescreen
|
129
|
+
@if $widescreen-enabled
|
130
|
+
@media screen and (min-width: $widescreen)
|
131
|
+
@content
|
132
|
+
|
133
|
+
=widescreen-only
|
134
|
+
@if $widescreen-enabled and $fullhd-enabled
|
135
|
+
@media screen and (min-width: $widescreen) and (max-width: $fullhd - 1px)
|
136
|
+
@content
|
137
|
+
|
138
|
+
=until-fullhd
|
139
|
+
@if $fullhd-enabled
|
140
|
+
@media screen and (max-width: $fullhd - 1px)
|
141
|
+
@content
|
142
|
+
|
143
|
+
=fullhd
|
144
|
+
@if $fullhd-enabled
|
145
|
+
@media screen and (min-width: $fullhd)
|
146
|
+
@content
|
147
|
+
|
148
|
+
=ltr
|
149
|
+
@if not $rtl
|
150
|
+
@content
|
151
|
+
|
152
|
+
=rtl
|
153
|
+
@if $rtl
|
154
|
+
@content
|
155
|
+
|
156
|
+
=ltr-property($property, $spacing, $right: true)
|
157
|
+
$normal: if($right, "right", "left")
|
158
|
+
$opposite: if($right, "left", "right")
|
159
|
+
@if $rtl
|
160
|
+
#{$property}-#{$opposite}: $spacing
|
161
|
+
@else
|
162
|
+
#{$property}-#{$normal}: $spacing
|
163
|
+
|
164
|
+
=ltr-position($spacing, $right: true)
|
165
|
+
$normal: if($right, "right", "left")
|
166
|
+
$opposite: if($right, "left", "right")
|
167
|
+
@if $rtl
|
168
|
+
#{$opposite}: $spacing
|
169
|
+
@else
|
170
|
+
#{$normal}: $spacing
|
171
|
+
|
172
|
+
// Placeholders
|
173
|
+
|
174
|
+
=unselectable
|
175
|
+
-webkit-touch-callout: none
|
176
|
+
-webkit-user-select: none
|
177
|
+
-moz-user-select: none
|
178
|
+
-ms-user-select: none
|
179
|
+
user-select: none
|
180
|
+
|
181
|
+
=arrow($color: transparent)
|
182
|
+
border: 3px solid $color
|
183
|
+
border-radius: 2px
|
184
|
+
border-right: 0
|
185
|
+
border-top: 0
|
186
|
+
content: " "
|
187
|
+
display: block
|
188
|
+
height: 0.625em
|
189
|
+
margin-top: -0.4375em
|
190
|
+
pointer-events: none
|
191
|
+
position: absolute
|
192
|
+
top: 50%
|
193
|
+
transform: rotate(-45deg)
|
194
|
+
transform-origin: center
|
195
|
+
width: 0.625em
|
196
|
+
|
197
|
+
=block($spacing: $block-spacing)
|
198
|
+
&:not(:last-child)
|
199
|
+
margin-bottom: $spacing
|
200
|
+
|
201
|
+
=delete
|
202
|
+
+unselectable
|
203
|
+
-moz-appearance: none
|
204
|
+
-webkit-appearance: none
|
205
|
+
background-color: bulmaRgba($scheme-invert, 0.2)
|
206
|
+
border: none
|
207
|
+
border-radius: $radius-rounded
|
208
|
+
cursor: pointer
|
209
|
+
pointer-events: auto
|
210
|
+
display: inline-block
|
211
|
+
flex-grow: 0
|
212
|
+
flex-shrink: 0
|
213
|
+
font-size: 0
|
214
|
+
height: 20px
|
215
|
+
max-height: 20px
|
216
|
+
max-width: 20px
|
217
|
+
min-height: 20px
|
218
|
+
min-width: 20px
|
219
|
+
outline: none
|
220
|
+
position: relative
|
221
|
+
vertical-align: top
|
222
|
+
width: 20px
|
223
|
+
&::before,
|
224
|
+
&::after
|
225
|
+
background-color: $scheme-main
|
226
|
+
content: ""
|
227
|
+
display: block
|
228
|
+
left: 50%
|
229
|
+
position: absolute
|
230
|
+
top: 50%
|
231
|
+
transform: translateX(-50%) translateY(-50%) rotate(45deg)
|
232
|
+
transform-origin: center center
|
233
|
+
&::before
|
234
|
+
height: 2px
|
235
|
+
width: 50%
|
236
|
+
&::after
|
237
|
+
height: 50%
|
238
|
+
width: 2px
|
239
|
+
&:hover,
|
240
|
+
&:focus
|
241
|
+
background-color: bulmaRgba($scheme-invert, 0.3)
|
242
|
+
&:active
|
243
|
+
background-color: bulmaRgba($scheme-invert, 0.4)
|
244
|
+
// Sizes
|
245
|
+
&.is-small
|
246
|
+
height: 16px
|
247
|
+
max-height: 16px
|
248
|
+
max-width: 16px
|
249
|
+
min-height: 16px
|
250
|
+
min-width: 16px
|
251
|
+
width: 16px
|
252
|
+
&.is-medium
|
253
|
+
height: 24px
|
254
|
+
max-height: 24px
|
255
|
+
max-width: 24px
|
256
|
+
min-height: 24px
|
257
|
+
min-width: 24px
|
258
|
+
width: 24px
|
259
|
+
&.is-large
|
260
|
+
height: 32px
|
261
|
+
max-height: 32px
|
262
|
+
max-width: 32px
|
263
|
+
min-height: 32px
|
264
|
+
min-width: 32px
|
265
|
+
width: 32px
|
266
|
+
|
267
|
+
=loader
|
268
|
+
animation: spinAround 500ms infinite linear
|
269
|
+
border: 2px solid $grey-lighter
|
270
|
+
border-radius: $radius-rounded
|
271
|
+
border-right-color: transparent
|
272
|
+
border-top-color: transparent
|
273
|
+
content: ""
|
274
|
+
display: block
|
275
|
+
height: 1em
|
276
|
+
position: relative
|
277
|
+
width: 1em
|
278
|
+
|
279
|
+
=overlay($offset: 0)
|
280
|
+
bottom: $offset
|
281
|
+
left: $offset
|
282
|
+
position: absolute
|
283
|
+
right: $offset
|
284
|
+
top: $offset
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require_relative "lib/bulma/version"
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "bulma-sass-rails"
|
5
|
+
spec.version = BulmaSassRails::VERSION
|
6
|
+
spec.authors = ["xzgyb"]
|
7
|
+
spec.email = ["xzgaoyanbing@163.com"]
|
8
|
+
spec.homepage = "https://github.com/xzgyb/bulma-sass-rails"
|
9
|
+
spec.summary = "Integrate Bulma sass with the asset pipeline in Rails."
|
10
|
+
spec.license = "MIT"
|
11
|
+
|
12
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the "allowed_push_host"
|
13
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
14
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($\)
|
17
|
+
spec.add_runtime_dependency 'sassc', '~> 2.0'
|
18
|
+
end
|
data/lib/bulma/engine.rb
ADDED
metadata
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bulma-sass-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- xzgyb
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-01-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sassc
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- xzgaoyanbing@163.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- ".gitignore"
|
35
|
+
- README.md
|
36
|
+
- app/assets/stylesheets/bulma-rtl.sass
|
37
|
+
- app/assets/stylesheets/bulma.sass
|
38
|
+
- app/assets/stylesheets/sass/base/_all.sass
|
39
|
+
- app/assets/stylesheets/sass/base/animations.sass
|
40
|
+
- app/assets/stylesheets/sass/base/generic.sass
|
41
|
+
- app/assets/stylesheets/sass/base/helpers.sass
|
42
|
+
- app/assets/stylesheets/sass/base/minireset.sass
|
43
|
+
- app/assets/stylesheets/sass/components/_all.sass
|
44
|
+
- app/assets/stylesheets/sass/components/breadcrumb.sass
|
45
|
+
- app/assets/stylesheets/sass/components/card.sass
|
46
|
+
- app/assets/stylesheets/sass/components/dropdown.sass
|
47
|
+
- app/assets/stylesheets/sass/components/level.sass
|
48
|
+
- app/assets/stylesheets/sass/components/media.sass
|
49
|
+
- app/assets/stylesheets/sass/components/menu.sass
|
50
|
+
- app/assets/stylesheets/sass/components/message.sass
|
51
|
+
- app/assets/stylesheets/sass/components/modal.sass
|
52
|
+
- app/assets/stylesheets/sass/components/navbar.sass
|
53
|
+
- app/assets/stylesheets/sass/components/pagination.sass
|
54
|
+
- app/assets/stylesheets/sass/components/panel.sass
|
55
|
+
- app/assets/stylesheets/sass/components/tabs.sass
|
56
|
+
- app/assets/stylesheets/sass/elements/_all.sass
|
57
|
+
- app/assets/stylesheets/sass/elements/box.sass
|
58
|
+
- app/assets/stylesheets/sass/elements/button.sass
|
59
|
+
- app/assets/stylesheets/sass/elements/container.sass
|
60
|
+
- app/assets/stylesheets/sass/elements/content.sass
|
61
|
+
- app/assets/stylesheets/sass/elements/form.sass
|
62
|
+
- app/assets/stylesheets/sass/elements/icon.sass
|
63
|
+
- app/assets/stylesheets/sass/elements/image.sass
|
64
|
+
- app/assets/stylesheets/sass/elements/notification.sass
|
65
|
+
- app/assets/stylesheets/sass/elements/other.sass
|
66
|
+
- app/assets/stylesheets/sass/elements/progress.sass
|
67
|
+
- app/assets/stylesheets/sass/elements/table.sass
|
68
|
+
- app/assets/stylesheets/sass/elements/tag.sass
|
69
|
+
- app/assets/stylesheets/sass/elements/title.sass
|
70
|
+
- app/assets/stylesheets/sass/form/_all.sass
|
71
|
+
- app/assets/stylesheets/sass/form/checkbox-radio.sass
|
72
|
+
- app/assets/stylesheets/sass/form/file.sass
|
73
|
+
- app/assets/stylesheets/sass/form/input-textarea.sass
|
74
|
+
- app/assets/stylesheets/sass/form/select.sass
|
75
|
+
- app/assets/stylesheets/sass/form/shared.sass
|
76
|
+
- app/assets/stylesheets/sass/form/tools.sass
|
77
|
+
- app/assets/stylesheets/sass/grid/_all.sass
|
78
|
+
- app/assets/stylesheets/sass/grid/columns.sass
|
79
|
+
- app/assets/stylesheets/sass/grid/tiles.sass
|
80
|
+
- app/assets/stylesheets/sass/helpers/_all.sass
|
81
|
+
- app/assets/stylesheets/sass/helpers/color.sass
|
82
|
+
- app/assets/stylesheets/sass/helpers/flexbox.sass
|
83
|
+
- app/assets/stylesheets/sass/helpers/float.sass
|
84
|
+
- app/assets/stylesheets/sass/helpers/other.sass
|
85
|
+
- app/assets/stylesheets/sass/helpers/overflow.sass
|
86
|
+
- app/assets/stylesheets/sass/helpers/position.sass
|
87
|
+
- app/assets/stylesheets/sass/helpers/spacing.sass
|
88
|
+
- app/assets/stylesheets/sass/helpers/typography.sass
|
89
|
+
- app/assets/stylesheets/sass/helpers/visibility.sass
|
90
|
+
- app/assets/stylesheets/sass/layout/_all.sass
|
91
|
+
- app/assets/stylesheets/sass/layout/footer.sass
|
92
|
+
- app/assets/stylesheets/sass/layout/hero.sass
|
93
|
+
- app/assets/stylesheets/sass/layout/section.sass
|
94
|
+
- app/assets/stylesheets/sass/utilities/_all.sass
|
95
|
+
- app/assets/stylesheets/sass/utilities/animations.sass
|
96
|
+
- app/assets/stylesheets/sass/utilities/controls.sass
|
97
|
+
- app/assets/stylesheets/sass/utilities/derived-variables.sass
|
98
|
+
- app/assets/stylesheets/sass/utilities/extends.sass
|
99
|
+
- app/assets/stylesheets/sass/utilities/functions.sass
|
100
|
+
- app/assets/stylesheets/sass/utilities/initial-variables.sass
|
101
|
+
- app/assets/stylesheets/sass/utilities/mixins.sass
|
102
|
+
- bulma-sass-rails.gemspec
|
103
|
+
- lib/bulma-sass-rails.rb
|
104
|
+
- lib/bulma/engine.rb
|
105
|
+
- lib/bulma/version.rb
|
106
|
+
homepage: https://github.com/xzgyb/bulma-sass-rails
|
107
|
+
licenses:
|
108
|
+
- MIT
|
109
|
+
metadata:
|
110
|
+
homepage_uri: https://github.com/xzgyb/bulma-sass-rails
|
111
|
+
post_install_message:
|
112
|
+
rdoc_options: []
|
113
|
+
require_paths:
|
114
|
+
- lib
|
115
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
requirements: []
|
126
|
+
rubygems_version: 3.3.3
|
127
|
+
signing_key:
|
128
|
+
specification_version: 4
|
129
|
+
summary: Integrate Bulma sass with the asset pipeline in Rails.
|
130
|
+
test_files: []
|