Skip to content

Instantly share code, notes, and snippets.

@micahgodbolt
Created May 18, 2015 20:10
Show Gist options
  • Save micahgodbolt/ee138259d8192c9d421d to your computer and use it in GitHub Desktop.
Save micahgodbolt/ee138259d8192c9d421d to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<html>
<body>
<section class="hero">
<img src="http://placehold.it/1024x664">
</section>
<section class="linkbox">
<nav>
<img src="http://placehold.it/320x164">
<img src="http://placehold.it/320x164">
<img src="http://placehold.it/320x164">
</nav>
</section>
</body>
</html>
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// Susy (v2.2.5)
// ----
@import susy
$susy: (columns: 12, gutter-position: split)
body
width: 1000px
margin: 0 auto
@include container(show)
section.hero
background-color: black
img
+full()
margin-bottom: 10px
max-width: 100%
height: auto
section.linkbox
//+container(show)
background-color: #062d3d
nav
img
+span(4)
max-width: 100%
height: auto
body {
width: 1000px;
margin: 0 auto;
max-width: 100%;
margin-left: auto;
margin-right: auto;
background-image: linear-gradient(to right, transparent 10%, rgba(102, 102, 255, 0.25) 10%, rgba(179, 179, 255, 0.25) 90%, transparent 90%);
background-size: 8.33333%;
background-origin: content-box;
background-clip: content-box;
background-position: left top;
}
body:after {
content: " ";
display: block;
clear: both;
}
section.hero {
background-color: black;
}
section.hero img {
clear: both;
width: 98.33333%;
float: left;
margin-left: 0.83333%;
margin-right: 0.83333%;
margin-bottom: 10px;
max-width: 100%;
height: auto;
}
section.linkbox {
background-color: #062d3d;
}
section.linkbox nav img {
width: 31.66667%;
float: left;
margin-left: 0.83333%;
margin-right: 0.83333%;
max-width: 100%;
height: auto;
}
<html>
<body>
<section class="hero">
<img src="http://placehold.it/1024x664">
</section>
<section class="linkbox">
<nav>
<img src="http://placehold.it/320x164">
<img src="http://placehold.it/320x164">
<img src="http://placehold.it/320x164">
</nav>
</section>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment