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
.element { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} | |
/* Mixin */ | |
@mixin vertical-align($position: relative) { | |
position: $position; |
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
.centered { | |
position: fixed; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
} |
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
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# |
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
$total-px: 100 | |
$rule: h- | |
$property: height | |
$px: () | |
@for $i from 1 through $total-px | |
#{$rule}#{$i} | |
#{$property}: $i#{px} | |
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
/* Margins */ | |
.m0 { | |
margin: 0 !important; | |
} | |
.m1 { | |
margin: 1em !important; | |
} | |
.m2 { | |
margin: 2em !important; | |
} |
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
.m0{margin:0!important}.m1{margin:1em!important}.m2{margin:2em!important}.m3{margin:3em!important}.m4{margin:4em!important}.m5{margin:5em!important}.m6{margin:6em!important}.m7{margin:7em!important}.m8{margin:8em!important}.m9{margin:9em!important}.m10{margin:10em!important}.mt0{margin-top:0!important}.mt1{margin-top:1em!important}.mt2{margin-top:2em!important}.mt3{margin-top:3em!important}.mt4{margin-top:4em!important}.mt5{margin-top:5em!important}.mt6{margin-top:6em!important}.mt7{margin-top:7em!important}.mt8{margin-top:8em!important}.mt9{margin-top:9em!important}.mt10{margin-top:10em!important}.mr0{margin-right:0!important}.mr1{margin-right:1em!important}.mr2{margin-right:2em!important}.mr3{margin-right:3em!important}.mr4{margin-right:4em!important}.mr5{margin-right:5em!important}.mr6{margin-right:6em!important}.mr7{margin-right:7em!important}.mr8{margin-right:8em!important}.mr9{margin-right:9em!important}.mr10{margin-right:10em!important}.mb0{margin-bottom:0!important}.mb1{margin-bottom:1em!important}.mb |
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
/** | |
* http://applemusic.tumblr.com/ | |
* https://jsfiddle.net/xq56dmrh/ | |
*/ | |
/** Ultra Light */ | |
@font-face { | |
font-family: "San Francisco"; | |
font-weight: 100; | |
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff"); |
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
@charset "UTF-8"; | |
@font-face { | |
font-family: "San Francisco"; | |
font-weight: 100; | |
src: url("//applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff"); | |
} | |
@font-face { | |
font-family: "San Francisco"; | |
font-weight: 200; | |
src: url("//applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-thin-webfont.woff"); |
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
cd projects | |
@echo off | |
COLOR 0A | |
set /p dname= New project name: | |
git clone https://github.com/sebastianperezperaza/gulp-pug-sass-autoprefixer-browser-sync.git %dname% | |
cd %dname% | |
yarn install | |
gulp |
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
/*---------- Selector Hacks ----------*/ | |
/* IE6 and below */ | |
* html #uno { | |
color: red; | |
} | |
/* IE7 */ | |
*:first-child+html #dos { | |
color: red; |