Last active
August 29, 2015 14:06
-
-
Save HipsterBrown/2c3ba40d182cfa846440 to your computer and use it in GitHub Desktop.
Dribbble Content Grid generated by Bourbon, Neat, and Bitters
This file contains hidden or 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
- var i = 0 | |
ul.shots | |
while i < 8 | |
li.shot | |
img(src="http://placehold.it/200x150") | |
ul | |
li 471 | |
li 45 | |
li 4806 | |
- i++ |
This file contains hidden or 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.4.4) | |
// Compass (v1.0.1) | |
// Bitters (v0.10.0) | |
// Bourbon (v4.0.2) | |
// Neat (v1.6.0) | |
// ---- | |
@import "bourbon/bourbon"; | |
$visual-grid: true; | |
$visual-grid-color: red; | |
$visual-grid-index: "back"; | |
$visual-grid-opacity: .5; | |
@import "neat/neat"; | |
@import "bitters/bitters"; | |
body { | |
background: #f4f4f3; | |
} | |
.shots { | |
@include outer-container; | |
} | |
.shot { | |
@include span-columns(3); | |
@include omega(4n); | |
@include pad(.5em); | |
background: white; | |
border-radius: 3px; | |
box-shadow: 0 1px 2px rgba(0,0,0,0.07); | |
margin-bottom: 2em; | |
img { | |
@include fill-parent; | |
background: #e7e7e7; | |
border: none; | |
} | |
ul { | |
@include row($direction: RTL); | |
li { | |
@include span-columns(2.5); | |
color: #aaa; | |
text-align: right; | |
} | |
} | |
} |
This file contains hidden or 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
* { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
body:before { | |
content: ''; | |
display: inline-block; | |
background-image: deprecated-webkit-gradient(linear, left top, left bottom, transparent 0, red 0, red 6.17215%, transparent 6.17215%, transparent 8.5298%, red 8.5298%, red 14.70196%, transparent 14.70196%, transparent 17.05961%, red 17.05961%, red 23.23176%, transparent 23.23176%, transparent 25.58941%, red 25.58941%, red 31.76157%, transparent 31.76157%, transparent 34.11922%, red 34.11922%, red 40.29137%, transparent 40.29137%, transparent 42.64902%, red 42.64902%, red 48.82117%, transparent 48.82117%, transparent 51.17883%, red 51.17883%, red 57.35098%, transparent 57.35098%, transparent 59.70863%, red 59.70863%, red 65.88078%, transparent 65.88078%, transparent 68.23843%, red 68.23843%, red 74.41059%, transparent 74.41059%, transparent 76.76824%, red 76.76824%, red 82.94039%, transparent 82.94039%, transparent 85.29804%, red 85.29804%, red 91.4702%, transparent 91.4702%, transparent 93.82785%, red 93.82785%, red 100.0%, transparent 100.0%); | |
background-image: -webkit-linear-gradient(left, transparent 0, red 0, red 6.17215%, transparent 6.17215%, transparent 8.5298%, red 8.5298%, red 14.70196%, transparent 14.70196%, transparent 17.05961%, red 17.05961%, red 23.23176%, transparent 23.23176%, transparent 25.58941%, red 25.58941%, red 31.76157%, transparent 31.76157%, transparent 34.11922%, red 34.11922%, red 40.29137%, transparent 40.29137%, transparent 42.64902%, red 42.64902%, red 48.82117%, transparent 48.82117%, transparent 51.17883%, red 51.17883%, red 57.35098%, transparent 57.35098%, transparent 59.70863%, red 59.70863%, red 65.88078%, transparent 65.88078%, transparent 68.23843%, red 68.23843%, red 74.41059%, transparent 74.41059%, transparent 76.76824%, red 76.76824%, red 82.94039%, transparent 82.94039%, transparent 85.29804%, red 85.29804%, red 91.4702%, transparent 91.4702%, transparent 93.82785%, red 93.82785%, red 100.0%, transparent 100.0%); | |
background-image: -moz-linear-gradient(left, transparent 0, red 0, red 6.17215%, transparent 6.17215%, transparent 8.5298%, red 8.5298%, red 14.70196%, transparent 14.70196%, transparent 17.05961%, red 17.05961%, red 23.23176%, transparent 23.23176%, transparent 25.58941%, red 25.58941%, red 31.76157%, transparent 31.76157%, transparent 34.11922%, red 34.11922%, red 40.29137%, transparent 40.29137%, transparent 42.64902%, red 42.64902%, red 48.82117%, transparent 48.82117%, transparent 51.17883%, red 51.17883%, red 57.35098%, transparent 57.35098%, transparent 59.70863%, red 59.70863%, red 65.88078%, transparent 65.88078%, transparent 68.23843%, red 68.23843%, red 74.41059%, transparent 74.41059%, transparent 76.76824%, red 76.76824%, red 82.94039%, transparent 82.94039%, transparent 85.29804%, red 85.29804%, red 91.4702%, transparent 91.4702%, transparent 93.82785%, red 93.82785%, red 100.0%, transparent 100.0%); | |
background-image: -ms-linear-gradient(left, transparent 0, red 0, red 6.17215%, transparent 6.17215%, transparent 8.5298%, red 8.5298%, red 14.70196%, transparent 14.70196%, transparent 17.05961%, red 17.05961%, red 23.23176%, transparent 23.23176%, transparent 25.58941%, red 25.58941%, red 31.76157%, transparent 31.76157%, transparent 34.11922%, red 34.11922%, red 40.29137%, transparent 40.29137%, transparent 42.64902%, red 42.64902%, red 48.82117%, transparent 48.82117%, transparent 51.17883%, red 51.17883%, red 57.35098%, transparent 57.35098%, transparent 59.70863%, red 59.70863%, red 65.88078%, transparent 65.88078%, transparent 68.23843%, red 68.23843%, red 74.41059%, transparent 74.41059%, transparent 76.76824%, red 76.76824%, red 82.94039%, transparent 82.94039%, transparent 85.29804%, red 85.29804%, red 91.4702%, transparent 91.4702%, transparent 93.82785%, red 93.82785%, red 100.0%, transparent 100.0%); | |
background-image: -o-linear-gradient(left, transparent 0, red 0, red 6.17215%, transparent 6.17215%, transparent 8.5298%, red 8.5298%, red 14.70196%, transparent 14.70196%, transparent 17.05961%, red 17.05961%, red 23.23176%, transparent 23.23176%, transparent 25.58941%, red 25.58941%, red 31.76157%, transparent 31.76157%, transparent 34.11922%, red 34.11922%, red 40.29137%, transparent 40.29137%, transparent 42.64902%, red 42.64902%, red 48.82117%, transparent 48.82117%, transparent 51.17883%, red 51.17883%, red 57.35098%, transparent 57.35098%, transparent 59.70863%, red 59.70863%, red 65.88078%, transparent 65.88078%, transparent 68.23843%, red 68.23843%, red 74.41059%, transparent 74.41059%, transparent 76.76824%, red 76.76824%, red 82.94039%, transparent 82.94039%, transparent 85.29804%, red 85.29804%, red 91.4702%, transparent 91.4702%, transparent 93.82785%, red 93.82785%, red 100.0%, transparent 100.0%); | |
background-image: linear-gradient(left, transparent 0, red 0, red 6.17215%, transparent 6.17215%, transparent 8.5298%, red 8.5298%, red 14.70196%, transparent 14.70196%, transparent 17.05961%, red 17.05961%, red 23.23176%, transparent 23.23176%, transparent 25.58941%, red 25.58941%, red 31.76157%, transparent 31.76157%, transparent 34.11922%, red 34.11922%, red 40.29137%, transparent 40.29137%, transparent 42.64902%, red 42.64902%, red 48.82117%, transparent 48.82117%, transparent 51.17883%, red 51.17883%, red 57.35098%, transparent 57.35098%, transparent 59.70863%, red 59.70863%, red 65.88078%, transparent 65.88078%, transparent 68.23843%, red 68.23843%, red 74.41059%, transparent 74.41059%, transparent 76.76824%, red 76.76824%, red 82.94039%, transparent 82.94039%, transparent 85.29804%, red 85.29804%, red 91.4702%, transparent 91.4702%, transparent 93.82785%, red 93.82785%, red 100.0%, transparent 100.0%); | |
height: 100%; | |
left: 0; | |
margin: 0 auto; | |
max-width: 68em; | |
opacity: 0.5; | |
position: fixed; | |
right: 0; | |
width: 100%; | |
pointer-events: none; | |
z-index: -1; | |
} | |
button, | |
input[type="submit"] { | |
-webkit-font-smoothing: antialiased; | |
background-color: #477DCA; | |
border-radius: 0.1875em; | |
color: white; | |
display: inline-block; | |
font-size: 1em; | |
font-weight: bold; | |
line-height: 1; | |
padding: .75em 1em; | |
text-decoration: none; | |
} | |
button:hover, | |
input[type="submit"]:hover { | |
background-color: #2c5999; | |
color: white; | |
} | |
body { | |
-webkit-font-smoothing: antialiased; | |
background-color: white; | |
color: #333; | |
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; | |
font-size: 1em; | |
line-height: 1.5; | |
} | |
h1, h2, h3, h4, h5, h6 { | |
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; | |
line-height: 1.25em; | |
margin: 0; | |
text-rendering: optimizeLegibility; | |
} | |
h1 { | |
font-size: 2.25em; | |
} | |
h2 { | |
font-size: 2em; | |
} | |
h3 { | |
font-size: 1.75em; | |
} | |
h4 { | |
font-size: 1.5em; | |
} | |
h5 { | |
font-size: 1.25em; | |
} | |
h6 { | |
font-size: 1em; | |
} | |
p { | |
margin: 0 0 0.75em; | |
} | |
a { | |
-webkit-transition: color 0.1s linear; | |
-moz-transition: color 0.1s linear; | |
transition: color 0.1s linear; | |
color: #477DCA; | |
text-decoration: none; | |
} | |
a:hover { | |
color: #2c5999; | |
} | |
a:active, a:focus { | |
color: #2c5999; | |
outline: none; | |
} | |
hr { | |
border-bottom: 1px solid #DDD; | |
border-left: none; | |
border-right: none; | |
border-top: none; | |
margin: 1.5em 0; | |
} | |
img { | |
margin: 0; | |
max-width: 100%; | |
} | |
blockquote { | |
border-left: 2px solid #DDD; | |
color: #595959; | |
margin: 1.5em 0; | |
padding-left: 0.75em; | |
} | |
cite { | |
color: #737373; | |
font-style: italic; | |
} | |
cite:before { | |
content: '\2014 \00A0'; | |
} | |
fieldset { | |
background: #f7f7f7; | |
border: 1px solid #DDD; | |
margin: 0 0 0.75em 0; | |
padding: 1.5em; | |
} | |
input, | |
label, | |
select { | |
display: block; | |
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; | |
font-size: 1em; | |
} | |
label { | |
font-weight: bold; | |
margin-bottom: 0.375em; | |
} | |
label.required:after { | |
content: "*"; | |
} | |
label abbr { | |
display: none; | |
} | |
textarea, | |
input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="time"], input[type="week"], | |
select[multiple=multiple] { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
-webkit-transition: border-color; | |
-moz-transition: border-color; | |
transition: border-color; | |
background-color: white; | |
border-radius: 0.1875em; | |
border: 1px solid #DDD; | |
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06); | |
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; | |
font-size: 1em; | |
margin-bottom: 0.75em; | |
padding: 0.5em 0.5em; | |
width: 100%; | |
} | |
textarea:hover, | |
input[type="email"]:hover, input[type="number"]:hover, input[type="password"]:hover, input[type="search"]:hover, input[type="tel"]:hover, input[type="text"]:hover, input[type="url"]:hover, input[type="color"]:hover, input[type="date"]:hover, input[type="datetime"]:hover, input[type="datetime-local"]:hover, input[type="month"]:hover, input[type="time"]:hover, input[type="week"]:hover, | |
select[multiple=multiple]:hover { | |
border-color: #c4c4c4; | |
} | |
textarea:focus, | |
input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, | |
select[multiple=multiple]:focus { | |
border-color: #477DCA; | |
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 5px rgba(55, 112, 192, 0.7); | |
outline: none; | |
} | |
textarea { | |
resize: vertical; | |
} | |
input[type="search"] { | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
-ms-appearance: none; | |
-o-appearance: none; | |
appearance: none; | |
} | |
input[type="checkbox"], input[type="radio"] { | |
display: inline; | |
margin-right: 0.375em; | |
} | |
input[type="file"] { | |
margin-bottom: 0.75em; | |
padding-bottom: 0.5em; | |
width: 100%; | |
} | |
select { | |
width: auto; | |
max-width: 100%; | |
margin-bottom: 1.5em; | |
} | |
table { | |
border-collapse: collapse; | |
margin: 0.75em 0; | |
table-layout: fixed; | |
width: 100%; | |
} | |
th { | |
border-bottom: 1px solid #b7b7b7; | |
font-weight: bold; | |
padding: 0.75em 0; | |
text-align: left; | |
} | |
td { | |
border-bottom: 1px solid #DDD; | |
padding: 0.75em 0; | |
} | |
tr, td, th { | |
vertical-align: middle; | |
} | |
ul, ol { | |
margin: 0; | |
padding: 0; | |
list-style-type: none; | |
} | |
dl { | |
margin-bottom: 0.75em; | |
} | |
dl dt { | |
font-weight: bold; | |
margin-top: 0.75em; | |
} | |
dl dd { | |
margin: 0; | |
} | |
button, | |
input[type="submit"] { | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
-ms-appearance: none; | |
-o-appearance: none; | |
appearance: none; | |
border: none; | |
cursor: pointer; | |
user-select: none; | |
vertical-align: middle; | |
white-space: nowrap; | |
} | |
body { | |
background: #f4f4f3; | |
} | |
.shots { | |
max-width: 68em; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
.shots:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
.shot { | |
float: left; | |
display: block; | |
margin-right: 2.35765%; | |
width: 23.23176%; | |
padding: 0.5em; | |
background: white; | |
border-radius: 3px; | |
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); | |
margin-bottom: 2em; | |
} | |
.shot:last-child { | |
margin-right: 0; | |
} | |
.shot:nth-child(4n) { | |
margin-right: 0; | |
} | |
.shot:nth-child(4n+1) { | |
clear: left; | |
} | |
.shot img { | |
width: 100%; | |
background: #e7e7e7; | |
border: none; | |
} | |
.shot ul { | |
display: block; | |
} | |
.shot ul:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
.shot ul li { | |
float: right; | |
display: block; | |
margin-left: 2.35765%; | |
width: 18.96686%; | |
color: #aaa; | |
text-align: right; | |
} | |
.shot ul li:last-child { | |
margin-left: 0; | |
} |
This file contains hidden or 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
<ul class="shots"> | |
<li class="shot"><img src="http://placehold.it/200x150"/> | |
<ul> | |
<li>471</li> | |
<li>45</li> | |
<li>4806</li> | |
</ul> | |
</li> | |
<li class="shot"><img src="http://placehold.it/200x150"/> | |
<ul> | |
<li>471</li> | |
<li>45</li> | |
<li>4806</li> | |
</ul> | |
</li> | |
<li class="shot"><img src="http://placehold.it/200x150"/> | |
<ul> | |
<li>471</li> | |
<li>45</li> | |
<li>4806</li> | |
</ul> | |
</li> | |
<li class="shot"><img src="http://placehold.it/200x150"/> | |
<ul> | |
<li>471</li> | |
<li>45</li> | |
<li>4806</li> | |
</ul> | |
</li> | |
<li class="shot"><img src="http://placehold.it/200x150"/> | |
<ul> | |
<li>471</li> | |
<li>45</li> | |
<li>4806</li> | |
</ul> | |
</li> | |
<li class="shot"><img src="http://placehold.it/200x150"/> | |
<ul> | |
<li>471</li> | |
<li>45</li> | |
<li>4806</li> | |
</ul> | |
</li> | |
<li class="shot"><img src="http://placehold.it/200x150"/> | |
<ul> | |
<li>471</li> | |
<li>45</li> | |
<li>4806</li> | |
</ul> | |
</li> | |
<li class="shot"><img src="http://placehold.it/200x150"/> | |
<ul> | |
<li>471</li> | |
<li>45</li> | |
<li>4806</li> | |
</ul> | |
</li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment