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
<div class="list">HELLO</div> | |
<div class="sidebar"> | |
<div class="list">HELLO</div> | |
</div> |
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 (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
@mixin background-opacity($theme) { | |
background-color: nth($theme, 1); //fallback | |
background-color: nth($theme, 2); |
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 (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
@mixin base($class) { | |
[class*="#{$class}"] { | |
@content; | |
} | |
} |
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 (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
$basefont: 'Arimo',Arial,sans-serif; | |
$basefontsize: 12px; | |
$basegutter: 15px; | |
$min-width: 1100px; |
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 (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
.box { | |
background: red; | |
.heading { | |
font-size: 20px; | |
} |
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 (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
@mixin font-face($font-name, $file, $svg-font-name: false, $weight: 100, $style: normal) { | |
@font-face { | |
$font-src: false; | |
$font-list: ( | |
'eot?#iefix' 'embedded-opentype', |
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 (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
@mixin font-face($font-name, $file, $svg-font-name: false, $weight: 100, $style: normal) { | |
@font-face { | |
$fonts: url('#{$file}.eot?#iefix') format('embedded-opentype'), url('#{$file}.woff') format('woff'), url('#{$file}.ttf') format('truetype'); | |
@if($svg-font-name) { |
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 | |
$dir = dirname(__FILE__); // Sets the dir you want to show images for | |
foreach(scandir($dir) as $item) : // for every item in the folder | |
if($item == '.') continue; // If it equals to any of these, don't show them | |
if($item == '..') continue; | |
if($item == 'index.php') continue; ?> | |
<?=$item?> <!-- echo the path --> | |
<?php endforeach; ?> |
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
if which inotifywait >/dev/null; then # Checks to see if inotify tools exists | |
folder=`pwd`; # This is where it searches - pwd will run that command and run the rest based on your current folder | |
while true; | |
do | |
N=`find $folder -name "*.less"`; # Currently searches for all .less files in the folder above using a standard find command | |
if [[ -z $N ]]; then # If there is nothing found then it exits | |
echo There are no LESS files to be found - maybe cd to where there is some. | |
exit; | |
else | |
fileout=`inotifywait -qe modify $N`; # Gets the name of the file that was modified |
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 | |
// This takes a get of location and postcode to put into a json file for use with https://github.com/MrQwest/activity | |
/* Example use: | |
$.ajax({ | |
url: 'file.php', | |
type: 'GET', | |
data: { | |
location: [LOCATION - VARIABLE OR STRING], |