Skip to content

Instantly share code, notes, and snippets.

@siamak
Created August 11, 2014 16:37
Show Gist options
  • Save siamak/bc4c3479926da35f48f2 to your computer and use it in GitHub Desktop.
Save siamak/bc4c3479926da35f48f2 to your computer and use it in GitHub Desktop.
A Pen by Siamak Mokhtari.
%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 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment