Skip to content

Commit 3ed61b2

Browse files
committed
Add column gap variable, Fix hamburger
1 parent c01255b commit 3ed61b2

9 files changed

Lines changed: 75 additions & 188 deletions

File tree

bulma/components/grid.sass

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
.column
2+
overflow: hidden
23
+mobile
34
& + .column
4-
margin-top: 20px
5+
margin-top: $column-gap
56
+tablet
67
flex: 1
78
& + .column
8-
margin-left: 20px
9+
margin-left: $column-gap
910
&.is-double
1011
flex: 2
1112
&.is-triple
@@ -28,7 +29,7 @@
2829

2930
.columns
3031
&:not(:last-child)
31-
margin-bottom: 20px
32+
margin-bottom: $column-gap
3233
+tablet
3334
display: flex
3435
&.is-gapless

bulma/components/media.sass

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,27 @@
2525
+tablet
2626
margin-right: 10px
2727

28+
.media-left
29+
+mobile
30+
margin-bottom: 20px
31+
+tablet
32+
margin-right: 20px
33+
34+
.media-right
35+
+mobile
36+
margin-top: 20px
37+
+tablet
38+
margin-left: 20px
39+
2840
.media-content
2941
flex: 1
42+
text-align: left
3043
.textarea
3144
min-height: 60px
3245

3346
.media
3447
align-items: flex-start
48+
text-align: left
3549
.content:not(:last-child)
3650
margin-bottom: 10px
3751
.media

bulma/config/variables.sass

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ $size-7: 11px
3333

3434
// Dimensions
3535
36+
$column-gap: 20px
37+
3638
$header-height: 50px
3739

3840
// Miscellaneous

bulma/elements/elements.sass

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
.hamburger
5656
cursor: pointer
5757
display: block
58-
height: $header-height
58+
height: 50px
5959
position: relative
60-
width: $header-height
60+
width: 50px
6161
span
6262
background: $text
6363
display: block
@@ -90,6 +90,9 @@
9090
margin-left: -5px
9191
transform: rotate(-45deg)
9292
transform-origin: left bottom
93+
+tablet
94+
height: $header-height
95+
width: $header-height
9396

9497
.heading
9598
display: block

bulma/layout/header.sass

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
background: white
44
box-shadow: 0 1px 2px rgba(black, 0.1)
55
display: flex
6-
height: $header-height
6+
height: 50px
77
line-height: 24px
88
position: relative
99
text-align: center
@@ -13,6 +13,8 @@
1313
box-shadow: 0 1px 0 rgba($border, 0.3)
1414
display: flex
1515
width: 100%
16+
+tablet
17+
height: $header-height
1618

1719
.header-toggle
1820
@extend .hamburger
@@ -109,9 +111,10 @@
109111
background: white
110112
box-shadow: 0 4px 7px rgba(black, 0.1)
111113
display: none
114+
min-width: 120px
112115
position: absolute
113116
right: 0
114-
top: $header-height
117+
top: 50px
115118
z-index: 100
116119
.header-item
117120
border-top: 1px solid rgba($border, 0.5)

0 commit comments

Comments
 (0)