home_page 0.0.2 → 0.0.3

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.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/app/assets/javascripts/home_page/application.js +3 -0
  3. data/app/assets/javascripts/home_page/loader.js +16 -0
  4. data/app/assets/stylesheets/home_page/application.css +5 -0
  5. data/app/assets/stylesheets/home_page/base.less +10 -0
  6. data/app/assets/stylesheets/home_page/bootswatch.css.less +5 -0
  7. data/app/assets/stylesheets/home_page/loader.css.less +51 -0
  8. data/app/assets/stylesheets/home_page/mixins.less +42 -0
  9. data/app/assets/stylesheets/home_page/variables.less +860 -0
  10. data/app/controllers/devise_extensions/registrations_controller.rb +32 -0
  11. data/app/controllers/home_controller.rb +4 -0
  12. data/app/controllers/home_page/application_controller.rb +19 -0
  13. data/app/controllers/users_controller.rb +39 -0
  14. data/app/helpers/home_page/application_helper.rb +26 -0
  15. data/app/helpers/home_page/layout_helper.rb +29 -0
  16. data/app/models/user.rb +20 -0
  17. data/app/views/devise/registrations/new.html.erb +3 -0
  18. data/app/views/home/index.html.erb +0 -0
  19. data/app/views/layouts/application.html.erb +56 -0
  20. data/app/views/users/_form.html.erb +25 -0
  21. data/app/views/users/edit.html.erb +3 -0
  22. data/app/views/users/index.html.erb +34 -0
  23. data/app/views/users/new.html.erb +3 -0
  24. data/config/initializers/devise.rb +259 -0
  25. data/config/initializers/simple_form.rb +166 -0
  26. data/config/initializers/simple_form_bootstrap.rb +136 -0
  27. data/config/initializers/simple_navigation.rb +2 -0
  28. data/config/locales/devise.en.yml +61 -0
  29. data/config/locales/general/en.yml +40 -0
  30. data/config/locales/resources/user/en.yml +17 -0
  31. data/config/locales/simple_form.en.yml +31 -0
  32. data/config/routes.rb +6 -1
  33. data/db/migrate/20150307152542_create_initial_schema.rb +53 -0
  34. data/lib/home_page.rb +17 -1
  35. data/lib/home_page/engine.rb +5 -0
  36. data/lib/home_page/navigation.rb +66 -0
  37. data/lib/home_page/simple_navigation_renderer/breadcrumbs_without_method_links.rb +28 -0
  38. data/lib/home_page/simple_navigation_renderer/twitter_sidenav.rb +30 -0
  39. data/lib/home_page/version.rb +1 -1
  40. data/lib/templates/erb/scaffold/_form.html.erb +13 -0
  41. metadata +218 -27
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 12664d278bdea51b9144ffa33a4e82f617b0da2f
4
+ data.tar.gz: 85e8e86084dfe6afdba83ed8f00e4567dce4c9c2
5
+ SHA512:
6
+ metadata.gz: a1b8a72fcaa6eaaade2f738896591dfe18b76e48d910aecf2921d9ebd3c7e71432841d13ef360e0d3331ee6744747d374ecc96ed1c60802dc11cce55ea3a81ad
7
+ data.tar.gz: bbacb096857c47f054d3ddf4b5cbc8c046ad8da8de0e5524f5bf382dc22bd5e5e375fca95a41d55e4583b307a84b28a7b4158516536f5b2b1a81a16ee689badf
@@ -0,0 +1,3 @@
1
+ //= require jquery
2
+ //= require jquery_ujs
3
+ //= require home_page/loader
@@ -0,0 +1,16 @@
1
+ // Default
2
+ // Bootswatch
3
+ // loader.js
4
+
5
+ //= require twitter/bootstrap/transition
6
+ //= require twitter/bootstrap/alert
7
+ //= require twitter/bootstrap/button
8
+ //= require twitter/bootstrap/carousel
9
+ //= require twitter/bootstrap/collapse
10
+ //= require twitter/bootstrap/dropdown
11
+ //= require twitter/bootstrap/modal
12
+ //= require twitter/bootstrap/tooltip
13
+ //= require twitter/bootstrap/popover
14
+ //= require twitter/bootstrap/scrollspy
15
+ //= require twitter/bootstrap/tab
16
+ //= require twitter/bootstrap/affix
@@ -0,0 +1,5 @@
1
+ /*
2
+ *= require_self
3
+ *= require home_page/loader
4
+ *= require home_page/bootswatch
5
+ */
@@ -0,0 +1,10 @@
1
+ // Default
2
+ // Bootswatch
3
+ // base.less
4
+ // allows access to core variables and mixins inside bootswatch.css.less
5
+
6
+ // @import "twitter/bootstrap/variables";
7
+ @import "variables";
8
+
9
+ // @import "twitter/bootstrap/mixins";
10
+ @import "mixins";
@@ -0,0 +1,5 @@
1
+ @import "base";
2
+
3
+ body {
4
+ padding-top: 70px;
5
+ }
@@ -0,0 +1,51 @@
1
+ // Default
2
+ // Bootswatch
3
+ // loader.css.less
4
+ // Customize the modules loaded here
5
+
6
+ // @import "twitter/bootstrap/variables";
7
+ @import "variables";
8
+
9
+ // @import "twitter/bootstrap/mixins";
10
+ @import "mixins";
11
+
12
+ @import "twitter/bootstrap/normalize";
13
+ @import "twitter/bootstrap/print";
14
+ @import "twitter/bootstrap/glyphicons";
15
+ @import "twitter/bootstrap/scaffolding";
16
+ @import "twitter/bootstrap/type";
17
+ @import "twitter/bootstrap/code";
18
+ @import "twitter/bootstrap/grid";
19
+ @import "twitter/bootstrap/tables";
20
+ @import "twitter/bootstrap/forms";
21
+ @import "twitter/bootstrap/buttons";
22
+ @import "twitter/bootstrap/component-animations";
23
+ @import "twitter/bootstrap/dropdowns";
24
+ @import "twitter/bootstrap/button-groups";
25
+ @import "twitter/bootstrap/input-groups";
26
+ @import "twitter/bootstrap/navs";
27
+ @import "twitter/bootstrap/navbar";
28
+ @import "twitter/bootstrap/breadcrumbs";
29
+ @import "twitter/bootstrap/pagination";
30
+ @import "twitter/bootstrap/pager";
31
+ @import "twitter/bootstrap/labels";
32
+ @import "twitter/bootstrap/badges";
33
+ @import "twitter/bootstrap/jumbotron";
34
+ @import "twitter/bootstrap/thumbnails";
35
+ @import "twitter/bootstrap/alerts";
36
+ @import "twitter/bootstrap/progress-bars";
37
+ @import "twitter/bootstrap/media";
38
+ @import "twitter/bootstrap/list-group";
39
+ @import "twitter/bootstrap/panels";
40
+ @import "twitter/bootstrap/responsive-embed";
41
+ @import "twitter/bootstrap/wells";
42
+ @import "twitter/bootstrap/close";
43
+ @import "twitter/bootstrap/modals";
44
+ @import "twitter/bootstrap/tooltip";
45
+ @import "twitter/bootstrap/popovers";
46
+ @import "twitter/bootstrap/carousel";
47
+ @import "twitter/bootstrap/utilities";
48
+ @import "twitter/bootstrap/responsive-utilities";
49
+
50
+
51
+ // @import "twitter/bootstrap/theme";
@@ -0,0 +1,42 @@
1
+ // Default
2
+ // Bootswatch
3
+
4
+ // Mixins
5
+ // --------------------------------------------------
6
+
7
+ // Utilities
8
+ @import "twitter/bootstrap/mixins/hide-text.less";
9
+ @import "twitter/bootstrap/mixins/opacity.less";
10
+ @import "twitter/bootstrap/mixins/image.less";
11
+ @import "twitter/bootstrap/mixins/labels.less";
12
+ @import "twitter/bootstrap/mixins/reset-filter.less";
13
+ @import "twitter/bootstrap/mixins/resize.less";
14
+ @import "twitter/bootstrap/mixins/responsive-visibility.less";
15
+ @import "twitter/bootstrap/mixins/size.less";
16
+ @import "twitter/bootstrap/mixins/tab-focus.less";
17
+ @import "twitter/bootstrap/mixins/text-emphasis.less";
18
+ @import "twitter/bootstrap/mixins/text-overflow.less";
19
+ @import "twitter/bootstrap/mixins/vendor-prefixes.less";
20
+
21
+ // Components
22
+ @import "twitter/bootstrap/mixins/alerts.less";
23
+ @import "twitter/bootstrap/mixins/buttons.less";
24
+ @import "twitter/bootstrap/mixins/panels.less";
25
+ @import "twitter/bootstrap/mixins/pagination.less";
26
+ @import "twitter/bootstrap/mixins/list-group.less";
27
+ @import "twitter/bootstrap/mixins/nav-divider.less";
28
+ @import "twitter/bootstrap/mixins/forms.less";
29
+ @import "twitter/bootstrap/mixins/progress-bar.less";
30
+ @import "twitter/bootstrap/mixins/table-row.less";
31
+
32
+ // Skins
33
+ @import "twitter/bootstrap/mixins/background-variant.less";
34
+ @import "twitter/bootstrap/mixins/border-radius.less";
35
+ @import "twitter/bootstrap/mixins/gradients.less";
36
+
37
+ // Layout
38
+ @import "twitter/bootstrap/mixins/clearfix.less";
39
+ @import "twitter/bootstrap/mixins/center-block.less";
40
+ @import "twitter/bootstrap/mixins/nav-vertical-align.less";
41
+ @import "twitter/bootstrap/mixins/grid-framework.less";
42
+ @import "twitter/bootstrap/mixins/grid.less";
@@ -0,0 +1,860 @@
1
+ // Default
2
+ // Bootswatch
3
+
4
+ //
5
+ // Variables
6
+ // --------------------------------------------------
7
+
8
+
9
+ //== Colors
10
+ //
11
+ //## Gray and brand colors for use across Bootstrap.
12
+
13
+ @gray-base: #000;
14
+ @gray-darker: lighten(@gray-base, 13.5%); // #222
15
+ @gray-dark: lighten(@gray-base, 20%); // #333
16
+ @gray: lighten(@gray-base, 33.5%); // #555
17
+ @gray-light: lighten(@gray-base, 46.7%); // #777
18
+ @gray-lighter: lighten(@gray-base, 93.5%); // #eee
19
+
20
+ @brand-primary: darken(#428bca, 6.5%); // #337ab7
21
+ @brand-success: #5cb85c;
22
+ @brand-info: #5bc0de;
23
+ @brand-warning: #f0ad4e;
24
+ @brand-danger: #d9534f;
25
+
26
+
27
+ //== Scaffolding
28
+ //
29
+ //## Settings for some of the most global styles.
30
+
31
+ //** Background color for `<body>`.
32
+ @body-bg: #fff;
33
+ //** Global text color on `<body>`.
34
+ @text-color: @gray-dark;
35
+
36
+ //** Global textual link color.
37
+ @link-color: @brand-primary;
38
+ //** Link hover color set via `darken()` function.
39
+ @link-hover-color: darken(@link-color, 15%);
40
+ //** Link hover decoration.
41
+ @link-hover-decoration: underline;
42
+
43
+
44
+ //== Typography
45
+ //
46
+ //## Font, line-height, and color for body text, headings, and more.
47
+
48
+ @font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
49
+ @font-family-serif: Georgia, "Times New Roman", Times, serif;
50
+ //** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
51
+ @font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
52
+ @font-family-base: @font-family-sans-serif;
53
+
54
+ @font-size-base: 14px;
55
+ @font-size-large: ceil((@font-size-base * 1.25)); // ~18px
56
+ @font-size-small: ceil((@font-size-base * 0.85)); // ~12px
57
+
58
+ @font-size-h1: floor((@font-size-base * 2.6)); // ~36px
59
+ @font-size-h2: floor((@font-size-base * 2.15)); // ~30px
60
+ @font-size-h3: ceil((@font-size-base * 1.7)); // ~24px
61
+ @font-size-h4: ceil((@font-size-base * 1.25)); // ~18px
62
+ @font-size-h5: @font-size-base;
63
+ @font-size-h6: ceil((@font-size-base * 0.85)); // ~12px
64
+
65
+ //** Unit-less `line-height` for use in components like buttons.
66
+ @line-height-base: 1.428571429; // 20/14
67
+ //** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
68
+ @line-height-computed: floor((@font-size-base * @line-height-base)); // ~20px
69
+
70
+ //** By default, this inherits from the `<body>`.
71
+ @headings-font-family: inherit;
72
+ @headings-font-weight: 500;
73
+ @headings-line-height: 1.1;
74
+ @headings-color: inherit;
75
+
76
+
77
+ //== Iconography
78
+ //
79
+ //## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
80
+
81
+ //** Load fonts from this directory.
82
+ @icon-font-path: "twitter/bootstrap/";
83
+ //** File name for all font files.
84
+ @icon-font-name: "glyphicons-halflings-regular";
85
+ //** Element ID within SVG icon file.
86
+ @icon-font-svg-id: "glyphicons_halflingsregular";
87
+
88
+
89
+ //== Components
90
+ //
91
+ //## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
92
+
93
+ @padding-base-vertical: 6px;
94
+ @padding-base-horizontal: 12px;
95
+
96
+ @padding-large-vertical: 10px;
97
+ @padding-large-horizontal: 16px;
98
+
99
+ @padding-small-vertical: 5px;
100
+ @padding-small-horizontal: 10px;
101
+
102
+ @padding-xs-vertical: 1px;
103
+ @padding-xs-horizontal: 5px;
104
+
105
+ @line-height-large: 1.3333333; // extra decimals for Win 8.1 Chrome
106
+ @line-height-small: 1.5;
107
+
108
+ @border-radius-base: 4px;
109
+ @border-radius-large: 6px;
110
+ @border-radius-small: 3px;
111
+
112
+ //** Global color for active items (e.g., navs or dropdowns).
113
+ @component-active-color: #fff;
114
+ //** Global background color for active items (e.g., navs or dropdowns).
115
+ @component-active-bg: @brand-primary;
116
+
117
+ //** Width of the `border` for generating carets that indicator dropdowns.
118
+ @caret-width-base: 4px;
119
+ //** Carets increase slightly in size for larger components.
120
+ @caret-width-large: 5px;
121
+
122
+
123
+ //== Tables
124
+ //
125
+ //## Customizes the `.table` component with basic values, each used across all table variations.
126
+
127
+ //** Padding for `<th>`s and `<td>`s.
128
+ @table-cell-padding: 8px;
129
+ //** Padding for cells in `.table-condensed`.
130
+ @table-condensed-cell-padding: 5px;
131
+
132
+ //** Default background color used for all tables.
133
+ @table-bg: transparent;
134
+ //** Background color used for `.table-striped`.
135
+ @table-bg-accent: #f9f9f9;
136
+ //** Background color used for `.table-hover`.
137
+ @table-bg-hover: #f5f5f5;
138
+ @table-bg-active: @table-bg-hover;
139
+
140
+ //** Border color for table and cell borders.
141
+ @table-border-color: #ddd;
142
+
143
+
144
+ //== Buttons
145
+ //
146
+ //## For each of Bootstrap's buttons, define text, background and border color.
147
+
148
+ @btn-font-weight: normal;
149
+
150
+ @btn-default-color: #333;
151
+ @btn-default-bg: #fff;
152
+ @btn-default-border: #ccc;
153
+
154
+ @btn-primary-color: #fff;
155
+ @btn-primary-bg: @brand-primary;
156
+ @btn-primary-border: darken(@btn-primary-bg, 5%);
157
+
158
+ @btn-success-color: #fff;
159
+ @btn-success-bg: @brand-success;
160
+ @btn-success-border: darken(@btn-success-bg, 5%);
161
+
162
+ @btn-info-color: #fff;
163
+ @btn-info-bg: @brand-info;
164
+ @btn-info-border: darken(@btn-info-bg, 5%);
165
+
166
+ @btn-warning-color: #fff;
167
+ @btn-warning-bg: @brand-warning;
168
+ @btn-warning-border: darken(@btn-warning-bg, 5%);
169
+
170
+ @btn-danger-color: #fff;
171
+ @btn-danger-bg: @brand-danger;
172
+ @btn-danger-border: darken(@btn-danger-bg, 5%);
173
+
174
+ @btn-link-disabled-color: @gray-light;
175
+
176
+
177
+ //== Forms
178
+ //
179
+ //##
180
+
181
+ //** `<input>` background color
182
+ @input-bg: #fff;
183
+ //** `<input disabled>` background color
184
+ @input-bg-disabled: @gray-lighter;
185
+
186
+ //** Text color for `<input>`s
187
+ @input-color: @gray;
188
+ //** `<input>` border color
189
+ @input-border: #ccc;
190
+
191
+ // TODO: Rename `@input-border-radius` to `@input-border-radius-base` in v4
192
+ //** Default `.form-control` border radius
193
+ // This has no effect on `<select>`s in some browsers, due to the limited stylability of `<select>`s in CSS.
194
+ @input-border-radius: @border-radius-base;
195
+ //** Large `.form-control` border radius
196
+ @input-border-radius-large: @border-radius-large;
197
+ //** Small `.form-control` border radius
198
+ @input-border-radius-small: @border-radius-small;
199
+
200
+ //** Border color for inputs on focus
201
+ @input-border-focus: #66afe9;
202
+
203
+ //** Placeholder text color
204
+ @input-color-placeholder: #999;
205
+
206
+ //** Default `.form-control` height
207
+ @input-height-base: (@line-height-computed + (@padding-base-vertical * 2) + 2);
208
+ //** Large `.form-control` height
209
+ @input-height-large: (ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2);
210
+ //** Small `.form-control` height
211
+ @input-height-small: (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
212
+
213
+ @legend-color: @gray-dark;
214
+ @legend-border-color: #e5e5e5;
215
+
216
+ //** Background color for textual input addons
217
+ @input-group-addon-bg: @gray-lighter;
218
+ //** Border color for textual input addons
219
+ @input-group-addon-border-color: @input-border;
220
+
221
+ //** Disabled cursor for form controls and buttons.
222
+ @cursor-disabled: not-allowed;
223
+
224
+
225
+ //== Dropdowns
226
+ //
227
+ //## Dropdown menu container and contents.
228
+
229
+ //** Background for the dropdown menu.
230
+ @dropdown-bg: #fff;
231
+ //** Dropdown menu `border-color`.
232
+ @dropdown-border: rgba(0,0,0,.15);
233
+ //** Dropdown menu `border-color` **for IE8**.
234
+ @dropdown-fallback-border: #ccc;
235
+ //** Divider color for between dropdown items.
236
+ @dropdown-divider-bg: #e5e5e5;
237
+
238
+ //** Dropdown link text color.
239
+ @dropdown-link-color: @gray-dark;
240
+ //** Hover color for dropdown links.
241
+ @dropdown-link-hover-color: darken(@gray-dark, 5%);
242
+ //** Hover background for dropdown links.
243
+ @dropdown-link-hover-bg: #f5f5f5;
244
+
245
+ //** Active dropdown menu item text color.
246
+ @dropdown-link-active-color: @component-active-color;
247
+ //** Active dropdown menu item background color.
248
+ @dropdown-link-active-bg: @component-active-bg;
249
+
250
+ //** Disabled dropdown menu item background color.
251
+ @dropdown-link-disabled-color: @gray-light;
252
+
253
+ //** Text color for headers within dropdown menus.
254
+ @dropdown-header-color: @gray-light;
255
+
256
+ //** Deprecated `@dropdown-caret-color` as of v3.1.0
257
+ @dropdown-caret-color: #000;
258
+
259
+
260
+ //-- Z-index master list
261
+ //
262
+ // Warning: Avoid customizing these values. They're used for a bird's eye view
263
+ // of components dependent on the z-axis and are designed to all work together.
264
+ //
265
+ // Note: These variables are not generated into the Customizer.
266
+
267
+ @zindex-navbar: 1000;
268
+ @zindex-dropdown: 1000;
269
+ @zindex-popover: 1060;
270
+ @zindex-tooltip: 1070;
271
+ @zindex-navbar-fixed: 1030;
272
+ @zindex-modal: 1040;
273
+
274
+
275
+ //== Media queries breakpoints
276
+ //
277
+ //## Define the breakpoints at which your layout will change, adapting to different screen sizes.
278
+
279
+ // Extra small screen / phone
280
+ //** Deprecated `@screen-xs` as of v3.0.1
281
+ @screen-xs: 480px;
282
+ //** Deprecated `@screen-xs-min` as of v3.2.0
283
+ @screen-xs-min: @screen-xs;
284
+ //** Deprecated `@screen-phone` as of v3.0.1
285
+ @screen-phone: @screen-xs-min;
286
+
287
+ // Small screen / tablet
288
+ //** Deprecated `@screen-sm` as of v3.0.1
289
+ @screen-sm: 768px;
290
+ @screen-sm-min: @screen-sm;
291
+ //** Deprecated `@screen-tablet` as of v3.0.1
292
+ @screen-tablet: @screen-sm-min;
293
+
294
+ // Medium screen / desktop
295
+ //** Deprecated `@screen-md` as of v3.0.1
296
+ @screen-md: 992px;
297
+ @screen-md-min: @screen-md;
298
+ //** Deprecated `@screen-desktop` as of v3.0.1
299
+ @screen-desktop: @screen-md-min;
300
+
301
+ // Large screen / wide desktop
302
+ //** Deprecated `@screen-lg` as of v3.0.1
303
+ @screen-lg: 1200px;
304
+ @screen-lg-min: @screen-lg;
305
+ //** Deprecated `@screen-lg-desktop` as of v3.0.1
306
+ @screen-lg-desktop: @screen-lg-min;
307
+
308
+ // So media queries don't overlap when required, provide a maximum
309
+ @screen-xs-max: (@screen-sm-min - 1);
310
+ @screen-sm-max: (@screen-md-min - 1);
311
+ @screen-md-max: (@screen-lg-min - 1);
312
+
313
+
314
+ //== Grid system
315
+ //
316
+ //## Define your custom responsive grid.
317
+
318
+ //** Number of columns in the grid.
319
+ @grid-columns: 12;
320
+ //** Padding between columns. Gets divided in half for the left and right.
321
+ @grid-gutter-width: 30px;
322
+ // Navbar collapse
323
+ //** Point at which the navbar becomes uncollapsed.
324
+ @grid-float-breakpoint: @screen-sm-min;
325
+ //** Point at which the navbar begins collapsing.
326
+ @grid-float-breakpoint-max: (@grid-float-breakpoint - 1);
327
+
328
+
329
+ //== Container sizes
330
+ //
331
+ //## Define the maximum width of `.container` for different screen sizes.
332
+
333
+ // Small screen / tablet
334
+ @container-tablet: (720px + @grid-gutter-width);
335
+ //** For `@screen-sm-min` and up.
336
+ @container-sm: @container-tablet;
337
+
338
+ // Medium screen / desktop
339
+ @container-desktop: (940px + @grid-gutter-width);
340
+ //** For `@screen-md-min` and up.
341
+ @container-md: @container-desktop;
342
+
343
+ // Large screen / wide desktop
344
+ @container-large-desktop: (1140px + @grid-gutter-width);
345
+ //** For `@screen-lg-min` and up.
346
+ @container-lg: @container-large-desktop;
347
+
348
+
349
+ //== Navbar
350
+ //
351
+ //##
352
+
353
+ // Basics of a navbar
354
+ @navbar-height: 50px;
355
+ @navbar-margin-bottom: @line-height-computed;
356
+ @navbar-border-radius: @border-radius-base;
357
+ @navbar-padding-horizontal: floor((@grid-gutter-width / 2));
358
+ @navbar-padding-vertical: ((@navbar-height - @line-height-computed) / 2);
359
+ @navbar-collapse-max-height: 340px;
360
+
361
+ @navbar-default-color: #777;
362
+ @navbar-default-bg: #f8f8f8;
363
+ @navbar-default-border: darken(@navbar-default-bg, 6.5%);
364
+
365
+ // Navbar links
366
+ @navbar-default-link-color: #777;
367
+ @navbar-default-link-hover-color: #333;
368
+ @navbar-default-link-hover-bg: transparent;
369
+ @navbar-default-link-active-color: #555;
370
+ @navbar-default-link-active-bg: darken(@navbar-default-bg, 6.5%);
371
+ @navbar-default-link-disabled-color: #ccc;
372
+ @navbar-default-link-disabled-bg: transparent;
373
+
374
+ // Navbar brand label
375
+ @navbar-default-brand-color: @navbar-default-link-color;
376
+ @navbar-default-brand-hover-color: darken(@navbar-default-brand-color, 10%);
377
+ @navbar-default-brand-hover-bg: transparent;
378
+
379
+ // Navbar toggle
380
+ @navbar-default-toggle-hover-bg: #ddd;
381
+ @navbar-default-toggle-icon-bar-bg: #888;
382
+ @navbar-default-toggle-border-color: #ddd;
383
+
384
+
385
+ // Inverted navbar
386
+ // Reset inverted navbar basics
387
+ @navbar-inverse-color: lighten(@gray-light, 15%);
388
+ @navbar-inverse-bg: #222;
389
+ @navbar-inverse-border: darken(@navbar-inverse-bg, 10%);
390
+
391
+ // Inverted navbar links
392
+ @navbar-inverse-link-color: lighten(@gray-light, 15%);
393
+ @navbar-inverse-link-hover-color: #fff;
394
+ @navbar-inverse-link-hover-bg: transparent;
395
+ @navbar-inverse-link-active-color: @navbar-inverse-link-hover-color;
396
+ @navbar-inverse-link-active-bg: darken(@navbar-inverse-bg, 10%);
397
+ @navbar-inverse-link-disabled-color: #444;
398
+ @navbar-inverse-link-disabled-bg: transparent;
399
+
400
+ // Inverted navbar brand label
401
+ @navbar-inverse-brand-color: @navbar-inverse-link-color;
402
+ @navbar-inverse-brand-hover-color: #fff;
403
+ @navbar-inverse-brand-hover-bg: transparent;
404
+
405
+ // Inverted navbar toggle
406
+ @navbar-inverse-toggle-hover-bg: #333;
407
+ @navbar-inverse-toggle-icon-bar-bg: #fff;
408
+ @navbar-inverse-toggle-border-color: #333;
409
+
410
+
411
+ //== Navs
412
+ //
413
+ //##
414
+
415
+ //=== Shared nav styles
416
+ @nav-link-padding: 10px 15px;
417
+ @nav-link-hover-bg: @gray-lighter;
418
+
419
+ @nav-disabled-link-color: @gray-light;
420
+ @nav-disabled-link-hover-color: @gray-light;
421
+
422
+ //== Tabs
423
+ @nav-tabs-border-color: #ddd;
424
+
425
+ @nav-tabs-link-hover-border-color: @gray-lighter;
426
+
427
+ @nav-tabs-active-link-hover-bg: @body-bg;
428
+ @nav-tabs-active-link-hover-color: @gray;
429
+ @nav-tabs-active-link-hover-border-color: #ddd;
430
+
431
+ @nav-tabs-justified-link-border-color: #ddd;
432
+ @nav-tabs-justified-active-link-border-color: @body-bg;
433
+
434
+ //== Pills
435
+ @nav-pills-border-radius: @border-radius-base;
436
+ @nav-pills-active-link-hover-bg: @component-active-bg;
437
+ @nav-pills-active-link-hover-color: @component-active-color;
438
+
439
+
440
+ //== Pagination
441
+ //
442
+ //##
443
+
444
+ @pagination-color: @link-color;
445
+ @pagination-bg: #fff;
446
+ @pagination-border: #ddd;
447
+
448
+ @pagination-hover-color: @link-hover-color;
449
+ @pagination-hover-bg: @gray-lighter;
450
+ @pagination-hover-border: #ddd;
451
+
452
+ @pagination-active-color: #fff;
453
+ @pagination-active-bg: @brand-primary;
454
+ @pagination-active-border: @brand-primary;
455
+
456
+ @pagination-disabled-color: @gray-light;
457
+ @pagination-disabled-bg: #fff;
458
+ @pagination-disabled-border: #ddd;
459
+
460
+
461
+ //== Pager
462
+ //
463
+ //##
464
+
465
+ @pager-bg: @pagination-bg;
466
+ @pager-border: @pagination-border;
467
+ @pager-border-radius: 15px;
468
+
469
+ @pager-hover-bg: @pagination-hover-bg;
470
+
471
+ @pager-active-bg: @pagination-active-bg;
472
+ @pager-active-color: @pagination-active-color;
473
+
474
+ @pager-disabled-color: @pagination-disabled-color;
475
+
476
+
477
+ //== Jumbotron
478
+ //
479
+ //##
480
+
481
+ @jumbotron-padding: 30px;
482
+ @jumbotron-color: inherit;
483
+ @jumbotron-bg: @gray-lighter;
484
+ @jumbotron-heading-color: inherit;
485
+ @jumbotron-font-size: ceil((@font-size-base * 1.5));
486
+
487
+
488
+ //== Form states and alerts
489
+ //
490
+ //## Define colors for form feedback states and, by default, alerts.
491
+
492
+ @state-success-text: #3c763d;
493
+ @state-success-bg: #dff0d8;
494
+ @state-success-border: darken(spin(@state-success-bg, -10), 5%);
495
+
496
+ @state-info-text: #31708f;
497
+ @state-info-bg: #d9edf7;
498
+ @state-info-border: darken(spin(@state-info-bg, -10), 7%);
499
+
500
+ @state-warning-text: #8a6d3b;
501
+ @state-warning-bg: #fcf8e3;
502
+ @state-warning-border: darken(spin(@state-warning-bg, -10), 5%);
503
+
504
+ @state-danger-text: #a94442;
505
+ @state-danger-bg: #f2dede;
506
+ @state-danger-border: darken(spin(@state-danger-bg, -10), 5%);
507
+
508
+
509
+ //== Tooltips
510
+ //
511
+ //##
512
+
513
+ //** Tooltip max width
514
+ @tooltip-max-width: 200px;
515
+ //** Tooltip text color
516
+ @tooltip-color: #fff;
517
+ //** Tooltip background color
518
+ @tooltip-bg: #000;
519
+ @tooltip-opacity: .9;
520
+
521
+ //** Tooltip arrow width
522
+ @tooltip-arrow-width: 5px;
523
+ //** Tooltip arrow color
524
+ @tooltip-arrow-color: @tooltip-bg;
525
+
526
+
527
+ //== Popovers
528
+ //
529
+ //##
530
+
531
+ //** Popover body background color
532
+ @popover-bg: #fff;
533
+ //** Popover maximum width
534
+ @popover-max-width: 276px;
535
+ //** Popover border color
536
+ @popover-border-color: rgba(0,0,0,.2);
537
+ //** Popover fallback border color
538
+ @popover-fallback-border-color: #ccc;
539
+
540
+ //** Popover title background color
541
+ @popover-title-bg: darken(@popover-bg, 3%);
542
+
543
+ //** Popover arrow width
544
+ @popover-arrow-width: 10px;
545
+ //** Popover arrow color
546
+ @popover-arrow-color: @popover-bg;
547
+
548
+ //** Popover outer arrow width
549
+ @popover-arrow-outer-width: (@popover-arrow-width + 1);
550
+ //** Popover outer arrow color
551
+ @popover-arrow-outer-color: fadein(@popover-border-color, 5%);
552
+ //** Popover outer arrow fallback color
553
+ @popover-arrow-outer-fallback-color: darken(@popover-fallback-border-color, 20%);
554
+
555
+
556
+ //== Labels
557
+ //
558
+ //##
559
+
560
+ //** Default label background color
561
+ @label-default-bg: @gray-light;
562
+ //** Primary label background color
563
+ @label-primary-bg: @brand-primary;
564
+ //** Success label background color
565
+ @label-success-bg: @brand-success;
566
+ //** Info label background color
567
+ @label-info-bg: @brand-info;
568
+ //** Warning label background color
569
+ @label-warning-bg: @brand-warning;
570
+ //** Danger label background color
571
+ @label-danger-bg: @brand-danger;
572
+
573
+ //** Default label text color
574
+ @label-color: #fff;
575
+ //** Default text color of a linked label
576
+ @label-link-hover-color: #fff;
577
+
578
+
579
+ //== Modals
580
+ //
581
+ //##
582
+
583
+ //** Padding applied to the modal body
584
+ @modal-inner-padding: 15px;
585
+
586
+ //** Padding applied to the modal title
587
+ @modal-title-padding: 15px;
588
+ //** Modal title line-height
589
+ @modal-title-line-height: @line-height-base;
590
+
591
+ //** Background color of modal content area
592
+ @modal-content-bg: #fff;
593
+ //** Modal content border color
594
+ @modal-content-border-color: rgba(0,0,0,.2);
595
+ //** Modal content border color **for IE8**
596
+ @modal-content-fallback-border-color: #999;
597
+
598
+ //** Modal backdrop background color
599
+ @modal-backdrop-bg: #000;
600
+ //** Modal backdrop opacity
601
+ @modal-backdrop-opacity: .5;
602
+ //** Modal header border color
603
+ @modal-header-border-color: #e5e5e5;
604
+ //** Modal footer border color
605
+ @modal-footer-border-color: @modal-header-border-color;
606
+
607
+ @modal-lg: 900px;
608
+ @modal-md: 600px;
609
+ @modal-sm: 300px;
610
+
611
+
612
+ //== Alerts
613
+ //
614
+ //## Define alert colors, border radius, and padding.
615
+
616
+ @alert-padding: 15px;
617
+ @alert-border-radius: @border-radius-base;
618
+ @alert-link-font-weight: bold;
619
+
620
+ @alert-success-bg: @state-success-bg;
621
+ @alert-success-text: @state-success-text;
622
+ @alert-success-border: @state-success-border;
623
+
624
+ @alert-info-bg: @state-info-bg;
625
+ @alert-info-text: @state-info-text;
626
+ @alert-info-border: @state-info-border;
627
+
628
+ @alert-warning-bg: @state-warning-bg;
629
+ @alert-warning-text: @state-warning-text;
630
+ @alert-warning-border: @state-warning-border;
631
+
632
+ @alert-danger-bg: @state-danger-bg;
633
+ @alert-danger-text: @state-danger-text;
634
+ @alert-danger-border: @state-danger-border;
635
+
636
+
637
+ //== Progress bars
638
+ //
639
+ //##
640
+
641
+ //** Background color of the whole progress component
642
+ @progress-bg: #f5f5f5;
643
+ //** Progress bar text color
644
+ @progress-bar-color: #fff;
645
+ //** Variable for setting rounded corners on progress bar.
646
+ @progress-border-radius: @border-radius-base;
647
+
648
+ //** Default progress bar color
649
+ @progress-bar-bg: @brand-primary;
650
+ //** Success progress bar color
651
+ @progress-bar-success-bg: @brand-success;
652
+ //** Warning progress bar color
653
+ @progress-bar-warning-bg: @brand-warning;
654
+ //** Danger progress bar color
655
+ @progress-bar-danger-bg: @brand-danger;
656
+ //** Info progress bar color
657
+ @progress-bar-info-bg: @brand-info;
658
+
659
+
660
+ //== List group
661
+ //
662
+ //##
663
+
664
+ //** Background color on `.list-group-item`
665
+ @list-group-bg: #fff;
666
+ //** `.list-group-item` border color
667
+ @list-group-border: #ddd;
668
+ //** List group border radius
669
+ @list-group-border-radius: @border-radius-base;
670
+
671
+ //** Background color of single list items on hover
672
+ @list-group-hover-bg: #f5f5f5;
673
+ //** Text color of active list items
674
+ @list-group-active-color: @component-active-color;
675
+ //** Background color of active list items
676
+ @list-group-active-bg: @component-active-bg;
677
+ //** Border color of active list elements
678
+ @list-group-active-border: @list-group-active-bg;
679
+ //** Text color for content within active list items
680
+ @list-group-active-text-color: lighten(@list-group-active-bg, 40%);
681
+
682
+ //** Text color of disabled list items
683
+ @list-group-disabled-color: @gray-light;
684
+ //** Background color of disabled list items
685
+ @list-group-disabled-bg: @gray-lighter;
686
+ //** Text color for content within disabled list items
687
+ @list-group-disabled-text-color: @list-group-disabled-color;
688
+
689
+ @list-group-link-color: #555;
690
+ @list-group-link-hover-color: @list-group-link-color;
691
+ @list-group-link-heading-color: #333;
692
+
693
+
694
+ //== Panels
695
+ //
696
+ //##
697
+
698
+ @panel-bg: #fff;
699
+ @panel-body-padding: 15px;
700
+ @panel-heading-padding: 10px 15px;
701
+ @panel-footer-padding: @panel-heading-padding;
702
+ @panel-border-radius: @border-radius-base;
703
+
704
+ //** Border color for elements within panels
705
+ @panel-inner-border: #ddd;
706
+ @panel-footer-bg: #f5f5f5;
707
+
708
+ @panel-default-text: @gray-dark;
709
+ @panel-default-border: #ddd;
710
+ @panel-default-heading-bg: #f5f5f5;
711
+
712
+ @panel-primary-text: #fff;
713
+ @panel-primary-border: @brand-primary;
714
+ @panel-primary-heading-bg: @brand-primary;
715
+
716
+ @panel-success-text: @state-success-text;
717
+ @panel-success-border: @state-success-border;
718
+ @panel-success-heading-bg: @state-success-bg;
719
+
720
+ @panel-info-text: @state-info-text;
721
+ @panel-info-border: @state-info-border;
722
+ @panel-info-heading-bg: @state-info-bg;
723
+
724
+ @panel-warning-text: @state-warning-text;
725
+ @panel-warning-border: @state-warning-border;
726
+ @panel-warning-heading-bg: @state-warning-bg;
727
+
728
+ @panel-danger-text: @state-danger-text;
729
+ @panel-danger-border: @state-danger-border;
730
+ @panel-danger-heading-bg: @state-danger-bg;
731
+
732
+
733
+ //== Thumbnails
734
+ //
735
+ //##
736
+
737
+ //** Padding around the thumbnail image
738
+ @thumbnail-padding: 4px;
739
+ //** Thumbnail background color
740
+ @thumbnail-bg: @body-bg;
741
+ //** Thumbnail border color
742
+ @thumbnail-border: #ddd;
743
+ //** Thumbnail border radius
744
+ @thumbnail-border-radius: @border-radius-base;
745
+
746
+ //** Custom text color for thumbnail captions
747
+ @thumbnail-caption-color: @text-color;
748
+ //** Padding around the thumbnail caption
749
+ @thumbnail-caption-padding: 9px;
750
+
751
+
752
+ //== Wells
753
+ //
754
+ //##
755
+
756
+ @well-bg: #f5f5f5;
757
+ @well-border: darken(@well-bg, 7%);
758
+
759
+
760
+ //== Badges
761
+ //
762
+ //##
763
+
764
+ @badge-color: #fff;
765
+ //** Linked badge text color on hover
766
+ @badge-link-hover-color: #fff;
767
+ @badge-bg: @gray-light;
768
+
769
+ //** Badge text color in active nav link
770
+ @badge-active-color: @link-color;
771
+ //** Badge background color in active nav link
772
+ @badge-active-bg: #fff;
773
+
774
+ @badge-font-weight: bold;
775
+ @badge-line-height: 1;
776
+ @badge-border-radius: 10px;
777
+
778
+
779
+ //== Breadcrumbs
780
+ //
781
+ //##
782
+
783
+ @breadcrumb-padding-vertical: 8px;
784
+ @breadcrumb-padding-horizontal: 15px;
785
+ //** Breadcrumb background color
786
+ @breadcrumb-bg: #f5f5f5;
787
+ //** Breadcrumb text color
788
+ @breadcrumb-color: #ccc;
789
+ //** Text color of current page in the breadcrumb
790
+ @breadcrumb-active-color: @gray-light;
791
+ //** Textual separator for between breadcrumb elements
792
+ @breadcrumb-separator: "/";
793
+
794
+
795
+ //== Carousel
796
+ //
797
+ //##
798
+
799
+ @carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6);
800
+
801
+ @carousel-control-color: #fff;
802
+ @carousel-control-width: 15%;
803
+ @carousel-control-opacity: .5;
804
+ @carousel-control-font-size: 20px;
805
+
806
+ @carousel-indicator-active-bg: #fff;
807
+ @carousel-indicator-border-color: #fff;
808
+
809
+ @carousel-caption-color: #fff;
810
+
811
+
812
+ //== Close
813
+ //
814
+ //##
815
+
816
+ @close-font-weight: bold;
817
+ @close-color: #000;
818
+ @close-text-shadow: 0 1px 0 #fff;
819
+
820
+
821
+ //== Code
822
+ //
823
+ //##
824
+
825
+ @code-color: #c7254e;
826
+ @code-bg: #f9f2f4;
827
+
828
+ @kbd-color: #fff;
829
+ @kbd-bg: #333;
830
+
831
+ @pre-bg: #f5f5f5;
832
+ @pre-color: @gray-dark;
833
+ @pre-border-color: #ccc;
834
+ @pre-scrollable-max-height: 340px;
835
+
836
+
837
+ //== Type
838
+ //
839
+ //##
840
+
841
+ //** Horizontal offset for forms and lists.
842
+ @component-offset-horizontal: 180px;
843
+ //** Text muted color
844
+ @text-muted: @gray-light;
845
+ //** Abbreviations and acronyms border color
846
+ @abbr-border-color: @gray-light;
847
+ //** Headings small color
848
+ @headings-small-color: @gray-light;
849
+ //** Blockquote small color
850
+ @blockquote-small-color: @gray-light;
851
+ //** Blockquote font size
852
+ @blockquote-font-size: (@font-size-base * 1.25);
853
+ //** Blockquote border color
854
+ @blockquote-border-color: @gray-lighter;
855
+ //** Page header border color
856
+ @page-header-border-color: @gray-lighter;
857
+ //** Width of horizontal description list titles
858
+ @dl-horizontal-offset: @component-offset-horizontal;
859
+ //** Horizontal line color.
860
+ @hr-border: @gray-lighter;