bulma-sass 0.0.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +2 -0
- data/app/assets/stylesheets/bulma.sass +7 -8
- data/app/assets/stylesheets/sass/base/_all.sass +5 -0
- data/app/assets/stylesheets/sass/base/generic.sass +127 -0
- data/app/assets/stylesheets/sass/base/helpers.sass +203 -0
- data/app/assets/stylesheets/sass/base/minireset.sass +80 -0
- data/app/assets/stylesheets/sass/components/_all.sass +14 -0
- data/app/assets/stylesheets/sass/components/breadcrumb.sass +74 -0
- data/app/assets/stylesheets/sass/components/card.sass +67 -0
- data/app/assets/stylesheets/sass/components/dropdown.sass +74 -0
- data/app/assets/stylesheets/sass/components/level.sass +75 -0
- data/app/assets/stylesheets/sass/components/media.sass +44 -0
- data/app/assets/stylesheets/sass/components/menu.sass +50 -0
- data/app/assets/stylesheets/sass/components/message.sass +79 -0
- data/app/assets/stylesheets/sass/components/modal.sass +111 -0
- data/app/assets/stylesheets/sass/components/navbar.sass +301 -0
- data/app/assets/stylesheets/sass/components/pagination.sass +134 -0
- data/app/assets/stylesheets/sass/components/panel.sass +101 -0
- data/app/assets/stylesheets/sass/components/tabs.sass +141 -0
- data/app/assets/stylesheets/sass/elements/_all.sass +16 -0
- data/app/assets/stylesheets/sass/elements/box.sass +24 -0
- data/app/assets/stylesheets/sass/elements/button.sass +201 -0
- data/app/assets/stylesheets/sass/elements/container.sass +25 -0
- data/app/assets/stylesheets/sass/elements/content.sass +145 -0
- data/app/assets/stylesheets/sass/elements/form.sass +605 -0
- data/app/assets/stylesheets/sass/elements/icon.sass +21 -0
- data/app/assets/stylesheets/sass/elements/image.sass +36 -0
- data/app/assets/stylesheets/sass/elements/notification.sass +35 -0
- data/app/assets/stylesheets/sass/elements/other.sass +39 -0
- data/app/assets/stylesheets/sass/elements/progress.sass +35 -0
- data/app/assets/stylesheets/sass/elements/table.sass +104 -0
- data/app/assets/stylesheets/sass/elements/tag.sass +89 -0
- data/app/assets/stylesheets/sass/elements/title.sass +55 -0
- data/app/assets/stylesheets/sass/grid/_all.sass +4 -0
- data/app/assets/stylesheets/sass/grid/columns.sass +328 -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/footer.sass +5 -0
- data/app/assets/stylesheets/sass/layout/hero.sass +155 -0
- data/app/assets/stylesheets/sass/layout/section.sass +13 -0
- data/app/assets/stylesheets/sass/utilities/_all.sass +8 -0
- data/app/assets/stylesheets/{bulma → sass}/utilities/animations.sass +1 -1
- data/app/assets/stylesheets/sass/utilities/controls.sass +41 -0
- data/app/assets/stylesheets/sass/utilities/derived-variables.sass +82 -0
- data/app/assets/stylesheets/{bulma → sass}/utilities/functions.sass +7 -13
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +65 -0
- data/app/assets/stylesheets/sass/utilities/mixins.sass +226 -0
- data/lib/bulma/sass/version.rb +1 -1
- metadata +46 -32
- data/app/assets/stylesheets/bulma/base/base.sass +0 -6
- data/app/assets/stylesheets/bulma/base/content.sass +0 -51
- data/app/assets/stylesheets/bulma/base/generic.sass +0 -101
- data/app/assets/stylesheets/bulma/base/helpers.sass +0 -27
- data/app/assets/stylesheets/bulma/base/highlight.sass +0 -123
- data/app/assets/stylesheets/bulma/components/card.sass +0 -36
- data/app/assets/stylesheets/bulma/components/components.sass +0 -11
- data/app/assets/stylesheets/bulma/components/grid.sass +0 -48
- data/app/assets/stylesheets/bulma/components/media.sass +0 -69
- data/app/assets/stylesheets/bulma/components/menu.sass +0 -25
- data/app/assets/stylesheets/bulma/components/navbar.sass +0 -45
- data/app/assets/stylesheets/bulma/components/table.sass +0 -73
- data/app/assets/stylesheets/bulma/components/tabs.sass +0 -84
- data/app/assets/stylesheets/bulma/config/generated-variables.sass +0 -74
- data/app/assets/stylesheets/bulma/config/variables.sass +0 -41
- data/app/assets/stylesheets/bulma/elements/buttons.sass +0 -96
- data/app/assets/stylesheets/bulma/elements/controls.sass +0 -213
- data/app/assets/stylesheets/bulma/elements/elements.sass +0 -172
- data/app/assets/stylesheets/bulma/elements/messages.sass +0 -41
- data/app/assets/stylesheets/bulma/elements/notifications.sass +0 -20
- data/app/assets/stylesheets/bulma/elements/titles.sass +0 -57
- data/app/assets/stylesheets/bulma/layout/footer.sass +0 -11
- data/app/assets/stylesheets/bulma/layout/header.sass +0 -149
- data/app/assets/stylesheets/bulma/layout/hero.sass +0 -148
- data/app/assets/stylesheets/bulma/layout/layout.sass +0 -6
- data/app/assets/stylesheets/bulma/layout/section.sass +0 -11
- data/app/assets/stylesheets/bulma/utilities/mixins.sass +0 -83
- data/app/assets/stylesheets/bulma/utilities/reset.sass +0 -174
- data/app/assets/stylesheets/bulma/utilities/utilities.sass +0 -6
@@ -0,0 +1,21 @@
|
|
1
|
+
$icon-dimensions: 1.5rem !default
|
2
|
+
$icon-dimensions-small: 1rem !default
|
3
|
+
$icon-dimensions-medium: 2rem !default
|
4
|
+
$icon-dimensions-large: 3rem !default
|
5
|
+
|
6
|
+
.icon
|
7
|
+
align-items: center
|
8
|
+
display: inline-flex
|
9
|
+
justify-content: center
|
10
|
+
height: $icon-dimensions
|
11
|
+
width: $icon-dimensions
|
12
|
+
// Sizes
|
13
|
+
&.is-small
|
14
|
+
height: $icon-dimensions-small
|
15
|
+
width: $icon-dimensions-small
|
16
|
+
&.is-medium
|
17
|
+
height: $icon-dimensions-medium
|
18
|
+
width: $icon-dimensions-medium
|
19
|
+
&.is-large
|
20
|
+
height: $icon-dimensions-large
|
21
|
+
width: $icon-dimensions-large
|
@@ -0,0 +1,36 @@
|
|
1
|
+
$dimensions: 16 24 32 48 64 96 128 !default
|
2
|
+
|
3
|
+
.image
|
4
|
+
display: block
|
5
|
+
position: relative
|
6
|
+
img
|
7
|
+
display: block
|
8
|
+
height: auto
|
9
|
+
width: 100%
|
10
|
+
// Ratio
|
11
|
+
&.is-square,
|
12
|
+
&.is-1by1,
|
13
|
+
&.is-4by3,
|
14
|
+
&.is-3by2,
|
15
|
+
&.is-16by9,
|
16
|
+
&.is-2by1
|
17
|
+
img
|
18
|
+
+overlay
|
19
|
+
height: 100%
|
20
|
+
width: 100%
|
21
|
+
&.is-square,
|
22
|
+
&.is-1by1
|
23
|
+
padding-top: 100%
|
24
|
+
&.is-4by3
|
25
|
+
padding-top: 75%
|
26
|
+
&.is-3by2
|
27
|
+
padding-top: 66.6666%
|
28
|
+
&.is-16by9
|
29
|
+
padding-top: 56.25%
|
30
|
+
&.is-2by1
|
31
|
+
padding-top: 50%
|
32
|
+
// Sizes
|
33
|
+
@each $dimension in $dimensions
|
34
|
+
&.is-#{$dimension}x#{$dimension}
|
35
|
+
height: $dimension * 1px
|
36
|
+
width: $dimension * 1px
|
@@ -0,0 +1,35 @@
|
|
1
|
+
$notification-background-color: $background !default
|
2
|
+
$notification-radius: $radius !default
|
3
|
+
$notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default
|
4
|
+
|
5
|
+
.notification
|
6
|
+
+block
|
7
|
+
background-color: $notification-background-color
|
8
|
+
border-radius: $notification-radius
|
9
|
+
padding: $notification-padding
|
10
|
+
position: relative
|
11
|
+
a:not(.button)
|
12
|
+
color: currentColor
|
13
|
+
text-decoration: underline
|
14
|
+
strong
|
15
|
+
color: currentColor
|
16
|
+
code,
|
17
|
+
pre
|
18
|
+
background: $white
|
19
|
+
pre code
|
20
|
+
background: transparent
|
21
|
+
& > .delete
|
22
|
+
position: absolute
|
23
|
+
right: 0.5em
|
24
|
+
top: 0.5em
|
25
|
+
.title,
|
26
|
+
.subtitle,
|
27
|
+
.content
|
28
|
+
color: currentColor
|
29
|
+
// Colors
|
30
|
+
@each $name, $pair in $colors
|
31
|
+
$color: nth($pair, 1)
|
32
|
+
$color-invert: nth($pair, 2)
|
33
|
+
&.is-#{$name}
|
34
|
+
background-color: $color
|
35
|
+
color: $color-invert
|
@@ -0,0 +1,39 @@
|
|
1
|
+
.block
|
2
|
+
+block
|
3
|
+
|
4
|
+
.delete
|
5
|
+
+delete
|
6
|
+
|
7
|
+
.heading
|
8
|
+
display: block
|
9
|
+
font-size: 11px
|
10
|
+
letter-spacing: 1px
|
11
|
+
margin-bottom: 5px
|
12
|
+
text-transform: uppercase
|
13
|
+
|
14
|
+
.highlight
|
15
|
+
+block
|
16
|
+
font-weight: $weight-normal
|
17
|
+
max-width: 100%
|
18
|
+
overflow: hidden
|
19
|
+
padding: 0
|
20
|
+
pre
|
21
|
+
overflow: auto
|
22
|
+
max-width: 100%
|
23
|
+
|
24
|
+
.loader
|
25
|
+
+loader
|
26
|
+
|
27
|
+
.number
|
28
|
+
align-items: center
|
29
|
+
background-color: $background
|
30
|
+
border-radius: 290486px
|
31
|
+
display: inline-flex
|
32
|
+
font-size: $size-medium
|
33
|
+
height: 2em
|
34
|
+
justify-content: center
|
35
|
+
margin-right: 1.5rem
|
36
|
+
min-width: 2.5em
|
37
|
+
padding: 0.25rem 0.5rem
|
38
|
+
text-align: center
|
39
|
+
vertical-align: top
|
@@ -0,0 +1,35 @@
|
|
1
|
+
$progress-bar-background-color: $border !default
|
2
|
+
$progress-value-background-color: $text !default
|
3
|
+
|
4
|
+
.progress
|
5
|
+
+block
|
6
|
+
-moz-appearance: none
|
7
|
+
-webkit-appearance: none
|
8
|
+
border: none
|
9
|
+
border-radius: 290486px
|
10
|
+
display: block
|
11
|
+
height: $size-normal
|
12
|
+
overflow: hidden
|
13
|
+
padding: 0
|
14
|
+
width: 100%
|
15
|
+
&::-webkit-progress-bar
|
16
|
+
background-color: $progress-bar-background-color
|
17
|
+
&::-webkit-progress-value
|
18
|
+
background-color: $progress-value-background-color
|
19
|
+
&::-moz-progress-bar
|
20
|
+
background-color: $progress-value-background-color
|
21
|
+
// Colors
|
22
|
+
@each $name, $pair in $colors
|
23
|
+
$color: nth($pair, 1)
|
24
|
+
&.is-#{$name}
|
25
|
+
&::-webkit-progress-value
|
26
|
+
background-color: $color
|
27
|
+
&::-moz-progress-bar
|
28
|
+
background-color: $color
|
29
|
+
// Sizes
|
30
|
+
&.is-small
|
31
|
+
height: $size-small
|
32
|
+
&.is-medium
|
33
|
+
height: $size-medium
|
34
|
+
&.is-large
|
35
|
+
height: $size-large
|
@@ -0,0 +1,104 @@
|
|
1
|
+
$table-color: $grey-darker !default
|
2
|
+
$table-background-color: $white !default
|
3
|
+
|
4
|
+
$table-cell-border: 1px solid $grey-lighter !default
|
5
|
+
$table-cell-border-width: 0 0 1px !default
|
6
|
+
$table-cell-padding: 0.5em 0.75em !default
|
7
|
+
$table-cell-heading-color: $text-strong !default
|
8
|
+
|
9
|
+
$table-head-cell-border-width: 0 0 2px !default
|
10
|
+
$table-head-cell-color: $text-strong !default
|
11
|
+
$table-foot-cell-border-width: 2px 0 0 !default
|
12
|
+
$table-foot-cell-color: $text-strong !default
|
13
|
+
|
14
|
+
$table-row-hover-background-color: $white-bis !default
|
15
|
+
|
16
|
+
$table-row-active-background-color: $primary !default
|
17
|
+
$table-row-active-color: $primary-invert !default
|
18
|
+
|
19
|
+
$table-striped-row-even-background-color: $white-bis !default
|
20
|
+
$table-striped-row-even-hover-background-color: $white-ter !default
|
21
|
+
|
22
|
+
.table
|
23
|
+
background-color: $table-background-color
|
24
|
+
color: $table-color
|
25
|
+
margin-bottom: 1.5rem
|
26
|
+
td,
|
27
|
+
th
|
28
|
+
border: $table-cell-border
|
29
|
+
border-width: $table-cell-border-width
|
30
|
+
padding: $table-cell-padding
|
31
|
+
vertical-align: top
|
32
|
+
// Colors
|
33
|
+
@each $name, $pair in $colors
|
34
|
+
$color: nth($pair, 1)
|
35
|
+
$color-invert: nth($pair, 2)
|
36
|
+
&.is-#{$name}
|
37
|
+
background-color: $color
|
38
|
+
border-color: $color
|
39
|
+
color: $color-invert
|
40
|
+
// Modifiers
|
41
|
+
&.is-narrow
|
42
|
+
white-space: nowrap
|
43
|
+
width: 1%
|
44
|
+
th
|
45
|
+
color: $table-cell-heading-color
|
46
|
+
text-align: left
|
47
|
+
tr
|
48
|
+
&.is-selected
|
49
|
+
background-color: $table-row-active-background-color
|
50
|
+
color: $table-row-active-color
|
51
|
+
a,
|
52
|
+
strong
|
53
|
+
color: currentColor
|
54
|
+
td,
|
55
|
+
th
|
56
|
+
border-color: $table-row-active-color
|
57
|
+
color: currentColor
|
58
|
+
thead
|
59
|
+
td,
|
60
|
+
th
|
61
|
+
border-width: $table-head-cell-border-width
|
62
|
+
color: $table-head-cell-color
|
63
|
+
tfoot
|
64
|
+
td,
|
65
|
+
th
|
66
|
+
border-width: $table-foot-cell-border-width
|
67
|
+
color: $table-foot-cell-color
|
68
|
+
tbody
|
69
|
+
tr
|
70
|
+
&:last-child
|
71
|
+
td,
|
72
|
+
th
|
73
|
+
border-bottom-width: 0
|
74
|
+
// Modifiers
|
75
|
+
&.is-bordered
|
76
|
+
td,
|
77
|
+
th
|
78
|
+
border-width: 1px
|
79
|
+
tr
|
80
|
+
&:last-child
|
81
|
+
td,
|
82
|
+
th
|
83
|
+
border-bottom-width: 1px
|
84
|
+
&.is-fullwidth
|
85
|
+
width: 100%
|
86
|
+
&.is-hoverable
|
87
|
+
tbody
|
88
|
+
tr
|
89
|
+
&:hover
|
90
|
+
background-color: $table-row-hover-background-color
|
91
|
+
&.is-striped
|
92
|
+
tbody
|
93
|
+
tr:not(.is-selected)
|
94
|
+
&:hover
|
95
|
+
background-color: $table-striped-row-even-hover-background-color
|
96
|
+
&.is-narrow
|
97
|
+
td,
|
98
|
+
th
|
99
|
+
padding: 0.25em 0.5em
|
100
|
+
&.is-striped
|
101
|
+
tbody
|
102
|
+
tr:not(.is-selected)
|
103
|
+
&:nth-child(even)
|
104
|
+
background-color: $table-striped-row-even-background-color
|
@@ -0,0 +1,89 @@
|
|
1
|
+
$tag-background-color: $background !default
|
2
|
+
$tag-color: $text !default
|
3
|
+
$tag-radius: $radius !default
|
4
|
+
$tag-delete-margin: 1px !default
|
5
|
+
|
6
|
+
.tags
|
7
|
+
align-items: center
|
8
|
+
display: flex
|
9
|
+
flex-wrap: wrap
|
10
|
+
justify-content: flex-start
|
11
|
+
.tag
|
12
|
+
margin-bottom: 0.5rem
|
13
|
+
&:not(:last-child)
|
14
|
+
margin-right: 0.5rem
|
15
|
+
&:last-child
|
16
|
+
margin-bottom: -0.5rem
|
17
|
+
&:not(:last-child)
|
18
|
+
margin-bottom: 1rem
|
19
|
+
&.has-addons
|
20
|
+
.tag
|
21
|
+
margin-right: 0
|
22
|
+
&:not(:first-child)
|
23
|
+
border-bottom-left-radius: 0
|
24
|
+
border-top-left-radius: 0
|
25
|
+
&:not(:last-child)
|
26
|
+
border-bottom-right-radius: 0
|
27
|
+
border-top-right-radius: 0
|
28
|
+
|
29
|
+
.tag:not(body)
|
30
|
+
align-items: center
|
31
|
+
background-color: $tag-background-color
|
32
|
+
border-radius: $tag-radius
|
33
|
+
color: $tag-color
|
34
|
+
display: inline-flex
|
35
|
+
font-size: $size-small
|
36
|
+
height: 2em
|
37
|
+
justify-content: center
|
38
|
+
line-height: 1.5
|
39
|
+
padding-left: 0.75em
|
40
|
+
padding-right: 0.75em
|
41
|
+
white-space: nowrap
|
42
|
+
.delete
|
43
|
+
margin-left: 0.25em
|
44
|
+
margin-right: -0.375em
|
45
|
+
// Colors
|
46
|
+
@each $name, $pair in $colors
|
47
|
+
$color: nth($pair, 1)
|
48
|
+
$color-invert: nth($pair, 2)
|
49
|
+
&.is-#{$name}
|
50
|
+
background-color: $color
|
51
|
+
color: $color-invert
|
52
|
+
// Sizes
|
53
|
+
&.is-medium
|
54
|
+
font-size: $size-normal
|
55
|
+
&.is-large
|
56
|
+
font-size: $size-medium
|
57
|
+
// Modifiers
|
58
|
+
&.is-delete
|
59
|
+
margin-left: $tag-delete-margin
|
60
|
+
padding: 0
|
61
|
+
position: relative
|
62
|
+
width: 2em
|
63
|
+
&:before,
|
64
|
+
&:after
|
65
|
+
background-color: currentColor
|
66
|
+
content: ""
|
67
|
+
display: block
|
68
|
+
left: 50%
|
69
|
+
position: absolute
|
70
|
+
top: 50%
|
71
|
+
transform: translateX(-50%) translateY(-50%) rotate(45deg)
|
72
|
+
transform-origin: center center
|
73
|
+
&:before
|
74
|
+
height: 1px
|
75
|
+
width: 50%
|
76
|
+
&:after
|
77
|
+
height: 50%
|
78
|
+
width: 1px
|
79
|
+
&:hover,
|
80
|
+
&:focus
|
81
|
+
background-color: darken($tag-background-color, 5%)
|
82
|
+
&:active
|
83
|
+
background-color: darken($tag-background-color, 10%)
|
84
|
+
&.is-rounded
|
85
|
+
border-radius: 290486px
|
86
|
+
|
87
|
+
a.tag
|
88
|
+
&:hover
|
89
|
+
text-decoration: underline
|
@@ -0,0 +1,55 @@
|
|
1
|
+
$title-color: $grey-darker !default
|
2
|
+
$title-size: $size-3 !default
|
3
|
+
$title-weight: $weight-semibold !default
|
4
|
+
$title-strong-color: inherit !default
|
5
|
+
$title-strong-weight: inherit !default
|
6
|
+
|
7
|
+
$subtitle-color: $grey-dark !default
|
8
|
+
$subtitle-size: $size-5 !default
|
9
|
+
$subtitle-weight: $weight-normal !default
|
10
|
+
$subtitle-strong-color: $grey-darker !default
|
11
|
+
$subtitle-strong-weight: $weight-semibold !default
|
12
|
+
|
13
|
+
.title,
|
14
|
+
.subtitle
|
15
|
+
+block
|
16
|
+
word-break: break-word
|
17
|
+
em,
|
18
|
+
span
|
19
|
+
font-weight: inherit
|
20
|
+
.tag
|
21
|
+
vertical-align: middle
|
22
|
+
|
23
|
+
.title
|
24
|
+
color: $title-color
|
25
|
+
font-size: $title-size
|
26
|
+
font-weight: $title-weight
|
27
|
+
line-height: 1.125
|
28
|
+
strong
|
29
|
+
color: $title-strong-color
|
30
|
+
font-weight: $title-strong-weight
|
31
|
+
& + .highlight
|
32
|
+
margin-top: -0.75rem
|
33
|
+
&:not(.is-spaced) + .subtitle
|
34
|
+
margin-top: -1.5rem
|
35
|
+
// Sizes
|
36
|
+
@each $size in $sizes
|
37
|
+
$i: index($sizes, $size)
|
38
|
+
&.is-#{$i}
|
39
|
+
font-size: $size
|
40
|
+
|
41
|
+
.subtitle
|
42
|
+
color: $subtitle-color
|
43
|
+
font-size: $subtitle-size
|
44
|
+
font-weight: $subtitle-weight
|
45
|
+
line-height: 1.25
|
46
|
+
strong
|
47
|
+
color: $subtitle-strong-color
|
48
|
+
font-weight: $subtitle-strong-weight
|
49
|
+
&:not(.is-spaced) + .title
|
50
|
+
margin-top: -1.5rem
|
51
|
+
// Sizes
|
52
|
+
@each $size in $sizes
|
53
|
+
$i: index($sizes, $size)
|
54
|
+
&.is-#{$i}
|
55
|
+
font-size: $size
|
@@ -0,0 +1,328 @@
|
|
1
|
+
$column-gap: 0.75rem !default
|
2
|
+
|
3
|
+
.column
|
4
|
+
display: block
|
5
|
+
flex-basis: 0
|
6
|
+
flex-grow: 1
|
7
|
+
flex-shrink: 1
|
8
|
+
padding: $column-gap
|
9
|
+
.columns.is-mobile > &.is-narrow
|
10
|
+
flex: none
|
11
|
+
.columns.is-mobile > &.is-full
|
12
|
+
flex: none
|
13
|
+
width: 100%
|
14
|
+
.columns.is-mobile > &.is-three-quarters
|
15
|
+
flex: none
|
16
|
+
width: 75%
|
17
|
+
.columns.is-mobile > &.is-two-thirds
|
18
|
+
flex: none
|
19
|
+
width: 66.6666%
|
20
|
+
.columns.is-mobile > &.is-half
|
21
|
+
flex: none
|
22
|
+
width: 50%
|
23
|
+
.columns.is-mobile > &.is-one-third
|
24
|
+
flex: none
|
25
|
+
width: 33.3333%
|
26
|
+
.columns.is-mobile > &.is-one-quarter
|
27
|
+
flex: none
|
28
|
+
width: 25%
|
29
|
+
.columns.is-mobile > &.is-offset-three-quarters
|
30
|
+
margin-left: 75%
|
31
|
+
.columns.is-mobile > &.is-offset-two-thirds
|
32
|
+
margin-left: 66.6666%
|
33
|
+
.columns.is-mobile > &.is-offset-half
|
34
|
+
margin-left: 50%
|
35
|
+
.columns.is-mobile > &.is-offset-one-third
|
36
|
+
margin-left: 33.3333%
|
37
|
+
.columns.is-mobile > &.is-offset-one-quarter
|
38
|
+
margin-left: 25%
|
39
|
+
@for $i from 1 through 12
|
40
|
+
.columns.is-mobile > &.is-#{$i}
|
41
|
+
flex: none
|
42
|
+
width: ($i / 12) * 100%
|
43
|
+
.columns.is-mobile > &.is-offset-#{$i}
|
44
|
+
margin-left: ($i / 12) * 100%
|
45
|
+
+mobile
|
46
|
+
&.is-narrow-mobile
|
47
|
+
flex: none
|
48
|
+
&.is-full-mobile
|
49
|
+
flex: none
|
50
|
+
width: 100%
|
51
|
+
&.is-three-quarters-mobile
|
52
|
+
flex: none
|
53
|
+
width: 75%
|
54
|
+
&.is-two-thirds-mobile
|
55
|
+
flex: none
|
56
|
+
width: 66.6666%
|
57
|
+
&.is-half-mobile
|
58
|
+
flex: none
|
59
|
+
width: 50%
|
60
|
+
&.is-one-third-mobile
|
61
|
+
flex: none
|
62
|
+
width: 33.3333%
|
63
|
+
&.is-one-quarter-mobile
|
64
|
+
flex: none
|
65
|
+
width: 25%
|
66
|
+
&.is-offset-three-quarters-mobile
|
67
|
+
margin-left: 75%
|
68
|
+
&.is-offset-two-thirds-mobile
|
69
|
+
margin-left: 66.6666%
|
70
|
+
&.is-offset-half-mobile
|
71
|
+
margin-left: 50%
|
72
|
+
&.is-offset-one-third-mobile
|
73
|
+
margin-left: 33.3333%
|
74
|
+
&.is-offset-one-quarter-mobile
|
75
|
+
margin-left: 25%
|
76
|
+
@for $i from 1 through 12
|
77
|
+
&.is-#{$i}-mobile
|
78
|
+
flex: none
|
79
|
+
width: ($i / 12) * 100%
|
80
|
+
&.is-offset-#{$i}-mobile
|
81
|
+
margin-left: ($i / 12) * 100%
|
82
|
+
+tablet
|
83
|
+
&.is-narrow,
|
84
|
+
&.is-narrow-tablet
|
85
|
+
flex: none
|
86
|
+
&.is-full,
|
87
|
+
&.is-full-tablet
|
88
|
+
flex: none
|
89
|
+
width: 100%
|
90
|
+
&.is-three-quarters,
|
91
|
+
&.is-three-quarters-tablet
|
92
|
+
flex: none
|
93
|
+
width: 75%
|
94
|
+
&.is-two-thirds,
|
95
|
+
&.is-two-thirds-tablet
|
96
|
+
flex: none
|
97
|
+
width: 66.6666%
|
98
|
+
&.is-half,
|
99
|
+
&.is-half-tablet
|
100
|
+
flex: none
|
101
|
+
width: 50%
|
102
|
+
&.is-one-third,
|
103
|
+
&.is-one-third-tablet
|
104
|
+
flex: none
|
105
|
+
width: 33.3333%
|
106
|
+
&.is-one-quarter,
|
107
|
+
&.is-one-quarter-tablet
|
108
|
+
flex: none
|
109
|
+
width: 25%
|
110
|
+
&.is-offset-three-quarters,
|
111
|
+
&.is-offset-three-quarters-tablet
|
112
|
+
margin-left: 75%
|
113
|
+
&.is-offset-two-thirds,
|
114
|
+
&.is-offset-two-thirds-tablet
|
115
|
+
margin-left: 66.6666%
|
116
|
+
&.is-offset-half,
|
117
|
+
&.is-offset-half-tablet
|
118
|
+
margin-left: 50%
|
119
|
+
&.is-offset-one-third,
|
120
|
+
&.is-offset-one-third-tablet
|
121
|
+
margin-left: 33.3333%
|
122
|
+
&.is-offset-one-quarter,
|
123
|
+
&.is-offset-one-quarter-tablet
|
124
|
+
margin-left: 25%
|
125
|
+
@for $i from 1 through 12
|
126
|
+
&.is-#{$i},
|
127
|
+
&.is-#{$i}-tablet
|
128
|
+
flex: none
|
129
|
+
width: ($i / 12) * 100%
|
130
|
+
&.is-offset-#{$i},
|
131
|
+
&.is-offset-#{$i}-tablet
|
132
|
+
margin-left: ($i / 12) * 100%
|
133
|
+
+touch
|
134
|
+
&.is-narrow-touch
|
135
|
+
flex: none
|
136
|
+
&.is-full-touch
|
137
|
+
flex: none
|
138
|
+
width: 100%
|
139
|
+
&.is-three-quarters-touch
|
140
|
+
flex: none
|
141
|
+
width: 75%
|
142
|
+
&.is-two-thirds-touch
|
143
|
+
flex: none
|
144
|
+
width: 66.6666%
|
145
|
+
&.is-half-touch
|
146
|
+
flex: none
|
147
|
+
width: 50%
|
148
|
+
&.is-one-third-touch
|
149
|
+
flex: none
|
150
|
+
width: 33.3333%
|
151
|
+
&.is-one-quarter-touch
|
152
|
+
flex: none
|
153
|
+
width: 25%
|
154
|
+
&.is-offset-three-quarters-touch
|
155
|
+
margin-left: 75%
|
156
|
+
&.is-offset-two-thirds-touch
|
157
|
+
margin-left: 66.6666%
|
158
|
+
&.is-offset-half-touch
|
159
|
+
margin-left: 50%
|
160
|
+
&.is-offset-one-third-touch
|
161
|
+
margin-left: 33.3333%
|
162
|
+
&.is-offset-one-quarter-touch
|
163
|
+
margin-left: 25%
|
164
|
+
@for $i from 1 through 12
|
165
|
+
&.is-#{$i}-touch
|
166
|
+
flex: none
|
167
|
+
width: ($i / 12) * 100%
|
168
|
+
&.is-offset-#{$i}-touch
|
169
|
+
margin-left: ($i / 12) * 100%
|
170
|
+
+desktop
|
171
|
+
&.is-narrow-desktop
|
172
|
+
flex: none
|
173
|
+
&.is-full-desktop
|
174
|
+
flex: none
|
175
|
+
width: 100%
|
176
|
+
&.is-three-quarters-desktop
|
177
|
+
flex: none
|
178
|
+
width: 75%
|
179
|
+
&.is-two-thirds-desktop
|
180
|
+
flex: none
|
181
|
+
width: 66.6666%
|
182
|
+
&.is-half-desktop
|
183
|
+
flex: none
|
184
|
+
width: 50%
|
185
|
+
&.is-one-third-desktop
|
186
|
+
flex: none
|
187
|
+
width: 33.3333%
|
188
|
+
&.is-one-quarter-desktop
|
189
|
+
flex: none
|
190
|
+
width: 25%
|
191
|
+
&.is-offset-three-quarters-desktop
|
192
|
+
margin-left: 75%
|
193
|
+
&.is-offset-two-thirds-desktop
|
194
|
+
margin-left: 66.6666%
|
195
|
+
&.is-offset-half-desktop
|
196
|
+
margin-left: 50%
|
197
|
+
&.is-offset-one-third-desktop
|
198
|
+
margin-left: 33.3333%
|
199
|
+
&.is-offset-one-quarter-desktop
|
200
|
+
margin-left: 25%
|
201
|
+
@for $i from 1 through 12
|
202
|
+
&.is-#{$i}-desktop
|
203
|
+
flex: none
|
204
|
+
width: ($i / 12) * 100%
|
205
|
+
&.is-offset-#{$i}-desktop
|
206
|
+
margin-left: ($i / 12) * 100%
|
207
|
+
+widescreen
|
208
|
+
&.is-narrow-widescreen
|
209
|
+
flex: none
|
210
|
+
&.is-full-widescreen
|
211
|
+
flex: none
|
212
|
+
width: 100%
|
213
|
+
&.is-three-quarters-widescreen
|
214
|
+
flex: none
|
215
|
+
width: 75%
|
216
|
+
&.is-two-thirds-widescreen
|
217
|
+
flex: none
|
218
|
+
width: 66.6666%
|
219
|
+
&.is-half-widescreen
|
220
|
+
flex: none
|
221
|
+
width: 50%
|
222
|
+
&.is-one-third-widescreen
|
223
|
+
flex: none
|
224
|
+
width: 33.3333%
|
225
|
+
&.is-one-quarter-widescreen
|
226
|
+
flex: none
|
227
|
+
width: 25%
|
228
|
+
&.is-offset-three-quarters-widescreen
|
229
|
+
margin-left: 75%
|
230
|
+
&.is-offset-two-thirds-widescreen
|
231
|
+
margin-left: 66.6666%
|
232
|
+
&.is-offset-half-widescreen
|
233
|
+
margin-left: 50%
|
234
|
+
&.is-offset-one-third-widescreen
|
235
|
+
margin-left: 33.3333%
|
236
|
+
&.is-offset-one-quarter-widescreen
|
237
|
+
margin-left: 25%
|
238
|
+
@for $i from 1 through 12
|
239
|
+
&.is-#{$i}-widescreen
|
240
|
+
flex: none
|
241
|
+
width: ($i / 12) * 100%
|
242
|
+
&.is-offset-#{$i}-widescreen
|
243
|
+
margin-left: ($i / 12) * 100%
|
244
|
+
+fullhd
|
245
|
+
&.is-narrow-fullhd
|
246
|
+
flex: none
|
247
|
+
&.is-full-fullhd
|
248
|
+
flex: none
|
249
|
+
width: 100%
|
250
|
+
&.is-three-quarters-fullhd
|
251
|
+
flex: none
|
252
|
+
width: 75%
|
253
|
+
&.is-two-thirds-fullhd
|
254
|
+
flex: none
|
255
|
+
width: 66.6666%
|
256
|
+
&.is-half-fullhd
|
257
|
+
flex: none
|
258
|
+
width: 50%
|
259
|
+
&.is-one-third-fullhd
|
260
|
+
flex: none
|
261
|
+
width: 33.3333%
|
262
|
+
&.is-one-quarter-fullhd
|
263
|
+
flex: none
|
264
|
+
width: 25%
|
265
|
+
&.is-offset-three-quarters-fullhd
|
266
|
+
margin-left: 75%
|
267
|
+
&.is-offset-two-thirds-fullhd
|
268
|
+
margin-left: 66.6666%
|
269
|
+
&.is-offset-half-fullhd
|
270
|
+
margin-left: 50%
|
271
|
+
&.is-offset-one-third-fullhd
|
272
|
+
margin-left: 33.3333%
|
273
|
+
&.is-offset-one-quarter-fullhd
|
274
|
+
margin-left: 25%
|
275
|
+
@for $i from 1 through 12
|
276
|
+
&.is-#{$i}-fullhd
|
277
|
+
flex: none
|
278
|
+
width: ($i / 12) * 100%
|
279
|
+
&.is-offset-#{$i}-fullhd
|
280
|
+
margin-left: ($i / 12) * 100%
|
281
|
+
|
282
|
+
.columns
|
283
|
+
margin-left: (-$column-gap)
|
284
|
+
margin-right: (-$column-gap)
|
285
|
+
margin-top: (-$column-gap)
|
286
|
+
&:last-child
|
287
|
+
margin-bottom: (-$column-gap)
|
288
|
+
&:not(:last-child)
|
289
|
+
margin-bottom: calc(1.5rem - #{$column-gap})
|
290
|
+
// Modifiers
|
291
|
+
&.is-centered
|
292
|
+
justify-content: center
|
293
|
+
&.is-gapless
|
294
|
+
margin-left: 0
|
295
|
+
margin-right: 0
|
296
|
+
margin-top: 0
|
297
|
+
& > .column
|
298
|
+
margin: 0
|
299
|
+
padding: 0 !important
|
300
|
+
&:not(:last-child)
|
301
|
+
margin-bottom: 1.5rem
|
302
|
+
&:last-child
|
303
|
+
margin-bottom: 0
|
304
|
+
&.is-mobile
|
305
|
+
display: flex
|
306
|
+
&.is-multiline
|
307
|
+
flex-wrap: wrap
|
308
|
+
&.is-vcentered
|
309
|
+
align-items: center
|
310
|
+
// Responsiveness
|
311
|
+
+tablet
|
312
|
+
&:not(.is-desktop)
|
313
|
+
display: flex
|
314
|
+
+desktop
|
315
|
+
// Modifiers
|
316
|
+
&.is-desktop
|
317
|
+
display: flex
|
318
|
+
|
319
|
+
.columns.is-variable
|
320
|
+
--columnGap: 0.75rem
|
321
|
+
margin-left: calc(-1 * var(--columnGap))
|
322
|
+
margin-right: calc(-1 * var(--columnGap))
|
323
|
+
.column
|
324
|
+
padding-left: var(--columnGap)
|
325
|
+
padding-right: var(--columnGap)
|
326
|
+
@for $i from 0 through 8
|
327
|
+
&.is-#{$i}
|
328
|
+
--columnGap: $i * 0.25rem
|