rails_admin 0.6.8 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rails_admin might be problematic. Click here for more details.

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