Skip to content

Instantly share code, notes, and snippets.

@jordangray
Created October 2, 2014 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordangray/4f955a262b2c05ae1907 to your computer and use it in GitHub Desktop.
Save jordangray/4f955a262b2c05ae1907 to your computer and use it in GitHub Desktop.
Warning sign
/* Warning sign */
.icon-warning-sign {
position: relative;
}
.icon-warning-sign:before {
left:0;
content: "";
width: 0;
height: 0;
border-style: solid;
border-width: 0 .5em .867em .5em;
font-size: 1em;
border-color: transparent transparent #c33 transparent;
position: absolute;
}
.icon-warning-sign:after {
content: "!";
color: white;
font-weight: bold;
font-size: 0.667em;
width: 1.5em;
line-height:1.5em;
display:block;
text-align: center;
position: relative;
}
<span class="icon-warning-sign"></span>
// alert('Hello world!');
{"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