http://compass-style.org/reference/compass/css3/font_face/#mixin-font-face
Setting weights and styles http://coding.smashingmagazine.com/2013/02/14/setting-weights-and-styles-at-font-face-declaration
Source Sans Pro Regular
const colors = Object.freeze({ | |
blackDoNotUse: { | |
old: "#000000", | |
new: "", | |
map: null, | |
}, | |
black: { | |
old: "", | |
new: "#39414D", | |
map: null, |
const styleLocations = { | |
v: ["-top", "-bottom"], | |
h: ["-left", "-right"], | |
l: ["-left"], | |
r: ["-right"], | |
t: ["-top"], | |
b: ["-bottom"], | |
a: [""], | |
}; |
function SearchFilter($query) { | |
if ($query->is_search) { | |
// specific categories to search | |
$query->set('cat', '8,9,12'); | |
} | |
return $query; | |
} | |
add_filter('pre_get_posts','SearchFilter'); |
function SearchFilter($query) { | |
if ($query->is_search) { | |
// specific post to search | |
$query->set('post_type', 'feeds'); | |
} | |
return $query; | |
} | |
// loop | |
add_filter('pre_get_posts','SearchFilter'); |
$('img.social').hover (-> | |
pathA = '/wp-content/themes/pollyport/assets/images/social-' | |
theId = $(this).attr 'id' | |
pathB = '-2x-green.png' | |
path = siteUrl + pathA + theId + pathB | |
$(this).attr 'src', path | |
), -> | |
pathA = '/wp-content/themes/pollyport/assets/images/social-' | |
theId = $(this).attr 'id' | |
pathB = '-2x.png' |
@mixin vertical-align { | |
position: relative; | |
top: 50%; | |
-webkit-transform: translateY(-50%); | |
-ms-transform: translateY(-50%); | |
transform: translateY(-50%); | |
} |
/* | |
* | |
* | |
* Hamburger X Toggle | |
* | |
* | |
*/ | |
#nav-toggle { | |
cursor: pointer; | |
@include padding(1em 0.5em 1em 1em); |
body{ | |
background: $blue; | |
@include media($small-up) { | |
background: purple; | |
} | |
@include media($medium-up) { | |
background: green; | |
} | |
@include media($large-up) { | |
background: black; |
@import "neat/neat-helpers"; // or "../neat/neat-helpers" when not in Rails | |
// Overrides | |
$column: 80px; | |
$gutter: 30px; | |
$grid-columns: 6; | |
$max-width: em(1600); | |
// Breakpoints | |
$small: em(640); |
http://compass-style.org/reference/compass/css3/font_face/#mixin-font-face
Setting weights and styles http://coding.smashingmagazine.com/2013/02/14/setting-weights-and-styles-at-font-face-declaration
Source Sans Pro Regular