Skip to content

Instantly share code, notes, and snippets.

@artlung
Created June 4, 2014 13:52
Show Gist options
  • Save artlung/7799efd12ef74c6e02dd to your computer and use it in GitHub Desktop.
Save artlung/7799efd12ef74c6e02dd to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
/*
Theme Name: Experience Brett Jackson 2014
Author: artlung
Author URI: http://joecrawford.com/
Description: Theme custom built for Brett Jackson's imbrettjackson.com.
Version: 1.0
*/
/* BEGIN RESET */
@import "compass/reset";
/* END RESET */
@import "compass/css3/transition";
body {
font-family: 'Source Sans Pro', Helvetica, "Helvetica Neue", arial, sans-serif;
overflow-y: scroll;
}
$complete-background-color: #fff;
$dark-background-color: transparent;
$footer-background-color: #666;
$footer-height: 110px;
#header {
margin: 0 auto;
max-width: 800px;
img {
width: 100%;
}
a, img {
display: block;
margin: 0 auto;
}
}
.container {
margin: 0 auto;
background-image: url(images/bg_chevron_long.png);
background-repeat: repeat-x;
background-position: 0 380px;
}
.nav {
width: 100%;
text-align: center;
padding: 20px 0 20px 0;
li {
display: inline-block;
line-height: 2.8;
a {
color: #000;
background-color: $complete-background-color;
border-width: 4px 6px 7px 6px;
border-color: #000;
border-style: solid;
line-height: 2;
padding: 5px;
text-transform: uppercase;
text-decoration: none;
margin: 0 5px 0 5px;
}
&.current-cat a, a:hover {
background-color: #eee;
}
}
}
.loop-overall {
width: 100%;
min-height: 600px;
padding-bottom: $footer-height;
}
.single .loop-overall {
min-height: 0;
background-color: transparent;
}
.single {
.loop-container {
width: 100%;
margin: 0;
padding: 0;
.post {
border: none;
background-color: #fff;
text-align: left;
padding: 10px 50px;
&.special-bg-black {
background-color: #000;
color: #fff;
h2 {
}
a {
color: #fff;
}
}
&.special-bg-white {
background-color: #fff;
color: #000;
h2 {
}
a {
color: #000;
}
}
h2 {
font-size: 30px;
margin-bottom: 15px;
}
a {
color: #333;
}
p {
color: #333;
}
img {
width: auto;
}
}
}
}
.loop-container {
margin: 0 auto;
text-align: center;
width: 1320px;
background-color: $dark-background-color;
@include transition-property(width);
@include transition-delay(0s);
@include transition-duration(0.5s);
.post {
border: 10px solid $complete-background-color;
display: block;
position: relative;
box-sizing: border-box;
overflow: hidden;
//min-width: 300px;
a {
display: block;
color: #fff;
text-decoration: none;
span.title {
position: absolute;
background-color: #000;
display: block;
width: 100%;
top: 0;
left: 0;
padding: 5px 0 5px 0;
text-align: center;
}
}
img {
width: 100%;
}
ul {
position: absolute;
left: 0;
bottom: 0;
background-color: #000;
width: 100%;
opacity: 0;
}
&:hover ul {
opacity: 1;
@include transition-property(opacity);
@include transition-delay(0.5s);
@include transition-duration(1s);
@include transition-timing-function(easein);
}
li {
display: inline;
a {
display: inline-block;
padding: 5px;
}
&:hover a {
color: #666;
}
}
}
}
.grid-sizer {
}
.fixed-footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: $footer-height;
}
.footer {
color: #fff;
background-color: #000;
font-size: small;
text-align: center;
padding: 40px;
min-height: $footer-height;
}
@each $breakpoint in (6000, 3500, 2500, 1400, 1024, 769, 321) {
@media only screen and (max-width: #{$breakpoint}px) {
.loop-container {
//width: $breakpoint - 20px !important;
}
$min-width: 320;
// 250 minimum
@if ($breakpoint > 2000) {
$min-width: 400;
}
.grid-sizer {
width: percentage(100 / 100 / floor($breakpoint / $min-width)) ;
}
@if ($breakpoint / 10 > 100) {
#header {
}
} @else if ($breakpoint <= 400) {
#header {
width: 100%;
}
} @else {
#header {
width: 100%;
}
}
}
}
/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
margin: 5px 20px 20px 0;
}
.aligncenter, div.aligncenter {
display: block;
margin: 5px auto 5px auto;
}
.alignright {
float: right;
margin: 5px 0 20px 20px;
}
.alignleft {
float: left;
margin: 5px 20px 20px 0;
}
.aligncenter {
display: block;
margin: 5px auto 5px auto;
}
a img {
&.alignright {
float: right;
margin: 5px 0 20px 20px;
}
&.alignnone {
margin: 5px 20px 20px 0;
}
&.alignleft {
float: left;
margin: 5px 20px 20px 0;
}
&.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
}
.wp-caption {
background: #fff;
border: 1px solid #f0f0f0;
max-width: 96%;
/* Image does not overflow the content area */
padding: 5px 3px 10px;
text-align: center;
&.alignnone, &.alignleft {
margin: 5px 20px 20px 0;
}
&.alignright {
margin: 5px 0 20px 20px;
}
img {
border: 0 none;
height: auto;
margin: 0;
max-width: 98.5%;
padding: 0;
width: auto;
}
p.wp-caption-text {
font-size: 11px;
line-height: 17px;
margin: 0;
padding: 0 4px 5px;
}
}
/*
Theme Name: Experience Brett Jackson 2014
Author: artlung
Author URI: http://joecrawford.com/
Description: Theme custom built for Brett Jackson's imbrettjackson.com.
Version: 1.0
*/
/* BEGIN RESET */
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;
}
/* END RESET */
body {
font-family: 'Source Sans Pro', Helvetica, "Helvetica Neue", arial, sans-serif;
overflow-y: scroll;
}
#header {
margin: 0 auto;
max-width: 800px;
}
#header img {
width: 100%;
}
#header a, #header img {
display: block;
margin: 0 auto;
}
.container {
margin: 0 auto;
background-image: url(images/bg_chevron_long.png);
background-repeat: repeat-x;
background-position: 0 380px;
}
.nav {
width: 100%;
text-align: center;
padding: 20px 0 20px 0;
}
.nav li {
display: inline-block;
line-height: 2.8;
}
.nav li a {
color: #000;
background-color: white;
border-width: 4px 6px 7px 6px;
border-color: #000;
border-style: solid;
line-height: 2;
padding: 5px;
text-transform: uppercase;
text-decoration: none;
margin: 0 5px 0 5px;
}
.nav li.current-cat a, .nav li a:hover {
background-color: #eee;
}
.loop-overall {
width: 100%;
min-height: 600px;
padding-bottom: 110px;
}
.single .loop-overall {
min-height: 0;
background-color: transparent;
}
.single .loop-container {
width: 100%;
margin: 0;
padding: 0;
}
.single .loop-container .post {
border: none;
background-color: #fff;
text-align: left;
padding: 10px 50px;
}
.single .loop-container .post.special-bg-black {
background-color: #000;
color: #fff;
}
.single .loop-container .post.special-bg-black a {
color: #fff;
}
.single .loop-container .post.special-bg-white {
background-color: #fff;
color: #000;
}
.single .loop-container .post.special-bg-white a {
color: #000;
}
.single .loop-container .post h2 {
font-size: 30px;
margin-bottom: 15px;
}
.single .loop-container .post a {
color: #333;
}
.single .loop-container .post p {
color: #333;
}
.single .loop-container .post img {
width: auto;
}
.loop-container {
margin: 0 auto;
text-align: center;
width: 1320px;
background-color: transparent;
-moz-transition-property: width;
-o-transition-property: width;
-webkit-transition-property: width;
transition-property: width;
-moz-transition-delay: 0s;
-o-transition-delay: 0s;
-webkit-transition-delay: 0s;
transition-delay: 0s;
-moz-transition-duration: 0.5s;
-o-transition-duration: 0.5s;
-webkit-transition-duration: 0.5s;
transition-duration: 0.5s;
}
.loop-container .post {
border: 10px solid white;
display: block;
position: relative;
box-sizing: border-box;
overflow: hidden;
}
.loop-container .post a {
display: block;
color: #fff;
text-decoration: none;
}
.loop-container .post a span.title {
position: absolute;
background-color: #000;
display: block;
width: 100%;
top: 0;
left: 0;
padding: 5px 0 5px 0;
text-align: center;
}
.loop-container .post img {
width: 100%;
}
.loop-container .post ul {
position: absolute;
left: 0;
bottom: 0;
background-color: #000;
width: 100%;
opacity: 0;
}
.loop-container .post:hover ul {
opacity: 1;
-moz-transition-property: opacity;
-o-transition-property: opacity;
-webkit-transition-property: opacity;
transition-property: opacity;
-moz-transition-delay: 0.5s;
-o-transition-delay: 0.5s;
-webkit-transition-delay: 0.5s;
transition-delay: 0.5s;
-moz-transition-duration: 1s;
-o-transition-duration: 1s;
-webkit-transition-duration: 1s;
transition-duration: 1s;
-moz-transition-timing-function: easein;
-o-transition-timing-function: easein;
-webkit-transition-timing-function: easein;
transition-timing-function: easein;
}
.loop-container .post li {
display: inline;
}
.loop-container .post li a {
display: inline-block;
padding: 5px;
}
.loop-container .post li:hover a {
color: #666;
}
.fixed-footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 110px;
}
.footer {
color: #fff;
background-color: #000;
font-size: small;
text-align: center;
padding: 40px;
min-height: 110px;
}
@media only screen and (max-width: 6000px) {
.grid-sizer {
width: 6.66667%;
}
}
@media only screen and (max-width: 3500px) {
.grid-sizer {
width: 12.5%;
}
}
@media only screen and (max-width: 2500px) {
.grid-sizer {
width: 16.66667%;
}
}
@media only screen and (max-width: 1400px) {
.grid-sizer {
width: 25%;
}
}
@media only screen and (max-width: 1024px) {
.grid-sizer {
width: 33.33333%;
}
}
@media only screen and (max-width: 769px) {
.grid-sizer {
width: 50%;
}
#header {
width: 100%;
}
}
@media only screen and (max-width: 321px) {
.grid-sizer {
width: 100%;
}
#header {
width: 100%;
}
}
/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
margin: 5px 20px 20px 0;
}
.aligncenter, div.aligncenter {
display: block;
margin: 5px auto 5px auto;
}
.alignright {
float: right;
margin: 5px 0 20px 20px;
}
.alignleft {
float: left;
margin: 5px 20px 20px 0;
}
.aligncenter {
display: block;
margin: 5px auto 5px auto;
}
a img.alignright {
float: right;
margin: 5px 0 20px 20px;
}
a img.alignnone {
margin: 5px 20px 20px 0;
}
a img.alignleft {
float: left;
margin: 5px 20px 20px 0;
}
a img.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.wp-caption {
background: #fff;
border: 1px solid #f0f0f0;
max-width: 96%;
/* Image does not overflow the content area */
padding: 5px 3px 10px;
text-align: center;
}
.wp-caption.alignnone, .wp-caption.alignleft {
margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
margin: 5px 0 20px 20px;
}
.wp-caption img {
border: 0 none;
height: auto;
margin: 0;
max-width: 98.5%;
padding: 0;
width: auto;
}
.wp-caption p.wp-caption-text {
font-size: 11px;
line-height: 17px;
margin: 0;
padding: 0 4px 5px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment