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
.field | |
Display Name: | |
= h @user.name | |
= link_to "edit", edit_user_url(@user, :field => "name") | |
.field | |
Your Email: | |
= h @user.email | |
= link_to "edit", edit_user_url(@user, :field => "email") | |
.field | |
Password: |
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
get "/stylesheets/screen.css" do | |
content_type 'text/css' | |
# Use views/stylesheets & blueprint's stylesheet dirs in the Sass load path | |
sass :"stylesheets/screen", :sass => Compass.sass_engine_options | |
end |
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
// round corners (base) | |
= border-radius(!radius = 10px) | |
-moz-border-radius= !radius | |
-webkit-border-radius= !radius | |
border-radius= !radius | |
// top rounded corners | |
= border-top-radius(!radius = 10px) | |
+border-top-left-radius(!radius) | |
+border-top-left-radius(!radius) |
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
def f(ra,n) | |
r=0 | |
ra.each {|x| r+=1 if x.include? n} | |
r | |
end | |
def g(ra, n) | |
ra.inject(0){|m, x| m + (x.include?(n) ? 1 : 0) } | |
end | |
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
module ActionView | |
class ErSass < ActionView::TemplateHandler | |
include ERB::Util | |
def self.call(template) | |
"ActionView::ErSass.new(self).render(template, local_assigns)" | |
end | |
def initialize(view = nil) | |
@view = view |
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
@import compass/reset.sass | |
@import blueprint.sass | |
@import blueprint/modules/form.sass | |
@import blueprint/modules/liquid.sass | |
@import compass/layout.sass | |
@import compass/utilities.sass | |
@import icons.sass | |
+blueprint-typography | |
+blueprint-utilities |
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
@import compass/utilities/general/inline_block.sass | |
.my-nav | |
.tabs | |
li | |
:border none | |
.tab_l, .tab_t, .tab_r | |
+inline-block | |
:background-repeat no-repeat | |
:height 35px | |
:color red |
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
@import 960/grid.sass | |
#gallery | |
+grid-container | |
// Or whatever gallery wrapper white padding used to be | |
padding: 1em 0 | |
background-color: white | |
#images | |
+grid(9,12) |
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
# config/compass.rb | |
# Require any additional compass plugins here. | |
project_type = :rails | |
project_path = RAILS_ROOT if defined?(RAILS_ROOT) | |
css_dir = "public/stylesheets/compiled" | |
sass_dir = "app/stylesheets" | |
images_dir = "public/images" | |
javascripts_dir = "public/javascripts" | |
output_style = :compact | |
http_images_path = "/public/images" |
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
// | |
Full stylesheet for Winston | |
License: see LICENSE packaged with Winston | |
the same license counts for each module separately | |
Desc: This is the full Winston stylesheet. It is recommended | |
to only take the parts you need in orde to minimize the | |
amount of CSS in your project. | |
OlderNewer