Created
July 30, 2014 15:36
-
-
Save geibi/fd882d54a8ad505e2188 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>vertical rhythm</title> | |
<link rel="stylesheet" href="css/style.css"> | |
</head> | |
<body> | |
<h1>Headline</h1> | |
<h2>Subheadline</h2> | |
<p> | |
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat, natus, sapiente quasi est suscipit placeat temporibus omnis deleniti repudiandae incidunt voluptates maxime similique distinctio rerum possimus obcaecati esse facilis saepe! | |
</p> | |
<div class="meta"> | |
metadata somewhere around here<br /> | |
metadata somewhere around here<br /> | |
metadata somewhere around here<br /> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.12) | |
// Compass (v1.0.0.alpha.21) | |
// ---- | |
@import "compass"; | |
@include global-reset(); | |
$base-font-size: 16px; | |
$base-line-height: 24px; | |
@include establish-baseline(); | |
*{ | |
@include box-sizing('border-box'); | |
} | |
html{ | |
@include debug-vertical-alignment(); | |
} | |
h1{ | |
@include adjust-font-size-to(42px); | |
} | |
h2{ | |
@include adjust-font-size-to(31px); | |
@include rhythm(0.5, 0, 0, 0.5, 31px); | |
} | |
.meta{ | |
@include adjust-font-size-to(12px, 2/3); | |
@include leading-border(2px, .5); | |
@include trailing-border(2px, .5); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
html { | |
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjEuMCIgeDI9IjAuNSIgeTI9IjAuMCI+PHN0b3Agb2Zmc2V0PSI1JSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjUiLz48c3RvcCBvZmZzZXQ9IjUlIiBzdG9wLWNvbG9yPSIjMDAwMDAwIiBzdG9wLW9wYWNpdHk9IjAuMCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA=='); | |
background-size: 100%; | |
background-image: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%); | |
background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%); | |
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%); | |
-moz-background-size: 100% 1.5em; | |
-webkit-background-size: 100% 1.5em; | |
background-size: 100% 1.5em; | |
background-position: left top; | |
} | |
h1 { | |
font-size: 2.625em; | |
line-height: 1.14286em; | |
} | |
h2 { | |
font-size: 1.9375em; | |
line-height: 1.54839em; | |
margin-top: 0.3871em; | |
padding-top: 0em; | |
padding-bottom: 0em; | |
margin-bottom: 0.3871em; | |
} | |
.meta { | |
font-size: 0.75em; | |
line-height: 1.33333em; | |
border-top-width: 0.125em; | |
border-top-style: solid; | |
padding-top: 0.625em; | |
border-bottom-width: 0.125em; | |
border-bottom-style: solid; | |
padding-bottom: 0.625em; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>vertical rhythm</title> | |
<link rel="stylesheet" href="css/style.css"> | |
</head> | |
<body> | |
<h1>Headline</h1> | |
<h2>Subheadline</h2> | |
<p> | |
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat, natus, sapiente quasi est suscipit placeat temporibus omnis deleniti repudiandae incidunt voluptates maxime similique distinctio rerum possimus obcaecati esse facilis saepe! | |
</p> | |
<div class="meta"> | |
metadata somewhere around here<br /> | |
metadata somewhere around here<br /> | |
metadata somewhere around here<br /> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment