Skip to content

Instantly share code, notes, and snippets.

@l3dlp
Created November 23, 2018 19:37
Show Gist options
  • Save l3dlp/41c5088e09856e2adff106df680a04a6 to your computer and use it in GitHub Desktop.
Save l3dlp/41c5088e09856e2adff106df680a04a6 to your computer and use it in GitHub Desktop.
BLOKK STYLE WITH CSS
%section.container
%h1 block style with css
%h3 Created by <a href="https://twitter.com/sia_mac" target="_blank">Siamak Mokhtari</a> – Augest 2014.
%h3 Modified by <a href="https://twitter.com/l3dlp" target="_blank">L3DLP</a> – November 2018.
%hr
- (1...1000).each do |i|
%i{:data => {:line => ''}}
@import "bourbon";
@import url(https://fonts.googleapis.com/css?family=Droid+Sans);
body{
background-color:#366e80;
font-family:Droid Sans,Arial;
color:rgba(255,255,255,0.5);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a{
color:#ffffff;
text-decoration: none;
}
hr {
color: #fff;
border: 3px solid rgba(255,255,255,1);
box-shadow: rgba(255,255,255,0.5) 0 0 50px;
margin: 72px 0 5px;
padding: 0;
height: 0;
width: 100%;
}
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:.75rem;
margin-top:.5rem;
}
&:after{
content:'';
position:fixed;
bottom:0;
left:0;
width: 100%;
height: 50vh;
background-image: -webkit-linear-gradient(bottom, #366e80, rgba(62, 37, 60, 0));
background-image: -moz-linear-gradient(bottom, #366e80, rgba(62, 37, 60, 0));
background-image: -o-linear-gradient(bottom, #366e80, rgba(62, 37, 60, 0));
background-image: linear-gradient(to top, #366e80, rgba(62, 37, 60, 0));
}
}
/* Start lines */
i[data-line]{
display: inline-block;
height: .4rem;
width: 15rem; // !defualt
margin:0 .25rem;
background-color:rgba(255,255,255,0.5);
max-width:100%;
}
@for $i from 1 through 1000 {
i[data-line]:nth-child(#{$i}) {
width:(100% * random(20)/100);
}
}
i[data-line]:nth-child(even) {
width:(100% * random(10)/100);
}
/* End lines */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment