Created
February 20, 2013 03:11
-
-
Save argyleink/4992491 to your computer and use it in GitHub Desktop.
Layouts - 3 flexbox
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
/** | |
* Layouts - 3 flexbox | |
*/ | |
body { | |
color:white; | |
margin:0; | |
} | |
.flex { | |
display:flex; | |
} | |
.fluid { | |
flex:1; | |
} | |
.double { | |
flex:2; | |
} | |
article { | |
overflow:hidden; | |
} | |
section:nth-child(1) { | |
background:red; | |
} | |
section:nth-child(2) { | |
background:blue; | |
} | |
section:nth-child(3) { | |
background:green; | |
} | |
.inner-shadow { | |
box-shadow:inset 0 0 35px black; | |
} | |
.column { | |
padding:10px 25px; | |
box-sizing:border-box; | |
} |
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
<article class="flex"> | |
<section class="column fluid inner-shadow"> | |
For sure ipsizzle hizzle sit amizzle, consectetuer adipiscing . Nullam sapien velizzle, i'm in the shizzle nizzle, bling bling crazy, gravida vel, bling bling. Pellentesque nizzle tortizzle. Nizzle yo mamma. | |
</section> | |
<section class="column fluid-double inner-shadow"> | |
For sure ipsizzle hizzle sit amizzle, consectetuer adipiscing . Nullam sapien velizzle, i'm in the shizzle nizzle, bling bling crazy, gravida vel, bling bling. Pellentesque nizzle tortizzle. Nizzle yo mamma. | |
</section> | |
<section class="column fluid inner-shadow"> | |
For sure ipsizzle hizzle sit amizzle, consectetuer adipiscing . Nullam sapien velizzle, i'm in the shizzle nizzle, bling bling crazy, gravida vel, bling bling. Pellentesque nizzle tortizzle. Nizzle yo mamma. | |
</section> | |
</article> |
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
// alert('Hello world!'); |
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
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment