Skip to content

Commit c17941a

Browse files
author
Joe Crick
committed
(master): Fix styling of collapsed so it doesn't overspill. Fix styling of expanded, so it fills the space.
1 parent 79cbd6a commit c17941a

File tree

4 files changed

+76
-6
lines changed

4 files changed

+76
-6
lines changed

main.css

Lines changed: 35 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/menu.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
}
1010

1111
@media @smart-phone {
12+
height: 0;
1213

1314
.pure-menu-heading {
1415
display: none;
@@ -17,6 +18,9 @@
1718
}
1819

1920
@media @medium-device {
21+
top: 0;
22+
bottom: 0;
23+
height: 100%;
2024

2125
.menu-link {
2226
display: none;

src/layout.less

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
@light-blue: #4dbbdb;
66
@white: #ffffff;
77
@off-white: #dddddd;
8-
@black: #000000;
8+
@black: #191818;
99
@light-gray: #999999;
10+
@menu-link: #777777;
11+
@menu-hover-color: #333333;
1012

1113
body {
1214
font-family: sans-serif;
@@ -63,6 +65,26 @@ body {
6365

6466
}
6567

68+
.pure-menu-heading {
69+
background-color: @black;
70+
width: 160px;
71+
color: @white;
72+
73+
&:hover {
74+
color: @light-gray;
75+
}
76+
77+
}
78+
79+
.pcssc-collapsing-menu {
80+
background: @black;
81+
82+
.dropdown:focus + .dropdown-content {
83+
transition: all 0.2s ease-out;
84+
}
85+
86+
}
87+
6688
.dropdown-content {
6789
z-index: 1;
6890
transition: visibility 0.5s;
@@ -74,12 +96,23 @@ body {
7496
border-radius: 5px;
7597

7698
&.pure-menu {
77-
background: #191818;
99+
background: @black;
100+
padding: 0;
101+
width: 160px;
102+
border: 0;
103+
104+
@media @medium-device {
105+
top: 50px;
106+
}
78107

79108
.pure-menu-item {
80109

81110
.pure-menu-link {
82-
color: @light-gray;
111+
color: @menu-link;
112+
113+
&:hover {
114+
background: @menu-hover-color;
115+
}
83116

84117
}
85118

0 commit comments

Comments
 (0)