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 - Line On Side Headers | |
Reference Link: http://css-tricks.com/line-on-sides-headers/ | |
Implementation Example: <h1 class="fancy"><span>Title</span></h1> | |
*/ |
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
@mixin center-align($dir: false) { | |
$map: ( | |
top: ( Y ), | |
left: ( X ) | |
); | |
@if map_get($map, $dir) != null { | |
#{$dir}: 50%; | |
transform: #{"translate#{map_get($map,$dir)}(-50%)"}; | |
} @else { |
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
// Liked what Chris Coyier showed off in this blog post: | |
// http://codepen.io/chriscoyier/blog/some-mini-sass-mixins-i-like | |
// Decided to make LESS versions really quickly. | |
.coverer() { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; |
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
<!-- | |
Image is a 87px height & 200px width long. | |
I'm calling an image from DB, but if it fails to load, im listening to the Error event, and than call an image from DB. | |
Big thing here is this guy: `onerror="this.href.baseVal='pathTo_placeholder_fallback_image'"` | |
`this.href.baseVal` | |
This guy enables you to overright the SVG image source, with the fallbacl one. | |
--> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- | |
A solution for the design at http://jsbin.com/super-css-super-challenge | |
Using no "active" class (but the middle is always "active" in the display). | |
I think that's how Chris Coyier presented it, but I may have missed the "active" class | |
--> | |
<style type="text/css"> | |
body { |
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
@include keyframes(appear-and-roundify) { | |
0% { opacity: 0; @include border-radius(2px); } | |
100% { opacity: 1; @include border-radius(10px); } | |
} |
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
#content-wrapper | |
+container | |
#about | |
// Default (smallest screens) | |
+column(100%) | |
background-color: #ccc | |
// Respond to other screen widths |
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
Each line below is worth a different point amount. | |
3 points = We've had a short phone call. | |
7 points = We've met in person, briefly. | |
12 points = We've met in person and shared a meal or had over an hour long discussion. | |
12 points = You've asked me about my family or wished me happy birthday, in person, phone or email. | |
100 points = We've shared a hotel room. | |
1 points = We've talked via a social network. | |
2 points = We've exchanged a few emails. | |
100 points = I've farted in front of you. |
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
.center-container { | |
text-align: center; | |
&:before { | |
content: ''; | |
display: inline-block; | |
height: 100%; | |
vertical-align: middle; | |
margin-right: -0.25em; | |
} |
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
@function rgbaa($args...) { | |
// rgbaa(#FFF, .5) | |
@if length($args) == 2 { | |
$hex: nth($args, 1); | |
$alpha: nth($args, 2); | |
@if $oldIE == 1 { | |
@return rgb(red($hex), green($hex), blue($hex)); | |
} @else { | |
@return rgba(red($hex), green($hex), blue($hex), $alpha); |
OlderNewer