Created
February 24, 2016 09:54
-
-
Save csswizardry/16798933a06999454156 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
<h1>HTML Ipsum Presents</h1> | |
<p><strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. <a href="#">Donec non enim</a> in turpis pulvinar facilisis. Ut felis.</p> | |
<h2>Header Level 2</h2> | |
<ol> | |
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li> | |
<li>Aliquam tincidunt mauris eu risus.</li> | |
</ol> | |
<blockquote><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.</p></blockquote> | |
<h3>Header Level 3</h3> | |
<ul> | |
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li> | |
<li>Aliquam tincidunt mauris eu risus.</li> | |
</ul> | |
<pre><code>#header h1 a { | |
display: block; | |
width: 300px; | |
height: 80px; | |
}</code></pre> |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
// _settings.global.scss | |
$base-font-size: 16px; | |
$base-line-height: 24px; | |
$base-spacing-unit: $base-line-height; | |
$font-size-headings: 18px; | |
// _tools.mixins.scss | |
@mixin font-size($font-size, $line-height: auto) { | |
font-size: $font-size; | |
font-size: ($font-size / $base-font-size) * 1rem; | |
@if $line-height == auto { | |
line-height: ceil($font-size / $base-line-height) * ($base-line-height / $font-size); | |
} | |
@else { | |
@if (type-of($line-height) == number or $line-height == inherit or $line-height == normal) { | |
line-height: $line-height; | |
} | |
@elseif ($line-height != none and $line-height != false) { | |
@warn "D’oh! ‘#{$line-height}’ is not a valid value for `line-height`." | |
} | |
} | |
} | |
// _generic.reset.scss | |
/** | |
* Please use a nicer reset in production. | |
*/ | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
// _generic.shared.scss | |
h1, h2, h3, h4, h5, h6, | |
ul, ol, dl, | |
blockquote, p, address, | |
hr, | |
table, | |
fieldset, figure, | |
pre { | |
margin-bottom: $base-spacing-unit; | |
margin-bottom: ($base-spacing-unit / $base-font-size) * 1rem; | |
} | |
// _elements.page.scss | |
html { | |
font: menu; | |
font-size: ($base-font-size / 16px) * 1em; | |
line-height: $base-line-height / $base-font-size; | |
} | |
// _elements.headings.scss | |
h1, h2, h3, h4, h5, h6 { | |
@include font-size($font-size-headings); | |
font-weight: bold; | |
} | |
// _trumps.spacing.scss | |
$properties: ( | |
margin: m, | |
padding: p | |
); | |
$directions: ( | |
null: '', | |
-top: t, | |
-right: r, | |
-bottom: b, | |
-left: l | |
); | |
$sizes:( | |
null: 1, | |
-sm: 0.5, | |
-lg: 2 | |
); | |
@each $property, $alias in $properties { | |
@each $direction, $shorthand in $directions { | |
@each $size, $factor in $sizes { | |
.u-#{$alias}#{$shorthand}#{$size} { | |
#{$property}#{$direction}: $base-spacing-unit * $factor !important; | |
} | |
} | |
} | |
} |
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
/** | |
* Please use a nicer reset in production. | |
*/ | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
h1, h2, h3, h4, h5, h6, | |
ul, ol, dl, | |
blockquote, p, address, | |
hr, | |
table, | |
fieldset, figure, | |
pre { | |
margin-bottom: 24px; | |
margin-bottom: 1.5rem; | |
} | |
html { | |
font: menu; | |
font-size: 1em; | |
line-height: 1.5; | |
} | |
h1, h2, h3, h4, h5, h6 { | |
font-size: 18px; | |
font-size: 1.125rem; | |
line-height: 1.33333; | |
font-weight: bold; | |
} | |
.u-m { | |
margin: 24px !important; | |
} | |
.u-m-sm { | |
margin: 12px !important; | |
} | |
.u-m-lg { | |
margin: 48px !important; | |
} | |
.u-mt { | |
margin-top: 24px !important; | |
} | |
.u-mt-sm { | |
margin-top: 12px !important; | |
} | |
.u-mt-lg { | |
margin-top: 48px !important; | |
} | |
.u-mr { | |
margin-right: 24px !important; | |
} | |
.u-mr-sm { | |
margin-right: 12px !important; | |
} | |
.u-mr-lg { | |
margin-right: 48px !important; | |
} | |
.u-mb { | |
margin-bottom: 24px !important; | |
} | |
.u-mb-sm { | |
margin-bottom: 12px !important; | |
} | |
.u-mb-lg { | |
margin-bottom: 48px !important; | |
} | |
.u-ml { | |
margin-left: 24px !important; | |
} | |
.u-ml-sm { | |
margin-left: 12px !important; | |
} | |
.u-ml-lg { | |
margin-left: 48px !important; | |
} | |
.u-p { | |
padding: 24px !important; | |
} | |
.u-p-sm { | |
padding: 12px !important; | |
} | |
.u-p-lg { | |
padding: 48px !important; | |
} | |
.u-pt { | |
padding-top: 24px !important; | |
} | |
.u-pt-sm { | |
padding-top: 12px !important; | |
} | |
.u-pt-lg { | |
padding-top: 48px !important; | |
} | |
.u-pr { | |
padding-right: 24px !important; | |
} | |
.u-pr-sm { | |
padding-right: 12px !important; | |
} | |
.u-pr-lg { | |
padding-right: 48px !important; | |
} | |
.u-pb { | |
padding-bottom: 24px !important; | |
} | |
.u-pb-sm { | |
padding-bottom: 12px !important; | |
} | |
.u-pb-lg { | |
padding-bottom: 48px !important; | |
} | |
.u-pl { | |
padding-left: 24px !important; | |
} | |
.u-pl-sm { | |
padding-left: 12px !important; | |
} | |
.u-pl-lg { | |
padding-left: 48px !important; | |
} |
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
<h1>HTML Ipsum Presents</h1> | |
<p><strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. <a href="#">Donec non enim</a> in turpis pulvinar facilisis. Ut felis.</p> | |
<h2>Header Level 2</h2> | |
<ol> | |
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li> | |
<li>Aliquam tincidunt mauris eu risus.</li> | |
</ol> | |
<blockquote><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.</p></blockquote> | |
<h3>Header Level 3</h3> | |
<ul> | |
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li> | |
<li>Aliquam tincidunt mauris eu risus.</li> | |
</ul> | |
<pre><code>#header h1 a { | |
display: block; | |
width: 300px; | |
height: 80px; | |
}</code></pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment