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
// | |
To change all the directories to 755 (-rwxr-xr-x): | |
find /opt/lampp/htdocs -type d -exec chmod 755 {} \; | |
To change all the files to 644 (-rw-r--r--): | |
find /opt/lampp/htdocs -type f -exec chmod 644 {} \; | |
// |
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
// Hide Text by Scott Kellum | |
.hide-text { | |
text-indent: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
} | |
// old way of doing things | |
.hide-text { | |
text-indent: -9999px; |
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
IOS Dimensions: | |
iPad / iPad Mini - 768 x 1024 pt | |
Status Bar - 20 pt | |
Nav bar - 44 pt |
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
'use strict'; | |
module.exports = function (grunt) { | |
// load all grunt tasks | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
// configurable paths | |
var yeomanConfig = { | |
app: 'app', | |
dist: 'dist' |
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
// Clearfix for IE8 and up http://css-tricks.com/snippets/css/clear-fix/ | |
&:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
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
.icons:before{ | |
content:""; | |
display: inline-block; | |
width: 16px; | |
height: 16px; | |
background-image: url(../images/icons/meta-icons.png); | |
background-repeat: no-repeat; | |
vertical-align: middle; | |
position: relative; | |
} |
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
/** | |
* Line Height method. | |
* Works with any single line (text / images) | |
*/ | |
.parent { | |
line-height: 5rem; | |
// For images | |
.img { | |
vertical-align: middle; | |
} |
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://css-tricks.com/centering-in-the-unknown/ | |
/* This parent can be any width and height */ | |
.block { | |
text-align: center; | |
} | |
/* The ghost, nudged to maintain perfect centering */ | |
.block:before { | |
content: ''; | |
display: inline-block; |
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
//* Add custom Viewport meta tag for mobile browsers | |
add_action( 'genesis_meta', 'sp_viewport_meta_tag' ); | |
function sp_viewport_meta_tag() { | |
echo '<meta name="viewport" content="width=device-width, initial-scale=1.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 { | |
float: none; | |
// Justify menu @Chris Coyier – http://css-tricks.com/equidistant-objects-with-css/ | |
text-align: justify; | |
// font-size: 0.1px; | |
> li { | |
display: inline-block; | |
} | |
&:after { |