Skip to content

Commit 1a15323

Browse files
styles for dropdown header
1 parent 67b15e5 commit 1a15323

5 files changed

Lines changed: 22 additions & 10 deletions

File tree

assets/index.scss

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,6 @@ a {
175175

176176
@media (max-width: $tablet) {
177177

178-
#menu {
179-
display: none
180-
}
181-
182178
h2 {
183179
color: $white;
184180
font-weight: bold;
@@ -188,8 +184,17 @@ a {
188184
margin: 0;
189185
border: 1px solid #999;
190186
border-radius: 10px;
191-
background: #bbb;
192-
padding: 5px $margin-small
187+
padding: 5px 10px 5px 40px;
188+
cursor: pointer;
189+
text-shadow: 0 -1px 0 rgba(0,0,0,.4);
190+
box-shadow: 0 1px 0 #fff;
191+
background: {
192+
color: #bbb;
193+
image: url("/images/menu-dropdown.png"), url("/images/menu-gradient.png");
194+
position: 10px center, left bottom;
195+
repeat: no-repeat, repeat-x;
196+
size: 18px, auto;
197+
}
193198
}
194199
}
195200

images/menu-dropdown.png

287 Bytes
Loading

images/menu-gradient.png

177 Bytes
Loading

javascripts/city_dropdown.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ $(function(){
99
menu = wrapper.find("#menu");
1010
header = wrapper.find("#menu_header");
1111

12+
menu.hide();
13+
1214
header.click(function(){
1315
if ($(window).width() <= tablet_width) {
1416
wrapper.stop().toggleClass(class_name);

stylesheets/index.css

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ a {
118118
.wrapper #menu_wrapper ul li:first-child a {
119119
border: none; }
120120
@media (max-width: 767px) {
121-
.wrapper #menu_wrapper #menu {
122-
display: none; }
123121
.wrapper #menu_wrapper h2 {
124122
color: white;
125123
font-weight: bold;
@@ -129,8 +127,15 @@ a {
129127
margin: 0;
130128
border: 1px solid #999;
131129
border-radius: 10px;
132-
background: #bbb;
133-
padding: 5px 10px; } }
130+
padding: 5px 10px 5px 40px;
131+
cursor: pointer;
132+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
133+
box-shadow: 0 1px 0 #fff;
134+
background-color: #bbb;
135+
background-image: url("/images/menu-dropdown.png"), url("/images/menu-gradient.png");
136+
background-position: 10px center, left bottom;
137+
background-repeat: no-repeat, repeat-x;
138+
background-size: 18px, auto; } }
134139
@media (min-width: 768px) {
135140
.wrapper #menu_wrapper #menu {
136141
display: block !important; } }

0 commit comments

Comments
 (0)