Created
January 12, 2014 07:01
-
-
Save mirisuzanne/8381814 to your computer and use it in GitHub Desktop.
Susy One Tutorial: Mobile-First Magic Grids [part 2]
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
<div class="page"> | |
<header class="banner"> | |
<p>Banner</p> | |
</header> | |
<nav class="pagenav"> | |
<p><a href="#">Page Nav</a></p> | |
</nav> | |
<main class="main"> | |
<aside class="summary"> | |
<p>Summary</p> | |
</aside> | |
<article class="content"> | |
<p>Main Content</p> | |
</article> | |
</main> | |
<footer class="contentinfo"> | |
<p>Content Info</p> | |
</footer> | |
</div> |
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.2.13) | |
// Compass (v0.12.2) | |
// Susy (v1.0.9) | |
// ---- | |
// imports | |
// ------- | |
@import "compass"; | |
@import "compass/reset"; | |
@import "susy"; | |
// Settings | |
$total-columns : 7; | |
$column-width : 4.25em; | |
$gutter-width : 1em; | |
$grid-padding : $gutter-width; | |
$break : 12; | |
// Container | |
.page { | |
@include container($total-columns, $break); | |
} | |
// Layout | |
@include at-breakpoint($break) { | |
.banner { @include prefix(2,$break); } | |
.pagenav { @include span-columns(2,$break); } | |
.main { | |
$main-columns: 10; | |
@include span-columns($main-columns omega, $break); | |
.content { @include span-columns(7,$main-columns) } | |
.summary { @include span-columns(3 omega, $main-columns) } | |
} | |
} | |
.contentinfo { | |
clear: both; | |
margin: 0 0 - $grid-padding; | |
padding: 0 $grid-padding; | |
@include at-breakpoint($break) { | |
margin: 0; | |
@include pad(2,3,$break); | |
} | |
} | |
// a bit of style... | |
// ----------------- | |
$grid-background-column-color: rgba(#aad, .25); | |
@include establish-baseline; | |
html { | |
font-family: sans-serif; | |
color: #444; | |
} | |
.page { | |
@include susy-grid-background; | |
@include at-breakpoint($break) { | |
@include susy-grid-background; | |
} | |
} | |
header { font-weight: bold; } | |
aside { font-style: italic; } | |
footer { background: rgba(#fcc, .75); } | |
p { | |
margin: 0; | |
padding: 1em 0; | |
} |
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, menu, nav, section, summary { | |
display: block; | |
} | |
.page { | |
*zoom: 1; | |
max-width: 35.75em; | |
_width: 35.75em; | |
padding-left: 1em; | |
padding-right: 1em; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
.page:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
@media (min-width: 62em) { | |
.page { | |
max-width: 62em; | |
} | |
} | |
@media (min-width: 62em) { | |
.banner { | |
padding-left: 16.93548%; | |
} | |
.pagenav { | |
width: 15.32258%; | |
float: left; | |
margin-right: 1.6129%; | |
} | |
.main { | |
width: 83.06452%; | |
float: right; | |
margin-right: 0; | |
} | |
.main .content { | |
width: 69.41748%; | |
float: left; | |
margin-right: 1.94175%; | |
} | |
.main .summary { | |
width: 28.64078%; | |
float: right; | |
margin-right: 0; | |
} | |
} | |
.contentinfo { | |
clear: both; | |
margin: 0 -1em; | |
padding: 0 1em; | |
} | |
@media (min-width: 62em) { | |
.contentinfo { | |
margin: 0; | |
padding-left: 16.93548%; | |
padding-right: 25.40323%; | |
} | |
} | |
* html { | |
font-size: 100%; | |
} | |
html { | |
font-size: 16px; | |
line-height: 1.5em; | |
} | |
html { | |
font-family: sans-serif; | |
color: #444; | |
} | |
.page { | |
background-image: -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(0%, rgba(170, 170, 221, 0.25)), color-stop(11.88811%, rgba(170, 170, 221, 0.25)), color-stop(11.88811%, rgba(0, 0, 0, 0)), color-stop(14.68531%, rgba(0, 0, 0, 0)), color-stop(14.68531%, rgba(170, 170, 221, 0.25)), color-stop(26.57343%, rgba(170, 170, 221, 0.25)), color-stop(26.57343%, rgba(0, 0, 0, 0)), color-stop(29.37063%, rgba(0, 0, 0, 0)), color-stop(29.37063%, rgba(170, 170, 221, 0.25)), color-stop(41.25874%, rgba(170, 170, 221, 0.25)), color-stop(41.25874%, rgba(0, 0, 0, 0)), color-stop(44.05594%, rgba(0, 0, 0, 0)), color-stop(44.05594%, rgba(170, 170, 221, 0.25)), color-stop(55.94406%, rgba(170, 170, 221, 0.25)), color-stop(55.94406%, rgba(0, 0, 0, 0)), color-stop(58.74126%, rgba(0, 0, 0, 0)), color-stop(58.74126%, rgba(170, 170, 221, 0.25)), color-stop(70.62937%, rgba(170, 170, 221, 0.25)), color-stop(70.62937%, rgba(0, 0, 0, 0)), color-stop(73.42657%, rgba(0, 0, 0, 0)), color-stop(73.42657%, rgba(170, 170, 221, 0.25)), color-stop(85.31469%, rgba(170, 170, 221, 0.25)), color-stop(85.31469%, rgba(0, 0, 0, 0)), color-stop(88.11189%, rgba(0, 0, 0, 0)), color-stop(88.11189%, rgba(170, 170, 221, 0.25)), color-stop(100%, rgba(170, 170, 221, 0.25)), color-stop(100%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0))); | |
background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(170, 170, 221, 0.25) 0%, rgba(170, 170, 221, 0.25) 11.88811%, rgba(0, 0, 0, 0) 11.88811%, rgba(0, 0, 0, 0) 14.68531%, rgba(170, 170, 221, 0.25) 14.68531%, rgba(170, 170, 221, 0.25) 26.57343%, rgba(0, 0, 0, 0) 26.57343%, rgba(0, 0, 0, 0) 29.37063%, rgba(170, 170, 221, 0.25) 29.37063%, rgba(170, 170, 221, 0.25) 41.25874%, rgba(0, 0, 0, 0) 41.25874%, rgba(0, 0, 0, 0) 44.05594%, rgba(170, 170, 221, 0.25) 44.05594%, rgba(170, 170, 221, 0.25) 55.94406%, rgba(0, 0, 0, 0) 55.94406%, rgba(0, 0, 0, 0) 58.74126%, rgba(170, 170, 221, 0.25) 58.74126%, rgba(170, 170, 221, 0.25) 70.62937%, rgba(0, 0, 0, 0) 70.62937%, rgba(0, 0, 0, 0) 73.42657%, rgba(170, 170, 221, 0.25) 73.42657%, rgba(170, 170, 221, 0.25) 85.31469%, rgba(0, 0, 0, 0) 85.31469%, rgba(0, 0, 0, 0) 88.11189%, rgba(170, 170, 221, 0.25) 88.11189%, rgba(170, 170, 221, 0.25) 100%, rgba(0, 0, 0, 0) 100%, rgba(0, 0, 0, 0) 100%); | |
background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(170, 170, 221, 0.25) 0%, rgba(170, 170, 221, 0.25) 11.88811%, rgba(0, 0, 0, 0) 11.88811%, rgba(0, 0, 0, 0) 14.68531%, rgba(170, 170, 221, 0.25) 14.68531%, rgba(170, 170, 221, 0.25) 26.57343%, rgba(0, 0, 0, 0) 26.57343%, rgba(0, 0, 0, 0) 29.37063%, rgba(170, 170, 221, 0.25) 29.37063%, rgba(170, 170, 221, 0.25) 41.25874%, rgba(0, 0, 0, 0) 41.25874%, rgba(0, 0, 0, 0) 44.05594%, rgba(170, 170, 221, 0.25) 44.05594%, rgba(170, 170, 221, 0.25) 55.94406%, rgba(0, 0, 0, 0) 55.94406%, rgba(0, 0, 0, 0) 58.74126%, rgba(170, 170, 221, 0.25) 58.74126%, rgba(170, 170, 221, 0.25) 70.62937%, rgba(0, 0, 0, 0) 70.62937%, rgba(0, 0, 0, 0) 73.42657%, rgba(170, 170, 221, 0.25) 73.42657%, rgba(170, 170, 221, 0.25) 85.31469%, rgba(0, 0, 0, 0) 85.31469%, rgba(0, 0, 0, 0) 88.11189%, rgba(170, 170, 221, 0.25) 88.11189%, rgba(170, 170, 221, 0.25) 100%, rgba(0, 0, 0, 0) 100%, rgba(0, 0, 0, 0) 100%); | |
background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(170, 170, 221, 0.25) 0%, rgba(170, 170, 221, 0.25) 11.88811%, rgba(0, 0, 0, 0) 11.88811%, rgba(0, 0, 0, 0) 14.68531%, rgba(170, 170, 221, 0.25) 14.68531%, rgba(170, 170, 221, 0.25) 26.57343%, rgba(0, 0, 0, 0) 26.57343%, rgba(0, 0, 0, 0) 29.37063%, rgba(170, 170, 221, 0.25) 29.37063%, rgba(170, 170, 221, 0.25) 41.25874%, rgba(0, 0, 0, 0) 41.25874%, rgba(0, 0, 0, 0) 44.05594%, rgba(170, 170, 221, 0.25) 44.05594%, rgba(170, 170, 221, 0.25) 55.94406%, rgba(0, 0, 0, 0) 55.94406%, rgba(0, 0, 0, 0) 58.74126%, rgba(170, 170, 221, 0.25) 58.74126%, rgba(170, 170, 221, 0.25) 70.62937%, rgba(0, 0, 0, 0) 70.62937%, rgba(0, 0, 0, 0) 73.42657%, rgba(170, 170, 221, 0.25) 73.42657%, rgba(170, 170, 221, 0.25) 85.31469%, rgba(0, 0, 0, 0) 85.31469%, rgba(0, 0, 0, 0) 88.11189%, rgba(170, 170, 221, 0.25) 88.11189%, rgba(170, 170, 221, 0.25) 100%, rgba(0, 0, 0, 0) 100%, rgba(0, 0, 0, 0) 100%); | |
background-image: linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(170, 170, 221, 0.25) 0%, rgba(170, 170, 221, 0.25) 11.88811%, rgba(0, 0, 0, 0) 11.88811%, rgba(0, 0, 0, 0) 14.68531%, rgba(170, 170, 221, 0.25) 14.68531%, rgba(170, 170, 221, 0.25) 26.57343%, rgba(0, 0, 0, 0) 26.57343%, rgba(0, 0, 0, 0) 29.37063%, rgba(170, 170, 221, 0.25) 29.37063%, rgba(170, 170, 221, 0.25) 41.25874%, rgba(0, 0, 0, 0) 41.25874%, rgba(0, 0, 0, 0) 44.05594%, rgba(170, 170, 221, 0.25) 44.05594%, rgba(170, 170, 221, 0.25) 55.94406%, rgba(0, 0, 0, 0) 55.94406%, rgba(0, 0, 0, 0) 58.74126%, rgba(170, 170, 221, 0.25) 58.74126%, rgba(170, 170, 221, 0.25) 70.62937%, rgba(0, 0, 0, 0) 70.62937%, rgba(0, 0, 0, 0) 73.42657%, rgba(170, 170, 221, 0.25) 73.42657%, rgba(170, 170, 221, 0.25) 85.31469%, rgba(0, 0, 0, 0) 85.31469%, rgba(0, 0, 0, 0) 88.11189%, rgba(170, 170, 221, 0.25) 88.11189%, rgba(170, 170, 221, 0.25) 100%, rgba(0, 0, 0, 0) 100%, rgba(0, 0, 0, 0) 100%); | |
background-position: left top; | |
-webkit-background-origin: content; | |
-moz-background-origin: content; | |
-ms-background-origin: content-box; | |
-o-background-origin: content-box; | |
background-origin: content-box; | |
-webkit-background-clip: content-box; | |
-moz-background-clip: content-box; | |
background-clip: content-box; | |
} | |
@media (min-width: 62em) { | |
.page { | |
background-image: -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(0%, rgba(170, 170, 221, 0.25)), color-stop(6.85484%, rgba(170, 170, 221, 0.25)), color-stop(6.85484%, rgba(0, 0, 0, 0)), color-stop(8.46774%, rgba(0, 0, 0, 0)), color-stop(8.46774%, rgba(170, 170, 221, 0.25)), color-stop(15.32258%, rgba(170, 170, 221, 0.25)), color-stop(15.32258%, rgba(0, 0, 0, 0)), color-stop(16.93548%, rgba(0, 0, 0, 0)), color-stop(16.93548%, rgba(170, 170, 221, 0.25)), color-stop(23.79032%, rgba(170, 170, 221, 0.25)), color-stop(23.79032%, rgba(0, 0, 0, 0)), color-stop(25.40323%, rgba(0, 0, 0, 0)), color-stop(25.40323%, rgba(170, 170, 221, 0.25)), color-stop(32.25806%, rgba(170, 170, 221, 0.25)), color-stop(32.25806%, rgba(0, 0, 0, 0)), color-stop(33.87097%, rgba(0, 0, 0, 0)), color-stop(33.87097%, rgba(170, 170, 221, 0.25)), color-stop(40.72581%, rgba(170, 170, 221, 0.25)), color-stop(40.72581%, rgba(0, 0, 0, 0)), color-stop(42.33871%, rgba(0, 0, 0, 0)), color-stop(42.33871%, rgba(170, 170, 221, 0.25)), color-stop(49.19355%, rgba(170, 170, 221, 0.25)), color-stop(49.19355%, rgba(0, 0, 0, 0)), color-stop(50.80645%, rgba(0, 0, 0, 0)), color-stop(50.80645%, rgba(170, 170, 221, 0.25)), color-stop(57.66129%, rgba(170, 170, 221, 0.25)), color-stop(57.66129%, rgba(0, 0, 0, 0)), color-stop(59.27419%, rgba(0, 0, 0, 0)), color-stop(59.27419%, rgba(170, 170, 221, 0.25)), color-stop(66.12903%, rgba(170, 170, 221, 0.25)), color-stop(66.12903%, rgba(0, 0, 0, 0)), color-stop(67.74194%, rgba(0, 0, 0, 0)), color-stop(67.74194%, rgba(170, 170, 221, 0.25)), color-stop(74.59677%, rgba(170, 170, 221, 0.25)), color-stop(74.59677%, rgba(0, 0, 0, 0)), color-stop(76.20968%, rgba(0, 0, 0, 0)), color-stop(76.20968%, rgba(170, 170, 221, 0.25)), color-stop(83.06452%, rgba(170, 170, 221, 0.25)), color-stop(83.06452%, rgba(0, 0, 0, 0)), color-stop(84.67742%, rgba(0, 0, 0, 0)), color-stop(84.67742%, rgba(170, 170, 221, 0.25)), color-stop(91.53226%, rgba(170, 170, 221, 0.25)), color-stop(91.53226%, rgba(0, 0, 0, 0)), color-stop(93.14516%, rgba(0, 0, 0, 0)), color-stop(93.14516%, rgba(170, 170, 221, 0.25)), color-stop(100%, rgba(170, 170, 221, 0.25)), color-stop(100%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0))); | |
background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(170, 170, 221, 0.25) 0%, rgba(170, 170, 221, 0.25) 6.85484%, rgba(0, 0, 0, 0) 6.85484%, rgba(0, 0, 0, 0) 8.46774%, rgba(170, 170, 221, 0.25) 8.46774%, rgba(170, 170, 221, 0.25) 15.32258%, rgba(0, 0, 0, 0) 15.32258%, rgba(0, 0, 0, 0) 16.93548%, rgba(170, 170, 221, 0.25) 16.93548%, rgba(170, 170, 221, 0.25) 23.79032%, rgba(0, 0, 0, 0) 23.79032%, rgba(0, 0, 0, 0) 25.40323%, rgba(170, 170, 221, 0.25) 25.40323%, rgba(170, 170, 221, 0.25) 32.25806%, rgba(0, 0, 0, 0) 32.25806%, rgba(0, 0, 0, 0) 33.87097%, rgba(170, 170, 221, 0.25) 33.87097%, rgba(170, 170, 221, 0.25) 40.72581%, rgba(0, 0, 0, 0) 40.72581%, rgba(0, 0, 0, 0) 42.33871%, rgba(170, 170, 221, 0.25) 42.33871%, rgba(170, 170, 221, 0.25) 49.19355%, rgba(0, 0, 0, 0) 49.19355%, rgba(0, 0, 0, 0) 50.80645%, rgba(170, 170, 221, 0.25) 50.80645%, rgba(170, 170, 221, 0.25) 57.66129%, rgba(0, 0, 0, 0) 57.66129%, rgba(0, 0, 0, 0) 59.27419%, rgba(170, 170, 221, 0.25) 59.27419%, rgba(170, 170, 221, 0.25) 66.12903%, rgba(0, 0, 0, 0) 66.12903%, rgba(0, 0, 0, 0) 67.74194%, rgba(170, 170, 221, 0.25) 67.74194%, rgba(170, 170, 221, 0.25) 74.59677%, rgba(0, 0, 0, 0) 74.59677%, rgba(0, 0, 0, 0) 76.20968%, rgba(170, 170, 221, 0.25) 76.20968%, rgba(170, 170, 221, 0.25) 83.06452%, rgba(0, 0, 0, 0) 83.06452%, rgba(0, 0, 0, 0) 84.67742%, rgba(170, 170, 221, 0.25) 84.67742%, rgba(170, 170, 221, 0.25) 91.53226%, rgba(0, 0, 0, 0) 91.53226%, rgba(0, 0, 0, 0) 93.14516%, rgba(170, 170, 221, 0.25) 93.14516%, rgba(170, 170, 221, 0.25) 100%, rgba(0, 0, 0, 0) 100%, rgba(0, 0, 0, 0) 100%); | |
background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(170, 170, 221, 0.25) 0%, rgba(170, 170, 221, 0.25) 6.85484%, rgba(0, 0, 0, 0) 6.85484%, rgba(0, 0, 0, 0) 8.46774%, rgba(170, 170, 221, 0.25) 8.46774%, rgba(170, 170, 221, 0.25) 15.32258%, rgba(0, 0, 0, 0) 15.32258%, rgba(0, 0, 0, 0) 16.93548%, rgba(170, 170, 221, 0.25) 16.93548%, rgba(170, 170, 221, 0.25) 23.79032%, rgba(0, 0, 0, 0) 23.79032%, rgba(0, 0, 0, 0) 25.40323%, rgba(170, 170, 221, 0.25) 25.40323%, rgba(170, 170, 221, 0.25) 32.25806%, rgba(0, 0, 0, 0) 32.25806%, rgba(0, 0, 0, 0) 33.87097%, rgba(170, 170, 221, 0.25) 33.87097%, rgba(170, 170, 221, 0.25) 40.72581%, rgba(0, 0, 0, 0) 40.72581%, rgba(0, 0, 0, 0) 42.33871%, rgba(170, 170, 221, 0.25) 42.33871%, rgba(170, 170, 221, 0.25) 49.19355%, rgba(0, 0, 0, 0) 49.19355%, rgba(0, 0, 0, 0) 50.80645%, rgba(170, 170, 221, 0.25) 50.80645%, rgba(170, 170, 221, 0.25) 57.66129%, rgba(0, 0, 0, 0) 57.66129%, rgba(0, 0, 0, 0) 59.27419%, rgba(170, 170, 221, 0.25) 59.27419%, rgba(170, 170, 221, 0.25) 66.12903%, rgba(0, 0, 0, 0) 66.12903%, rgba(0, 0, 0, 0) 67.74194%, rgba(170, 170, 221, 0.25) 67.74194%, rgba(170, 170, 221, 0.25) 74.59677%, rgba(0, 0, 0, 0) 74.59677%, rgba(0, 0, 0, 0) 76.20968%, rgba(170, 170, 221, 0.25) 76.20968%, rgba(170, 170, 221, 0.25) 83.06452%, rgba(0, 0, 0, 0) 83.06452%, rgba(0, 0, 0, 0) 84.67742%, rgba(170, 170, 221, 0.25) 84.67742%, rgba(170, 170, 221, 0.25) 91.53226%, rgba(0, 0, 0, 0) 91.53226%, rgba(0, 0, 0, 0) 93.14516%, rgba(170, 170, 221, 0.25) 93.14516%, rgba(170, 170, 221, 0.25) 100%, rgba(0, 0, 0, 0) 100%, rgba(0, 0, 0, 0) 100%); | |
background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(170, 170, 221, 0.25) 0%, rgba(170, 170, 221, 0.25) 6.85484%, rgba(0, 0, 0, 0) 6.85484%, rgba(0, 0, 0, 0) 8.46774%, rgba(170, 170, 221, 0.25) 8.46774%, rgba(170, 170, 221, 0.25) 15.32258%, rgba(0, 0, 0, 0) 15.32258%, rgba(0, 0, 0, 0) 16.93548%, rgba(170, 170, 221, 0.25) 16.93548%, rgba(170, 170, 221, 0.25) 23.79032%, rgba(0, 0, 0, 0) 23.79032%, rgba(0, 0, 0, 0) 25.40323%, rgba(170, 170, 221, 0.25) 25.40323%, rgba(170, 170, 221, 0.25) 32.25806%, rgba(0, 0, 0, 0) 32.25806%, rgba(0, 0, 0, 0) 33.87097%, rgba(170, 170, 221, 0.25) 33.87097%, rgba(170, 170, 221, 0.25) 40.72581%, rgba(0, 0, 0, 0) 40.72581%, rgba(0, 0, 0, 0) 42.33871%, rgba(170, 170, 221, 0.25) 42.33871%, rgba(170, 170, 221, 0.25) 49.19355%, rgba(0, 0, 0, 0) 49.19355%, rgba(0, 0, 0, 0) 50.80645%, rgba(170, 170, 221, 0.25) 50.80645%, rgba(170, 170, 221, 0.25) 57.66129%, rgba(0, 0, 0, 0) 57.66129%, rgba(0, 0, 0, 0) 59.27419%, rgba(170, 170, 221, 0.25) 59.27419%, rgba(170, 170, 221, 0.25) 66.12903%, rgba(0, 0, 0, 0) 66.12903%, rgba(0, 0, 0, 0) 67.74194%, rgba(170, 170, 221, 0.25) 67.74194%, rgba(170, 170, 221, 0.25) 74.59677%, rgba(0, 0, 0, 0) 74.59677%, rgba(0, 0, 0, 0) 76.20968%, rgba(170, 170, 221, 0.25) 76.20968%, rgba(170, 170, 221, 0.25) 83.06452%, rgba(0, 0, 0, 0) 83.06452%, rgba(0, 0, 0, 0) 84.67742%, rgba(170, 170, 221, 0.25) 84.67742%, rgba(170, 170, 221, 0.25) 91.53226%, rgba(0, 0, 0, 0) 91.53226%, rgba(0, 0, 0, 0) 93.14516%, rgba(170, 170, 221, 0.25) 93.14516%, rgba(170, 170, 221, 0.25) 100%, rgba(0, 0, 0, 0) 100%, rgba(0, 0, 0, 0) 100%); | |
background-image: linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(170, 170, 221, 0.25) 0%, rgba(170, 170, 221, 0.25) 6.85484%, rgba(0, 0, 0, 0) 6.85484%, rgba(0, 0, 0, 0) 8.46774%, rgba(170, 170, 221, 0.25) 8.46774%, rgba(170, 170, 221, 0.25) 15.32258%, rgba(0, 0, 0, 0) 15.32258%, rgba(0, 0, 0, 0) 16.93548%, rgba(170, 170, 221, 0.25) 16.93548%, rgba(170, 170, 221, 0.25) 23.79032%, rgba(0, 0, 0, 0) 23.79032%, rgba(0, 0, 0, 0) 25.40323%, rgba(170, 170, 221, 0.25) 25.40323%, rgba(170, 170, 221, 0.25) 32.25806%, rgba(0, 0, 0, 0) 32.25806%, rgba(0, 0, 0, 0) 33.87097%, rgba(170, 170, 221, 0.25) 33.87097%, rgba(170, 170, 221, 0.25) 40.72581%, rgba(0, 0, 0, 0) 40.72581%, rgba(0, 0, 0, 0) 42.33871%, rgba(170, 170, 221, 0.25) 42.33871%, rgba(170, 170, 221, 0.25) 49.19355%, rgba(0, 0, 0, 0) 49.19355%, rgba(0, 0, 0, 0) 50.80645%, rgba(170, 170, 221, 0.25) 50.80645%, rgba(170, 170, 221, 0.25) 57.66129%, rgba(0, 0, 0, 0) 57.66129%, rgba(0, 0, 0, 0) 59.27419%, rgba(170, 170, 221, 0.25) 59.27419%, rgba(170, 170, 221, 0.25) 66.12903%, rgba(0, 0, 0, 0) 66.12903%, rgba(0, 0, 0, 0) 67.74194%, rgba(170, 170, 221, 0.25) 67.74194%, rgba(170, 170, 221, 0.25) 74.59677%, rgba(0, 0, 0, 0) 74.59677%, rgba(0, 0, 0, 0) 76.20968%, rgba(170, 170, 221, 0.25) 76.20968%, rgba(170, 170, 221, 0.25) 83.06452%, rgba(0, 0, 0, 0) 83.06452%, rgba(0, 0, 0, 0) 84.67742%, rgba(170, 170, 221, 0.25) 84.67742%, rgba(170, 170, 221, 0.25) 91.53226%, rgba(0, 0, 0, 0) 91.53226%, rgba(0, 0, 0, 0) 93.14516%, rgba(170, 170, 221, 0.25) 93.14516%, rgba(170, 170, 221, 0.25) 100%, rgba(0, 0, 0, 0) 100%, rgba(0, 0, 0, 0) 100%); | |
background-position: left top; | |
-webkit-background-origin: content; | |
-moz-background-origin: content; | |
-ms-background-origin: content-box; | |
-o-background-origin: content-box; | |
background-origin: content-box; | |
-webkit-background-clip: content-box; | |
-moz-background-clip: content-box; | |
background-clip: content-box; | |
} | |
} | |
header { | |
font-weight: bold; | |
} | |
aside { | |
font-style: italic; | |
} | |
footer { | |
background: rgba(255, 204, 204, 0.75); | |
} | |
p { | |
margin: 0; | |
padding: 1em 0; | |
} |
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
<div class="page"> | |
<header class="banner"> | |
<p>Banner</p> | |
</header> | |
<nav class="pagenav"> | |
<p><a href="#">Page Nav</a></p> | |
</nav> | |
<main class="main"> | |
<aside class="summary"> | |
<p>Summary</p> | |
</aside> | |
<article class="content"> | |
<p>Main Content</p> | |
</article> | |
</main> | |
<footer class="contentinfo"> | |
<p>Content Info</p> | |
</footer> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment