Last active
January 9, 2018 02:18
-
-
Save kuanhsuh/95cd156628377b3673ba02e32373797c to your computer and use it in GitHub Desktop.
ellie css test
This file contains 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
.header | |
.logo | |
.links | |
nav | |
ul | |
li abc | |
li 123 | |
@mixin size($w, $h: $w) { | |
height: $h; | |
width: $w; | |
} | |
.header { | |
background: #acc; | |
&::after { | |
clear: both; | |
content: ""; | |
display: block; | |
} | |
} | |
.logo { | |
@include size(200px, 40px); | |
background: #ccc; | |
float: left; | |
} | |
.links { | |
@include size(100px, 40px); | |
background: #000; | |
float: right; | |
} | |
nav { | |
float: left; | |
text-align: center; | |
width: calc(100% - 300px); | |
& li { | |
display: inline-block; | |
} | |
} | |
@media screen and (max-width: 800px) { | |
nav { | |
background: #caa; | |
width: 100%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment