.container
- for i in 1..16
- for j in 1..256
div class="l#{i}"
p.on ON
p OFF
View Compiled
@import compass
$in: 0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0
.container
div
opacity: 0.004
background: white
@for $b from 1 through length($in)
@if nth($in,$b) == 1
.l#{$b}
background: red
// Everything below this is beside the point...
.container
position: fixed
top: 50%
left: 50%
height: 120px
width: 120px
margin: -62px
border: 4px solid black
font: bold 32px/#{60px} sans-serif
text-align: center
color: red
div
position: absolute
top: 0
left: 0
height: 100%
width: 100%
p
position: relative
.on
color: white
View Compiled
This Pen doesn't use any external CSS resources.