This is how you can do truly semantic clearfixing easily in Sass.
The @extend directive is used to inherit the .group class for other selectors. Sass takes care of spreading the selectors around for you.
==== General Organizational Principles for CSS and JS in Rails | |
=== Framework requirements | |
1. Modularity | |
2. Complex components are built from simple, atomic components | |
3. Cross-browser compatibility | |
a. Follow W3C standards | |
b. Keep IE hacks in a separate style file | |
4. Bulletproof |
<%= init_fb_connect('XFBML', :js => :jquery) %> |
#Config is there http://github.com/spyou/vim-config | |
#Give a go to vimtutor in order to have a little overview of Vim. | |
"open/save" | |
#:w (save) | |
#:q (quit) | |
#:qa (quit all buffers) | |
#:q! (quit without saving) | |
#:wq (save and quit) |
This is how you can do truly semantic clearfixing easily in Sass.
The @extend directive is used to inherit the .group class for other selectors. Sass takes care of spreading the selectors around for you.
require 'rake/clean' | |
HAML = FileList['**/*.haml'] | |
LESS = FileList['**/*.less'] | |
COFFEE = FileList['**/*.coffee'] | |
HTML = HAML.ext('html') | |
CSS = LESS.ext('css') | |
JS = COFFEE.ext('js') |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require "find" | |
require "eventmachine" | |
# === Usage === | |
# project-watcher.rb --no-daemon -- run | |
# project-watcher.rb -- run as a daemon | |
# project-watcher.rb --debug -- run in debug mode |
# Put this content to ~/.irbrc file (no extension) | |
require "rubygems" | |
begin | |
require "ap" | |
rescue LoadError => err | |
puts "Cannot find awesome_print gem. Please run 'gem install awesome_print' to install it." | |
end |
.gmap.map-preview | |
:width 540px | |
:height 400px | |
:margin 5px auto | |
:border 5px solid #DDD | |
:background #F1F1F1 url('/images/map-placeholder.jpg') center center no-repeat |