-
-
Save gerhard/209047 to your computer and use it in GitHub Desktop.
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
| # 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") } |
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
| /* -------------------------------------------------------------- | |
| 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