wallop
Version:
wallop is a minimal 4kb library for showing & hiding things
40 lines (33 loc) • 660 B
CSS
body {
font-family: "Helvetica Neue", Helvetica, Arial;
}
.Container {
max-width: 480px;
margin: 0 auto;
overflow: hidden;
}
.Wallop--1,
.Wallop--2 {
float: left;
max-width: 45%;
}
.Wallop--2 {
float: right;
}
.Wallop-item:before {
position: absolute;
top: 30px;
right: 30px;
font-size: 40px;
text-align: center;
line-height: 0;
}
.Wallop-item:nth-child(1):before {content:"0";}
.Wallop-item:nth-child(2):before {content:"1";}
.Wallop-item:nth-child(3):before {content:"2";}
.Wallop-item:nth-child(4):before {content:"3";}
.Wallop-item:nth-child(5):before {content:"4";}
.Wallop img {
vertical-align: middle;
width: 100%;
}