customizable_bootstrap 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +20 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +45 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/customizable_bootstrap.gemspec +366 -0
- data/lib/customizable_bootstrap.rb +9 -0
- data/lib/customizable_bootstrap/railtie.rb +4 -0
- data/lib/customizable_bootstrap/version.rb +7 -0
- data/lib/generators/customizable_bootstrap/install/install_generator.rb +23 -0
- data/lib/generators/customizable_bootstrap/install/templates/javascripts/index.js +15 -0
- data/lib/generators/customizable_bootstrap/install/templates/stylesheets/colors.css.scss +100 -0
- data/lib/generators/customizable_bootstrap/install/templates/stylesheets/font.css.scss +9 -0
- data/lib/generators/customizable_bootstrap/install/templates/stylesheets/grid.css.scss +7 -0
- data/lib/generators/customizable_bootstrap/install/templates/stylesheets/index.css.scss +13 -0
- data/lib/generators/customizable_bootstrap/install/templates/stylesheets/layers.css.scss +7 -0
- data/lib/generators/customizable_bootstrap/install/templates/stylesheets/overrides.css.scss +27 -0
- data/lib/generators/customizable_bootstrap/utils.rb +16 -0
- data/script/rails +6 -0
- data/spec/customizable_bootstrap_spec.rb +18 -0
- data/spec/dummy/.rspec +1 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/javascripts/customizable_bootstrap/index.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css.scss +15 -0
- data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/colors.css.scss +100 -0
- data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/font.css.scss +9 -0
- data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/grid.css.scss +7 -0
- data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/index.css.scss +13 -0
- data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/layers.css.scss +7 -0
- data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/overrides.css.scss +27 -0
- data/spec/dummy/app/assets/stylesheets/scaffolds.css.scss +1 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +26 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +23 -0
- data/spec/dummy/config/environments/test.rb +17 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/routes.rb +52 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/index.html +57 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/spec_helper.rb +19 -0
- metadata +1389 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
$sansFontFamily: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
2
|
+
$serifFontFamily: Georgia, 'Times New Roman', Times, serif;
|
3
|
+
$monoFontFamily: Menlo, Monaco, Consolas, 'Courier New', monospace;
|
4
|
+
$baseFontSize: 13px;
|
5
|
+
$baseFontFamily: $sansFontFamily;
|
6
|
+
$baseLineHeight: 18px;
|
7
|
+
$altFontFamily: $serifFontFamily;
|
8
|
+
$headingsFontFamily: $sansFontFamily;
|
9
|
+
$headingsFontWeight: bold;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// DON'T TOUCH IT
|
2
|
+
// You'll break it.
|
3
|
+
//
|
4
|
+
// Actually, you can customize it at will.
|
5
|
+
|
6
|
+
@import './font';
|
7
|
+
@import './colors';
|
8
|
+
@import './grid';
|
9
|
+
@import './layers';
|
10
|
+
@import 'bootstrap';
|
11
|
+
@import 'bootstrap-responsive';
|
12
|
+
// @import 'font-awesome';
|
13
|
+
@import './overrides';
|
@@ -0,0 +1,27 @@
|
|
1
|
+
// These rules override those given within bootstrap. They can use
|
2
|
+
// mixins and variables.
|
3
|
+
|
4
|
+
body {
|
5
|
+
padding-top: 60px;
|
6
|
+
}
|
7
|
+
|
8
|
+
.clear-right {
|
9
|
+
clear: right;
|
10
|
+
}
|
11
|
+
|
12
|
+
.clear-left {
|
13
|
+
clear: left;
|
14
|
+
}
|
15
|
+
|
16
|
+
.clear-all, .clear-both {
|
17
|
+
clear: both;
|
18
|
+
}
|
19
|
+
|
20
|
+
.relative {
|
21
|
+
position: relative;
|
22
|
+
}
|
23
|
+
|
24
|
+
object, embed, video {
|
25
|
+
max-width: 100%;
|
26
|
+
height: auto;
|
27
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
/* We hate this file. */
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
require "sprockets/railtie"
|
5
|
+
# require "rails/test_unit/railtie"
|
6
|
+
|
7
|
+
Bundler.require
|
8
|
+
require "customizable_bootstrap"
|
9
|
+
|
10
|
+
module Dummy
|
11
|
+
class Application < Rails::Application
|
12
|
+
|
13
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
14
|
+
config.encoding = "utf-8"
|
15
|
+
|
16
|
+
# Enable escaping HTML in JSON.
|
17
|
+
config.active_support.escape_html_entities_in_json = true
|
18
|
+
|
19
|
+
# Enable the asset pipeline
|
20
|
+
config.assets.enabled = true
|
21
|
+
|
22
|
+
# Version of your assets, change this if you want to expire all your assets
|
23
|
+
config.assets.version = '1.0'
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Show full error reports and disable caching
|
10
|
+
config.consider_all_requests_local = true
|
11
|
+
|
12
|
+
# Print deprecation notices to the Rails logger
|
13
|
+
config.active_support.deprecation = :log
|
14
|
+
|
15
|
+
# Only use best-standards-support built into browsers
|
16
|
+
config.action_dispatch.best_standards_support = :builtin
|
17
|
+
|
18
|
+
# Do not compress assets
|
19
|
+
config.assets.compress = false
|
20
|
+
|
21
|
+
# Expands the lines which load the assets
|
22
|
+
config.assets.debug = true
|
23
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Show full error reports and disable caching
|
15
|
+
config.consider_all_requests_local = true
|
16
|
+
config.active_support.deprecation = :stderr
|
17
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
11
|
+
#
|
12
|
+
# These inflection rules are supported but not enabled by default:
|
13
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
14
|
+
# inflect.acronym 'RESTful'
|
15
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = '13335d67552fdd1870f1e89aa229a259979c25ad14a60a64b75ce77db7622c9728606f2415d021416725905e8ad5955be6fff9e01702167f1ddc0fb4c5f3cfdf'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters :format => [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
# The priority is based upon order of creation:
|
3
|
+
# first created -> highest priority.
|
4
|
+
|
5
|
+
# Sample of regular route:
|
6
|
+
# match 'products/:id' => 'catalog#view'
|
7
|
+
# Keep in mind you can assign values other than :controller and :action
|
8
|
+
|
9
|
+
# Sample of named route:
|
10
|
+
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
11
|
+
# This route can be invoked with purchase_url(:id => product.id)
|
12
|
+
|
13
|
+
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
14
|
+
# resources :products
|
15
|
+
|
16
|
+
# Sample resource route with options:
|
17
|
+
# resources :products do
|
18
|
+
# member do
|
19
|
+
# get 'short'
|
20
|
+
# post 'toggle'
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
# collection do
|
24
|
+
# get 'sold'
|
25
|
+
# end
|
26
|
+
# end
|
27
|
+
|
28
|
+
# Sample resource route with sub-resources:
|
29
|
+
# resources :products do
|
30
|
+
# resources :comments, :sales
|
31
|
+
# resource :seller
|
32
|
+
# end
|
33
|
+
|
34
|
+
# Sample resource route with more complex sub-resources
|
35
|
+
# resources :products do
|
36
|
+
# resources :comments
|
37
|
+
# resources :sales do
|
38
|
+
# get 'recent', :on => :collection
|
39
|
+
# end
|
40
|
+
# end
|
41
|
+
|
42
|
+
# Sample resource route within a namespace:
|
43
|
+
# namespace :admin do
|
44
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
45
|
+
# # (app/controllers/admin/products_controller.rb)
|
46
|
+
# resources :products
|
47
|
+
# end
|
48
|
+
|
49
|
+
# You can have the root of your site routed with "root"
|
50
|
+
# just remember to delete public/index.html.
|
51
|
+
# root :to => 'welcome#index'
|
52
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<link rel="stylesheet" href="/assets/application.css" type="text/css"/>
|
4
|
+
<title>Website</title>
|
5
|
+
</head>
|
6
|
+
|
7
|
+
<body>
|
8
|
+
|
9
|
+
<div class="navbar navbar-fixed-top">
|
10
|
+
<div class="navbar-inner">
|
11
|
+
<div class="container">
|
12
|
+
<ul class="nav">
|
13
|
+
<li class="active">
|
14
|
+
<a class="brand" href="#">Website</a>
|
15
|
+
</li>
|
16
|
+
<li><a href="#">About</a></li>
|
17
|
+
<li><a href="#" id="contact" >Contact</a></li>
|
18
|
+
<li><a href="#" id="login">Log In</a></li>
|
19
|
+
</ul>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
<div class="container-fluid">
|
27
|
+
<div class="row-fluid">
|
28
|
+
<h1>Rad, man!</h1>
|
29
|
+
<p>Flexitarian food truck kale chips put a bird on it umami, bespoke selfies trust fund pug McSweeney's scenester chillwave. Direct trade jean shorts before they sold out, +1 Truffaut ugh vegan Pitchfork. Fixie roof party freegan street art, Marfa Vice Austin Intelligentsia twee banjo kale chips letterpress forage Terry Richardson. Brunch Terry Richardson Shoreditch sartorial, skateboard meh deep v hashtag. Austin irony art party, YOLO four loko fanny pack keytar. Cred before they sold out yr gastropub. Cred deep v pork belly, irony keytar farm-to-table craft beer hoodie occupy Intelligentsia. </p>
|
30
|
+
|
31
|
+
<p>Mlkshk Thundercats scenester, YOLO stumptown drinking vinegar ugh American Apparel Tonx. Sustainable iPhone umami Banksy. Stumptown gluten-free skateboard 8-bit. Bespoke fingerstache banh mi cardigan. Paleo post-ironic messenger bag sriracha. Cosby sweater gastropub ethical, letterpress pug pop-up Terry Richardson Truffaut lo-fi photo booth. Disrupt banh mi DIY wayfarers, stumptown VHS 90's. </p>
|
32
|
+
|
33
|
+
<p>Skateboard authentic slow-carb, fingerstache fap mumblecore chia hoodie Blue Bottle before they sold out viral vinyl gluten-free chambray. Next level Banksy mustache trust fund chillwave Wes Anderson, ugh drinking vinegar actually meggings bespoke pickled Echo Park. Food truck cornhole seitan 90's hella. Roof party lomo VHS church-key, selvage Cosby sweater dreamcatcher try-hard deep v hella photo booth McSweeney's ethnic chambray slow-carb. Austin gastropub cardigan, try-hard cred fashion axe Shoreditch meggings flannel post-ironic four loko hashtag Vice VHS tofu. Before they sold out Brooklyn leggings, Vice readymade pop-up small batch four loko Intelligentsia scenester wolf asymmetrical wayfarers. PBR chillwave four loko, meggings you probably haven't heard of them master cleanse synth.</p>
|
34
|
+
|
35
|
+
<p>Leggings try-hard master cleanse art party sustainable lo-fi. Terry Richardson vegan Truffaut authentic Williamsburg, Pitchfork cardigan typewriter keytar narwhal. Messenger bag gluten-free blog, ethnic ennui gastropub seitan direct trade hoodie semiotics deep v Banksy Intelligentsia whatever. Leggings cray post-ironic, irony letterpress quinoa Tumblr Portland Marfa blog meggings polaroid messenger bag readymade cred. Twee mlkshk gluten-free swag small batch, beard cred skateboard retro biodiesel. Before they sold out polaroid Thundercats, skateboard raw denim pickled meh hella VHS PBR church-key butcher keffiyeh banh mi. Tote bag mixtape distillery, cray Terry Richardson fashion axe sriracha put a bird on it farm-to-table chia pickled retro.</p>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<hr/>
|
44
|
+
<div class=" footer">
|
45
|
+
<span><a href="#">About</a></span>
|
46
|
+
<span><a href="#" >Contact</a></span>
|
47
|
+
<span><a href="#" >Facebook</a></span>
|
48
|
+
<span><a href="#" >Twitter</a></span>
|
49
|
+
<span><a href="#" >Careers</a></span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</body>
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
</html>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby1.8
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|