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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33e1923ea594bb811bb56eb6a6bce07d05493e91
|
4
|
+
data.tar.gz: 283b72f793a75eabfc4d1462853277543ca065e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6873d11f2cfc242f2ca16c2a6747fb23b8806ae588c3a8bcc45de6ac4f84be0dc5b0c9a4ef80a06de03c6f20dba0779597bd0c3016c4fd3383a7b4126d7717c5
|
7
|
+
data.tar.gz: 7755bd0c55d8c461e8235dbb0415053cfb10af5cbb397c50c70a422f9ba4e00431a77ebc79fc557b38ba475a54185a40e91153879d3ed68b80a70c0c06276b35
|
data/README.md
CHANGED
File without changes
|
@@ -1,8 +1,9 @@
|
|
1
|
-
$body-background: $white
|
1
|
+
$body-background: $white !default
|
2
|
+
$body-size: $size-6 !default
|
2
3
|
|
3
4
|
html
|
4
5
|
background-color: $body-background
|
5
|
-
font-size: $size
|
6
|
+
font-size: $body-size
|
6
7
|
-moz-osx-font-smoothing: grayscale
|
7
8
|
-webkit-font-smoothing: antialiased
|
8
9
|
min-width: 300px
|
@@ -31,13 +32,12 @@ pre
|
|
31
32
|
-moz-osx-font-smoothing: auto
|
32
33
|
-webkit-font-smoothing: auto
|
33
34
|
font-family: $family-code
|
34
|
-
line-height: 1.25
|
35
35
|
|
36
36
|
body
|
37
37
|
color: $text
|
38
38
|
font-size: 1rem
|
39
39
|
font-weight: $weight-normal
|
40
|
-
line-height: 1.
|
40
|
+
line-height: 1.5
|
41
41
|
|
42
42
|
// Inline
|
43
43
|
|
@@ -52,16 +52,16 @@ a
|
|
52
52
|
code
|
53
53
|
background-color: $code-background
|
54
54
|
color: $code
|
55
|
-
font-size:
|
55
|
+
font-size: 0.8em
|
56
56
|
font-weight: normal
|
57
|
-
padding:
|
57
|
+
padding: 0.25em 0.5em 0.25em
|
58
58
|
|
59
59
|
hr
|
60
60
|
background-color: $border
|
61
61
|
border: none
|
62
62
|
display: block
|
63
63
|
height: 1px
|
64
|
-
margin:
|
64
|
+
margin: 1.5rem 0
|
65
65
|
|
66
66
|
img
|
67
67
|
max-width: 100%
|
@@ -71,7 +71,7 @@ input[type="radio"]
|
|
71
71
|
vertical-align: baseline
|
72
72
|
|
73
73
|
small
|
74
|
-
font-size:
|
74
|
+
font-size: 0.8em
|
75
75
|
|
76
76
|
span
|
77
77
|
font-style: inherit
|
@@ -86,14 +86,16 @@ strong
|
|
86
86
|
pre
|
87
87
|
background-color: $pre-background
|
88
88
|
color: $pre
|
89
|
+
font-size: 0.8em
|
89
90
|
white-space: pre
|
90
91
|
word-wrap: normal
|
91
92
|
code
|
92
|
-
background
|
93
|
-
color:
|
93
|
+
background: none
|
94
|
+
color: inherit
|
94
95
|
display: block
|
96
|
+
font-size: 1em
|
95
97
|
overflow-x: auto
|
96
|
-
padding:
|
98
|
+
padding: 1.25rem 1.5rem
|
97
99
|
|
98
100
|
table
|
99
101
|
width: 100%
|
File without changes
|
File without changes
|
@@ -2,31 +2,30 @@
|
|
2
2
|
align-items: stretch
|
3
3
|
box-shadow: 0 1px 2px rgba($black, 0.1)
|
4
4
|
display: flex
|
5
|
-
min-height: 40px
|
6
5
|
|
7
6
|
.card-header-title
|
8
|
-
align-items:
|
7
|
+
align-items: center
|
9
8
|
color: $text-strong
|
10
9
|
display: flex
|
11
10
|
flex-grow: 1
|
12
|
-
font-weight: bold
|
13
|
-
padding:
|
11
|
+
font-weight: $weight-bold
|
12
|
+
padding: 0.75rem
|
14
13
|
|
15
14
|
.card-header-icon
|
16
15
|
align-items: center
|
17
16
|
cursor: pointer
|
18
17
|
display: flex
|
19
18
|
justify-content: center
|
20
|
-
|
19
|
+
padding: 0.75rem
|
21
20
|
|
22
21
|
.card-image
|
23
22
|
display: block
|
24
23
|
position: relative
|
25
24
|
|
26
25
|
.card-content
|
27
|
-
padding:
|
26
|
+
padding: 1.5rem
|
28
27
|
.title + .subtitle
|
29
|
-
margin-top: -
|
28
|
+
margin-top: -1.5rem
|
30
29
|
|
31
30
|
.card-footer
|
32
31
|
border-top: 1px solid $border
|
@@ -36,9 +35,11 @@
|
|
36
35
|
.card-footer-item
|
37
36
|
align-items: center
|
38
37
|
display: flex
|
38
|
+
flex-basis: 0
|
39
39
|
flex-grow: 1
|
40
|
+
flex-shrink: 0
|
40
41
|
justify-content: center
|
41
|
-
padding:
|
42
|
+
padding: 0.75rem
|
42
43
|
&:not(:last-child)
|
43
44
|
border-right: 1px solid $border
|
44
45
|
|
@@ -48,11 +49,5 @@
|
|
48
49
|
color: $text
|
49
50
|
max-width: 100%
|
50
51
|
position: relative
|
51
|
-
width: 300px
|
52
52
|
.media:not(:last-child)
|
53
|
-
margin-bottom:
|
54
|
-
// Modifiers
|
55
|
-
&.is-fullwidth
|
56
|
-
width: 100%
|
57
|
-
&.is-rounded
|
58
|
-
border-radius: $radius-large
|
53
|
+
margin-bottom: 0.75rem
|
@@ -1,36 +1,46 @@
|
|
1
1
|
.level-item
|
2
|
+
align-items: center
|
3
|
+
display: flex
|
4
|
+
flex-basis: auto
|
5
|
+
flex-grow: 0
|
6
|
+
flex-shrink: 0
|
7
|
+
justify-content: center
|
2
8
|
.title,
|
3
9
|
.subtitle
|
4
10
|
margin-bottom: 0
|
5
11
|
// Responsiveness
|
6
12
|
+mobile
|
7
13
|
&:not(:last-child)
|
8
|
-
margin-bottom:
|
14
|
+
margin-bottom: 0.75rem
|
9
15
|
|
10
16
|
.level-left,
|
11
17
|
.level-right
|
18
|
+
flex-basis: auto
|
19
|
+
flex-grow: 0
|
20
|
+
flex-shrink: 0
|
12
21
|
.level-item
|
13
22
|
&:not(:last-child)
|
14
|
-
margin-right:
|
23
|
+
margin-right: 0.75rem
|
15
24
|
// Modifiers
|
16
25
|
&.is-flexible
|
17
26
|
flex-grow: 1
|
18
27
|
|
19
28
|
.level-left
|
29
|
+
align-items: center
|
30
|
+
justify-content: flex-start
|
20
31
|
// Responsiveness
|
21
32
|
+mobile
|
22
33
|
& + .level-right
|
23
|
-
margin-top:
|
34
|
+
margin-top: 1.5rem
|
24
35
|
+tablet
|
25
|
-
align-items: center
|
26
36
|
display: flex
|
27
37
|
|
28
38
|
.level-right
|
39
|
+
align-items: center
|
40
|
+
justify-content: flex-end
|
29
41
|
// Responsiveness
|
30
42
|
+tablet
|
31
|
-
align-items: center
|
32
43
|
display: flex
|
33
|
-
justify-content: flex-end
|
34
44
|
|
35
45
|
.level
|
36
46
|
+block
|
@@ -1,29 +1,17 @@
|
|
1
|
-
.media-number,
|
2
1
|
.media-left,
|
3
2
|
.media-right
|
3
|
+
flex-basis: auto
|
4
4
|
flex-grow: 0
|
5
5
|
flex-shrink: 0
|
6
6
|
|
7
|
-
.media-number
|
8
|
-
background-color: $background
|
9
|
-
border-radius: 290486px
|
10
|
-
display: inline-block
|
11
|
-
font-size: $size-medium
|
12
|
-
height: 32px
|
13
|
-
line-height: 24px
|
14
|
-
margin-right: 10px
|
15
|
-
min-width: 32px
|
16
|
-
padding: 4px 8px
|
17
|
-
text-align: center
|
18
|
-
vertical-align: top
|
19
|
-
|
20
7
|
.media-left
|
21
|
-
margin-right:
|
8
|
+
margin-right: 1rem
|
22
9
|
|
23
10
|
.media-right
|
24
|
-
margin-left:
|
11
|
+
margin-left: 1rem
|
25
12
|
|
26
13
|
.media-content
|
14
|
+
flex-basis: auto
|
27
15
|
flex-grow: 1
|
28
16
|
flex-shrink: 1
|
29
17
|
text-align: left
|
@@ -33,29 +21,24 @@
|
|
33
21
|
display: flex
|
34
22
|
text-align: left
|
35
23
|
.content:not(:last-child)
|
36
|
-
margin-bottom:
|
24
|
+
margin-bottom: 0.75rem
|
37
25
|
.media
|
38
26
|
border-top: 1px solid rgba($border, 0.5)
|
39
27
|
display: flex
|
40
|
-
padding-top:
|
28
|
+
padding-top: 0.75rem
|
41
29
|
.content:not(:last-child),
|
42
30
|
.control:not(:last-child)
|
43
|
-
margin-bottom:
|
31
|
+
margin-bottom: 0.5rem
|
44
32
|
.media
|
45
|
-
padding-top:
|
33
|
+
padding-top: 0.5rem
|
46
34
|
& + .media
|
47
|
-
margin-top:
|
35
|
+
margin-top: 0.5rem
|
48
36
|
& + .media
|
49
37
|
border-top: 1px solid rgba($border, 0.5)
|
50
|
-
margin-top:
|
51
|
-
padding-top:
|
38
|
+
margin-top: 1rem
|
39
|
+
padding-top: 1rem
|
52
40
|
// Sizes
|
53
41
|
&.is-large
|
54
42
|
& + .media
|
55
|
-
margin-top:
|
56
|
-
padding-top:
|
57
|
-
// Responsiveness
|
58
|
-
+tablet
|
59
|
-
&.is-large
|
60
|
-
.media-number
|
61
|
-
margin-right: 20px
|
43
|
+
margin-top: 1.5rem
|
44
|
+
padding-top: 1.5rem
|
@@ -1,14 +1,13 @@
|
|
1
|
-
.menu
|
2
|
-
|
3
|
-
display: block
|
4
|
-
padding: 5px 10px
|
1
|
+
.menu
|
2
|
+
font-size: $size-normal
|
5
3
|
|
6
4
|
.menu-list
|
5
|
+
line-height: 1.25
|
7
6
|
a
|
8
7
|
border-radius: $radius-small
|
9
8
|
color: $text
|
10
9
|
display: block
|
11
|
-
padding:
|
10
|
+
padding: 0.5em 0.75em
|
12
11
|
&:hover
|
13
12
|
background-color: $background
|
14
13
|
color: $link
|
@@ -19,14 +18,15 @@
|
|
19
18
|
li
|
20
19
|
ul
|
21
20
|
border-left: 1px solid $border
|
22
|
-
margin:
|
23
|
-
padding-left:
|
21
|
+
margin: 0.75em
|
22
|
+
padding-left: 0.75em
|
24
23
|
|
25
24
|
.menu-label
|
26
25
|
color: $text-light
|
27
|
-
font-size:
|
28
|
-
letter-spacing:
|
29
|
-
margin-bottom: 5px
|
26
|
+
font-size: 0.8em
|
27
|
+
letter-spacing: 0.1em
|
30
28
|
text-transform: uppercase
|
31
29
|
&:not(:first-child)
|
32
|
-
margin-top:
|
30
|
+
margin-top: 1em
|
31
|
+
&:not(:last-child)
|
32
|
+
margin-bottom: 1em
|
@@ -1,39 +1,61 @@
|
|
1
|
-
.message-body
|
2
|
-
border: 1px solid $border
|
3
|
-
border-radius: $radius
|
4
|
-
padding: 12px 15px
|
5
|
-
strong
|
6
|
-
color: inherit
|
7
|
-
|
8
|
-
.message-header
|
9
|
-
background-color: $text
|
10
|
-
border-radius: $radius $radius 0 0
|
11
|
-
color: $text-invert
|
12
|
-
padding: 7px 10px
|
13
|
-
strong
|
14
|
-
color: inherit
|
15
|
-
& + .message-body
|
16
|
-
border-radius: 0 0 $radius $radius
|
17
|
-
border-top: none
|
18
|
-
|
19
1
|
.message
|
20
2
|
+block
|
21
3
|
background-color: $background
|
22
4
|
border-radius: $radius
|
5
|
+
font-size: $size-normal
|
23
6
|
// Colors
|
24
7
|
@each $name, $pair in $colors
|
25
8
|
$color: nth($pair, 1)
|
26
9
|
$color-invert: nth($pair, 2)
|
27
|
-
$lightning: max((100% - lightness($color)) -
|
28
|
-
$
|
10
|
+
$color-lightning: max((100% - lightness($color)) - 2%, 0%)
|
11
|
+
$color-luminance: colorLuminance($color)
|
12
|
+
$darken-percentage: $color-luminance * 70%
|
13
|
+
$desaturate-percentage: $color-luminance * 30%
|
29
14
|
&.is-#{$name}
|
30
|
-
background-color: lighten($color, $lightning)
|
15
|
+
background-color: lighten($color, $color-lightning)
|
31
16
|
.message-header
|
32
17
|
background-color: $color
|
33
18
|
color: $color-invert
|
34
19
|
.message-body
|
35
20
|
border-color: $color
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
21
|
+
color: desaturate(darken($color, $darken-percentage), $desaturate-percentage)
|
22
|
+
|
23
|
+
.message-header
|
24
|
+
align-items: center
|
25
|
+
background-color: $text
|
26
|
+
border-radius: $radius $radius 0 0
|
27
|
+
color: $text-invert
|
28
|
+
display: flex
|
29
|
+
justify-content: space-between
|
30
|
+
line-height: 1.25
|
31
|
+
padding: 0.5em 0.75em
|
32
|
+
position: relative
|
33
|
+
a,
|
34
|
+
strong
|
35
|
+
color: inherit
|
36
|
+
a
|
37
|
+
text-decoration: underline
|
38
|
+
.delete
|
39
|
+
flex-grow: 0
|
40
|
+
flex-shrink: 0
|
41
|
+
margin-left: 0.75em
|
42
|
+
& + .message-body
|
43
|
+
border-top-left-radius: 0
|
44
|
+
border-top-right-radius: 0
|
45
|
+
border-top: none
|
46
|
+
|
47
|
+
.message-body
|
48
|
+
border: 1px solid $border
|
49
|
+
border-radius: $radius
|
50
|
+
color: $text
|
51
|
+
padding: 1em 1.25em
|
52
|
+
a,
|
53
|
+
strong
|
54
|
+
color: inherit
|
55
|
+
a
|
56
|
+
text-decoration: underline
|
57
|
+
code,
|
58
|
+
pre
|
59
|
+
background: $white
|
60
|
+
pre code
|
61
|
+
background: transparent
|