Created
          June 2, 2015 01:40 
        
      - 
      
 - 
        
Save nksm/0e51d1a3a67151aa74f7 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
nakashima akira created this gist
Jun 2, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ content プロパティの counter を利用してみる ------------------------------ content プロパティの counter を利用したサンプル。 A [Pen](http://codepen.io/nksm/pen/EjWYRN) by [nakashima akira](http://codepen.io/nksm) on [CodePen](http://codepen.io/). [License](http://codepen.io/nksm/pen/EjWYRN/license). 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ .container .item アイテム .item アイテム .item アイテム .item アイテム .item アイテム .item アイテム .container .item アイテム .item アイテム .item アイテム .item アイテム .item アイテム .item アイテム 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ .container { margin: 10px; } .item { &:first-child { counter-reset: item; } &::before { counter-increment: item; content: counters(item, '.'); margin-right: 10px; } & > & { margin-left: 20px; } }