Replace any sample text
A Pen by Siamak Mokhtari on CodePen.
Replace any sample text
A Pen by Siamak Mokhtari on CodePen.
%section.container | |
%h1 blokk style with css | |
%h3 Created by <a href="http://twitter.com/sia_mac" target="_blank">Siamak Mokhtari</a> – Augest 2014. | |
- (1...100).each do |i| | |
%i{:data => {:line => ''}} |
@import "bourbon"; | |
@import url(http://fonts.googleapis.com/css?family=Droid+Sans); | |
body{ | |
background-color:#3a253e; | |
font-family:Droid Sans,Arial; | |
color:#725f76; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
a{ | |
color:#a190a4; | |
text-decoration: none; | |
} | |
section.container{ | |
max-width:35rem; | |
margin:5rem auto 2.5rem; | |
text-align:center; | |
& h1 { | |
font-size:2rem; | |
margin-bottom:0rem; | |
text-transform: uppercase; | |
} | |
& h3 { | |
font-size:1rem; | |
margin-bottom:2rem; | |
margin-top:.75rem; | |
} | |
&:after{ | |
content:''; | |
position:fixed; | |
bottom:0; | |
left:0; | |
width: 100%; | |
height: 40%; | |
background-image: -webkit-linear-gradient(bottom, #3E253C, rgba(62, 37, 60, 0)); | |
background-image: -moz-linear-gradient(bottom, #3E253C, rgba(62, 37, 60, 0)); | |
background-image: -o-linear-gradient(bottom, #3E253C, rgba(62, 37, 60, 0)); | |
background-image: linear-gradient(to top, #3E253C, rgba(62, 37, 60, 0)); | |
} | |
} | |
/* Start lines */ | |
i[data-line]{ | |
display: inline-block; | |
height: .4rem; | |
width: 15rem; // !defualt | |
margin:0 .25rem; | |
background-color:#a193a4; | |
max-width:100%; | |
} | |
@for $i from 1 through 100 { | |
i[data-line]:nth-child(#{$i}) { | |
width:(100% / ($i / 6) / 2); | |
} | |
} | |
i[data-line]:nth-child(even) { | |
width:((100% / 3) / 2); | |
} | |
/* End lines */ |