bulma-rails 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/stylesheets/bulma.sass +2 -1
- data/app/assets/stylesheets/sass/base/_all.sass +0 -0
- data/app/assets/stylesheets/sass/base/generic.sass +13 -11
- data/app/assets/stylesheets/sass/base/helpers.sass +0 -0
- data/app/assets/stylesheets/sass/base/minireset.sass +0 -0
- data/app/assets/stylesheets/sass/components/_all.sass +0 -1
- data/app/assets/stylesheets/sass/components/card.sass +10 -15
- data/app/assets/stylesheets/sass/components/level.sass +16 -6
- data/app/assets/stylesheets/sass/components/media.sass +13 -30
- data/app/assets/stylesheets/sass/components/menu.sass +11 -11
- data/app/assets/stylesheets/sass/components/message.sass +47 -25
- data/app/assets/stylesheets/sass/components/modal.sass +1 -0
- data/app/assets/stylesheets/sass/components/nav.sass +33 -44
- data/app/assets/stylesheets/sass/components/pagination.sass +124 -28
- data/app/assets/stylesheets/sass/components/panel.sass +52 -35
- data/app/assets/stylesheets/sass/components/tabs.sass +10 -35
- data/app/assets/stylesheets/sass/elements/_all.sass +2 -0
- data/app/assets/stylesheets/sass/elements/box.sass +1 -1
- data/app/assets/stylesheets/sass/elements/button.sass +125 -42
- data/app/assets/stylesheets/sass/elements/content.sass +54 -25
- data/app/assets/stylesheets/sass/elements/form.sass +136 -92
- data/app/assets/stylesheets/sass/elements/icon.sass +12 -0
- data/app/assets/stylesheets/sass/elements/image.sass +0 -0
- data/app/assets/stylesheets/sass/elements/notification.sass +9 -5
- data/app/assets/stylesheets/sass/elements/other.sass +9 -61
- data/app/assets/stylesheets/sass/elements/progress.sass +4 -4
- data/app/assets/stylesheets/sass/elements/table.sass +16 -45
- data/app/assets/stylesheets/sass/elements/tag.sass +29 -0
- data/app/assets/stylesheets/sass/elements/title.sass +25 -44
- data/app/assets/stylesheets/sass/grid/_all.sass +0 -0
- data/app/assets/stylesheets/sass/grid/columns.sass +8 -8
- data/app/assets/stylesheets/sass/grid/tiles.sass +8 -8
- data/app/assets/stylesheets/sass/layout/_all.sass +0 -0
- data/app/assets/stylesheets/sass/layout/footer.sass +1 -11
- data/app/assets/stylesheets/sass/layout/hero.sass +13 -12
- data/app/assets/stylesheets/sass/layout/section.sass +3 -3
- data/app/assets/stylesheets/sass/utilities/_all.sass +0 -0
- data/app/assets/stylesheets/sass/utilities/controls.sass +14 -52
- data/app/assets/stylesheets/sass/utilities/functions.sass +10 -2
- data/app/assets/stylesheets/sass/utilities/mixins.sass +41 -36
- data/app/assets/stylesheets/sass/utilities/variables.sass +28 -24
- data/bulma-rails.gemspec +1 -1
- metadata +4 -12
- data/app/assets/stylesheets/sass/base/base.sass +0 -5
- data/app/assets/stylesheets/sass/base/classes.sass +0 -20
- data/app/assets/stylesheets/sass/components/components.sass +0 -14
- data/app/assets/stylesheets/sass/components/grid.sass +0 -282
- data/app/assets/stylesheets/sass/components/highlight.sass +0 -123
- data/app/assets/stylesheets/sass/elements/elements.sass +0 -13
- data/app/assets/stylesheets/sass/layout/layout.sass +0 -5
- data/app/assets/stylesheets/sass/utilities/animations.sass +0 -5
- data/app/assets/stylesheets/sass/utilities/reset.sass +0 -174
- data/app/assets/stylesheets/sass/utilities/utilities.sass +0 -8
File without changes
|
@@ -1,13 +1,3 @@
|
|
1
1
|
.footer
|
2
2
|
background-color: $background
|
3
|
-
padding:
|
4
|
-
a
|
5
|
-
&,
|
6
|
-
&:visited
|
7
|
-
color: $text
|
8
|
-
&:hover
|
9
|
-
color: $text-strong
|
10
|
-
&:not(.icon)
|
11
|
-
border-bottom: 1px solid $border
|
12
|
-
&:hover
|
13
|
-
border-bottom-color: $link
|
3
|
+
padding: 3rem 1.5rem 6rem
|
@@ -18,31 +18,32 @@
|
|
18
18
|
display: none
|
19
19
|
|
20
20
|
.hero-buttons
|
21
|
-
margin-top:
|
21
|
+
margin-top: 1.5rem
|
22
22
|
// Responsiveness
|
23
23
|
+mobile
|
24
24
|
.button
|
25
25
|
display: flex
|
26
26
|
&:not(:last-child)
|
27
|
-
margin-bottom:
|
27
|
+
margin-bottom: 0.75rem
|
28
28
|
+tablet
|
29
29
|
display: flex
|
30
30
|
justify-content: center
|
31
31
|
.button:not(:last-child)
|
32
|
-
margin-right:
|
32
|
+
margin-right: 1.5rem
|
33
33
|
|
34
34
|
// Containers
|
35
35
|
|
36
36
|
.hero-head,
|
37
37
|
.hero-foot
|
38
|
+
flex-grow: 0
|
38
39
|
flex-shrink: 0
|
39
40
|
|
40
41
|
.hero-body
|
41
42
|
flex-grow: 1
|
42
43
|
flex-shrink: 0
|
43
|
-
padding:
|
44
|
+
padding: 3rem 1.5rem
|
44
45
|
// Responsiveness
|
45
|
-
+from(
|
46
|
+
+from($widescreen)
|
46
47
|
padding-left: 0
|
47
48
|
padding-right: 0
|
48
49
|
|
@@ -67,11 +68,11 @@
|
|
67
68
|
&.is-#{$name}
|
68
69
|
background-color: $color
|
69
70
|
color: $color-invert
|
71
|
+
a,
|
72
|
+
strong
|
73
|
+
color: inherit
|
70
74
|
.title
|
71
75
|
color: $color-invert
|
72
|
-
a,
|
73
|
-
strong
|
74
|
-
color: inherit
|
75
76
|
.subtitle
|
76
77
|
color: rgba($color-invert, 0.9)
|
77
78
|
a,
|
@@ -131,13 +132,13 @@
|
|
131
132
|
&.is-medium
|
132
133
|
+tablet
|
133
134
|
.hero-body
|
134
|
-
padding-bottom:
|
135
|
-
padding-top:
|
135
|
+
padding-bottom: 9rem
|
136
|
+
padding-top: 9rem
|
136
137
|
&.is-large
|
137
138
|
+tablet
|
138
139
|
.hero-body
|
139
|
-
padding-bottom:
|
140
|
-
padding-top:
|
140
|
+
padding-bottom: 18rem
|
141
|
+
padding-top: 18rem
|
141
142
|
&.is-fullheight
|
142
143
|
min-height: 100vh
|
143
144
|
.hero-body
|
File without changes
|
@@ -1,75 +1,37 @@
|
|
1
|
-
$control: $text-strong !default
|
2
|
-
$control-background: $text-invert !default
|
3
|
-
$control-border: $border !default
|
4
|
-
|
5
|
-
$control-hover: $link-hover !default
|
6
|
-
$control-hover-border: $border-hover !default
|
7
|
-
|
8
|
-
$control-active: $link !default
|
9
|
-
$control-active-background: $link !default
|
10
|
-
$control-active-background-invert: $link-invert !default
|
11
|
-
$control-active-border: $link !default
|
12
|
-
|
13
|
-
$control-disabled: $border !default
|
14
|
-
$control-disabled-background: $background !default
|
15
|
-
|
16
1
|
$control-radius: $radius !default
|
17
2
|
$control-radius-small: $radius-small !default
|
18
|
-
$control-size: $size-normal !default
|
19
|
-
$control-size-small: $size-small !default
|
20
|
-
|
21
|
-
$control-icon: $grey-lighter !default
|
22
|
-
$control-icon-active: $grey-light !default
|
23
3
|
|
24
4
|
=control
|
25
5
|
-moz-appearance: none
|
26
6
|
-webkit-appearance: none
|
27
7
|
align-items: center
|
28
|
-
|
29
|
-
border: 1px solid $control-border
|
8
|
+
border: none
|
30
9
|
border-radius: $control-radius
|
31
|
-
|
10
|
+
box-shadow: none
|
32
11
|
display: inline-flex
|
33
|
-
font-size: $
|
34
|
-
height:
|
12
|
+
font-size: $size-normal
|
13
|
+
height: 2.5em
|
35
14
|
justify-content: flex-start
|
36
|
-
line-height:
|
37
|
-
padding-left:
|
38
|
-
padding-right:
|
15
|
+
line-height: 1.5
|
16
|
+
padding-left: 0.75em
|
17
|
+
padding-right: 0.75em
|
39
18
|
position: relative
|
40
19
|
vertical-align: top
|
41
|
-
|
42
|
-
border-color: $control-hover-border
|
43
|
-
&:active,
|
20
|
+
// States
|
44
21
|
&:focus,
|
22
|
+
&.is-focused,
|
23
|
+
&:active,
|
45
24
|
&.is-active
|
46
|
-
border-color: $control-active-border
|
47
25
|
outline: none
|
48
26
|
&[disabled],
|
49
27
|
&.is-disabled
|
50
|
-
background-color: $control-disabled-background
|
51
|
-
border-color: $control-disabled
|
52
|
-
cursor: not-allowed
|
53
28
|
pointer-events: none
|
54
|
-
+placeholder
|
55
|
-
color: rgba($control, 0.3)
|
56
29
|
|
30
|
+
// The controls sizes use mixins so they can be used at different breakpoints
|
57
31
|
=control-small
|
58
32
|
border-radius: $control-radius-small
|
59
|
-
font-size:
|
60
|
-
height: 24px
|
61
|
-
line-height: 16px
|
62
|
-
padding-left: 6px
|
63
|
-
padding-right: 6px
|
33
|
+
font-size: $size-small
|
64
34
|
=control-medium
|
65
|
-
font-size:
|
66
|
-
height: 40px
|
67
|
-
line-height: 32px
|
68
|
-
padding-left: 10px
|
69
|
-
padding-right: 10px
|
35
|
+
font-size: $size-medium
|
70
36
|
=control-large
|
71
|
-
font-size:
|
72
|
-
height: 48px
|
73
|
-
line-height: 40px
|
74
|
-
padding-left: 12px
|
75
|
-
padding-right: 12px
|
37
|
+
font-size: $size-large
|
@@ -23,6 +23,14 @@
|
|
23
23
|
|
24
24
|
@function findColorInvert($color)
|
25
25
|
@if (colorLuminance($color) > 0.55)
|
26
|
-
@return rgba(
|
26
|
+
@return rgba(#000, 0.7)
|
27
27
|
@else
|
28
|
-
@return
|
28
|
+
@return #fff
|
29
|
+
|
30
|
+
@function removeUnit($number)
|
31
|
+
@if type-of($number) == 'number' and not unitless($number)
|
32
|
+
@return $number / ($number * 0 + 1)
|
33
|
+
@return $number
|
34
|
+
|
35
|
+
@function roundToEvenNumber($number)
|
36
|
+
@return floor($number / 2) * 2
|
@@ -4,15 +4,15 @@
|
|
4
4
|
border-top: 0
|
5
5
|
content: " "
|
6
6
|
display: block
|
7
|
-
height:
|
7
|
+
height: 0.5em
|
8
8
|
pointer-events: none
|
9
9
|
position: absolute
|
10
10
|
transform: rotate(-45deg)
|
11
|
-
width:
|
11
|
+
width: 0.5em
|
12
12
|
|
13
13
|
=block
|
14
14
|
&:not(:last-child)
|
15
|
-
margin-bottom:
|
15
|
+
margin-bottom: 1.5rem
|
16
16
|
|
17
17
|
=clearfix
|
18
18
|
&:after
|
@@ -28,47 +28,57 @@
|
|
28
28
|
top: 50%
|
29
29
|
|
30
30
|
=delete
|
31
|
+
// We need even pixel dimensions to ensure the delete cross can be perfectly centered
|
32
|
+
$dimension-small: roundToEvenNumber(1.5 * removeUnit($size-6) * removeUnit($size-small)) * 1px
|
33
|
+
$dimension-normal: roundToEvenNumber(1.5 * removeUnit($size-6) * removeUnit($size-normal)) * 1px
|
34
|
+
$dimension-medium: roundToEvenNumber(1.5 * removeUnit($size-6) * removeUnit($size-medium)) * 1px
|
35
|
+
$dimension-large: roundToEvenNumber(1.5 * removeUnit($size-6) * removeUnit($size-large)) * 1px
|
31
36
|
+unselectable
|
32
37
|
-moz-appearance: none
|
33
38
|
-webkit-appearance: none
|
34
|
-
background-color: rgba($black, 0.
|
39
|
+
background-color: rgba($black, 0.2)
|
35
40
|
border: none
|
36
41
|
border-radius: 290486px
|
37
42
|
cursor: pointer
|
38
43
|
display: inline-block
|
39
|
-
|
44
|
+
font-size: $size-normal
|
45
|
+
height: $dimension-normal
|
40
46
|
outline: none
|
41
47
|
position: relative
|
48
|
+
transform: rotate(45deg)
|
49
|
+
transform-origin: center center
|
42
50
|
vertical-align: top
|
43
|
-
width:
|
51
|
+
width: $dimension-normal
|
44
52
|
&:before,
|
45
53
|
&:after
|
46
54
|
background-color: $white
|
47
55
|
content: ""
|
48
56
|
display: block
|
49
|
-
height: 2px
|
50
57
|
left: 50%
|
51
|
-
margin-left: -25%
|
52
|
-
margin-top: -1px
|
53
58
|
position: absolute
|
54
59
|
top: 50%
|
55
|
-
|
60
|
+
transform: translateX(-50%) translateY(-50%)
|
56
61
|
&:before
|
57
|
-
|
62
|
+
height: 2px
|
63
|
+
width: 50%
|
58
64
|
&:after
|
59
|
-
|
60
|
-
|
61
|
-
|
65
|
+
height: 50%
|
66
|
+
width: 2px
|
67
|
+
&:hover,
|
68
|
+
&:focus
|
69
|
+
background-color: rgba($black, 0.3)
|
70
|
+
&:active
|
71
|
+
background-color: rgba($black, 0.4)
|
62
72
|
// Sizes
|
63
73
|
&.is-small
|
64
|
-
height:
|
65
|
-
width:
|
74
|
+
height: $dimension-small
|
75
|
+
width: $dimension-small
|
66
76
|
&.is-medium
|
67
|
-
height:
|
68
|
-
width:
|
77
|
+
height: $dimension-medium
|
78
|
+
width: $dimension-medium
|
69
79
|
&.is-large
|
70
|
-
height:
|
71
|
-
width:
|
80
|
+
height: $dimension-large
|
81
|
+
width: $dimension-large
|
72
82
|
|
73
83
|
=fa($size, $dimensions)
|
74
84
|
display: inline-block
|
@@ -133,9 +143,12 @@
|
|
133
143
|
border-top-color: transparent
|
134
144
|
content: ""
|
135
145
|
display: block
|
136
|
-
height:
|
146
|
+
height: 1rem
|
137
147
|
position: relative
|
138
|
-
width:
|
148
|
+
width: 1rem
|
149
|
+
|
150
|
+
=overflow-touch
|
151
|
+
-webkit-overflow-scrolling: touch
|
139
152
|
|
140
153
|
=overlay($offset: 0)
|
141
154
|
bottom: $offset
|
@@ -150,18 +163,6 @@
|
|
150
163
|
&:#{$placeholder}-placeholder
|
151
164
|
@content
|
152
165
|
|
153
|
-
=replace($background, $width, $height)
|
154
|
-
background-color: $background
|
155
|
-
background-position: center center
|
156
|
-
background-repeat: no-repeat
|
157
|
-
background-size: $width $height
|
158
|
-
display: block
|
159
|
-
height: $height
|
160
|
-
outline: none
|
161
|
-
overflow: hidden
|
162
|
-
text-indent: -290486px
|
163
|
-
width: $width
|
164
|
-
|
165
166
|
=unselectable
|
166
167
|
-webkit-touch-callout: none
|
167
168
|
-webkit-user-select: none
|
@@ -172,8 +173,12 @@
|
|
172
173
|
// Responsiveness
|
173
174
|
|
174
175
|
$tablet: 769px !default
|
175
|
-
|
176
|
-
$
|
176
|
+
// 960px container + 40px
|
177
|
+
$desktop: 1000px !default
|
178
|
+
// 1152px container + 40
|
179
|
+
$widescreen: 1192px !default
|
180
|
+
// 960 and 1152 have been chosen because
|
181
|
+
// they are divisible by both 12 and 16
|
177
182
|
|
178
183
|
=from($device)
|
179
184
|
@media screen and (min-width: $device)
|
@@ -29,19 +29,18 @@ $red: hsl(348, 100%, 61%) !default
|
|
29
29
|
$family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default
|
30
30
|
$family-monospace: "Inconsolata", "Consolas", "Monaco", monospace !default
|
31
31
|
|
32
|
-
$size-1:
|
33
|
-
$size-2:
|
34
|
-
$size-3:
|
35
|
-
$size-4:
|
36
|
-
$size-5:
|
32
|
+
$size-1: 3.5rem !default
|
33
|
+
$size-2: 2.75rem !default
|
34
|
+
$size-3: 2rem !default
|
35
|
+
$size-4: 1.5rem !default
|
36
|
+
$size-5: 1.25rem !default
|
37
37
|
$size-6: 14px !default
|
38
|
+
$size-7: 0.75rem !default
|
38
39
|
|
39
|
-
$
|
40
|
-
|
40
|
+
$weight-light: 300 !default
|
41
41
|
$weight-normal: 400 !default
|
42
|
+
$weight-semibold: 500 !default
|
42
43
|
$weight-bold: 700 !default
|
43
|
-
$weight-title-normal: 300 !default
|
44
|
-
$weight-title-bold: 500 !default
|
45
44
|
|
46
45
|
// Miscellaneous
|
47
46
|
$easing: ease-out !default
|
@@ -69,19 +68,23 @@ $dark: $grey-darker !default
|
|
69
68
|
// 3. Applied variables
|
70
69
|
|
71
70
|
// Invert colors
|
72
|
-
$
|
73
|
-
|
74
|
-
$
|
75
|
-
$
|
76
|
-
$
|
77
|
-
$
|
78
|
-
|
71
|
+
$orange-invert: findColorInvert($orange) !default
|
72
|
+
$yellow-invert: findColorInvert($yellow) !default
|
73
|
+
$green-invert: findColorInvert($green) !default
|
74
|
+
$turquoise-invert: findColorInvert($turquoise) !default
|
75
|
+
$blue-invert: findColorInvert($blue) !default
|
76
|
+
$purple-invert: findColorInvert($purple) !default
|
77
|
+
$red-invert: findColorInvert($red) !default
|
78
|
+
|
79
|
+
$primary-invert: $turquoise-invert !default
|
80
|
+
$info-invert: $blue-invert !default
|
81
|
+
$success-invert: $green-invert !default
|
82
|
+
$warning-invert: $yellow-invert !default
|
83
|
+
$danger-invert: $red-invert !default
|
79
84
|
$light-invert: $dark !default
|
80
85
|
$dark-invert: $light !default
|
81
86
|
|
82
87
|
// General colors
|
83
|
-
$body-background: $white-ter !default
|
84
|
-
|
85
88
|
$background: $white-ter !default
|
86
89
|
|
87
90
|
$border: $grey-lighter !default
|
@@ -106,21 +109,22 @@ $link-invert: $primary-invert !default
|
|
106
109
|
$link-visited: $purple !default
|
107
110
|
|
108
111
|
$link-hover: $grey-darker !default
|
109
|
-
$link-hover-
|
110
|
-
|
112
|
+
$link-hover-border: $grey-light !default
|
113
|
+
|
114
|
+
$link-focus: $grey-darker !default
|
115
|
+
$link-focus-border: $primary !default
|
111
116
|
|
112
117
|
$link-active: $grey-darker !default
|
113
|
-
$link-active-border: $grey-
|
118
|
+
$link-active-border: $grey-dark !default
|
114
119
|
|
115
120
|
// Typography
|
116
121
|
$family-primary: $family-sans-serif !default
|
117
122
|
$family-code: $family-monospace !default
|
118
123
|
|
119
124
|
$size-small: $size-7 !default
|
120
|
-
$size-normal:
|
125
|
+
$size-normal: 1rem !default
|
121
126
|
$size-medium: $size-5 !default
|
122
|
-
$size-large: $size-
|
123
|
-
$size-huge: $size-1 !default
|
127
|
+
$size-large: $size-4 !default
|
124
128
|
|
125
129
|
////////////////////////////////////////////////
|
126
130
|
////////////////////////////////////////////////
|