Created
January 28, 2015 08:08
-
-
Save iamjoel/81a4f9f7879c092290dd to your computer and use it in GitHub Desktop.
basic icons
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
| /** | |
| * basic icons | |
| */ | |
| body{ | |
| background:#2ba5bb; | |
| padding:20px; | |
| margin:0; | |
| color: #fff; | |
| } | |
| .icons{ | |
| font-size: 0; | |
| margin-bottom: 20px; | |
| } | |
| .wrap{ | |
| box-sizing: border-box; | |
| display: inline-block; | |
| width: 5%; | |
| padding-right: 10px; | |
| font-size: 42px; | |
| color: #fff; | |
| } | |
| .icon { | |
| position: relative; | |
| display: block; | |
| width: 34px; | |
| height: 34px; | |
| color: #fff; | |
| } | |
| .icon:before, .icon:after{ | |
| position: absolute; | |
| content: ' '; | |
| } | |
| .line.icon { | |
| height: 2px; | |
| background: #fff; | |
| } | |
| .arrow.icon { | |
| display: block; | |
| height: 24px; | |
| width: 24px; | |
| border: 2px solid #fff; | |
| border-right-color: transparent; | |
| border-bottom-color: transparent; | |
| } | |
| .three.border.icon{ | |
| border: 2px solid #fff; | |
| border-right: none; | |
| } | |
| .point-arrow.icon{ | |
| border-top: 2px solid #fff; | |
| display: inline-block; | |
| position: relative; | |
| top: 16px; | |
| } | |
| .rect.icon { | |
| border: 2px solid #fff; | |
| } |
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
| <ul class="icons"> | |
| <li class="wrap"> | |
| <i class="line icon"></i> | |
| </li> | |
| <li class="wrap"> | |
| <i class="arrow icon"></i> | |
| </li> | |
| <li class="wrap"> | |
| <i class="three border icon"></i> | |
| </li> | |
| <li class="wrap"> | |
| <i class="rect icon"></i> | |
| </li> | |
| </ul> |
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
| // alert('Hello world!'); |
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
| {"view":"split","fontsize":"130","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment