The focus on this release is to get the compass stylesheet libraries and docs as close to final for 1.0 as possible.
- Upgrade to Blueprint 1.0
- DONE Upgrade stylesheets
.container { | |
width: 950px; | |
margin: 0 auto; | |
overflow: hidden; | |
display: inline-block; | |
} | |
.container { | |
display: block; | |
} |
body.standard #footer, | |
body.standard #header, | |
body.standard #sidebar, | |
body.standard #content, | |
body.standard #ads { | |
float: left; | |
margin-left: 10px; | |
margin-right: 10px; | |
} |
require "rubygems" | |
require "base64" | |
require "haml" | |
require "chunky_png" | |
module Sass::Script::Functions | |
def rgbapng(color) | |
chunky_color = ChunkyPNG::Color.rgba(color.red, color.green, color.blue, (color.alpha * 100 * 2.55).round) | |
image = ChunkyPNG::Image.new(1,1, chunky_color) |
module Sass::Script::Functions | |
def user_color | |
color_values = options[:custom][:user].color. | |
scan(/^#?(..?)(..?)(..?)$/).first. | |
map {|num| num.ljust(2, num).to_i(16)} | |
Sass::Script::Color.new(color_values) | |
end | |
end |
require 'fileutils' | |
def subsume_modules(*vendor_modules) | |
options = vendor_modules.pop | |
options[:modules] = vendor_modules + Array(options[:additional_modules]) | |
options[:module_names] = options[:modules].map{|m| m.capitalize.gsub(/_[a-z]/){|s| s[-1..-1].upcase}} | |
vendor_modules.each do |vendor_module| | |
copy_module vendor_module, options | |
subsume_module vendor_module, options | |
end |
html
or body
classes.- content_for(:inner_content) do | |
= render :partial => "inner_content" | |
- if some_condition | |
%outertag1= yield :inner_content | |
- else | |
%outertag2= yield :inner_content |
// Generate the factors of $n | |
// factors(24) #=> 1 2 3 4 6 8 12 24 | |
@function factors($n) { | |
$factors: (); | |
@for $i from 1 through $n { | |
@if $n % $i == 0 { | |
$factors: append($factors, $i) | |
} | |
} | |
@return $factors; |
$gutter: 10px; | |
$grid-unit: 60px; | |
%clearfix { | |
*zoom: 1; | |
&:after { | |
content: "\0020"; | |
display: block; | |
height: 0; | |
clear: both; |