bulma-rails 0.0.24 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/README.md +2 -2
- data/app/assets/stylesheets/sass/base/classes.sass +2 -0
- data/app/assets/stylesheets/sass/base/generic.sass +4 -3
- data/app/assets/stylesheets/sass/base/helpers.sass +44 -3
- data/app/assets/stylesheets/sass/components/card.sass +3 -4
- data/app/assets/stylesheets/sass/components/components.sass +2 -1
- data/app/assets/stylesheets/sass/components/grid.sass +0 -13
- data/app/assets/stylesheets/sass/components/level.sass +57 -0
- data/app/assets/stylesheets/sass/components/message.sass +1 -1
- data/app/assets/stylesheets/sass/components/modal.sass +40 -1
- data/app/assets/stylesheets/sass/components/nav.sass +120 -0
- data/app/assets/stylesheets/sass/components/navbar.sass +10 -2
- data/app/assets/stylesheets/sass/components/panel.sass +4 -2
- data/app/assets/stylesheets/sass/components/tabs.sass +68 -43
- data/app/assets/stylesheets/sass/elements/box.sass +4 -4
- data/app/assets/stylesheets/sass/elements/button.sass +14 -19
- data/app/assets/stylesheets/sass/elements/content.sass +6 -0
- data/app/assets/stylesheets/sass/elements/elements.sass +1 -2
- data/app/assets/stylesheets/sass/elements/{controls.sass → form.sass} +2 -50
- data/app/assets/stylesheets/sass/elements/other.sass +22 -16
- data/app/assets/stylesheets/sass/elements/table.sass +4 -2
- data/app/assets/stylesheets/sass/layout/footer.sass +8 -6
- data/app/assets/stylesheets/sass/layout/header.sass +7 -10
- data/app/assets/stylesheets/sass/layout/hero.sass +57 -62
- data/app/assets/stylesheets/sass/layout/layout.sass +0 -1
- data/app/assets/stylesheets/sass/layout/section.sass +1 -3
- data/app/assets/stylesheets/sass/utilities/controls.sass +51 -0
- data/app/assets/stylesheets/sass/utilities/functions.sass +1 -1
- data/app/assets/stylesheets/sass/utilities/mixins.sass +8 -7
- data/app/assets/stylesheets/sass/utilities/utilities.sass +1 -0
- data/app/assets/stylesheets/sass/utilities/variables.sass +8 -4
- data/bulma-rails.gemspec +1 -1
- metadata +6 -3
@@ -1,5 +1,5 @@
|
|
1
1
|
.table
|
2
|
-
background: white
|
2
|
+
background: $white
|
3
3
|
color: $text-strong
|
4
4
|
margin-bottom: 20px
|
5
5
|
width: 100%
|
@@ -83,7 +83,9 @@
|
|
83
83
|
&.is-striped
|
84
84
|
tbody
|
85
85
|
tr
|
86
|
+
&:hover
|
87
|
+
background: darken($background, 5%)
|
86
88
|
&:nth-child(2n)
|
87
89
|
background: $background
|
88
90
|
&:hover
|
89
|
-
background: $
|
91
|
+
background: darken($background, 5%)
|
@@ -2,10 +2,12 @@
|
|
2
2
|
background: $background
|
3
3
|
padding: 40px 20px 80px
|
4
4
|
a
|
5
|
-
|
6
|
-
&:
|
7
|
-
color: $text
|
8
|
-
&:not(.icon)
|
9
|
-
border-bottom: 1px solid $border
|
5
|
+
&,
|
6
|
+
&:visited
|
7
|
+
color: $text
|
10
8
|
&:hover
|
11
|
-
|
9
|
+
color: $text-strong
|
10
|
+
&:not(.icon)
|
11
|
+
border-bottom: 1px solid $border
|
12
|
+
&:hover
|
13
|
+
border-bottom-color: $link
|
@@ -1,18 +1,22 @@
|
|
1
|
+
$header-height: 50px !default
|
2
|
+
|
1
3
|
.header
|
2
4
|
+clearfix
|
3
|
-
background: white
|
5
|
+
background: $white
|
4
6
|
display: flex
|
5
7
|
line-height: 24px
|
8
|
+
min-height: $header-height
|
6
9
|
position: relative
|
7
10
|
text-align: center
|
8
11
|
z-index: 2
|
9
12
|
.container
|
10
13
|
align-items: stretch
|
11
14
|
display: flex
|
15
|
+
min-height: $header-height
|
12
16
|
width: 100%
|
13
17
|
// Modifiers
|
14
18
|
&.has-shadow
|
15
|
-
box-shadow: 0
|
19
|
+
box-shadow: 0 2px 3px rgba($black, 0.1)
|
16
20
|
// Responsiveness
|
17
21
|
+mobile
|
18
22
|
.container
|
@@ -62,13 +66,6 @@ a.header-item
|
|
62
66
|
&.is-active
|
63
67
|
color: $link-active
|
64
68
|
|
65
|
-
.header-icon
|
66
|
-
+fa(14px, 24px)
|
67
|
-
color: $text
|
68
|
-
margin: 0 5px
|
69
|
-
&:hover
|
70
|
-
color: $link-hover
|
71
|
-
|
72
69
|
.header-tab
|
73
70
|
align-items: center
|
74
71
|
border-bottom: 1px solid transparent
|
@@ -128,7 +125,7 @@ a.header-item
|
|
128
125
|
.header-menu
|
129
126
|
// Responsiveness
|
130
127
|
+mobile
|
131
|
-
box-shadow: 0 4px 7px rgba(black, 0.1)
|
128
|
+
box-shadow: 0 4px 7px rgba($black, 0.1)
|
132
129
|
display: none
|
133
130
|
.header-item
|
134
131
|
border-top: 1px solid rgba($border, 0.5)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
// Components
|
2
|
+
|
1
3
|
.hero-video
|
2
4
|
+overlay
|
3
5
|
overflow: hidden
|
@@ -15,18 +17,12 @@
|
|
15
17
|
+mobile
|
16
18
|
display: none
|
17
19
|
|
18
|
-
.hero-content
|
19
|
-
padding: 40px 20px
|
20
|
-
// Responsiveness
|
21
|
-
+desktop
|
22
|
-
padding: 40px 0
|
23
|
-
|
24
20
|
.hero-buttons
|
25
21
|
margin-top: 20px
|
26
22
|
// Responsiveness
|
27
23
|
+mobile
|
28
24
|
.button
|
29
|
-
display:
|
25
|
+
display: flex
|
30
26
|
&:not(:last-child)
|
31
27
|
margin-bottom: 10px
|
32
28
|
+tablet
|
@@ -35,21 +31,34 @@
|
|
35
31
|
.button:not(:last-child)
|
36
32
|
margin-right: 20px
|
37
33
|
|
34
|
+
// Containers
|
35
|
+
|
36
|
+
.hero-head,
|
37
|
+
.hero-foot
|
38
|
+
flex-shrink: 0
|
39
|
+
|
40
|
+
.hero-body
|
41
|
+
flex: 1
|
42
|
+
padding: 40px 20px
|
43
|
+
// Responsiveness
|
44
|
+
+desktop
|
45
|
+
padding-left: 0
|
46
|
+
padding-right: 0
|
47
|
+
|
48
|
+
// Main container
|
49
|
+
|
38
50
|
.hero
|
39
|
-
|
40
|
-
|
51
|
+
align-items: stretch
|
52
|
+
background: $white
|
53
|
+
display: flex
|
54
|
+
flex-direction: column
|
55
|
+
justify-content: space-between
|
56
|
+
.nav
|
41
57
|
background: none
|
42
|
-
.
|
43
|
-
box-shadow: 0 1px 0 rgba($border, 0.3)
|
58
|
+
box-shadow: 0 1px 0 rgba($border, 0.3)
|
44
59
|
.tabs
|
45
|
-
a
|
46
|
-
border: none
|
47
60
|
ul
|
48
61
|
border-bottom: none
|
49
|
-
// Modifiers
|
50
|
-
&.is-boxed
|
51
|
-
a
|
52
|
-
padding: 8px 15px
|
53
62
|
// Colors
|
54
63
|
@each $name, $pair in $colors
|
55
64
|
$color: nth($pair, 1)
|
@@ -67,11 +76,13 @@
|
|
67
76
|
a,
|
68
77
|
strong
|
69
78
|
color: $color-invert
|
70
|
-
.
|
79
|
+
.nav
|
71
80
|
box-shadow: 0 1px 0 rgba($color-invert, 0.2)
|
72
|
-
.
|
73
|
-
|
74
|
-
|
81
|
+
.nav-menu
|
82
|
+
+mobile
|
83
|
+
background: $color
|
84
|
+
a.nav-item,
|
85
|
+
.nav-item a:not(.button)
|
75
86
|
color: rgba($color-invert, 0.5)
|
76
87
|
&:hover,
|
77
88
|
&.is-active
|
@@ -82,18 +93,20 @@
|
|
82
93
|
opacity: 0.5
|
83
94
|
&:hover
|
84
95
|
opacity: 1
|
85
|
-
li
|
86
|
-
|
96
|
+
li
|
97
|
+
&.is-active a
|
98
|
+
opacity: 1
|
87
99
|
&.is-boxed,
|
88
100
|
&.is-toggle
|
89
101
|
a
|
90
102
|
color: $color-invert
|
91
103
|
&:hover
|
92
|
-
background: rgba(black, 0.1)
|
104
|
+
background: rgba($black, 0.1)
|
93
105
|
li.is-active a
|
94
106
|
&,
|
95
107
|
&:hover
|
96
108
|
background: $color-invert
|
109
|
+
border-color: $color-invert
|
97
110
|
color: $color
|
98
111
|
// Modifiers
|
99
112
|
&.is-bold
|
@@ -102,54 +115,36 @@
|
|
102
115
|
background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
|
103
116
|
// Responsiveness
|
104
117
|
+mobile
|
105
|
-
.
|
118
|
+
.nav-toggle
|
106
119
|
span
|
107
120
|
background: $color-invert
|
108
121
|
&:hover
|
109
|
-
background: rgba(black, 0.1)
|
122
|
+
background: rgba($black, 0.1)
|
110
123
|
&.is-active
|
111
124
|
span
|
112
125
|
background: $color-invert
|
113
|
-
.
|
114
|
-
.
|
126
|
+
.nav-menu
|
127
|
+
.nav-item
|
115
128
|
border-top-color: rgba($color-invert, 0.2)
|
116
129
|
// Sizes
|
117
|
-
&.is-fullheight,
|
118
|
-
&.is-large
|
119
|
-
// Responsiveness
|
120
|
-
+tablet
|
121
|
-
.tabs
|
122
|
-
font-size: $size-medium
|
123
130
|
&.is-medium
|
124
|
-
// Responsiveness
|
125
131
|
+tablet
|
126
|
-
.hero-
|
127
|
-
padding: 120px
|
128
|
-
|
129
|
-
|
130
|
-
|
132
|
+
.hero-body
|
133
|
+
padding-bottom: 120px
|
134
|
+
padding-top: 120px
|
135
|
+
&.is-large
|
136
|
+
+tablet
|
137
|
+
.hero-body
|
138
|
+
padding-bottom: 240px
|
139
|
+
padding-top: 240px
|
131
140
|
&.is-fullheight
|
132
|
-
align-items: stretch
|
133
|
-
display: flex
|
134
|
-
flex-direction: column
|
135
|
-
justify-content: space-between
|
136
141
|
min-height: 100vh
|
137
|
-
.
|
138
|
-
|
139
|
-
padding: 15px 20px
|
140
|
-
.hero-content
|
142
|
+
.hero-body
|
143
|
+
align-items: center
|
141
144
|
display: flex
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
padding: 10px 15px
|
149
|
-
// Responsiveness
|
150
|
-
+tablet
|
151
|
-
.hero-content
|
152
|
-
padding: 240px 20px
|
153
|
-
+desktop
|
154
|
-
.hero-content
|
155
|
-
padding: 240px 0
|
145
|
+
& > .container
|
146
|
+
align-items: stretch
|
147
|
+
display: flex
|
148
|
+
flex: 1
|
149
|
+
flex-direction: column
|
150
|
+
justify-content: center
|
@@ -0,0 +1,51 @@
|
|
1
|
+
=control
|
2
|
+
-moz-appearance: none
|
3
|
+
-webkit-appearance: none
|
4
|
+
align-items: center
|
5
|
+
background: $control-background
|
6
|
+
border: 1px solid $control-border
|
7
|
+
border-radius: $radius
|
8
|
+
color: $control
|
9
|
+
display: inline-flex
|
10
|
+
font-size: $size-normal
|
11
|
+
height: 32px
|
12
|
+
justify-content: flex-start
|
13
|
+
line-height: 24px
|
14
|
+
padding-left: 8px
|
15
|
+
padding-right: 8px
|
16
|
+
position: relative
|
17
|
+
vertical-align: top
|
18
|
+
&:hover
|
19
|
+
border-color: $control-hover-border
|
20
|
+
&:active,
|
21
|
+
&:focus
|
22
|
+
border-color: $control-active-border
|
23
|
+
outline: none
|
24
|
+
&[disabled],
|
25
|
+
&.is-disabled
|
26
|
+
background: $background
|
27
|
+
border-color: $control-border
|
28
|
+
cursor: not-allowed
|
29
|
+
pointer-events: none
|
30
|
+
+placeholder
|
31
|
+
color: rgba($control, 0.3)
|
32
|
+
|
33
|
+
=control-small
|
34
|
+
border-radius: 2px
|
35
|
+
font-size: 11px
|
36
|
+
height: 24px
|
37
|
+
line-height: 16px
|
38
|
+
padding-left: 6px
|
39
|
+
padding-right: 6px
|
40
|
+
=control-medium
|
41
|
+
font-size: 18px
|
42
|
+
height: 40px
|
43
|
+
line-height: 32px
|
44
|
+
padding-left: 10px
|
45
|
+
padding-right: 10px
|
46
|
+
=control-large
|
47
|
+
font-size: 24px
|
48
|
+
height: 48px
|
49
|
+
line-height: 40px
|
50
|
+
padding-left: 12px
|
51
|
+
padding-right: 12px
|
@@ -55,13 +55,6 @@
|
|
55
55
|
text-indent: -290486px
|
56
56
|
width: $width
|
57
57
|
|
58
|
-
=unselectable
|
59
|
-
-webkit-touch-callout: none
|
60
|
-
-webkit-user-select: none
|
61
|
-
-moz-user-select: none
|
62
|
-
-ms-user-select: none
|
63
|
-
user-select: none
|
64
|
-
|
65
58
|
=from($device)
|
66
59
|
@media screen and (min-width: $device)
|
67
60
|
@content
|
@@ -78,6 +71,10 @@
|
|
78
71
|
@media screen and (min-width: $tablet)
|
79
72
|
@content
|
80
73
|
|
74
|
+
=tablet-only
|
75
|
+
@media screen and (min-width: $tablet) and (max-width: $desktop - 1px)
|
76
|
+
@content
|
77
|
+
|
81
78
|
=touch
|
82
79
|
@media screen and (max-width: $desktop - 1px)
|
83
80
|
@content
|
@@ -86,6 +83,10 @@
|
|
86
83
|
@media screen and (min-width: $desktop)
|
87
84
|
@content
|
88
85
|
|
86
|
+
=desktop-only
|
87
|
+
@media screen and (min-width: $desktop) and (max-width: $widescreen - 1px)
|
88
|
+
@content
|
89
|
+
|
89
90
|
=widescreen
|
90
91
|
@media screen and (min-width: $widescreen)
|
91
92
|
@content
|
@@ -2,11 +2,13 @@
|
|
2
2
|
|
3
3
|
// Colors
|
4
4
|
|
5
|
+
$black: #111 !default
|
5
6
|
$grey-darker: #222324 !default
|
6
7
|
$grey-dark: #69707a !default
|
7
8
|
$grey: #aeb1b5 !default
|
8
9
|
$grey-light: #d3d6db !default
|
9
10
|
$grey-lighter: #f5f7fa !default
|
11
|
+
$white: #fff !default
|
10
12
|
|
11
13
|
$blue: #42afe3 !default
|
12
14
|
$green: #97cd76 !default
|
@@ -45,7 +47,7 @@ $widescreen: 1180px !default
|
|
45
47
|
|
46
48
|
$column-gap: 20px !default
|
47
49
|
|
48
|
-
$
|
50
|
+
$nav-height: 50px !default
|
49
51
|
|
50
52
|
// Miscellaneous
|
51
53
|
|
@@ -62,7 +64,8 @@ $success: $green !default
|
|
62
64
|
$warning: $yellow !default
|
63
65
|
$danger: $red !default
|
64
66
|
|
65
|
-
$
|
67
|
+
$light: $grey-lighter !default
|
68
|
+
$dark: $grey-dark !default
|
66
69
|
|
67
70
|
$text: $grey-dark !default
|
68
71
|
|
@@ -77,7 +80,8 @@ $success-invert: findColorInvert($success) !default
|
|
77
80
|
$warning-invert: findColorInvert($warning) !default
|
78
81
|
$danger-invert: findColorInvert($danger) !default
|
79
82
|
|
80
|
-
$
|
83
|
+
$light-invert: $dark !default
|
84
|
+
$dark-invert: $light !default
|
81
85
|
|
82
86
|
// General colors
|
83
87
|
|
@@ -142,6 +146,6 @@ $size-huge: $size-1 !default
|
|
142
146
|
|
143
147
|
// 4. Lists and maps
|
144
148
|
|
145
|
-
$colors: (dark: ($dark, $dark-invert), primary: ($primary, $primary-invert), info: ($info, $info-invert), success: ($success, $success-invert), warning: ($warning, $warning-invert), danger: ($danger, $danger-invert)) !default
|
149
|
+
$colors: (white: ($white, $black), black: ($black, $white), light: ($light, $light-invert), dark: ($dark, $dark-invert), primary: ($primary, $primary-invert), info: ($info, $info-invert), success: ($success, $success-invert), warning: ($warning, $warning-invert), danger: ($danger, $danger-invert)) !default
|
146
150
|
|
147
151
|
$sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 !default
|