Last active
December 14, 2015 22:39
-
-
Save Meroje/5160393 to your computer and use it in GitHub Desktop.
.elem outline box, from http://learnlayout.com/
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
/** | |
* .elem outline box | |
*/ | |
.elem { | |
border: solid #6AC5AC 3px; | |
position: relative; | |
} | |
.elem p { | |
padding: 0 1em; | |
} | |
.elem-inline .label, .elem-inline .endlabel { | |
position: static; | |
} | |
.label, .endlabel { | |
position: absolute; | |
background-color: #6AC5AC; | |
color: #414142; | |
line-height: 1em; | |
} | |
.label { | |
top: 0; | |
left: 0; | |
padding: 0 3px 3px 0; | |
} | |
.endlabel { | |
right: 0; | |
bottom: 0; | |
padding: 3px 0 0 3px; | |
} | |
.elem-green { | |
border: solid #96C02E 3px; | |
} | |
.elem-green > .label, .elem-green > .endlabel{ | |
background-color: #96C02E; | |
} | |
.elem-red { | |
border: solid #D64078 3px; | |
} | |
.elem-red > .label, .elem-red > .endlabel{ | |
color: white; | |
background-color: #D64078; | |
} | |
.elem-orange { | |
border: solid #FDC72F 3px; | |
} | |
.elem-orange > .label, .elem-orange > .endlabel{ | |
background-color: #FDC72F; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<section class="elem elem-green"> | |
<span class="label"><section></span> | |
<p> | |
Flexbox is so easy! | |
</p> | |
<span class="endlabel"></section></span> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment