bootstrap-generators 2.0.1 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +258 -33
- data/Rakefile +0 -59
- data/lib/bootstrap/generators/engine.rb +6 -1
- data/lib/bootstrap/generators/version.rb +1 -1
- data/lib/generators/bootstrap/install/install_generator.rb +10 -2
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +120 -15
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +206 -0
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css +2 -0
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.less +5 -4
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.scss +3 -2
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css +2 -0
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.less +5 -4
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss +3 -2
- data/lib/generators/bootstrap/install/templates/config/initializers/simple_form.rb +3 -0
- data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.erb +3 -3
- data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml +2 -2
- data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb +1 -1
- data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml +1 -1
- data/test/fixtures/application.js +3 -0
- data/test/lib/generators/bootstrap/install_generator_test.rb +4 -3
- data/test/test_helper.rb +8 -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 +28 -32
- data/vendor/assets/javascripts/bootstrap-button.js +29 -33
- data/vendor/assets/javascripts/bootstrap-carousel.js +33 -21
- data/vendor/assets/javascripts/bootstrap-collapse.js +47 -26
- data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -10
- data/vendor/assets/javascripts/bootstrap-modal.js +25 -17
- data/vendor/assets/javascripts/bootstrap-popover.js +13 -10
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +44 -18
- data/vendor/assets/javascripts/bootstrap-tab.js +12 -7
- data/vendor/assets/javascripts/bootstrap-tooltip.js +40 -35
- data/vendor/assets/javascripts/bootstrap-transition.js +30 -20
- data/vendor/assets/javascripts/bootstrap-typeahead.js +29 -15
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/accordion.less +5 -0
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/alerts.less +2 -14
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/bootstrap.less +2 -2
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/breadcrumbs.less +2 -0
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/button-groups.less +76 -33
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/buttons.less +32 -24
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/carousel.less +0 -0
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/close.less +12 -1
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/code.less +6 -6
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/component-animations.less +7 -5
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/dropdowns.less +58 -45
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/forms.less +205 -144
- data/vendor/twitter/bootstrap/less/grid.less +5 -0
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/hero-unit.less +3 -1
- data/vendor/twitter/bootstrap/less/labels-badges.less +55 -0
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/layouts.less +1 -1
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/mixins.less +235 -179
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/modals.less +13 -6
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/navbar.less +131 -72
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/navs.less +53 -43
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/pager.less +6 -0
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/pagination.less +1 -0
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/popovers.less +0 -0
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/progress-bars.less +27 -5
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/reset.less +8 -3
- data/vendor/twitter/bootstrap/less/responsive-1200px-min.less +26 -0
- data/vendor/twitter/bootstrap/less/responsive-767px-max.less +149 -0
- data/vendor/twitter/bootstrap/less/responsive-768px-979px.less +17 -0
- data/vendor/twitter/bootstrap/less/responsive-navbar.less +153 -0
- data/vendor/twitter/bootstrap/less/responsive-utilities.less +41 -0
- data/vendor/twitter/bootstrap/less/responsive.less +48 -0
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/scaffolding.less +4 -4
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/sprites.less +42 -9
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/tables.less +46 -20
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/thumbnails.less +14 -2
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/tooltip.less +0 -0
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/type.less +27 -13
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/utilities.less +0 -0
- data/vendor/twitter/bootstrap/less/variables.less +206 -0
- data/vendor/{assets/stylesheets → twitter/bootstrap}/less/wells.less +10 -0
- data/vendor/{assets/stylesheets/scss/accordion.scss → twitter/bootstrap/sass/_accordion.scss} +5 -0
- data/vendor/{assets/stylesheets/scss/alerts.scss → twitter/bootstrap/sass/_alerts.scss} +3 -15
- data/vendor/{assets/stylesheets/scss/breadcrumbs.scss → twitter/bootstrap/sass/_breadcrumbs.scss} +2 -0
- data/vendor/{assets/stylesheets/scss/button-groups.scss → twitter/bootstrap/sass/_button-groups.scss} +76 -33
- data/vendor/{assets/stylesheets/scss/buttons.scss → twitter/bootstrap/sass/_buttons.scss} +33 -25
- data/vendor/{assets/stylesheets/scss/carousel.scss → twitter/bootstrap/sass/_carousel.scss} +1 -1
- data/vendor/{assets/stylesheets/scss/close.scss → twitter/bootstrap/sass/_close.scss} +12 -1
- data/vendor/{assets/stylesheets/scss/code.scss → twitter/bootstrap/sass/_code.scss} +7 -7
- data/vendor/{assets/stylesheets/scss/component-animations.scss → twitter/bootstrap/sass/_component-animations.scss} +9 -7
- data/vendor/{assets/stylesheets/scss/dropdowns.scss → twitter/bootstrap/sass/_dropdowns.scss} +58 -45
- data/vendor/{assets/stylesheets/scss/forms.scss → twitter/bootstrap/sass/_forms.scss} +205 -145
- data/vendor/twitter/bootstrap/sass/_grid.scss +5 -0
- data/vendor/{assets/stylesheets/scss/hero-unit.scss → twitter/bootstrap/sass/_hero-unit.scss} +3 -1
- data/vendor/twitter/bootstrap/sass/_labels-badges.scss +52 -0
- data/vendor/{assets/stylesheets/scss/layouts.scss → twitter/bootstrap/sass/_layouts.scss} +2 -2
- data/vendor/{assets/stylesheets/scss/mixins.scss → twitter/bootstrap/sass/_mixins.scss} +246 -182
- data/vendor/{assets/stylesheets/scss/modals.scss → twitter/bootstrap/sass/_modals.scss} +14 -7
- data/vendor/{assets/stylesheets/scss/navbar.scss → twitter/bootstrap/sass/_navbar.scss} +132 -73
- data/vendor/{assets/stylesheets/scss/navs.scss → twitter/bootstrap/sass/_navs.scss} +53 -43
- data/vendor/{assets/stylesheets/scss/pager.scss → twitter/bootstrap/sass/_pager.scss} +6 -0
- data/vendor/{assets/stylesheets/scss/pagination.scss → twitter/bootstrap/sass/_pagination.scss} +1 -0
- data/vendor/{assets/stylesheets/scss/popovers.scss → twitter/bootstrap/sass/_popovers.scss} +0 -0
- data/vendor/{assets/stylesheets/scss/progress-bars.scss → twitter/bootstrap/sass/_progress-bars.scss} +27 -5
- data/vendor/{assets/stylesheets/scss/reset.scss → twitter/bootstrap/sass/_reset.scss} +8 -3
- data/vendor/twitter/bootstrap/sass/_responsive-1200px-min.scss +26 -0
- data/vendor/twitter/bootstrap/sass/_responsive-767px-max.scss +149 -0
- data/vendor/twitter/bootstrap/sass/_responsive-768px-979px.scss +17 -0
- data/vendor/twitter/bootstrap/sass/_responsive-navbar.scss +153 -0
- data/vendor/twitter/bootstrap/sass/_responsive-utilities.scss +41 -0
- data/vendor/{assets/stylesheets/scss/scaffolding.scss → twitter/bootstrap/sass/_scaffolding.scss} +4 -4
- data/vendor/{assets/stylesheets/scss/sprites.scss → twitter/bootstrap/sass/_sprites.scss} +40 -7
- data/vendor/{assets/stylesheets/scss/tables.scss → twitter/bootstrap/sass/_tables.scss} +37 -32
- data/vendor/{assets/stylesheets/scss/thumbnails.scss → twitter/bootstrap/sass/_thumbnails.scss} +14 -2
- data/vendor/{assets/stylesheets/scss/tooltip.scss → twitter/bootstrap/sass/_tooltip.scss} +1 -1
- data/vendor/{assets/stylesheets/scss/type.scss → twitter/bootstrap/sass/_type.scss} +27 -13
- data/vendor/{assets/stylesheets/scss/utilities.scss → twitter/bootstrap/sass/_utilities.scss} +0 -0
- data/vendor/twitter/bootstrap/sass/_variables.scss +204 -0
- data/vendor/{assets/stylesheets/scss/wells.scss → twitter/bootstrap/sass/_wells.scss} +10 -0
- data/vendor/{assets/stylesheets/scss → twitter/bootstrap/sass}/bootstrap.scss +3 -3
- data/vendor/twitter/bootstrap/sass/responsive.scss +48 -0
- metadata +93 -84
- data/lib/generators/bootstrap/install/templates/assets/javascripts/bootstrap-generators.js +0 -1
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.less +0 -98
- data/vendor/assets/stylesheets/bootstrap.css +0 -3363
- data/vendor/assets/stylesheets/less/grid.less +0 -8
- data/vendor/assets/stylesheets/less/labels.less +0 -32
- data/vendor/assets/stylesheets/less/responsive.less +0 -327
- data/vendor/assets/stylesheets/less/variables.less +0 -107
- data/vendor/assets/stylesheets/scss/grid.scss +0 -8
- data/vendor/assets/stylesheets/scss/labels.scss +0 -32
- data/vendor/assets/stylesheets/scss/responsive.scss +0 -327
- data/vendor/assets/stylesheets/scss/variables.scss +0 -107
@@ -1,5 +1,10 @@
|
|
1
1
|
module Bootstrap
|
2
2
|
module Generators
|
3
|
-
class Engine < ::Rails::Engine
|
3
|
+
class Engine < ::Rails::Engine
|
4
|
+
initializer 'bootstrap-generators.after.load_config_initializers', :after => :load_config_initializers do |app|
|
5
|
+
app.config.less.paths << File.join(config.root, 'vendor', 'twitter', 'bootstrap', 'less') if app.config.respond_to?(:less)
|
6
|
+
app.config.sass.load_paths << File.join(config.root, 'vendor', 'twitter', 'bootstrap', 'sass') if app.config.respond_to?(:sass)
|
7
|
+
end
|
8
|
+
end
|
4
9
|
end
|
5
10
|
end
|
@@ -33,16 +33,24 @@ module Bootstrap
|
|
33
33
|
template "layouts/#{options[:layout]}.html.#{options[:template_engine]}", "app/views/layouts/application.html.#{options[:template_engine]}"
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
36
|
+
def create_stylesheets
|
37
37
|
if options[:stylesheet_engine].nil? || options[:stylesheet_engine].to_sym == :css
|
38
38
|
stylesheet_extension = 'css'
|
39
|
+
elsif options[:stylesheet_engine].to_sym == :less
|
40
|
+
stylesheet_extension = "css.#{options[:stylesheet_engine]}"
|
41
|
+
copy_file "assets/stylesheets/bootstrap-variables.less", "app/assets/stylesheets/bootstrap-variables.less"
|
39
42
|
else
|
40
43
|
stylesheet_extension = "css.#{options[:stylesheet_engine]}"
|
41
44
|
copy_file "assets/stylesheets/bootstrap-variables.#{stylesheet_extension}", "app/assets/stylesheets/bootstrap-variables.#{stylesheet_extension}"
|
42
45
|
end
|
43
46
|
|
44
47
|
copy_file "assets/stylesheets/#{options[:layout]}.#{stylesheet_extension}", "app/assets/stylesheets/bootstrap-generators.#{stylesheet_extension}"
|
45
|
-
|
48
|
+
end
|
49
|
+
|
50
|
+
def inject_backbone
|
51
|
+
inject_into_file "app/assets/javascripts/application.js", :before => "//= require_tree" do
|
52
|
+
"//= require bootstrap\n"
|
53
|
+
end
|
46
54
|
end
|
47
55
|
end
|
48
56
|
end
|
data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Variables
|
1
|
+
// Variables
|
2
2
|
// Variables to customize the look and feel of Bootstrap
|
3
3
|
// -----------------------------------------------------
|
4
4
|
|
@@ -7,11 +7,9 @@
|
|
7
7
|
// GLOBAL VALUES
|
8
8
|
// --------------------------------------------------
|
9
9
|
|
10
|
-
// Links
|
11
|
-
$linkColor: #08c !default;
|
12
|
-
$linkColorHover: darken($linkColor, 15%) !default;
|
13
10
|
|
14
11
|
// Grays
|
12
|
+
// -------------------------
|
15
13
|
$black: #000 !default;
|
16
14
|
$grayDarker: #222 !default;
|
17
15
|
$grayDark: #333 !default;
|
@@ -20,7 +18,9 @@ $grayLight: #999 !default;
|
|
20
18
|
$grayLighter: #eee !default;
|
21
19
|
$white: #fff !default;
|
22
20
|
|
21
|
+
|
23
22
|
// Accent colors
|
23
|
+
// -------------------------
|
24
24
|
$blue: #049cdb !default;
|
25
25
|
$blueDark: #0064cd !default;
|
26
26
|
$green: #46a546 !default;
|
@@ -30,14 +30,83 @@ $orange: #f89406 !default;
|
|
30
30
|
$pink: #c3325f !default;
|
31
31
|
$purple: #7a43b6 !default;
|
32
32
|
|
33
|
+
|
34
|
+
// Scaffolding
|
35
|
+
// -------------------------
|
36
|
+
$bodyBackground: $white !default;
|
37
|
+
$textColor: $grayDark !default;
|
38
|
+
|
39
|
+
|
40
|
+
// Links
|
41
|
+
// -------------------------
|
42
|
+
$linkColor: #08c !default;
|
43
|
+
$linkColorHover: darken($linkColor, 15%) !default;
|
44
|
+
|
45
|
+
|
33
46
|
// Typography
|
47
|
+
// -------------------------
|
48
|
+
$sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
|
49
|
+
$serifFontFamily: Georgia, "Times New Roman", Times, serif !default;
|
50
|
+
$monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace !default;
|
51
|
+
|
34
52
|
$baseFontSize: 13px !default;
|
35
|
-
$baseFontFamily:
|
53
|
+
$baseFontFamily: $sansFontFamily !default;
|
36
54
|
$baseLineHeight: 18px !default;
|
37
|
-
$
|
55
|
+
$altFontFamily: $serifFontFamily !default;
|
56
|
+
|
57
|
+
$headingsFontFamily: inherit !default; // empty to use BS default, $baseFontFamily
|
58
|
+
$headingsFontWeight: bold !default; // instead of browser default, bold
|
59
|
+
$headingsColor: inherit !default; // empty to use BS default, $textColor
|
60
|
+
|
61
|
+
|
62
|
+
// Tables
|
63
|
+
// -------------------------
|
64
|
+
$tableBackground: transparent !default; // overall background-color
|
65
|
+
$tableBackgroundAccent: #f9f9f9 !default; // for striping
|
66
|
+
$tableBackgroundHover: #f5f5f5 !default; // for hover
|
67
|
+
$tableBorder: #ddd !default; // table and cell border
|
68
|
+
|
38
69
|
|
39
70
|
// Buttons
|
40
|
-
|
71
|
+
// -------------------------
|
72
|
+
$btnBackground: $white !default;
|
73
|
+
$btnBackgroundHighlight: darken($white, 10%) !default;
|
74
|
+
$btnBorder: #ccc !default;
|
75
|
+
|
76
|
+
$btnPrimaryBackground: $linkColor !default;
|
77
|
+
$btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 15%) !default;
|
78
|
+
|
79
|
+
$btnInfoBackground: #5bc0de !default;
|
80
|
+
$btnInfoBackgroundHighlight: #2f96b4 !default;
|
81
|
+
|
82
|
+
$btnSuccessBackground: #62c462 !default;
|
83
|
+
$btnSuccessBackgroundHighlight: #51a351 !default;
|
84
|
+
|
85
|
+
$btnWarningBackground: lighten($orange, 15%) !default;
|
86
|
+
$btnWarningBackgroundHighlight: $orange !default;
|
87
|
+
|
88
|
+
$btnDangerBackground: #ee5f5b !default;
|
89
|
+
$btnDangerBackgroundHighlight: #bd362f !default;
|
90
|
+
|
91
|
+
$btnInverseBackground: $gray !default;
|
92
|
+
$btnInverseBackgroundHighlight: $grayDarker !default;
|
93
|
+
|
94
|
+
|
95
|
+
// Forms
|
96
|
+
// -------------------------
|
97
|
+
$inputBackground: $white !default;
|
98
|
+
$inputBorder: #ccc !default;
|
99
|
+
$inputBorderRadius: 3px !default;
|
100
|
+
$inputDisabledBackground: $grayLighter !default;
|
101
|
+
$formActionsBackground: #f5f5f5 !default;
|
102
|
+
|
103
|
+
// Dropdowns
|
104
|
+
// -------------------------
|
105
|
+
$dropdownBackground: $white !default;
|
106
|
+
$dropdownBorder: rgba(0,0,0,.2) !default;
|
107
|
+
$dropdownLinkColor: $grayDark !default;
|
108
|
+
$dropdownLinkColorHover: $white !default;
|
109
|
+
$dropdownLinkBackgroundHover: $linkColor !default;
|
41
110
|
|
42
111
|
|
43
112
|
|
@@ -45,19 +114,35 @@ $primaryButtonBackground: $linkColor !default;
|
|
45
114
|
// --------------------------------------------------
|
46
115
|
|
47
116
|
// Z-index master list
|
117
|
+
// -------------------------
|
48
118
|
// Used for a bird's eye view of components dependent on the z-axis
|
49
119
|
// Try to avoid customizing these :)
|
50
|
-
$zindexDropdown:
|
51
|
-
$zindexPopover:
|
52
|
-
$zindexTooltip:
|
53
|
-
$zindexFixedNavbar:
|
54
|
-
$zindexModalBackdrop:
|
55
|
-
$zindexModal:
|
120
|
+
$zindexDropdown: 1000 !default;
|
121
|
+
$zindexPopover: 1010 !default;
|
122
|
+
$zindexTooltip: 1020 !default;
|
123
|
+
$zindexFixedNavbar: 1030 !default;
|
124
|
+
$zindexModalBackdrop: 1040 !default;
|
125
|
+
$zindexModal: 1050 !default;
|
126
|
+
|
127
|
+
|
128
|
+
// Sprite icons path
|
129
|
+
// -------------------------
|
130
|
+
$iconSpritePath: "glyphicons-halflings.png" !default;
|
131
|
+
$iconWhiteSpritePath: "glyphicons-halflings-white.png" !default;
|
132
|
+
|
56
133
|
|
57
134
|
// Input placeholder text color
|
58
|
-
|
135
|
+
// -------------------------
|
136
|
+
$placeholderText: $grayLight !default;
|
137
|
+
|
138
|
+
|
139
|
+
// Hr border color
|
140
|
+
// -------------------------
|
141
|
+
$hrBorder: $grayLighter !default;
|
142
|
+
|
59
143
|
|
60
144
|
// Navbar
|
145
|
+
// -------------------------
|
61
146
|
$navbarHeight: 40px !default;
|
62
147
|
$navbarBackground: $grayDarker !default;
|
63
148
|
$navbarBackgroundHighlight: $grayDark !default;
|
@@ -65,8 +150,26 @@ $navbarBackgroundHighlight: $grayDark !default;
|
|
65
150
|
$navbarText: $grayLight !default;
|
66
151
|
$navbarLinkColor: $grayLight !default;
|
67
152
|
$navbarLinkColorHover: $white !default;
|
153
|
+
$navbarLinkColorActive: $navbarLinkColorHover !default;
|
154
|
+
$navbarLinkBackgroundHover: transparent !default;
|
155
|
+
$navbarLinkBackgroundActive: $navbarBackground !default;
|
156
|
+
|
157
|
+
$navbarSearchBackground: lighten($navbarBackground, 25%) !default;
|
158
|
+
$navbarSearchBackgroundFocus: $white !default;
|
159
|
+
$navbarSearchBorder: darken($navbarSearchBackground, 30%) !default;
|
160
|
+
$navbarSearchPlaceholderColor: #ccc !default;
|
161
|
+
$navbarBrandColor: $navbarLinkColor !default;
|
162
|
+
|
163
|
+
|
164
|
+
// Hero unit
|
165
|
+
// -------------------------
|
166
|
+
$heroUnitBackground: $grayLighter !default;
|
167
|
+
$heroUnitHeadingColor: inherit !default;
|
168
|
+
$heroUnitLeadColor: inherit !default;
|
169
|
+
|
68
170
|
|
69
171
|
// Form states and alerts
|
172
|
+
// -------------------------
|
70
173
|
$warningText: #c09853 !default;
|
71
174
|
$warningBackground: #fcf8e3 !default;
|
72
175
|
$warningBorder: darken(adjust-hue($warningBackground, -10), 3%) !default;
|
@@ -89,11 +192,13 @@ $infoBorder: darken(adjust-hue($infoBackground, -10), 7%) !default;
|
|
89
192
|
// --------------------------------------------------
|
90
193
|
|
91
194
|
// Default 940px grid
|
195
|
+
// -------------------------
|
92
196
|
$gridColumns: 12 !default;
|
93
197
|
$gridColumnWidth: 60px !default;
|
94
198
|
$gridGutterWidth: 20px !default;
|
95
|
-
$gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
|
199
|
+
$gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1)) !default;
|
96
200
|
|
97
201
|
// Fluid grid
|
202
|
+
// -------------------------
|
98
203
|
$fluidGridColumnWidth: 6.382978723% !default;
|
99
204
|
$fluidGridGutterWidth: 2.127659574% !default;
|
@@ -0,0 +1,206 @@
|
|
1
|
+
// Variables.less
|
2
|
+
// Variables to customize the look and feel of Bootstrap
|
3
|
+
// -----------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
// GLOBAL VALUES
|
8
|
+
// --------------------------------------------------
|
9
|
+
|
10
|
+
|
11
|
+
// Grays
|
12
|
+
// -------------------------
|
13
|
+
@black: #000;
|
14
|
+
@grayDarker: #222;
|
15
|
+
@grayDark: #333;
|
16
|
+
@gray: #555;
|
17
|
+
@grayLight: #999;
|
18
|
+
@grayLighter: #eee;
|
19
|
+
@white: #fff;
|
20
|
+
|
21
|
+
|
22
|
+
// Accent colors
|
23
|
+
// -------------------------
|
24
|
+
@blue: #049cdb;
|
25
|
+
@blueDark: #0064cd;
|
26
|
+
@green: #46a546;
|
27
|
+
@red: #9d261d;
|
28
|
+
@yellow: #ffc40d;
|
29
|
+
@orange: #f89406;
|
30
|
+
@pink: #c3325f;
|
31
|
+
@purple: #7a43b6;
|
32
|
+
|
33
|
+
|
34
|
+
// Scaffolding
|
35
|
+
// -------------------------
|
36
|
+
@bodyBackground: @white;
|
37
|
+
@textColor: @grayDark;
|
38
|
+
|
39
|
+
|
40
|
+
// Links
|
41
|
+
// -------------------------
|
42
|
+
@linkColor: #08c;
|
43
|
+
@linkColorHover: darken(@linkColor, 15%);
|
44
|
+
|
45
|
+
|
46
|
+
// Typography
|
47
|
+
// -------------------------
|
48
|
+
@sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
49
|
+
@serifFontFamily: Georgia, "Times New Roman", Times, serif;
|
50
|
+
@monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
|
51
|
+
|
52
|
+
@baseFontSize: 13px;
|
53
|
+
@baseFontFamily: @sansFontFamily;
|
54
|
+
@baseLineHeight: 18px;
|
55
|
+
@altFontFamily: @serifFontFamily;
|
56
|
+
|
57
|
+
@headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
|
58
|
+
@headingsFontWeight: bold; // instead of browser default, bold
|
59
|
+
@headingsColor: inherit; // empty to use BS default, @textColor
|
60
|
+
|
61
|
+
|
62
|
+
// Tables
|
63
|
+
// -------------------------
|
64
|
+
@tableBackground: transparent; // overall background-color
|
65
|
+
@tableBackgroundAccent: #f9f9f9; // for striping
|
66
|
+
@tableBackgroundHover: #f5f5f5; // for hover
|
67
|
+
@tableBorder: #ddd; // table and cell border
|
68
|
+
|
69
|
+
|
70
|
+
// Buttons
|
71
|
+
// -------------------------
|
72
|
+
@btnBackground: @white;
|
73
|
+
@btnBackgroundHighlight: darken(@white, 10%);
|
74
|
+
@btnBorder: #ccc;
|
75
|
+
|
76
|
+
@btnPrimaryBackground: @linkColor;
|
77
|
+
@btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 15%);
|
78
|
+
|
79
|
+
@btnInfoBackground: #5bc0de;
|
80
|
+
@btnInfoBackgroundHighlight: #2f96b4;
|
81
|
+
|
82
|
+
@btnSuccessBackground: #62c462;
|
83
|
+
@btnSuccessBackgroundHighlight: #51a351;
|
84
|
+
|
85
|
+
@btnWarningBackground: lighten(@orange, 15%);
|
86
|
+
@btnWarningBackgroundHighlight: @orange;
|
87
|
+
|
88
|
+
@btnDangerBackground: #ee5f5b;
|
89
|
+
@btnDangerBackgroundHighlight: #bd362f;
|
90
|
+
|
91
|
+
@btnInverseBackground: @gray;
|
92
|
+
@btnInverseBackgroundHighlight: @grayDarker;
|
93
|
+
|
94
|
+
|
95
|
+
// Forms
|
96
|
+
// -------------------------
|
97
|
+
@inputBackground: @white;
|
98
|
+
@inputBorder: #ccc;
|
99
|
+
@inputBorderRadius: 3px;
|
100
|
+
@inputDisabledBackground: @grayLighter;
|
101
|
+
@formActionsBackground: #f5f5f5;
|
102
|
+
|
103
|
+
// Dropdowns
|
104
|
+
// -------------------------
|
105
|
+
@dropdownBackground: @white;
|
106
|
+
@dropdownBorder: rgba(0,0,0,.2);
|
107
|
+
@dropdownLinkColor: @grayDark;
|
108
|
+
@dropdownLinkColorHover: @white;
|
109
|
+
@dropdownLinkBackgroundHover: @linkColor;
|
110
|
+
@dropdownDividerTop: #e5e5e5;
|
111
|
+
@dropdownDividerBottom: @white;
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
// COMPONENT VARIABLES
|
116
|
+
// --------------------------------------------------
|
117
|
+
|
118
|
+
// Z-index master list
|
119
|
+
// -------------------------
|
120
|
+
// Used for a bird's eye view of components dependent on the z-axis
|
121
|
+
// Try to avoid customizing these :)
|
122
|
+
@zindexDropdown: 1000;
|
123
|
+
@zindexPopover: 1010;
|
124
|
+
@zindexTooltip: 1020;
|
125
|
+
@zindexFixedNavbar: 1030;
|
126
|
+
@zindexModalBackdrop: 1040;
|
127
|
+
@zindexModal: 1050;
|
128
|
+
|
129
|
+
|
130
|
+
// Sprite icons path
|
131
|
+
// -------------------------
|
132
|
+
@iconSpritePath: "glyphicons-halflings.png";
|
133
|
+
@iconWhiteSpritePath: "glyphicons-halflings-white.png";
|
134
|
+
|
135
|
+
|
136
|
+
// Input placeholder text color
|
137
|
+
// -------------------------
|
138
|
+
@placeholderText: @grayLight;
|
139
|
+
|
140
|
+
|
141
|
+
// Hr border color
|
142
|
+
// -------------------------
|
143
|
+
@hrBorder: @grayLighter;
|
144
|
+
|
145
|
+
|
146
|
+
// Navbar
|
147
|
+
// -------------------------
|
148
|
+
@navbarHeight: 40px;
|
149
|
+
@navbarBackground: @grayDarker;
|
150
|
+
@navbarBackgroundHighlight: @grayDark;
|
151
|
+
|
152
|
+
@navbarText: @grayLight;
|
153
|
+
@navbarLinkColor: @grayLight;
|
154
|
+
@navbarLinkColorHover: @white;
|
155
|
+
@navbarLinkColorActive: @navbarLinkColorHover;
|
156
|
+
@navbarLinkBackgroundHover: transparent;
|
157
|
+
@navbarLinkBackgroundActive: @navbarBackground;
|
158
|
+
|
159
|
+
@navbarSearchBackground: lighten(@navbarBackground, 25%);
|
160
|
+
@navbarSearchBackgroundFocus: @white;
|
161
|
+
@navbarSearchBorder: darken(@navbarSearchBackground, 30%);
|
162
|
+
@navbarSearchPlaceholderColor: #ccc;
|
163
|
+
@navbarBrandColor: @navbarLinkColor;
|
164
|
+
|
165
|
+
|
166
|
+
// Hero unit
|
167
|
+
// -------------------------
|
168
|
+
@heroUnitBackground: @grayLighter;
|
169
|
+
@heroUnitHeadingColor: inherit;
|
170
|
+
@heroUnitLeadColor: inherit;
|
171
|
+
|
172
|
+
|
173
|
+
// Form states and alerts
|
174
|
+
// -------------------------
|
175
|
+
@warningText: #c09853;
|
176
|
+
@warningBackground: #fcf8e3;
|
177
|
+
@warningBorder: darken(spin(@warningBackground, -10), 3%);
|
178
|
+
|
179
|
+
@errorText: #b94a48;
|
180
|
+
@errorBackground: #f2dede;
|
181
|
+
@errorBorder: darken(spin(@errorBackground, -10), 3%);
|
182
|
+
|
183
|
+
@successText: #468847;
|
184
|
+
@successBackground: #dff0d8;
|
185
|
+
@successBorder: darken(spin(@successBackground, -10), 5%);
|
186
|
+
|
187
|
+
@infoText: #3a87ad;
|
188
|
+
@infoBackground: #d9edf7;
|
189
|
+
@infoBorder: darken(spin(@infoBackground, -10), 7%);
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
// GRID
|
194
|
+
// --------------------------------------------------
|
195
|
+
|
196
|
+
// Default 940px grid
|
197
|
+
// -------------------------
|
198
|
+
@gridColumns: 12;
|
199
|
+
@gridColumnWidth: 60px;
|
200
|
+
@gridGutterWidth: 20px;
|
201
|
+
@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
|
202
|
+
|
203
|
+
// Fluid grid
|
204
|
+
// -------------------------
|
205
|
+
@fluidGridColumnWidth: 6.382978723%;
|
206
|
+
@fluidGridGutterWidth: 2.127659574%;
|