Skip to content

Commit c01255b

Browse files
committed
Add menu
1 parent 4509738 commit c01255b

6 files changed

Lines changed: 236 additions & 48 deletions

File tree

bulma/components/components.sass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
@import table
77
@import tabs
88
@import media
9+
@import menu
910

1011
.block:not(:last-child)
1112
margin-bottom: 20px

bulma/components/menu.sass

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,49 @@
1-
.menu
2-
border: 1px solid $border
1+
.menu-icon
2+
+fa(14px, 16px)
3+
color: $text-light
4+
float: left
5+
margin: 0 4px 0 -2px
6+
.fa
7+
font-size: inherit
8+
line-height: inherit
39

410
.menu-heading
5-
@extend .heading
11+
background: $background
12+
border-bottom: 1px solid $border
13+
border-radius: 4px 4px 0 0
614
color: $text-strong
15+
font-size: $size-medium
16+
font-weight: 300
17+
padding: 10px
718

819
.menu-list
920
a
1021
color: $text
1122
&:hover
1223
color: $link
1324

25+
.menu-tabs
26+
display: flex
27+
font-size: $size-small
28+
padding: 5px 10px 0
29+
justify-content: center
30+
&:not(:last-child)
31+
border-bottom: 1px solid $border
32+
a
33+
border-bottom: 1px solid $border
34+
margin-bottom: -1px
35+
padding: 5px
36+
&.is-active
37+
border-bottom-color: $link-active-border
38+
color: $link-active
39+
1440
.menu-block
41+
color: $text-strong
42+
display: block
43+
line-height: 16px
44+
padding: 10px
45+
&:not(:last-child)
46+
border-bottom: 1px solid $border
1547
.checkbox
1648
border: 1px solid transparent
1749
border-radius: $radius
@@ -23,3 +55,22 @@
2355
top: 9px
2456
&:hover
2557
border-color: $link
58+
59+
a.menu-block:hover
60+
background: $background
61+
62+
.menu-checkbox
63+
@extend .checkbox
64+
display: block
65+
padding: 9px 10px 9px 30px
66+
&:not(:last-child)
67+
border-bottom: 1px solid $border
68+
input
69+
left: 8px
70+
top: 10px
71+
72+
.menu
73+
border: 1px solid $border
74+
border-radius: 5px
75+
&:not(:last-child)
76+
margin-bottom: 20px

0 commit comments

Comments
 (0)