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
$dir = '/path/to/your/files/'; | |
if($dh = opendir($dir)) { | |
while(($file = readdir($dh)) !== false) { | |
if($file != '.' && $file != '..') { | |
if(is_dir($dir . $file)) { | |
echo "<div> - " . $file . "</div>\n"; | |
} | |
else { | |
echo "<div>" . $file . "</div>\n"; | |
} |
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::Script::Number.precision = 3 | |
require 'susy' | |
require 'compass-normalize' | |
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "css" | |
sass_dir = "scss" |
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
<?php | |
function googlefont($name, $styles = null) { | |
$return = '<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=' . $name; | |
if($styles !== null) { $return .= ':' . $styles; } | |
$return .= '">'; | |
return $return; | |
} | |
// usage: <?php echo googlefont('Oswald', '400,700'); |
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
.message--STATUS, .message--WARNING, .message--ERROR { | |
box-sizing: border-box; | |
padding: 0.25em 0.5em; | |
width: 80%; | |
margin: 0 auto; | |
border: 2px solid; | |
} | |
.message--STATUS { | |
border-color: green; |
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
*NAVIGATION* | |
<!-- Basic nav structure: --> | |
nav>(ul.nav-menu>li.nav-item>a.nav-link[href=""]{Link}) | |
<!-- With a menu-toggle button (for responsive layouts): --> | |
nav>(ul.nav-menu>li.nav-item>a.nav-link[href=""]{Link})+a.menu-toggle[href="#"]{+} | |
<!-- With five items and ordering classes set: --> | |
nav>(ul.nav-menu>(li.nav-item-$*5>a.nav-link[href=""]{Link}))+a.menu-toggle[href="#"]{+} |
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
Showing a buddy one way to do container elements. |
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
<?php | |
/** | |
* so let's say this is your overall page template, index.php or whatever | |
* you could set a variable up top that dictates the module types that are possible | |
**/ | |
$modules = array( | |
'gallery', | |
'faq', |
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
causeRepaintsOn = $("h1, h2, h3, p"); | |
$(window).resize(function() { | |
causeRepaintsOn.css("z-index", 1); | |
}); | |
// todo: un-jquerify, for the hell of it |
OlderNewer