- 
      
 - 
        
Save dcneiner/2896055 to your computer and use it in GitHub Desktop.  
    CSS Dice: An Experiment by Jonathan Sampson - @jonathansampson 
  
        
  
    
      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
    
  
  
    
  | .die.one .dot { } | |
| .die.two .dot { background: #FFF; | |
| box-shadow: -2.5em -2.5em 0 #000, 2.5em 2.5em 0 #000 } | |
| .die.three .dot { box-shadow: -2.5em -2.5em 0 #000, 2.5em 2.5em 0 #000 } | |
| .die.four .dot { background: #FFF; | |
| box-shadow: -2.5em -2.5em 0 #000, 2.5em 2.5em 0 #000, | |
| -2.5em 2.5em 0 #000, 2.5em -2.5em 0 #000 } | |
| .die.five .dot { box-shadow: -2.5em -2.5em 0 #000, 2.5em 2.5em 0 #000, | |
| -2.5em 2.5em 0 #000, 2.5em -2.5em 0 #000 } | |
| .die { | |
| border: 1px solid #CCC; | |
| width: 50px; height: 50px; | |
| border-radius: 10px; | |
| position: relative; | |
| margin: 10px; | |
| font-size: 5px; | |
| display: inline-block; | |
| } | |
| .dot { | |
| width: 25%; | |
| height: 25%; | |
| left: 50%; | |
| top: 50%; | |
| margin: -12.5%; | |
| background: #000; | |
| border-radius: 50%; | |
| display: block; | |
| position: absolute; | |
| } | 
  
    
      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
    
  
  
    
  | <div class="die one"> <span class="dot"></span></div> | |
| <div class="die two"> <span class="dot"></span></div> | |
| <div class="die three"><span class="dot"></span></div> | |
| <div class="die four"> <span class="dot"></span></div> | |
| <div class="die five"> <span class="dot"></span></div> | 
  
    
      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-vertical","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