bootstrap-generators 1.4.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +238 -21
- data/bootstrap-generators.gemspec +3 -3
- data/lib/bootstrap-generators.rb +0 -1
- data/lib/bootstrap/generators/version.rb +1 -1
- data/lib/generators/bootstrap/install/install_generator.rb +5 -12
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css +5 -5
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.less +119 -0
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.scss +5 -5
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css +0 -5
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.less +114 -0
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss +0 -5
- data/lib/generators/bootstrap/install/templates/config/initializers/simple_form.rb +118 -40
- data/lib/generators/bootstrap/install/templates/config/locales/simple_form.en.yml +24 -0
- data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.erb +9 -8
- data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml +8 -7
- data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb +5 -7
- data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml +6 -7
- data/lib/generators/bootstrap/install/templates/layouts/fluid.html.erb +50 -47
- data/lib/generators/bootstrap/install/templates/layouts/fluid.html.haml +75 -55
- data/lib/generators/bootstrap/install/templates/layouts/hero.html.erb +11 -14
- data/lib/generators/bootstrap/install/templates/layouts/hero.html.haml +9 -11
- data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/edit.html.erb +8 -2
- data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb +5 -2
- data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/new.html.erb +4 -1
- data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/show.html.erb +8 -2
- data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/edit.html.haml +6 -2
- data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml +4 -2
- data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/new.html.haml +3 -1
- data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/show.html.haml +6 -2
- data/test/lib/generators/bootstrap/install_generator_test.rb +6 -20
- data/test/test_helper.rb +1 -1
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +91 -0
- data/vendor/assets/javascripts/bootstrap-button.js +98 -0
- data/vendor/assets/javascripts/bootstrap-carousel.js +154 -0
- data/vendor/assets/javascripts/bootstrap-collapse.js +136 -0
- data/vendor/assets/javascripts/bootstrap-dropdown.js +58 -21
- data/vendor/assets/javascripts/bootstrap-modal.js +63 -114
- data/vendor/assets/javascripts/bootstrap-popover.js +38 -33
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +62 -44
- data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
- data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
- data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
- data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
- data/vendor/assets/javascripts/bootstrap.js +11 -6
- data/vendor/assets/stylesheets/bootstrap.css +2497 -1602
- data/vendor/assets/stylesheets/less/accordion.less +28 -0
- data/vendor/assets/stylesheets/less/alerts.less +70 -0
- data/vendor/assets/stylesheets/less/bootstrap.less +62 -0
- data/vendor/assets/stylesheets/less/breadcrumbs.less +22 -0
- data/vendor/assets/stylesheets/less/button-groups.less +147 -0
- data/vendor/assets/stylesheets/less/buttons.less +165 -0
- data/vendor/assets/stylesheets/less/carousel.less +121 -0
- data/vendor/assets/stylesheets/less/close.less +18 -0
- data/vendor/assets/stylesheets/less/code.less +44 -0
- data/vendor/assets/stylesheets/less/component-animations.less +18 -0
- data/vendor/assets/stylesheets/less/dropdowns.less +131 -0
- data/vendor/assets/stylesheets/less/forms.less +515 -0
- data/vendor/assets/stylesheets/less/grid.less +8 -0
- data/vendor/assets/stylesheets/less/hero-unit.less +20 -0
- data/vendor/assets/stylesheets/less/labels.less +16 -0
- data/vendor/assets/stylesheets/less/layouts.less +17 -0
- data/vendor/assets/stylesheets/less/mixins.less +537 -0
- data/vendor/assets/stylesheets/less/modals.less +72 -0
- data/vendor/assets/stylesheets/less/navbar.less +292 -0
- data/vendor/assets/stylesheets/less/navs.less +344 -0
- data/vendor/assets/stylesheets/less/pager.less +30 -0
- data/vendor/assets/stylesheets/less/pagination.less +55 -0
- data/vendor/assets/stylesheets/less/popovers.less +49 -0
- data/vendor/assets/stylesheets/less/progress-bars.less +95 -0
- data/vendor/assets/stylesheets/less/reset.less +126 -0
- data/vendor/assets/stylesheets/less/responsive.less +323 -0
- data/vendor/assets/stylesheets/less/scaffolding.less +29 -0
- data/vendor/assets/stylesheets/less/sprites.less +156 -0
- data/vendor/assets/stylesheets/less/tables.less +139 -0
- data/vendor/assets/stylesheets/less/thumbnails.less +35 -0
- data/vendor/assets/stylesheets/less/tooltip.less +35 -0
- data/vendor/assets/stylesheets/less/type.less +217 -0
- data/vendor/assets/stylesheets/less/utilities.less +23 -0
- data/vendor/assets/stylesheets/less/variables.less +99 -0
- data/vendor/assets/stylesheets/less/wells.less +17 -0
- metadata +62 -33
- data/lib/bootstrap/helpers/form_builder.rb +0 -26
- data/lib/generators/bootstrap/install/templates/app/inputs/boolean_input.rb +0 -12
- data/lib/generators/bootstrap/install/templates/app/inputs/collection_input.rb +0 -12
- data/lib/generators/bootstrap/install/templates/app/inputs/date_time_input.rb +0 -16
- data/lib/generators/bootstrap/install/templates/app/inputs/file_input.rb +0 -16
- data/lib/generators/bootstrap/install/templates/app/inputs/numeric_input.rb +0 -16
- data/lib/generators/bootstrap/install/templates/app/inputs/password_input.rb +0 -16
- data/lib/generators/bootstrap/install/templates/app/inputs/string_input.rb +0 -16
- data/lib/generators/bootstrap/install/templates/app/inputs/text_input.rb +0 -16
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/container-app.css +0 -53
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/container-app.css.scss +0 -55
- data/lib/generators/bootstrap/install/templates/layouts/container-app.html.erb +0 -58
- data/lib/generators/bootstrap/install/templates/layouts/container-app.html.haml +0 -46
- data/vendor/assets/javascripts/bootstrap-alerts.js +0 -113
- data/vendor/assets/javascripts/bootstrap-buttons.js +0 -62
- data/vendor/assets/javascripts/bootstrap-tabs.js +0 -80
- data/vendor/assets/javascripts/bootstrap-twipsy.js +0 -321
- data/vendor/assets/stylesheets/bootstrap.min.css +0 -356
data/README.md
CHANGED
@@ -2,47 +2,264 @@
|
|
2
2
|
|
3
3
|
Bootstrap-generators provides Twitter Bootstrap generators for Rails 3.1. Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites. Checkout http://twitter.github.com/bootstrap.
|
4
4
|
|
5
|
-
##
|
5
|
+
## Installing Gem
|
6
6
|
|
7
|
-
|
7
|
+
In your Gemfile, add this line:
|
8
8
|
|
9
|
-
|
9
|
+
gem 'bootstrap-generators', '~> 2.0'
|
10
10
|
|
11
|
-
|
11
|
+
Or you can install from latest build:
|
12
12
|
|
13
|
-
|
13
|
+
gem 'bootstrap-generators', '~> 2.0', :git => 'git://github.com/decioferreira/bootstrap-generators.git'
|
14
14
|
|
15
15
|
By default Bootstrap Generators requires SimpleForm. Add the dependency on your Gemfile:
|
16
16
|
|
17
|
-
|
17
|
+
gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git'
|
18
|
+
|
19
|
+
If you don't want to use SimpleForm, just pass the `--form_builder=form_builder` option:
|
20
|
+
|
21
|
+
rails generate bootstrap:install --form_builder=form_builder
|
22
|
+
|
23
|
+
We recommended you to use LESS as the stylesheet engine, so that you can [customize][] and extend Bootstrap to take advantage of the variables, mixins, and more. Add the dependency on your Gemfile:
|
18
24
|
|
19
|
-
|
25
|
+
gem 'less-rails'
|
20
26
|
|
21
|
-
Then
|
27
|
+
Then you just have to pass `--stylesheet-engine==less` option:
|
22
28
|
|
23
|
-
|
29
|
+
rails generate bootstrap:install --stylesheet-engine==less
|
24
30
|
|
25
|
-
|
31
|
+
Run bundle install:
|
32
|
+
|
33
|
+
bundle install
|
34
|
+
|
35
|
+
## Generators
|
36
|
+
|
37
|
+
Get started:
|
38
|
+
|
39
|
+
rails generate bootstrap:install
|
26
40
|
|
27
41
|
Once you've done that, any time you generate a controller or scaffold, you'll get [Bootstrap](http://twitter.github.com/bootstrap/) templates.
|
28
42
|
|
29
|
-
|
43
|
+
### Give it a try
|
44
|
+
|
45
|
+
rails generate scaffold post title:string body:text published:boolean
|
46
|
+
|
47
|
+
## Usage
|
48
|
+
|
49
|
+
To print the options and usage run the command `rails generate bootstrap:install --help`
|
50
|
+
|
51
|
+
rails generate bootstrap:install [options]
|
52
|
+
|
53
|
+
Options:
|
54
|
+
[--layout=LAYOUT] # Bootstrap layout templates (hero or fluid)
|
55
|
+
# Default: hero
|
56
|
+
[--form-builder=FORM_BUILDER] # Select your form builder (simple_form or form_builder)
|
57
|
+
# Default: simple_form
|
58
|
+
-e, [--template-engine=TEMPLATE_ENGINE] # Indicates when to generate template engine
|
59
|
+
# Default: erb
|
60
|
+
-se, [--stylesheet-engine=STYLESHEET_ENGINE] # Indicates when to generate stylesheet engine
|
61
|
+
# Default: scss
|
62
|
+
|
63
|
+
Runtime options:
|
64
|
+
-f, [--force] # Overwrite files that already exist
|
65
|
+
-p, [--pretend] # Run but do not make any changes
|
66
|
+
-q, [--quiet] # Supress status output
|
67
|
+
-s, [--skip] # Skip files that already exist
|
68
|
+
|
69
|
+
Copy BootstrapGenerators default files
|
70
|
+
|
71
|
+
### Options
|
72
|
+
|
73
|
+
#### Layouts
|
74
|
+
|
75
|
+
There are the two available layouts, based on Bootstrap's quick-start examples:
|
76
|
+
|
77
|
+
* [Basic marketing site](http://twitter.github.com/bootstrap/examples/hero.html) (default)
|
78
|
+
* [Fluid layout](http://twitter.github.com/bootstrap/examples/fluid.html)
|
79
|
+
|
80
|
+
To select one of these layouts just pass the option `--layout=LAYOUT` to the install generator.
|
81
|
+
|
82
|
+
#### Form builders
|
83
|
+
|
84
|
+
* SimpleForm
|
85
|
+
|
86
|
+
By default Bootstrap Generators requires SimpleForm. Add the dependency on your Gemfile:
|
87
|
+
|
88
|
+
gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git'
|
89
|
+
|
90
|
+
And then run:
|
91
|
+
|
92
|
+
rails generate bootstrap:install --form_builder=simple_form
|
93
|
+
|
94
|
+
* Default Rails form builder
|
95
|
+
|
96
|
+
If you don't want to use SimpleForm, just pass the `--form_builder=form_builder` option:
|
97
|
+
|
98
|
+
rails generate bootstrap:install --form_builder=form_builder
|
99
|
+
|
100
|
+
#### Template engines
|
101
|
+
|
102
|
+
Supported template engines:
|
103
|
+
|
104
|
+
* ERB
|
105
|
+
* Haml
|
106
|
+
|
107
|
+
Add the dependency on your Gemfile:
|
108
|
+
|
109
|
+
gem 'haml-rails'
|
110
|
+
|
111
|
+
And then run:
|
112
|
+
|
113
|
+
rails generate bootstrap:install --template-engine=haml
|
114
|
+
|
115
|
+
#### Stylesheet engines
|
116
|
+
|
117
|
+
Supported stylesheet engines:
|
118
|
+
|
119
|
+
* LESS (recommended)
|
120
|
+
|
121
|
+
Add the dependency on your Gemfile:
|
122
|
+
|
123
|
+
gem 'less-rails'
|
124
|
+
|
125
|
+
And then run:
|
126
|
+
|
127
|
+
rails generate bootstrap:install --template-engine=haml
|
128
|
+
|
129
|
+
Now you can [customize][] the look and feel of Bootstrap.
|
130
|
+
|
131
|
+
* CSS
|
132
|
+
* SCSS
|
133
|
+
|
134
|
+
## Assets
|
135
|
+
|
136
|
+
<a name="customize"></a>
|
137
|
+
|
138
|
+
### Customize and extend Bootstrap with LESS
|
139
|
+
|
140
|
+
Customize and extend Bootstrap with [LESS](http://lesscss.org/), a CSS preprocessor, to take advantage of the variables, mixins, and more used to build Bootstrap's CSS.
|
141
|
+
|
142
|
+
If you select LESS as your stylesheet engine, you will get an `app/assets/stylesheets/bootstrap-generators.css.less` file with all of the [default variables](http://twitter.github.com/bootstrap/less.html#variables) of Bootstrap. This way you can [customize](http://twitter.github.com/bootstrap/download.html#variables) the look and feel of Bootstrap without having to download any extra file:
|
143
|
+
|
144
|
+
// Variables to customize the look and feel of Bootstrap
|
145
|
+
// -----------------------------------------------------
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
// GLOBAL VALUES
|
150
|
+
// --------------------------------------------------
|
151
|
+
|
152
|
+
// Links
|
153
|
+
@linkColor: #08c;
|
154
|
+
@linkColorHover: darken(@linkColor, 15%);
|
155
|
+
|
156
|
+
// Grays
|
157
|
+
@black: #000;
|
158
|
+
@grayDarker: #222;
|
159
|
+
@grayDark: #333;
|
160
|
+
@gray: #555;
|
161
|
+
@grayLight: #999;
|
162
|
+
@grayLighter: #eee;
|
163
|
+
@white: #fff;
|
164
|
+
|
165
|
+
// Accent colors
|
166
|
+
@blue: #049cdb;
|
167
|
+
@blueDark: #0064cd;
|
168
|
+
@green: #46a546;
|
169
|
+
@red: #9d261d;
|
170
|
+
@yellow: #ffc40d;
|
171
|
+
@orange: #f89406;
|
172
|
+
@pink: #c3325f;
|
173
|
+
@purple: #7a43b6;
|
174
|
+
|
175
|
+
// Typography
|
176
|
+
@baseFontSize: 13px;
|
177
|
+
@baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
178
|
+
@baseLineHeight: 18px;
|
179
|
+
@textColor: @grayDark;
|
180
|
+
|
181
|
+
// Buttons
|
182
|
+
@primaryButtonBackground: @linkColor;
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
// COMPONENT VARIABLES
|
187
|
+
// --------------------------------------------------
|
188
|
+
|
189
|
+
// Z-index master list
|
190
|
+
// Used for a bird's eye view of components dependent on the z-axis
|
191
|
+
// Try to avoid customizing these :)
|
192
|
+
@zindexDropdown: 1000;
|
193
|
+
@zindexPopover: 1010;
|
194
|
+
@zindexTooltip: 1020;
|
195
|
+
@zindexFixedNavbar: 1030;
|
196
|
+
@zindexModalBackdrop: 1040;
|
197
|
+
@zindexModal: 1050;
|
198
|
+
|
199
|
+
// Input placeholder text color
|
200
|
+
@placeholderText: @grayLight;
|
201
|
+
|
202
|
+
// Navbar
|
203
|
+
@navbarHeight: 40px;
|
204
|
+
@navbarBackground: @grayDarker;
|
205
|
+
@navbarBackgroundHighlight: @grayDark;
|
206
|
+
|
207
|
+
@navbarText: @grayLight;
|
208
|
+
@navbarLinkColor: @grayLight;
|
209
|
+
@navbarLinkColorHover: @white;
|
210
|
+
|
211
|
+
// Form states and alerts
|
212
|
+
@warningText: #c09853;
|
213
|
+
@warningBackground: #fcf8e3;
|
214
|
+
@warningBorder: darken(spin(@warningBackground, -10), 3%);
|
215
|
+
|
216
|
+
@errorText: #b94a48;
|
217
|
+
@errorBackground: #f2dede;
|
218
|
+
@errorBorder: darken(spin(@errorBackground, -10), 3%);
|
219
|
+
|
220
|
+
@successText: #468847;
|
221
|
+
@successBackground: #dff0d8;
|
222
|
+
@successBorder: darken(spin(@successBackground, -10), 5%);
|
223
|
+
|
224
|
+
@infoText: #3a87ad;
|
225
|
+
@infoBackground: #d9edf7;
|
226
|
+
@infoBorder: darken(spin(@infoBackground, -10), 7%);
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
// GRID
|
231
|
+
// --------------------------------------------------
|
30
232
|
|
31
|
-
|
233
|
+
// Default 940px grid
|
234
|
+
@gridColumns: 12;
|
235
|
+
@gridColumnWidth: 60px;
|
236
|
+
@gridGutterWidth: 20px;
|
237
|
+
@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
|
32
238
|
|
33
|
-
|
239
|
+
// Fluid grid
|
240
|
+
@fluidGridColumnWidth: 6.382978723%;
|
241
|
+
@fluidGridGutterWidth: 2.127659574%;
|
34
242
|
|
35
|
-
### SimpleForm
|
36
243
|
|
37
|
-
|
244
|
+
### Javascript
|
38
245
|
|
39
|
-
|
246
|
+
Select all jQuery plugins (`app/assets/javascripts/bootstrap.js`)
|
40
247
|
|
41
|
-
|
248
|
+
//= require bootstrap
|
42
249
|
|
43
|
-
|
44
|
-
* fluid (based on [this template](http://twitter.github.com/bootstrap/examples/fluid.html))
|
45
|
-
* container-app (based on [this template](http://twitter.github.com/bootstrap/examples/container-app.html))
|
250
|
+
Or quickly add only the necessary javascript (Transitions: required for any animation; Popovers: requires Tooltips)
|
46
251
|
|
47
|
-
|
252
|
+
//= require bootstrap-transition
|
253
|
+
//= require bootstrap-alert
|
254
|
+
//= require bootstrap-modal
|
255
|
+
//= require bootstrap-dropdown
|
256
|
+
//= require bootstrap-scrollspy
|
257
|
+
//= require bootstrap-tab
|
258
|
+
//= require bootstrap-tooltip
|
259
|
+
//= require bootstrap-popover
|
260
|
+
//= require bootstrap-button
|
261
|
+
//= require bootstrap-collapse
|
262
|
+
//= require bootstrap-carousel
|
263
|
+
//= require bootstrap-typeahead
|
48
264
|
|
265
|
+
[customize]: #customize
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.email = ["decio.ferreira@decioferreira.com"]
|
10
10
|
s.homepage = "https://github.com/decioferreira/bootstrap-generators"
|
11
11
|
s.summary = %q{Bootstrap-generators provides Twitter Bootstrap generators for Rails 3.1.}
|
12
|
-
s.description = %q{Bootstrap-generators provides Twitter Bootstrap generators for Rails 3.1.
|
12
|
+
s.description = %q{Bootstrap-generators provides Twitter Bootstrap generators for Rails 3.1. Checkout http://twitter.github.com/bootstrap.}
|
13
13
|
|
14
14
|
s.rubyforge_project = "bootstrap-generators"
|
15
15
|
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
|
25
25
|
s.add_development_dependency "bundler", "~> 1.0.0"
|
26
26
|
s.add_development_dependency "test-unit"
|
27
|
-
s.add_development_dependency "rails", "~> 3.1
|
27
|
+
s.add_development_dependency "rails", "~> 3.1"
|
28
28
|
|
29
|
-
s.add_runtime_dependency "railties", "~> 3.1
|
29
|
+
s.add_runtime_dependency "railties", "~> 3.1"
|
30
30
|
end
|
data/lib/bootstrap-generators.rb
CHANGED
@@ -3,10 +3,10 @@ require 'rails'
|
|
3
3
|
module Bootstrap
|
4
4
|
module Generators
|
5
5
|
class InstallGenerator < ::Rails::Generators::Base
|
6
|
-
desc
|
6
|
+
desc 'Copy BootstrapGenerators default files'
|
7
7
|
source_root File.expand_path('../templates', __FILE__)
|
8
|
-
class_option :layout, :desc =>
|
9
|
-
class_option :form_builder, :desc =>
|
8
|
+
class_option :layout, :desc => 'Bootstrap layout templates (hero or fluid)', :default => 'hero', :type => :string
|
9
|
+
class_option :form_builder, :desc => 'Select your form builder (simple_form or form_builder)', :default => 'simple_form', :type => :string
|
10
10
|
|
11
11
|
class_option :template_engine
|
12
12
|
class_option :stylesheet_engine
|
@@ -23,14 +23,8 @@ module Bootstrap
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
def copy_simple_form_inputs
|
27
|
-
if options[:form_builder] == "simple_form"
|
28
|
-
directory 'app'
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
26
|
def copy_simple_form_config
|
33
|
-
if options[:form_builder] ==
|
27
|
+
if options[:form_builder] == 'simple_form'
|
34
28
|
directory 'config'
|
35
29
|
end
|
36
30
|
end
|
@@ -47,9 +41,8 @@ module Bootstrap
|
|
47
41
|
end
|
48
42
|
|
49
43
|
copy_file "assets/stylesheets/#{options[:layout]}.#{stylesheet_extension}", "app/assets/stylesheets/bootstrap-generators.#{stylesheet_extension}"
|
50
|
-
copy_file
|
44
|
+
copy_file 'assets/javascripts/bootstrap-generators.js', 'app/assets/javascripts/bootstrap-generators.js'
|
51
45
|
end
|
52
46
|
end
|
53
47
|
end
|
54
48
|
end
|
55
|
-
|
@@ -4,6 +4,11 @@
|
|
4
4
|
|
5
5
|
body {
|
6
6
|
padding-top: 60px;
|
7
|
+
padding-bottom: 40px;
|
8
|
+
}
|
9
|
+
|
10
|
+
.sidebar-nav {
|
11
|
+
padding: 9px 0;
|
7
12
|
}
|
8
13
|
|
9
14
|
.page-header a.btn {
|
@@ -13,8 +18,3 @@ body {
|
|
13
18
|
.page-header a.btn + a.btn {
|
14
19
|
margin-right: 8px;
|
15
20
|
}
|
16
|
-
|
17
|
-
.form-stacked div.alert-message {
|
18
|
-
margin-left: -10px;
|
19
|
-
}
|
20
|
-
|
@@ -0,0 +1,119 @@
|
|
1
|
+
@import "less/bootstrap";
|
2
|
+
|
3
|
+
body {
|
4
|
+
padding-top: 60px;
|
5
|
+
padding-bottom: 40px;
|
6
|
+
}
|
7
|
+
|
8
|
+
.sidebar-nav {
|
9
|
+
padding: 9px 0;
|
10
|
+
}
|
11
|
+
|
12
|
+
.page-header {
|
13
|
+
a.btn {
|
14
|
+
float: right;
|
15
|
+
}
|
16
|
+
|
17
|
+
a.btn + a.btn {
|
18
|
+
margin-right: 8px;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
// Variables to customize the look and feel of Bootstrap
|
23
|
+
// -----------------------------------------------------
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
// GLOBAL VALUES
|
28
|
+
// --------------------------------------------------
|
29
|
+
|
30
|
+
// Links
|
31
|
+
@linkColor: #08c;
|
32
|
+
@linkColorHover: darken(@linkColor, 15%);
|
33
|
+
|
34
|
+
// Grays
|
35
|
+
@black: #000;
|
36
|
+
@grayDarker: #222;
|
37
|
+
@grayDark: #333;
|
38
|
+
@gray: #555;
|
39
|
+
@grayLight: #999;
|
40
|
+
@grayLighter: #eee;
|
41
|
+
@white: #fff;
|
42
|
+
|
43
|
+
// Accent colors
|
44
|
+
@blue: #049cdb;
|
45
|
+
@blueDark: #0064cd;
|
46
|
+
@green: #46a546;
|
47
|
+
@red: #9d261d;
|
48
|
+
@yellow: #ffc40d;
|
49
|
+
@orange: #f89406;
|
50
|
+
@pink: #c3325f;
|
51
|
+
@purple: #7a43b6;
|
52
|
+
|
53
|
+
// Typography
|
54
|
+
@baseFontSize: 13px;
|
55
|
+
@baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
56
|
+
@baseLineHeight: 18px;
|
57
|
+
@textColor: @grayDark;
|
58
|
+
|
59
|
+
// Buttons
|
60
|
+
@primaryButtonBackground: @linkColor;
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
// COMPONENT VARIABLES
|
65
|
+
// --------------------------------------------------
|
66
|
+
|
67
|
+
// Z-index master list
|
68
|
+
// Used for a bird's eye view of components dependent on the z-axis
|
69
|
+
// Try to avoid customizing these :)
|
70
|
+
@zindexDropdown: 1000;
|
71
|
+
@zindexPopover: 1010;
|
72
|
+
@zindexTooltip: 1020;
|
73
|
+
@zindexFixedNavbar: 1030;
|
74
|
+
@zindexModalBackdrop: 1040;
|
75
|
+
@zindexModal: 1050;
|
76
|
+
|
77
|
+
// Input placeholder text color
|
78
|
+
@placeholderText: @grayLight;
|
79
|
+
|
80
|
+
// Navbar
|
81
|
+
@navbarHeight: 40px;
|
82
|
+
@navbarBackground: @grayDarker;
|
83
|
+
@navbarBackgroundHighlight: @grayDark;
|
84
|
+
|
85
|
+
@navbarText: @grayLight;
|
86
|
+
@navbarLinkColor: @grayLight;
|
87
|
+
@navbarLinkColorHover: @white;
|
88
|
+
|
89
|
+
// Form states and alerts
|
90
|
+
@warningText: #c09853;
|
91
|
+
@warningBackground: #fcf8e3;
|
92
|
+
@warningBorder: darken(spin(@warningBackground, -10), 3%);
|
93
|
+
|
94
|
+
@errorText: #b94a48;
|
95
|
+
@errorBackground: #f2dede;
|
96
|
+
@errorBorder: darken(spin(@errorBackground, -10), 3%);
|
97
|
+
|
98
|
+
@successText: #468847;
|
99
|
+
@successBackground: #dff0d8;
|
100
|
+
@successBorder: darken(spin(@successBackground, -10), 5%);
|
101
|
+
|
102
|
+
@infoText: #3a87ad;
|
103
|
+
@infoBackground: #d9edf7;
|
104
|
+
@infoBorder: darken(spin(@infoBackground, -10), 7%);
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
// GRID
|
109
|
+
// --------------------------------------------------
|
110
|
+
|
111
|
+
// Default 940px grid
|
112
|
+
@gridColumns: 12;
|
113
|
+
@gridColumnWidth: 60px;
|
114
|
+
@gridGutterWidth: 20px;
|
115
|
+
@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
|
116
|
+
|
117
|
+
// Fluid grid
|
118
|
+
@fluidGridColumnWidth: 6.382978723%;
|
119
|
+
@fluidGridGutterWidth: 2.127659574%;
|