Skip to content

Instantly share code, notes, and snippets.

@gerhard
Forked from mynyml/gist:200817
Created October 13, 2009 06:06
Show Gist options
  • Select an option

  • Save gerhard/209047 to your computer and use it in GitHub Desktop.

Select an option

Save gerhard/209047 to your computer and use it in GitHub Desktop.
# Run me with:
#
# $ watchr less.watchr
# --------------------------------------------------
# Helpers
# --------------------------------------------------
def lessc(file)
print "compiling #{file.inspect}... "
system "lessc #{file}"
puts 'done'
end
# --------------------------------------------------
# Watchr Rules
# --------------------------------------------------
watch ( '.*\.less$' ) {lessc "core.less" }
# Ctrl-C
Signal.trap('INT') { abort("\n") }
/* --------------------------------------------------------------
Title : core.less, global stylesheet
Author : Gerhard Lazu
E-mail author: gerhard@lazu.co.uk
Created : 12th October 2009
Last modified: 13th October 2009
-------------------------------------------------------------- */
/* Clearing floats without extra markup
Based on How To Clear Floats Without Structural Markup by PiE
[http://www.positioniseverything.net/easyclearing.html] */
.clearfix {
display: block;
}
* html .clearfix {
height: 1%;
}
.clearfix:after {
clear: both;
content: " ";
display: block;
height: 0;
line-height: 0px;
visibility: hidden;
}
/* Regular clearing
apply to column that should drop below previous ones. */
.clear {
clear: both;
}
.hide {
display: none;
visibility: hidden;
}
@import 'partials/_forms';
@import 'partials/_navigation';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment