anjlab-bootstrap-rails 3.0.0.rc2 → 3.0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -8
  3. data/Rakefile +19 -1
  4. data/app/assets/fonts/twitter/glyphicons-halflings-regular.eot +0 -0
  5. data/app/assets/fonts/twitter/glyphicons-halflings-regular.svg +228 -0
  6. data/app/assets/fonts/twitter/glyphicons-halflings-regular.ttf +0 -0
  7. data/app/assets/fonts/twitter/glyphicons-halflings-regular.woff +0 -0
  8. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +3 -3
  9. data/app/assets/javascripts/twitter/bootstrap/modal.js +5 -3
  10. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +9 -5
  11. data/app/assets/javascripts/twitter/bootstrap/transition.js +1 -1
  12. data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +7 -11
  13. data/app/assets/stylesheets/twitter/bootstrap/_bootstrap.scss +17 -21
  14. data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +14 -10
  15. data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +14 -20
  16. data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +6 -1
  17. data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +23 -5
  18. data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +44 -23
  19. data/app/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +232 -0
  20. data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +10 -4
  21. data/app/assets/stylesheets/twitter/bootstrap/_input-groups.scss +1 -1
  22. data/app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +16 -5
  23. data/app/assets/stylesheets/twitter/bootstrap/_labels.scss +9 -5
  24. data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +83 -51
  25. data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +7 -0
  26. data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +254 -199
  27. data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +13 -19
  28. data/app/assets/stylesheets/twitter/bootstrap/_pager.scss +1 -1
  29. data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +20 -9
  30. data/app/assets/stylesheets/twitter/bootstrap/_panels.scss +28 -8
  31. data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +6 -10
  32. data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +41 -72
  33. data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +36 -21
  34. data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +84 -59
  35. data/app/assets/stylesheets/twitter/bootstrap/_theme.scss +232 -0
  36. data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +8 -19
  37. data/app/assets/stylesheets/twitter/bootstrap/_type.scss +2 -2
  38. data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +90 -73
  39. data/lib/bootstrap-rails/version.rb +1 -1
  40. metadata +10 -4
@@ -3,28 +3,17 @@
3
3
  // --------------------------------------------------
4
4
 
5
5
 
6
- // Base classes
7
- // For thumbnail block-level composite components and simple image styles
8
-
9
- // The actual thumbnailed element
10
- // Can be `a`, `div`, or `img`
11
- .thumbnail,
12
- .img-thumbnail {
13
- padding: $thumbnail-padding;
14
- line-height: $line-height-base;
15
- background-color: $thumbnail-bg;
16
- border: 1px solid $thumbnail-border;
17
- border-radius: $thumbnail-border-radius;
18
- @include transition(all .2s ease-in-out);
19
- }
6
+ // Mixin and adjust the regular image class
20
7
  .thumbnail {
21
- display: block;
22
- }
23
- .thumbnail > img,
24
- .img-thumbnail {
25
- @include img-responsive();
8
+ @extend .img-thumbnail;
9
+ display: block; // Override the inline-block from `.img-thumbnail`
10
+
11
+ > img {
12
+ @include img-responsive();
13
+ }
26
14
  }
27
15
 
16
+
28
17
  // Add a hover state for linked versions only
29
18
  a.thumbnail:hover,
30
19
  a.thumbnail:focus {
@@ -72,8 +72,8 @@ h6 {
72
72
  margin-bottom: ($line-height-computed / 2);
73
73
  }
74
74
 
75
- h1, .h1 { font-size: ceil($font-size-base * 2.70); } // ~38px
76
- h2, .h2 { font-size: ceil($font-size-base * 2.25); } // ~32px
75
+ h1, .h1 { font-size: floor($font-size-base * 2.60); } // ~36px
76
+ h2, .h2 { font-size: floor($font-size-base * 2.15); } // ~30px
77
77
  h3, .h3 { font-size: ceil($font-size-base * 1.70); } // ~24px
78
78
  h4, .h4 { font-size: ceil($font-size-base * 1.25); } // ~18px
79
79
  h5, .h5 { font-size: $font-size-base; }
@@ -3,43 +3,9 @@
3
3
  // --------------------------------------------------
4
4
 
5
5
 
6
- // Media queries breakpoints
7
- // --------------------------------------------------
8
-
9
- // Extra small screen / phone
10
- $screen-xsmall: 480px !default;
11
- $screen-phone: $screen-xsmall !default;
12
-
13
- // Small screen / tablet
14
- $screen-small: 768px !default;
15
- $screen-tablet: $screen-small !default;
16
-
17
- // Medium screen / desktop
18
- $screen-medium: 992px !default;
19
- $screen-desktop: $screen-medium !default;
20
-
21
- // Large screen / wide desktop
22
- $screen-large: 1200px !default;
23
- $screen-large-desktop: $screen-large !default;
24
-
25
- // So media queries don't overlap when required, provide a maximum
26
- $screen-phone-max: ($screen-small - 1) !default;
27
- $screen-small-max: ($screen-medium - 1) !default;
28
- $screen-tablet-max: ($screen-desktop - 1) !default;
29
- $screen-desktop-max: ($screen-large-desktop - 1) !default;
30
-
31
-
32
- // Grid system
6
+ // Global values
33
7
  // --------------------------------------------------
34
8
 
35
- // Number of columns in the grid system
36
- $grid-columns: 12 !default;
37
- // Padding, to be divided by two and applied to the left and right of all columns
38
- $grid-gutter-width: 30px !default;
39
- // Point at which the navbar stops collapsing
40
- $grid-float-breakpoint: $screen-tablet !default;
41
-
42
-
43
9
  // Grays
44
10
  // -------------------------
45
11
 
@@ -89,6 +55,12 @@ $headings-font-family: $font-family-base !default;
89
55
  $headings-font-weight: 500 !default;
90
56
  $headings-line-height: 1.1 !default;
91
57
 
58
+ // Iconography
59
+ // -------------------------
60
+
61
+ $icon-font-path: "twitter/" !default;
62
+ $icon-font-name: "glyphicons-halflings-regular" !default;
63
+
92
64
 
93
65
  // Components
94
66
  // -------------------------
@@ -132,7 +104,7 @@ $table-border-color: #ddd !default; // table and cell border
132
104
  // Buttons
133
105
  // -------------------------
134
106
 
135
- $btn-font-weight: bold !default;
107
+ $btn-font-weight: normal !default;
136
108
 
137
109
  $btn-default-color: #333 !default;
138
110
  $btn-default-bg: #fff !default;
@@ -216,6 +188,7 @@ $dropdown-caret-color: #000 !default;
216
188
  // Used for a bird's eye view of components dependent on the z-axis
217
189
  // Try to avoid customizing these :)
218
190
 
191
+ $zindex-navbar: 1000 !default;
219
192
  $zindex-dropdown: 1000 !default;
220
193
  $zindex-popover: 1010 !default;
221
194
  $zindex-tooltip: 1030 !default;
@@ -223,6 +196,40 @@ $zindex-navbar-fixed: 1030 !default;
223
196
  $zindex-modal-background: 1040 !default;
224
197
  $zindex-modal: 1050 !default;
225
198
 
199
+ // Media queries breakpoints
200
+ // --------------------------------------------------
201
+
202
+ // Extra small screen / phone
203
+ $screen-xs: 480px !default;
204
+ $screen-phone: $screen-xs !default;
205
+
206
+ // Small screen / tablet
207
+ $screen-sm: 768px !default;
208
+ $screen-tablet: $screen-sm !default;
209
+
210
+ // Medium screen / desktop
211
+ $screen-md: 992px !default;
212
+ $screen-desktop: $screen-md !default;
213
+
214
+ // Large screen / wide desktop
215
+ $screen-lg: 1200px !default;
216
+ $screen-lg-desktop: $screen-lg !default;
217
+
218
+ // So media queries don't overlap when required, provide a maximum
219
+ $screen-xs-max: ($screen-sm - 1) !default;
220
+ $screen-sm-max: ($screen-md - 1) !default;
221
+ $screen-md-max: ($screen-lg - 1) !default;
222
+
223
+
224
+ // Grid system
225
+ // --------------------------------------------------
226
+
227
+ // Number of columns in the grid system
228
+ $grid-columns: 12 !default;
229
+ // Padding, to be divided by two and applied to the left and right of all columns
230
+ $grid-gutter-width: 30px !default;
231
+ // Point at which the navbar stops collapsing
232
+ $grid-float-breakpoint: $screen-tablet !default;
226
233
 
227
234
 
228
235
  // Navbar
@@ -231,33 +238,34 @@ $zindex-modal: 1050 !default;
231
238
  // Basics of a navbar
232
239
  $navbar-height: 50px !default;
233
240
  $navbar-margin-bottom: $line-height-computed !default;
234
- $navbar-color: #777 !default;
235
- $navbar-bg: #f8f8f8 !default;
236
- $navbar-border: darken($navbar-bg, 6.5%) !default;
241
+ $navbar-default-color: #777 !default;
242
+ $navbar-default-bg: #f8f8f8 !default;
243
+ $navbar-default-border: darken($navbar-default-bg, 6.5%) !default;
237
244
  $navbar-border-radius: $border-radius-base !default;
238
245
  $navbar-padding-horizontal: floor($grid-gutter-width / 2) !default;
239
246
  $navbar-padding-vertical: (($navbar-height - $line-height-computed) / 2) !default;
240
247
 
241
248
  // Navbar links
242
- $navbar-link-color: #777 !default;
243
- $navbar-link-hover-color: #333 !default;
244
- $navbar-link-hover-bg: transparent !default;
245
- $navbar-link-active-color: #555 !default;
246
- $navbar-link-active-bg: darken($navbar-bg, 6.5%) !default;
247
- $navbar-link-disabled-color: #ccc !default;
248
- $navbar-link-disabled-bg: transparent !default;
249
+ $navbar-default-link-color: #777 !default;
250
+ $navbar-default-link-hover-color: #333 !default;
251
+ $navbar-default-link-hover-bg: transparent !default;
252
+ $navbar-default-link-active-color: #555 !default;
253
+ $navbar-default-link-active-bg: darken($navbar-default-bg, 6.5%) !default;
254
+ $navbar-default-link-disabled-color: #ccc !default;
255
+ $navbar-default-link-disabled-bg: transparent !default;
249
256
 
250
257
  // Navbar brand label
251
- $navbar-brand-color: $navbar-link-color !default;
252
- $navbar-brand-hover-color: darken($navbar-link-color, 10%) !default;
253
- $navbar-brand-hover-bg: transparent !default;
258
+ $navbar-default-brand-color: $navbar-default-link-color !default;
259
+ $navbar-default-brand-hover-color: darken($navbar-default-link-color, 10%) !default;
260
+ $navbar-default-brand-hover-bg: transparent !default;
254
261
 
255
262
  // Navbar toggle
256
- $navbar-toggle-hover-bg: #ddd !default;
257
- $navbar-toggle-icon-bar-bg: #ccc !default;
258
- $navbar-toggle-border-color: #ddd !default;
263
+ $navbar-default-toggle-hover-bg: #ddd !default;
264
+ $navbar-default-toggle-icon-bar-bg: #ccc !default;
265
+ $navbar-default-toggle-border-color: #ddd !default;
259
266
 
260
267
 
268
+ // Inverted navbar
261
269
  //
262
270
  // Reset inverted navbar basics
263
271
  $navbar-inverse-color: $gray-light !default;
@@ -294,6 +302,7 @@ $navbar-inverse-toggle-border-color: #333 !default;
294
302
  // Navs
295
303
  // -------------------------
296
304
 
305
+ $nav-link-padding: 10px 15px !default;
297
306
  $nav-link-hover-bg: $gray-lighter !default;
298
307
 
299
308
  $nav-disabled-link-color: $gray-light !default;
@@ -324,10 +333,15 @@ $nav-pills-active-link-hover-color: #fff !default;
324
333
 
325
334
  $pagination-bg: #fff !default;
326
335
  $pagination-border: #ddd !default;
327
- $pagination-active-bg: #f5f5f5 !default;
328
- $pagination-active-color: $gray-light !default;
336
+
337
+ $pagination-hover-bg: $gray-lighter !default;
338
+
339
+ $pagination-active-bg: $brand-primary !default;
340
+ $pagination-active-color: #fff !default;
341
+
329
342
  $pagination-disabled-color: $gray-light !default;
330
343
 
344
+
331
345
  // Pager
332
346
  // -------------------------
333
347
 
@@ -338,9 +352,11 @@ $pager-disabled-color: $gray-light !default;
338
352
  // Jumbotron
339
353
  // -------------------------
340
354
 
355
+ $jumbotron-padding: 30px !default;
356
+ $jumbotron-color: inherit !default;
341
357
  $jumbotron-bg: $gray-lighter !default;
358
+
342
359
  $jumbotron-heading-color: inherit !default;
343
- $jumbotron-lead-color: inherit !default;
344
360
 
345
361
 
346
362
  // Form states and alerts
@@ -394,6 +410,7 @@ $popover-arrow-outer-fallback-color: #999 !default;
394
410
  // -------------------------
395
411
 
396
412
  $label-default-bg: $gray-light !default;
413
+ $label-primary-bg: $brand-primary !default;
397
414
  $label-success-bg: $brand-success !default;
398
415
  $label-info-bg: $brand-info !default;
399
416
  $label-warning-bg: $brand-warning !default;
@@ -425,22 +442,22 @@ $alert-padding: 15px !default;
425
442
  $alert-border-radius: $border-radius-base !default;
426
443
  $alert-link-font-weight: bold !default;
427
444
 
428
- $alert-bg: $state-warning-bg !default;
429
- $alert-text: $state-warning-text !default;
430
- $alert-border: $state-warning-border !default;
431
-
432
445
  $alert-success-bg: $state-success-bg !default;
433
446
  $alert-success-text: $state-success-text !default;
434
447
  $alert-success-border: $state-success-border !default;
435
448
 
436
- $alert-danger-bg: $state-danger-bg !default;
437
- $alert-danger-text: $state-danger-text !default;
438
- $alert-danger-border: $state-danger-border !default;
439
-
440
449
  $alert-info-bg: $state-info-bg !default;
441
450
  $alert-info-text: $state-info-text !default;
442
451
  $alert-info-border: $state-info-border !default;
443
452
 
453
+ $alert-warning-bg: $state-warning-bg !default;
454
+ $alert-warning-text: $state-warning-text !default;
455
+ $alert-warning-border: $state-warning-border !default;
456
+
457
+ $alert-danger-bg: $state-danger-bg !default;
458
+ $alert-danger-text: $state-danger-text !default;
459
+ $alert-danger-border: $state-danger-border !default;
460
+
444
461
 
445
462
  // Progress bars
446
463
  // -------------------------
@@ -472,11 +489,14 @@ $list-group-link-heading-color: #333 !default;
472
489
  // Panels
473
490
  // -------------------------
474
491
  $panel-bg: #fff !default;
475
- $panel-border: #ddd !default;
492
+ $panel-inner-border: #ddd !default;
476
493
  $panel-border-radius: $border-radius-base !default;
477
- $panel-heading-bg: #f5f5f5 !default;
478
494
  $panel-footer-bg: #f5f5f5 !default;
479
495
 
496
+ $panel-default-text: $gray-dark !default;
497
+ $panel-default-border: #ddd !default;
498
+ $panel-default-heading-bg: #f5f5f5 !default;
499
+
480
500
  $panel-primary-text: #fff !default;
481
501
  $panel-primary-border: $brand-primary !default;
482
502
  $panel-primary-heading-bg: $brand-primary !default;
@@ -504,6 +524,7 @@ $thumbnail-padding: 4px !default;
504
524
  $thumbnail-bg: $body-bg !default;
505
525
  $thumbnail-border: #ddd !default;
506
526
  $thumbnail-border-radius: $border-radius-base !default;
527
+
507
528
  $thumbnail-caption-color: $text-color !default;
508
529
  $thumbnail-caption-padding: 9px !default;
509
530
 
@@ -513,11 +534,6 @@ $thumbnail-caption-padding: 9px !default;
513
534
  $well-bg: #f5f5f5 !default;
514
535
 
515
536
 
516
- // Accordion
517
- // -------------------------
518
- $accordion-border-color: #e5e5e5 !default;
519
-
520
-
521
537
  // Badges
522
538
  // -------------------------
523
539
  $badge-color: #fff !default;
@@ -541,6 +557,7 @@ $breadcrumb-active-color: $gray-light !default;
541
557
 
542
558
  // Carousel
543
559
  // ------------------------
560
+
544
561
  $carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6) !default;
545
562
 
546
563
  $carousel-control-color: #fff !default;
@@ -594,10 +611,10 @@ $component-offset-horizontal: 180px !default;
594
611
  // --------------------------------------------------
595
612
 
596
613
  // Small screen / tablet
597
- $container-tablet: 720px !default;
614
+ $container-tablet: ((720px + $grid-gutter-width)) !default;
598
615
 
599
616
  // Medium screen / desktop
600
- $container-desktop: 940px !default;
617
+ $container-desktop: ((940px + $grid-gutter-width)) !default;
601
618
 
602
619
  // Large screen / wide desktop
603
- $container-large-desktop: 1140px !default;
620
+ $container-lg-desktop: ((1140px + $grid-gutter-width)) !default;
@@ -1,5 +1,5 @@
1
1
  module Bootstrap
2
2
  module Rails
3
- VERSION = '3.0.0.rc2'
3
+ VERSION = '3.0.0.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anjlab-bootstrap-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.rc2
4
+ version: 3.0.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Korolev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-14 00:00:00.000000000 Z
11
+ date: 2013-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -79,6 +79,10 @@ files:
79
79
  - Gemfile
80
80
  - README.md
81
81
  - Rakefile
82
+ - app/assets/fonts/twitter/glyphicons-halflings-regular.eot
83
+ - app/assets/fonts/twitter/glyphicons-halflings-regular.svg
84
+ - app/assets/fonts/twitter/glyphicons-halflings-regular.ttf
85
+ - app/assets/fonts/twitter/glyphicons-halflings-regular.woff
82
86
  - app/assets/javascripts/twitter/bootstrap.js
83
87
  - app/assets/javascripts/twitter/bootstrap/affix.js
84
88
  - app/assets/javascripts/twitter/bootstrap/alert.js
@@ -105,6 +109,7 @@ files:
105
109
  - app/assets/stylesheets/twitter/bootstrap/_component-animations.scss
106
110
  - app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss
107
111
  - app/assets/stylesheets/twitter/bootstrap/_forms.scss
112
+ - app/assets/stylesheets/twitter/bootstrap/_glyphicons.scss
108
113
  - app/assets/stylesheets/twitter/bootstrap/_grid.scss
109
114
  - app/assets/stylesheets/twitter/bootstrap/_input-groups.scss
110
115
  - app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss
@@ -125,6 +130,7 @@ files:
125
130
  - app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss
126
131
  - app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss
127
132
  - app/assets/stylesheets/twitter/bootstrap/_tables.scss
133
+ - app/assets/stylesheets/twitter/bootstrap/_theme.scss
128
134
  - app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss
129
135
  - app/assets/stylesheets/twitter/bootstrap/_tooltip.scss
130
136
  - app/assets/stylesheets/twitter/bootstrap/_type.scss
@@ -152,9 +158,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
158
  version: '0'
153
159
  required_rubygems_version: !ruby/object:Gem::Requirement
154
160
  requirements:
155
- - - '>'
161
+ - - '>='
156
162
  - !ruby/object:Gem::Version
157
- version: 1.3.1
163
+ version: '0'
158
164
  requirements: []
159
165
  rubyforge_project:
160
166
  rubygems_version: 2.0.3