Skip to content

Commit 152a4ca

Browse files
committed
Added new nav for mobile
1 parent 5b9f7c6 commit 152a4ca

File tree

2 files changed

+83
-5
lines changed

2 files changed

+83
-5
lines changed

css/style.css

Lines changed: 74 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ margin: 0 auto;
2828
margin-top: 160px;
2929
}
3030

31+
.heading-image {
32+
width:700px;
33+
}
34+
3135
.navleft h3 {
3236
font-weight: 100;
3337
background: rgba(0,0,0,.1);
@@ -179,7 +183,7 @@ line-height: 60px;
179183

180184
.third-container {
181185
background:#ffffff;
182-
box-shadow: inset 0px 0px 4px rgba(0,0,0,.3);
186+
box-shadow: inset 0px 2px 4px rgba(0,0,0,.2);
183187
}
184188

185189
.third-container-3 {
@@ -220,7 +224,7 @@ padding-top: 15px
220224

221225
.fourth-container-wrapper {
222226
background:#DBDEDD;
223-
box-shadow: inset 0px 0px 4px rgba(0,0,0,.3);
227+
box-shadow:inset 0px 1px 2px rgba(0,0,0,.2);
224228
}
225229

226230
.fourth-container {
@@ -355,11 +359,77 @@ footer {
355359
clear:both;
356360
}
357361

362+
/* Mobile Only */
363+
364+
.mobilenav {
365+
display: none;
366+
position: fixed;
367+
z-index: 20;
368+
background:rgba(0,0,0,.6);
369+
width:100%;
370+
371+
}
372+
373+
.mobile-hamburger {
374+
float:left;
375+
margin:0;
376+
width:35px;
377+
padding:12px;
378+
background:#000000;
379+
}
380+
381+
.mobile-hamburger:hover {
382+
cursor:pointer;
383+
}
384+
385+
.mobile-burger-image {
386+
width:35px;
387+
}
388+
389+
.mobile-logo {
390+
float:left;
391+
margin:0;
392+
font-weight: 100;
393+
color:#ffffff;
394+
margin-top: 10px;
395+
margin-left: 20px;
396+
}
397+
398+
399+
.mobile-navicon {
400+
float: left;
401+
margin:0;
402+
}
403+
358404
/* Media Queries */
359405

360-
@media only screen and (min-width: 600px) and (max-width: 900px) {
406+
@media only screen and (min-width: 0px) and (max-width: 900px) {
407+
408+
.mobilenav {
409+
display: block;
410+
}
411+
412+
.heading-image {
413+
max-width: 100%;
414+
}
415+
416+
nav {
417+
display: none;
418+
}
419+
420+
421+
}
422+
423+
424+
@media only screen and (min-width: 0px) and (max-width: 700px) {
361425

362-
}
426+
.heading {
427+
width:100%;
428+
}
429+
430+
431+
432+
}
363433

364434

365435

index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4+
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
45
<meta charset="UTF-8">
56
<title>{ JAWAD }</title>
67
<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,400italic' rel='stylesheet' type='text/css'>
@@ -9,6 +10,13 @@
910
<link rel="stylesheet" href="css/style.css">
1011
</head>
1112
<body>
13+
14+
<div class="mobilenav">
15+
<div class="mobile-nav-container">
16+
<h2 class="mobile-hamburger" id="mobile-hamburger"><img class="mobile-burger-image" src="images/nav.png" alt=""></h2><h1 class="mobile-logo">JAWAD</h1>
17+
</div>
18+
</div>
19+
1220
<div class="navfixed">
1321
<div class="leftnav">
1422
<section class="navleft">
@@ -31,7 +39,7 @@ <h3 class="usefullinks">USEFUL LINKS</h3>
3139
</div>
3240
</div>
3341
<div class="heading">
34-
<img width="700px" src="images/headline.png" alt="">
42+
<img class="heading-image" src="images/headline.png" alt="Jackson Area Web &amp; App Developers">
3543
</div>
3644
</section>
3745
</div>

0 commit comments

Comments
 (0)