Created
October 3, 2014 14:30
-
-
Save jordangray/3f88e13260ee6f6f3566 to your computer and use it in GitHub Desktop.
Warning folding
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
/* Warning folding */ | |
.error { | |
background: #fcc; | |
border: 3px solid #c00; | |
border-radius: 5px; | |
margin: 1em 0; | |
padding: 10px; | |
position: relative; | |
width: 300px; | |
} | |
.error:after { | |
content: ' '; | |
width: 0px; | |
height: 0px; | |
border-bottom: 5px solid #c00; | |
border-left: 5px solid transparent; | |
border-right: 5px solid transparent; | |
position: absolute; | |
top: -8px; | |
left: 50%; | |
margin-left: -5px; | |
} | |
.error + .error { | |
border-top: none; | |
border-radius: 0 0 5px 5px; | |
margin-top: -2em; | |
} | |
.error + .error:after { | |
display: none; | |
} |
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
<div class="error">Error text</div> | |
<br> | |
<div class="error">Error text</div> | |
<div class="error">Error text</div> | |
<div class="error">Error text</div> | |
<div class="error">Error text</div> | |
<div class="error">Error text</div> |
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