Last active
August 29, 2015 14:07
-
-
Save jordangray/b5c5170d8766a89602c2 to your computer and use it in GitHub Desktop.
Collapsing warnings
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
/* Collapsing warnings */ | |
.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