bulma-rails 0.1.2 → 0.2.3
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 +7 -5
- data/app/assets/stylesheets/sass/base/_all.sass +5 -0
- data/app/assets/stylesheets/sass/base/generic.sass +7 -2
- data/app/assets/stylesheets/sass/base/helpers.sass +4 -1
- data/app/assets/stylesheets/sass/base/minireset.sass +81 -0
- data/app/assets/stylesheets/sass/components/_all.sass +13 -0
- data/app/assets/stylesheets/sass/components/level.sass +1 -1
- data/app/assets/stylesheets/sass/components/media.sass +8 -5
- data/app/assets/stylesheets/sass/components/message.sass +1 -1
- data/app/assets/stylesheets/sass/components/modal.sass +10 -5
- data/app/assets/stylesheets/sass/components/nav.sass +9 -2
- data/app/assets/stylesheets/sass/components/pagination.sass +2 -0
- data/app/assets/stylesheets/sass/components/tabs.sass +4 -2
- data/app/assets/stylesheets/sass/elements/_all.sass +13 -0
- data/app/assets/stylesheets/sass/elements/box.sass +1 -1
- data/app/assets/stylesheets/sass/elements/button.sass +8 -8
- data/app/assets/stylesheets/sass/elements/content.sass +2 -1
- data/app/assets/stylesheets/sass/elements/form.sass +23 -19
- data/app/assets/stylesheets/sass/elements/notification.sass +3 -2
- data/app/assets/stylesheets/sass/elements/other.sass +22 -101
- data/app/assets/stylesheets/sass/elements/progress.sass +1 -1
- data/app/assets/stylesheets/sass/elements/table.sass +18 -12
- data/app/assets/stylesheets/sass/elements/title.sass +1 -1
- data/app/assets/stylesheets/sass/grid/_all.sass +4 -0
- data/app/assets/stylesheets/sass/grid/columns.sass +251 -0
- data/app/assets/stylesheets/sass/grid/tiles.sass +32 -0
- data/app/assets/stylesheets/sass/layout/_all.sass +5 -0
- data/app/assets/stylesheets/sass/layout/hero.sass +6 -4
- data/app/assets/stylesheets/sass/utilities/_all.sass +6 -0
- data/app/assets/stylesheets/sass/utilities/controls.sass +28 -5
- data/app/assets/stylesheets/sass/utilities/functions.sass +2 -8
- data/app/assets/stylesheets/sass/utilities/mixins.sass +118 -0
- data/app/assets/stylesheets/sass/utilities/variables.sass +40 -62
- data/bulma-rails.gemspec +1 -1
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 049654e30381034feb5371e238dae3610de26490
|
4
|
+
data.tar.gz: 0d8ff083ba812298ae36a7ac903552020cb41773
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e78d868dd9d930411b87df7dcf6ea70f2c07ee43e626e02d6aaf1238862c3a0dc9edc1e0622442566634ac7c295627dd8dccf2168ae10732a39c7b6835020cde
|
7
|
+
data.tar.gz: 286e4ab0caf98e5bdd9eb5b7014a5fd6207bc1f1558d23e1e33f940601976c76431d0274d1dcd0668241715a99be64644f620848cb3b4cd5be7c2e11b3bfd7b3
|
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
+
/*! bulma.io v0.2.3 | MIT License | github.com/jgthms/bulma */
|
1
2
|
@charset "utf-8"
|
2
3
|
|
3
|
-
@import "sass/utilities/
|
4
|
-
@import "sass/base/
|
5
|
-
@import "sass/elements/
|
6
|
-
@import "sass/components/
|
7
|
-
@import "sass/
|
4
|
+
@import "sass/utilities/_all"
|
5
|
+
@import "sass/base/_all"
|
6
|
+
@import "sass/elements/_all"
|
7
|
+
@import "sass/components/_all"
|
8
|
+
@import "sass/grid/_all"
|
9
|
+
@import "sass/layout/_all"
|
@@ -1,3 +1,5 @@
|
|
1
|
+
$body-background: $white-ter !default
|
2
|
+
|
1
3
|
html
|
2
4
|
background-color: $body-background
|
3
5
|
font-size: $size-normal
|
@@ -55,8 +57,11 @@ code
|
|
55
57
|
padding: 1px 2px 2px
|
56
58
|
|
57
59
|
hr
|
58
|
-
|
59
|
-
|
60
|
+
background-color: $border
|
61
|
+
border: none
|
62
|
+
display: block
|
63
|
+
height: 1px
|
64
|
+
margin: 20px 0
|
60
65
|
|
61
66
|
img
|
62
67
|
max-width: 100%
|
@@ -0,0 +1,81 @@
|
|
1
|
+
/*! minireset.css v0.0.2 | MIT License | github.com/jgthms/minireset.css */
|
2
|
+
// Blocks
|
3
|
+
html,
|
4
|
+
body,
|
5
|
+
p,
|
6
|
+
ol,
|
7
|
+
ul,
|
8
|
+
li,
|
9
|
+
dl,
|
10
|
+
dt,
|
11
|
+
dd,
|
12
|
+
blockquote,
|
13
|
+
figure,
|
14
|
+
fieldset,
|
15
|
+
legend,
|
16
|
+
textarea,
|
17
|
+
pre,
|
18
|
+
iframe,
|
19
|
+
hr,
|
20
|
+
h1,
|
21
|
+
h2,
|
22
|
+
h3,
|
23
|
+
h4,
|
24
|
+
h5,
|
25
|
+
h6
|
26
|
+
margin: 0
|
27
|
+
padding: 0
|
28
|
+
|
29
|
+
// Headings
|
30
|
+
h1,
|
31
|
+
h2,
|
32
|
+
h3,
|
33
|
+
h4,
|
34
|
+
h5,
|
35
|
+
h6
|
36
|
+
font-size: 100%
|
37
|
+
font-weight: normal
|
38
|
+
|
39
|
+
// List
|
40
|
+
ul
|
41
|
+
list-style: none
|
42
|
+
|
43
|
+
// Form
|
44
|
+
button,
|
45
|
+
input,
|
46
|
+
select,
|
47
|
+
textarea
|
48
|
+
margin: 0
|
49
|
+
|
50
|
+
// Box sizing
|
51
|
+
html
|
52
|
+
box-sizing: border-box
|
53
|
+
|
54
|
+
*
|
55
|
+
box-sizing: inherit
|
56
|
+
&:before,
|
57
|
+
&:after
|
58
|
+
box-sizing: inherit
|
59
|
+
|
60
|
+
// Media
|
61
|
+
img,
|
62
|
+
embed,
|
63
|
+
object,
|
64
|
+
audio,
|
65
|
+
video
|
66
|
+
height: auto
|
67
|
+
max-width: 100%
|
68
|
+
|
69
|
+
// Iframe
|
70
|
+
iframe
|
71
|
+
border: 0
|
72
|
+
|
73
|
+
// Table
|
74
|
+
table
|
75
|
+
border-collapse: collapse
|
76
|
+
border-spacing: 0
|
77
|
+
|
78
|
+
td,
|
79
|
+
th
|
80
|
+
padding: 0
|
81
|
+
text-align: left
|
@@ -0,0 +1,13 @@
|
|
1
|
+
@charset "utf-8"
|
2
|
+
|
3
|
+
@import "card.sass"
|
4
|
+
@import "highlight.sass"
|
5
|
+
@import "level.sass"
|
6
|
+
@import "media.sass"
|
7
|
+
@import "menu.sass"
|
8
|
+
@import "message.sass"
|
9
|
+
@import "modal.sass"
|
10
|
+
@import "nav.sass"
|
11
|
+
@import "pagination.sass"
|
12
|
+
@import "panel.sass"
|
13
|
+
@import "tabs.sass"
|
@@ -1,3 +1,9 @@
|
|
1
|
+
.media-number,
|
2
|
+
.media-left,
|
3
|
+
.media-right
|
4
|
+
flex-grow: 0
|
5
|
+
flex-shrink: 0
|
6
|
+
|
1
7
|
.media-number
|
2
8
|
background-color: $background
|
3
9
|
border-radius: 290486px
|
@@ -5,15 +11,11 @@
|
|
5
11
|
font-size: $size-medium
|
6
12
|
height: 32px
|
7
13
|
line-height: 24px
|
14
|
+
margin-right: 10px
|
8
15
|
min-width: 32px
|
9
16
|
padding: 4px 8px
|
10
17
|
text-align: center
|
11
18
|
vertical-align: top
|
12
|
-
// Responsiveness
|
13
|
-
+mobile
|
14
|
-
margin-bottom: 10px
|
15
|
-
+tablet
|
16
|
-
margin-right: 10px
|
17
19
|
|
18
20
|
.media-left
|
19
21
|
margin-right: 10px
|
@@ -23,6 +25,7 @@
|
|
23
25
|
|
24
26
|
.media-content
|
25
27
|
flex-grow: 1
|
28
|
+
flex-shrink: 1
|
26
29
|
text-align: left
|
27
30
|
|
28
31
|
.media
|
@@ -2,7 +2,8 @@
|
|
2
2
|
+overlay
|
3
3
|
background-color: rgba($black, 0.86)
|
4
4
|
|
5
|
-
.modal-content
|
5
|
+
.modal-content,
|
6
|
+
.modal-card
|
6
7
|
margin: 0 20px
|
7
8
|
max-height: calc(100vh - 160px)
|
8
9
|
overflow: auto
|
@@ -15,7 +16,7 @@
|
|
15
16
|
width: 640px
|
16
17
|
|
17
18
|
.modal-close
|
18
|
-
|
19
|
+
+delete
|
19
20
|
background: none
|
20
21
|
height: 40px
|
21
22
|
position: fixed
|
@@ -24,9 +25,6 @@
|
|
24
25
|
width: 40px
|
25
26
|
|
26
27
|
.modal-card
|
27
|
-
@extend .modal-content
|
28
|
-
background-color: $white
|
29
|
-
border-radius: $radius-large
|
30
28
|
display: flex
|
31
29
|
flex-direction: column
|
32
30
|
max-height: calc(100vh - 40px)
|
@@ -44,21 +42,28 @@
|
|
44
42
|
|
45
43
|
.modal-card-head
|
46
44
|
border-bottom: 1px solid $border
|
45
|
+
border-top-left-radius: $radius-large
|
46
|
+
border-top-right-radius: $radius-large
|
47
47
|
|
48
48
|
.modal-card-title
|
49
49
|
color: $text-strong
|
50
50
|
flex-grow: 1
|
51
|
+
flex-shrink: 0
|
51
52
|
font-size: $size-4
|
52
53
|
line-height: 1
|
53
54
|
|
54
55
|
.modal-card-foot
|
56
|
+
border-bottom-left-radius: $radius-large
|
57
|
+
border-bottom-right-radius: $radius-large
|
55
58
|
border-top: 1px solid $border
|
56
59
|
.button
|
57
60
|
&:not(:last-child)
|
58
61
|
margin-right: 10px
|
59
62
|
|
60
63
|
.modal-card-body
|
64
|
+
background-color: $white
|
61
65
|
flex-grow: 1
|
66
|
+
flex-shrink: 1
|
62
67
|
overflow: auto
|
63
68
|
padding: 20px
|
64
69
|
|
@@ -1,7 +1,9 @@
|
|
1
|
+
$nav-height: 50px !default
|
2
|
+
|
1
3
|
// Components
|
2
4
|
|
3
5
|
.nav-toggle
|
4
|
-
|
6
|
+
+hamburger($nav-height)
|
5
7
|
// Responsiveness
|
6
8
|
+tablet
|
7
9
|
display: none
|
@@ -9,10 +11,13 @@
|
|
9
11
|
.nav-item
|
10
12
|
align-items: center
|
11
13
|
display: flex
|
14
|
+
flex-grow: 0
|
15
|
+
flex-shrink: 0
|
12
16
|
justify-content: center
|
13
17
|
padding: 10px
|
14
18
|
a
|
15
19
|
flex-grow: 1
|
20
|
+
flex-shrink: 0
|
16
21
|
img
|
17
22
|
max-height: 24px
|
18
23
|
.button + .button
|
@@ -28,7 +33,7 @@
|
|
28
33
|
|
29
34
|
.nav-item a,
|
30
35
|
a.nav-item
|
31
|
-
color: $text
|
36
|
+
color: $text-light
|
32
37
|
&:hover
|
33
38
|
color: $link-hover
|
34
39
|
// Modifiers
|
@@ -72,6 +77,7 @@ a.nav-item
|
|
72
77
|
display: flex
|
73
78
|
flex-basis: 0
|
74
79
|
flex-grow: 1
|
80
|
+
flex-shrink: 0
|
75
81
|
justify-content: flex-start
|
76
82
|
overflow: hidden
|
77
83
|
overflow-x: auto
|
@@ -91,6 +97,7 @@ a.nav-item
|
|
91
97
|
display: flex
|
92
98
|
flex-basis: 0
|
93
99
|
flex-grow: 1
|
100
|
+
flex-shrink: 0
|
94
101
|
justify-content: flex-end
|
95
102
|
|
96
103
|
// Main container
|
@@ -17,6 +17,7 @@
|
|
17
17
|
align-items: center
|
18
18
|
display: flex
|
19
19
|
flex-grow: 1
|
20
|
+
flex-shrink: 0
|
20
21
|
justify-content: center
|
21
22
|
// Responsiveness
|
22
23
|
+mobile
|
@@ -27,6 +28,7 @@
|
|
27
28
|
margin-left: 10px
|
28
29
|
li
|
29
30
|
flex-grow: 1
|
31
|
+
flex-shrink: 0
|
30
32
|
ul
|
31
33
|
margin-top: 10px
|
32
34
|
+tablet
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.tabs
|
2
|
-
|
3
|
-
|
2
|
+
+block
|
3
|
+
+unselectable
|
4
4
|
align-items: stretch
|
5
5
|
display: flex
|
6
6
|
justify-content: space-between
|
@@ -31,6 +31,7 @@
|
|
31
31
|
border-bottom: 1px solid $border
|
32
32
|
display: flex
|
33
33
|
flex-grow: 1
|
34
|
+
flex-shrink: 0
|
34
35
|
justify-content: flex-start
|
35
36
|
&.is-left
|
36
37
|
padding-right: 10px
|
@@ -73,6 +74,7 @@
|
|
73
74
|
&.is-fullwidth
|
74
75
|
li
|
75
76
|
flex-grow: 1
|
77
|
+
flex-shrink: 0
|
76
78
|
&.is-toggle
|
77
79
|
a
|
78
80
|
border: 1px solid $border
|
@@ -0,0 +1,13 @@
|
|
1
|
+
@charset "utf-8"
|
2
|
+
|
3
|
+
@import "box.sass"
|
4
|
+
@import "button.sass"
|
5
|
+
@import "content.sass"
|
6
|
+
@import "form.sass"
|
7
|
+
@import "image.sass"
|
8
|
+
@import "notification.sass"
|
9
|
+
@import "progress.sass"
|
10
|
+
@import "table.sass"
|
11
|
+
@import "title.sass"
|
12
|
+
|
13
|
+
@import "other.sass"
|
@@ -18,7 +18,8 @@
|
|
18
18
|
|
19
19
|
.button
|
20
20
|
+control
|
21
|
-
|
21
|
+
+unselectable
|
22
|
+
cursor: pointer
|
22
23
|
justify-content: center
|
23
24
|
padding-left: 10px
|
24
25
|
padding-right: 10px
|
@@ -51,16 +52,14 @@
|
|
51
52
|
$color-invert: nth($pair, 2)
|
52
53
|
&.is-#{$name}
|
53
54
|
background-color: $color
|
54
|
-
border-
|
55
|
+
border-width: 0
|
55
56
|
color: $color-invert
|
56
57
|
&:hover,
|
57
58
|
&:focus,
|
58
59
|
&.is-active
|
59
|
-
background-color: darken($color,
|
60
|
+
background-color: darken($color, 5%)
|
60
61
|
border-color: transparent
|
61
62
|
color: $color-invert
|
62
|
-
&:active
|
63
|
-
border-color: transparent
|
64
63
|
&.is-inverted
|
65
64
|
background-color: $color-invert
|
66
65
|
color: $color
|
@@ -72,6 +71,7 @@
|
|
72
71
|
&.is-outlined
|
73
72
|
background-color: transparent
|
74
73
|
border-color: $color
|
74
|
+
border-width: 1px
|
75
75
|
color: $color
|
76
76
|
&:hover,
|
77
77
|
&:focus
|
@@ -80,12 +80,12 @@
|
|
80
80
|
color: $color-invert
|
81
81
|
&.is-link
|
82
82
|
background-color: transparent
|
83
|
-
border-
|
83
|
+
border-width: 0
|
84
84
|
color: $text
|
85
85
|
text-decoration: underline
|
86
86
|
&:hover,
|
87
87
|
&:focus
|
88
|
-
background-color: $
|
88
|
+
background-color: $background
|
89
89
|
color: $text-strong
|
90
90
|
// Sizes
|
91
91
|
&.is-small
|
@@ -105,6 +105,6 @@
|
|
105
105
|
color: transparent !important
|
106
106
|
pointer-events: none
|
107
107
|
&:after
|
108
|
-
|
108
|
+
+loader
|
109
109
|
+center(16px)
|
110
110
|
position: absolute !important
|