Created
June 23, 2017 14:42
-
-
Save sgoguen/79f6adc595abed0cc551e692dbc9f52f to your computer and use it in GitHub Desktop.
HamburgMenu.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url( https://fonts.googleapis.com/css?family=Raleway:200,600 ); | |
html, body { height: 100%; } | |
.wrapper { | |
position: absolute; | |
width: 727px !important; | |
left:-233px !important; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
overflow: hidden; | |
-webkit-transition: all 500ms; | |
-moz-transition: all 500ms; | |
transition: all 500ms; | |
} | |
.wrapper.active { | |
left:0px !important; | |
} | |
.bigmac { | |
width: 250px; | |
height: 240px; | |
margin: -100px 0 0 -125px; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
z-index: 0; | |
} | |
.bigmac:after { | |
content: ''; | |
width: 318px; | |
height: 400px; | |
position: absolute; | |
-webkit-transform: rotate(-45deg); | |
-moz-transform: rotate(-45deg); | |
transform: rotate(-45deg); | |
top: 65px; | |
left: 95px; | |
z-index: -1; | |
border-radius: 0 0 50px 50px; | |
} | |
.patties, .patties:after { | |
width: 100%; | |
height: 20px; | |
position: absolute; | |
top: 85px; | |
border-radius: 5px; | |
} | |
.patties:after { | |
content: ''; | |
top: 80px; | |
} | |
.sauce { | |
width: 100%; | |
height: 5px; | |
position: absolute; | |
top: 115px; | |
border-radius: 2px; | |
} | |
.lettuce, .lettuce:after { | |
width: 100%; | |
height: 10px; | |
position: absolute; | |
top: 105px; | |
border-radius: 2px; | |
} | |
.lettuce:after { | |
content: ''; | |
top: 80px; | |
} | |
.cheese { | |
width: 100%; | |
height: 5px; | |
position: absolute; | |
top: 195px; | |
border-radius: 2px; | |
} | |
.cheese:after { | |
content: ''; | |
position: absolute; | |
top: 2px; | |
left: 2; | |
z-index: 1; | |
border-top: 30px solid #fad002; | |
border-right: 80px solid transparent; | |
border-bottom: 0 solid transparent; | |
border-left: 20px solid transparent; | |
} | |
.pickles, .pickles:after { | |
width: 80px; | |
height: 10px; | |
position: absolute; | |
top: 105px; | |
left: 20px; | |
z-index: 1; | |
border-radius: 2px; | |
} | |
.pickles:after { | |
content: ''; | |
top: 80px; | |
left: 130px; | |
} | |
.onions, .onions:after { | |
width: 100%; | |
height: 5px; | |
position: absolute; | |
top: 80px; | |
border-radius: 2px; | |
} | |
.onions:after { | |
content: ''; | |
top: 80px; | |
} | |
.seeds i, .seeds i:before, .seeds i:after { | |
width: 10px; | |
height: 5px; | |
position: absolute; | |
top: 20px; | |
left: 25px; | |
z-index: 1; | |
border-radius: 2px; | |
box-shadow: 2px 3px 0 rgba(0,0,0,0.1); | |
} | |
.seeds i:before, .seeds i:after { | |
content: ''; | |
top: 10px; | |
} | |
.seeds i:after { | |
top: -10px; | |
} | |
.seeds i:nth-child(2) { | |
left: 80px; | |
} | |
.seeds i:nth-child(3) { | |
left: 135px; | |
} | |
.seeds i:nth-child(4) { | |
left: 185px; | |
} | |
.bun, .bun:before, .bun:after { | |
width: 100%; | |
height: 40px; | |
position: absolute; | |
top: 120px; | |
border-radius: 3px; | |
} | |
.bun:before { | |
content: ''; | |
height: 80px; | |
top: -120px; | |
border-radius: 60px 60px 3px 3px; | |
} | |
.bun:after { | |
content: ''; | |
top: 80px; | |
border-radius: 2px 2px 5px 5px; | |
} | |
.menu { | |
width: 100%; | |
position: absolute; | |
top: 0; | |
z-index: 1; | |
margin-top:-8px; | |
} | |
.menu a { | |
padding: 8px; | |
color: #eee; | |
font-size: 27px; | |
line-height: 40px; | |
text-indent: 8px; | |
text-decoration: none; | |
text-shadow: 0 -1px 0 #000; | |
} | |
.nav { | |
list-style: none; | |
padding: 0; | |
margin: 0; | |
color: #eee; | |
} | |
.nav li { | |
padding: 0 8px; | |
line-height: 40px; | |
border-bottom: 1px solid #333; | |
} | |
.nav li:first-child { | |
color: #fad002; | |
font-size: 16px; | |
text-transform: uppercase; | |
} | |
.nav a { | |
color: #eee; | |
text-decoration: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment