Created
June 10, 2014 16:34
-
-
Save daphotron/c47027154f10ac4cb4bf to your computer and use it in GitHub Desktop.
Generated by SassMeister.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
| <ol class="list"> | |
| <li> | |
| <div class="item"> | |
| first | |
| </div> | |
| <div class="item"> | |
| second second second second second second second second second second second second | |
| </div> | |
| <div class="item"> | |
| third | |
| </div> | |
| </li> | |
| <li> | |
| <div class="item"> | |
| first | |
| </div> | |
| <div class="item"> | |
| second | |
| </div> | |
| <div class="item"> | |
| third | |
| </div> | |
| </li> | |
| </ol> |
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
| // ---- | |
| // Sass (v3.3.8) | |
| // Compass (v1.0.0.alpha.19) | |
| // ---- | |
| // http://css-tricks.com/numbering-in-style/ | |
| // http://css-tricks.com/examples/NumberedFAQ/ | |
| .list { | |
| counter-reset: my-badass-counter; | |
| } | |
| .list li:before { | |
| content: counter(my-badass-counter) ". "; | |
| counter-increment: my-badass-counter; | |
| color: red; | |
| font-style: italic; | |
| font-size: 2em; | |
| display: block; | |
| float: left; | |
| padding: 0 0.3em; | |
| } | |
| .list li { | |
| display: block; | |
| overflow: hidden; | |
| margin: 0 0 1em; | |
| padding: 0; | |
| } | |
| .item { | |
| background: #ccc; | |
| float: left; | |
| margin-right: 1%; | |
| width: 30%; | |
| } |
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
| .list { | |
| counter-reset: my-badass-counter; | |
| } | |
| .list li:before { | |
| content: counter(my-badass-counter) ". "; | |
| counter-increment: my-badass-counter; | |
| color: red; | |
| font-style: italic; | |
| font-size: 2em; | |
| display: block; | |
| float: left; | |
| padding: 0 0.3em; | |
| } | |
| .list li { | |
| display: block; | |
| overflow: hidden; | |
| margin: 0 0 1em; | |
| padding: 0; | |
| } | |
| .item { | |
| background: #ccc; | |
| float: left; | |
| margin-right: 1%; | |
| width: 30%; | |
| } |
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
| <ol class="list"> | |
| <li> | |
| <div class="item"> | |
| first | |
| </div> | |
| <div class="item"> | |
| second second second second second second second second second second second second | |
| </div> | |
| <div class="item"> | |
| third | |
| </div> | |
| </li> | |
| <li> | |
| <div class="item"> | |
| first | |
| </div> | |
| <div class="item"> | |
| second | |
| </div> | |
| <div class="item"> | |
| third | |
| </div> | |
| </li> | |
| </ol> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment