Skip to content

Instantly share code, notes, and snippets.

@soulrider911
Created November 6, 2014 05:46
Show Gist options
  • Save soulrider911/20b59ef893bd3e23a758 to your computer and use it in GitHub Desktop.
Save soulrider911/20b59ef893bd3e23a758 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<header>
<div>
<a href="">Logo</a>
<h1>This is my Header</h1>
</div>
</header>
<section class='one'>
<div>
<h2>Section 1</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
</section>
<section class='two'>
<div>
<h2>Section 2</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
</section>
<section class='three'>
<div>
<h2>Section 3</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
</section>
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
@import "compass/reset";
@import "compass/css3";
@import "compass/typography";
//------------------Vertical Rythm------------------//
$base-font-size: 16px;
$base-line-height: 24px;
@include establish-baseline();
//------------------Variables------------------//
$asbestos : #7f8c8d;
$pumpkin : #d35400;
$blue : #2980b9;
$green : #27ae60;
*{
@include box-sizing(border-box);
}
body{
font-family: helvetica;
color: #fff;
//@include debug-vertical-alignment();
}
p{
@include padding-trailer();
}
section > div,
header > div{
padding: rhythm(4, $base-font-size) 4em;
}
section, header{
//@include opacity(.6);
}
header{
text-align: center;
background-color: $asbestos;
position: relative;
a{
position: absolute;
left: 20px;
text-decoration: none;
display: inline-block;
padding: 5px 20px;
background-color: lighten($asbestos, 20%);
color: $blue;
@include border-radius(4px);
@include transition(all .3s ease);
&:hover{
background-color: lighten($asbestos, 40%);
}
}
h1{
@include adjust-font-size-to(30px);
font-weight: 100;
text-transform: uppercase;
}
}
section{
h2{
@include adjust-font-size-to(24px);
//@include trailer();
}
&.one > div{
background-color: $pumpkin;
}
&.two > div{
background-color: $green;
}
&.three > div{
background-color: $blue;
}
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font: inherit;
font-size: 100%;
vertical-align: baseline;
}
html {
line-height: 1;
}
ol, ul {
list-style: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
caption, th, td {
text-align: left;
font-weight: normal;
vertical-align: middle;
}
q, blockquote {
quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after {
content: "";
content: none;
}
a img {
border: none;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
display: block;
}
html {
font-size: 100%;
line-height: 1.5em;
}
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
font-family: helvetica;
color: #fff;
}
p {
padding-bottom: 1.5em;
}
section > div,
header > div {
padding: 6em 4em;
}
header {
text-align: center;
background-color: #7f8c8d;
position: relative;
}
header a {
position: absolute;
left: 20px;
text-decoration: none;
display: inline-block;
padding: 5px 20px;
background-color: #b5bcbd;
color: #2980b9;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
-moz-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
}
header a:hover {
background-color: #ebeded;
}
header h1 {
font-size: 1.875em;
line-height: 1.6em;
font-weight: 100;
text-transform: uppercase;
}
section h2 {
font-size: 1.5em;
line-height: 2em;
}
section.one > div {
background-color: #d35400;
}
section.two > div {
background-color: #27ae60;
}
section.three > div {
background-color: #2980b9;
}
<header>
<div>
<a href="">Logo</a>
<h1>This is my Header</h1>
</div>
</header>
<section class='one'>
<div>
<h2>Section 1</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
</section>
<section class='two'>
<div>
<h2>Section 2</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
</section>
<section class='three'>
<div>
<h2>Section 3</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment