twitter-bootstrap-rails 2.1.4 → 2.1.6

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.

Potentially problematic release.


This version of twitter-bootstrap-rails might be problematic. Click here for more details.

Files changed (54) hide show
  1. data/README.md +16 -2
  2. data/app/helpers/bootstrap_flash_helper.rb +2 -0
  3. data/app/helpers/glyph_helper.rb +1 -1
  4. data/lib/generators/bootstrap/install/install_generator.rb +5 -1
  5. data/lib/generators/bootstrap/install/templates/bootstrap.js +5 -0
  6. data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +5 -2
  7. data/lib/twitter/bootstrap/rails/version.rb +1 -1
  8. data/lib/twitter-bootstrap-rails.rb +1 -1
  9. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-affix.js +4 -2
  10. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +2 -4
  11. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-button.js +5 -7
  12. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +12 -12
  13. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +9 -11
  14. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +9 -11
  15. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +20 -25
  16. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +1 -1
  17. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +1 -1
  18. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +5 -7
  19. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +12 -11
  20. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +5 -5
  21. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +19 -9
  22. data/vendor/toolkit/fontawesome.less +6 -5
  23. data/vendor/toolkit/twitter/bootstrap/accordion.less +1 -1
  24. data/vendor/toolkit/twitter/bootstrap/alerts.less +1 -1
  25. data/vendor/toolkit/twitter/bootstrap/bootstrap.less +2 -2
  26. data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +1 -1
  27. data/vendor/toolkit/twitter/bootstrap/button-groups.less +5 -8
  28. data/vendor/toolkit/twitter/bootstrap/buttons.less +17 -16
  29. data/vendor/toolkit/twitter/bootstrap/code.less +1 -1
  30. data/vendor/toolkit/twitter/bootstrap/dropdowns.less +32 -5
  31. data/vendor/toolkit/twitter/bootstrap/forms.less +47 -14
  32. data/vendor/toolkit/twitter/bootstrap/hero-unit.less +6 -5
  33. data/vendor/toolkit/twitter/bootstrap/labels-badges.less +4 -2
  34. data/vendor/toolkit/twitter/bootstrap/media.less +55 -0
  35. data/vendor/toolkit/twitter/bootstrap/mixins.less +15 -10
  36. data/vendor/toolkit/twitter/bootstrap/modals.less +7 -11
  37. data/vendor/toolkit/twitter/bootstrap/navbar.less +6 -6
  38. data/vendor/toolkit/twitter/bootstrap/navs.less +3 -2
  39. data/vendor/toolkit/twitter/bootstrap/pager.less +10 -9
  40. data/vendor/toolkit/twitter/bootstrap/pagination.less +69 -12
  41. data/vendor/toolkit/twitter/bootstrap/popovers.less +2 -2
  42. data/vendor/toolkit/twitter/bootstrap/progress-bars.less +2 -2
  43. data/vendor/toolkit/twitter/bootstrap/reset.less +5 -4
  44. data/vendor/toolkit/twitter/bootstrap/responsive-767px-max.less +20 -1
  45. data/vendor/toolkit/twitter/bootstrap/responsive-navbar.less +12 -4
  46. data/vendor/toolkit/twitter/bootstrap/responsive.less +1 -1
  47. data/vendor/toolkit/twitter/bootstrap/sprites.less +8 -8
  48. data/vendor/toolkit/twitter/bootstrap/tables.less +20 -29
  49. data/vendor/toolkit/twitter/bootstrap/thumbnails.less +1 -1
  50. data/vendor/toolkit/twitter/bootstrap/tooltip.less +1 -1
  51. data/vendor/toolkit/twitter/bootstrap/type.less +30 -24
  52. data/vendor/toolkit/twitter/bootstrap/variables.less +23 -1
  53. data/vendor/toolkit/twitter/bootstrap/wells.less +3 -3
  54. metadata +19 -24
@@ -25,7 +25,7 @@
25
25
  padding-right: 20px;
26
26
  #gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
27
27
  border: 1px solid @navbarBorder;
28
- .border-radius(4px);
28
+ .border-radius(@baseBorderRadius);
29
29
  .box-shadow(0 1px 4px rgba(0,0,0,.065));
30
30
 
31
31
  // Prevent floats from breaking the navbar
@@ -41,6 +41,7 @@
41
41
  // Override the default collapsed state
42
42
  .nav-collapse.collapse {
43
43
  height: auto;
44
+ overflow: visible;
44
45
  }
45
46
 
46
47
 
@@ -152,7 +153,6 @@
152
153
 
153
154
  .navbar-static-top {
154
155
  position: static;
155
- width: 100%;
156
156
  margin-bottom: 0; // remove 18px margin for default navbar
157
157
  .navbar-inner {
158
158
  .border-radius(0);
@@ -202,7 +202,7 @@
202
202
  .navbar-fixed-top,
203
203
  .navbar-static-top {
204
204
  .navbar-inner {
205
- .box-shadow(inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1));
205
+ .box-shadow(~"0 1px 10px rgba(0,0,0,.1)");
206
206
  }
207
207
  }
208
208
 
@@ -210,7 +210,7 @@
210
210
  .navbar-fixed-bottom {
211
211
  bottom: 0;
212
212
  .navbar-inner {
213
- .box-shadow(inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1));
213
+ .box-shadow(~"0 -1px 10px rgba(0,0,0,.1)");
214
214
  }
215
215
  }
216
216
 
@@ -274,7 +274,7 @@
274
274
  margin-left: 5px;
275
275
  margin-right: 5px;
276
276
  .buttonBackground(darken(@navbarBackgroundHighlight, 5%), darken(@navbarBackground, 5%));
277
- .box-shadow(inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075));
277
+ .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)");
278
278
  }
279
279
  .navbar .btn-navbar .icon-bar {
280
280
  display: block;
@@ -446,7 +446,7 @@
446
446
  color: @white;
447
447
  background-color: @navbarInverseSearchBackground;
448
448
  border-color: @navbarInverseSearchBorder;
449
- .box-shadow(inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15));
449
+ .box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
450
450
  .transition(none);
451
451
  .placeholder(@navbarInverseSearchPlaceholderColor);
452
452
 
@@ -67,7 +67,8 @@
67
67
  text-shadow: 0 -1px 0 rgba(0,0,0,.2);
68
68
  background-color: @linkColor;
69
69
  }
70
- .nav-list [class^="icon-"] {
70
+ .nav-list [class^="icon-"],
71
+ .nav-list [class*=" icon-"] {
71
72
  margin-right: 2px;
72
73
  }
73
74
  // Dividers (basically an hr) within the dropdown
@@ -123,7 +124,7 @@
123
124
  .nav-tabs > .active > a,
124
125
  .nav-tabs > .active > a:hover {
125
126
  color: @gray;
126
- background-color: @white;
127
+ background-color: @bodyBackground;
127
128
  border: 1px solid #ddd;
128
129
  border-bottom-color: transparent;
129
130
  cursor: default;
@@ -12,28 +12,29 @@
12
12
  .pager li {
13
13
  display: inline;
14
14
  }
15
- .pager a,
16
- .pager span {
15
+ .pager li > a,
16
+ .pager li > span {
17
17
  display: inline-block;
18
18
  padding: 5px 14px;
19
19
  background-color: #fff;
20
20
  border: 1px solid #ddd;
21
21
  .border-radius(15px);
22
22
  }
23
- .pager a:hover {
23
+ .pager li > a:hover {
24
24
  text-decoration: none;
25
25
  background-color: #f5f5f5;
26
26
  }
27
- .pager .next a,
28
- .pager .next span {
27
+ .pager .next > a,
28
+ .pager .next > span {
29
29
  float: right;
30
30
  }
31
- .pager .previous a {
31
+ .pager .previous > a,
32
+ .pager .previous > span {
32
33
  float: left;
33
34
  }
34
- .pager .disabled a,
35
- .pager .disabled a:hover,
36
- .pager .disabled span {
35
+ .pager .disabled > a,
36
+ .pager .disabled > a:hover,
37
+ .pager .disabled > span {
37
38
  color: @grayLight;
38
39
  background-color: #fff;
39
40
  cursor: default;
@@ -2,27 +2,30 @@
2
2
  // Pagination (multiple pages)
3
3
  // --------------------------------------------------
4
4
 
5
-
5
+ // Space out pagination from surrounding content
6
6
  .pagination {
7
- height: @baseLineHeight * 2;
8
7
  margin: @baseLineHeight 0;
9
- }
8
+ }
9
+
10
10
  .pagination ul {
11
+ // Allow for text-based alignment
11
12
  display: inline-block;
12
13
  .ie7-inline-block();
14
+ // Reset default ul styles
13
15
  margin-left: 0;
14
16
  margin-bottom: 0;
15
- .border-radius(3px);
17
+ // Visuals
18
+ .border-radius(@baseBorderRadius);
16
19
  .box-shadow(0 1px 2px rgba(0,0,0,.05));
17
20
  }
18
21
  .pagination ul > li {
19
- display: inline;
22
+ display: inline; // Remove list-style and block-level defaults
20
23
  }
21
24
  .pagination ul > li > a,
22
25
  .pagination ul > li > span {
23
- float: left;
24
- padding: 0 14px;
25
- line-height: (@baseLineHeight * 2) - 2;
26
+ float: left; // Collapse white-space
27
+ padding: 4px 12px;
28
+ line-height: @baseLineHeight;
26
29
  text-decoration: none;
27
30
  background-color: @paginationBackground;
28
31
  border: 1px solid @paginationBorder;
@@ -31,7 +34,7 @@
31
34
  .pagination ul > li > a:hover,
32
35
  .pagination ul > .active > a,
33
36
  .pagination ul > .active > span {
34
- background-color: #f5f5f5;
37
+ background-color: @paginationActiveBackground;
35
38
  }
36
39
  .pagination ul > .active > a,
37
40
  .pagination ul > .active > span {
@@ -48,17 +51,71 @@
48
51
  .pagination ul > li:first-child > a,
49
52
  .pagination ul > li:first-child > span {
50
53
  border-left-width: 1px;
51
- .border-radius(3px 0 0 3px);
54
+ .border-left-radius(@baseBorderRadius);
52
55
  }
53
56
  .pagination ul > li:last-child > a,
54
57
  .pagination ul > li:last-child > span {
55
- .border-radius(0 3px 3px 0);
58
+ .border-right-radius(@baseBorderRadius);
56
59
  }
57
60
 
58
- // Centered
61
+
62
+ // Alignment
63
+ // --------------------------------------------------
64
+
59
65
  .pagination-centered {
60
66
  text-align: center;
61
67
  }
62
68
  .pagination-right {
63
69
  text-align: right;
64
70
  }
71
+
72
+
73
+ // Sizing
74
+ // --------------------------------------------------
75
+
76
+ // Large
77
+ .pagination-large {
78
+ ul > li > a,
79
+ ul > li > span {
80
+ padding: @paddingLarge;
81
+ font-size: @fontSizeLarge;
82
+ }
83
+ ul > li:first-child > a,
84
+ ul > li:first-child > span {
85
+ .border-left-radius(@borderRadiusLarge);
86
+ }
87
+ ul > li:last-child > a,
88
+ ul > li:last-child > span {
89
+ .border-right-radius(@borderRadiusLarge);
90
+ }
91
+ }
92
+
93
+ // Small and mini
94
+ .pagination-mini,
95
+ .pagination-small {
96
+ ul > li:first-child > a,
97
+ ul > li:first-child > span {
98
+ .border-left-radius(@borderRadiusSmall);
99
+ }
100
+ ul > li:last-child > a,
101
+ ul > li:last-child > span {
102
+ .border-right-radius(@borderRadiusSmall);
103
+ }
104
+ }
105
+
106
+ // Small
107
+ .pagination-small {
108
+ ul > li > a,
109
+ ul > li > span {
110
+ padding: @paddingSmall;
111
+ font-size: @fontSizeSmall;
112
+ }
113
+ }
114
+ // Mini
115
+ .pagination-mini {
116
+ ul > li > a,
117
+ ul > li > span {
118
+ padding: @paddingMini;
119
+ font-size: @fontSizeMini;
120
+ }
121
+ }
@@ -21,10 +21,10 @@
21
21
  .box-shadow(0 5px 10px rgba(0,0,0,.2));
22
22
 
23
23
  // Offset the popover to account for the popover arrow
24
- &.top { margin-bottom: 10px; }
24
+ &.top { margin-top: -10px; }
25
25
  &.right { margin-left: 10px; }
26
26
  &.bottom { margin-top: 10px; }
27
- &.left { margin-right: 10px; }
27
+ &.left { margin-left: -10px; }
28
28
 
29
29
  }
30
30
 
@@ -48,7 +48,7 @@
48
48
  margin-bottom: @baseLineHeight;
49
49
  #gradient > .vertical(#f5f5f5, #f9f9f9);
50
50
  .box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
51
- .border-radius(4px);
51
+ .border-radius(@baseBorderRadius);
52
52
  }
53
53
 
54
54
  // Bar of progress
@@ -66,7 +66,7 @@
66
66
  .transition(width .6s ease);
67
67
  }
68
68
  .progress .bar + .bar {
69
- .box-shadow(inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15));
69
+ .box-shadow(~"inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15)");
70
70
  }
71
71
 
72
72
  // Striped bars
@@ -88,7 +88,8 @@ img {
88
88
  }
89
89
 
90
90
  // Prevent max-width from affecting Google Maps
91
- #map_canvas img {
91
+ #map_canvas img,
92
+ .google-maps img {
92
93
  max-width: none;
93
94
  }
94
95
 
@@ -115,11 +116,11 @@ input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
115
116
  border: 0;
116
117
  }
117
118
  button,
118
- input[type="button"],
119
+ html input[type="button"], // Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls.
119
120
  input[type="reset"],
120
121
  input[type="submit"] {
121
- cursor: pointer; // Cursors on all buttons applied consistently
122
- -webkit-appearance: button; // Style clickable inputs in iOS
122
+ -webkit-appearance: button; // Corrects inability to style clickable `input` types in iOS.
123
+ cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
123
124
  }
124
125
  input[type="search"] { // Appearance in Safari/Chrome
125
126
  -webkit-box-sizing: content-box;
@@ -58,6 +58,7 @@
58
58
  }
59
59
  // Make all grid-sized elements block level again
60
60
  [class*="span"],
61
+ .uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing
61
62
  .row-fluid [class*="span"] {
62
63
  float: none;
63
64
  display: block;
@@ -70,6 +71,9 @@
70
71
  width: 100%;
71
72
  .box-sizing(border-box);
72
73
  }
74
+ .row-fluid [class*="offset"]:first-child {
75
+ margin-left: 0;
76
+ }
73
77
 
74
78
  // FORM FIELDS
75
79
  // -----------
@@ -103,7 +107,8 @@
103
107
  right: 20px;
104
108
  width: auto;
105
109
  margin: 0;
106
- &.fade.in { top: auto; }
110
+ &.fade { top: -100px; }
111
+ &.fade.in { top: 20px; }
107
112
  }
108
113
 
109
114
  }
@@ -155,6 +160,20 @@
155
160
  }
156
161
  }
157
162
 
163
+ // Medias
164
+ // Reset float and spacing to stack
165
+ .media .pull-left,
166
+ .media .pull-right {
167
+ float: none;
168
+ display: block;
169
+ margin-bottom: 10px;
170
+ }
171
+ // Remove side margins since we stack instead of indent
172
+ .media-object {
173
+ margin-right: 0;
174
+ margin-left: 0;
175
+ }
176
+
158
177
  // Modals
159
178
  .modal {
160
179
  top: 10px;
@@ -75,7 +75,7 @@
75
75
  .nav-collapse .btn {
76
76
  padding: 4px 10px 4px;
77
77
  font-weight: normal;
78
- .border-radius(4px);
78
+ .border-radius(@baseBorderRadius);
79
79
  }
80
80
  .nav-collapse .dropdown-menu li + li a {
81
81
  margin-bottom: 2px;
@@ -84,6 +84,10 @@
84
84
  .nav-collapse .dropdown-menu a:hover {
85
85
  background-color: @navbarBackground;
86
86
  }
87
+ .navbar-inverse .nav-collapse .nav > li > a,
88
+ .navbar-inverse .nav-collapse .dropdown-menu a {
89
+ color: @navbarInverseLinkColor;
90
+ }
87
91
  .navbar-inverse .nav-collapse .nav > li > a:hover,
88
92
  .navbar-inverse .nav-collapse .dropdown-menu a:hover {
89
93
  background-color: @navbarInverseBackground;
@@ -99,7 +103,7 @@
99
103
  top: auto;
100
104
  left: auto;
101
105
  float: none;
102
- display: block;
106
+ display: none;
103
107
  max-width: none;
104
108
  margin: 0 15px;
105
109
  padding: 0;
@@ -108,6 +112,10 @@
108
112
  .border-radius(0);
109
113
  .box-shadow(none);
110
114
  }
115
+ .nav-collapse .open > .dropdown-menu {
116
+ display: block;
117
+ }
118
+
111
119
  .nav-collapse .dropdown-menu:before,
112
120
  .nav-collapse .dropdown-menu:after {
113
121
  display: none;
@@ -129,7 +137,7 @@
129
137
  margin: (@baseLineHeight / 2) 0;
130
138
  border-top: 1px solid @navbarBackground;
131
139
  border-bottom: 1px solid @navbarBackground;
132
- .box-shadow(inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1));
140
+ .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1)");
133
141
  }
134
142
  .navbar-inverse .nav-collapse .navbar-form,
135
143
  .navbar-inverse .nav-collapse .navbar-search {
@@ -166,7 +174,7 @@
166
174
  // DEFAULT DESKTOP
167
175
  // ---------------
168
176
 
169
- @media (min-width: 980px) {
177
+ @media (min-width: @navbarCollapseDesktopWidth) {
170
178
 
171
179
  // Required to make the collapsing navbar work on regular desktops
172
180
  .nav-collapse.collapse {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.1.1
2
+ * Bootstrap Responsive v2.2.1
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -15,7 +15,7 @@
15
15
  // <i class="icon-inbox icon-white"></i>
16
16
 
17
17
  [class^="icon-"],
18
- [class*="icon-"] {
18
+ [class*=" icon-"] {
19
19
  display: inline-block;
20
20
  width: 14px;
21
21
  height: 14px;
@@ -30,18 +30,18 @@
30
30
 
31
31
  /* White icons with optional class, or on hover/active states of certain elements */
32
32
  .icon-white,
33
- .nav-tabs > .active > a > [class^="icon-"],
34
- .nav-tabs > .active > a > [class*="icon-"],
35
33
  .nav-pills > .active > a > [class^="icon-"],
36
- .nav-pills > .active > a > [class*="icon-"],
34
+ .nav-pills > .active > a > [class*=" icon-"],
37
35
  .nav-list > .active > a > [class^="icon-"],
38
- .nav-list > .active > a > [class*="icon-"],
36
+ .nav-list > .active > a > [class*=" icon-"],
39
37
  .navbar-inverse .nav > .active > a > [class^="icon-"],
40
- .navbar-inverse .nav > .active > a > [class*="icon-"],
38
+ .navbar-inverse .nav > .active > a > [class*=" icon-"],
41
39
  .dropdown-menu > li > a:hover > [class^="icon-"],
42
- .dropdown-menu > li > a:hover > [class*="icon-"],
40
+ .dropdown-menu > li > a:hover > [class*=" icon-"],
43
41
  .dropdown-menu > .active > a > [class^="icon-"],
44
- .dropdown-menu > .active > a > [class*="icon-"] {
42
+ .dropdown-menu > .active > a > [class*=" icon-"],
43
+ .dropdown-submenu:hover > a > [class^="icon-"],
44
+ .dropdown-submenu:hover > a > [class*=" icon-"] {
45
45
  background-image: url(@iconWhiteSpritePath);
46
46
  }
47
47
 
@@ -71,7 +71,7 @@ table {
71
71
  border-collapse: separate; // Done so we can round those corners!
72
72
  *border-collapse: collapse; // IE7 can't round corners anyway
73
73
  border-left: 0;
74
- .border-radius(4px);
74
+ .border-radius(@baseBorderRadius);
75
75
  th,
76
76
  td {
77
77
  border-left: 1px solid @tableBorder;
@@ -133,7 +133,7 @@ table {
133
133
  colgroup + tbody tr:first-child td:last-child {
134
134
  -webkit-border-top-right-radius: 4px;
135
135
  border-top-right-radius: 4px;
136
- -moz-border-radius-topleft: 4px;
136
+ -moz-border-radius-topright: 4px;
137
137
  }
138
138
 
139
139
  }
@@ -172,39 +172,30 @@ table {
172
172
  // -----------------
173
173
 
174
174
  // Reset default grid behavior
175
- table [class*=span],
176
- .row-fluid table [class*=span] {
175
+ table td[class*="span"],
176
+ table th[class*="span"],
177
+ .row-fluid table td[class*="span"],
178
+ .row-fluid table th[class*="span"] {
177
179
  display: table-cell;
178
180
  float: none; // undo default grid column styles
179
181
  margin-left: 0; // undo default grid column styles
180
182
  }
181
183
 
182
184
  // Change the column widths to account for td/th padding
183
- .table {
184
- .span1 { .tableColumns(1); }
185
- .span2 { .tableColumns(2); }
186
- .span3 { .tableColumns(3); }
187
- .span4 { .tableColumns(4); }
188
- .span5 { .tableColumns(5); }
189
- .span6 { .tableColumns(6); }
190
- .span7 { .tableColumns(7); }
191
- .span8 { .tableColumns(8); }
192
- .span9 { .tableColumns(9); }
193
- .span10 { .tableColumns(10); }
194
- .span11 { .tableColumns(11); }
195
- .span12 { .tableColumns(12); }
196
- .span13 { .tableColumns(13); }
197
- .span14 { .tableColumns(14); }
198
- .span15 { .tableColumns(15); }
199
- .span16 { .tableColumns(16); }
200
- .span17 { .tableColumns(17); }
201
- .span18 { .tableColumns(18); }
202
- .span19 { .tableColumns(19); }
203
- .span20 { .tableColumns(20); }
204
- .span21 { .tableColumns(21); }
205
- .span22 { .tableColumns(22); }
206
- .span23 { .tableColumns(23); }
207
- .span24 { .tableColumns(24); }
185
+ .table td,
186
+ .table th {
187
+ &.span1 { .tableColumns(1); }
188
+ &.span2 { .tableColumns(2); }
189
+ &.span3 { .tableColumns(3); }
190
+ &.span4 { .tableColumns(4); }
191
+ &.span5 { .tableColumns(5); }
192
+ &.span6 { .tableColumns(6); }
193
+ &.span7 { .tableColumns(7); }
194
+ &.span8 { .tableColumns(8); }
195
+ &.span9 { .tableColumns(9); }
196
+ &.span10 { .tableColumns(10); }
197
+ &.span11 { .tableColumns(11); }
198
+ &.span12 { .tableColumns(12); }
208
199
  }
209
200
 
210
201
 
@@ -29,7 +29,7 @@
29
29
  padding: 4px;
30
30
  line-height: @baseLineHeight;
31
31
  border: 1px solid #ddd;
32
- .border-radius(4px);
32
+ .border-radius(@baseBorderRadius);
33
33
  .box-shadow(0 1px 3px rgba(0,0,0,.055));
34
34
  .transition(all .2s ease-in-out);
35
35
  }
@@ -27,7 +27,7 @@
27
27
  text-align: center;
28
28
  text-decoration: none;
29
29
  background-color: @tooltipBackground;
30
- .border-radius(4px);
30
+ .border-radius(@baseBorderRadius);
31
31
  }
32
32
 
33
33
  // Arrows
@@ -37,18 +37,17 @@ cite {
37
37
  .muted {
38
38
  color: @grayLight;
39
39
  }
40
- .text-warning {
41
- color: @warningText;
42
- }
43
- .text-error {
44
- color: @errorText;
45
- }
46
- .text-info {
47
- color: @infoText;
48
- }
49
- .text-success {
50
- color: @successText;
51
- }
40
+ .text-warning { color: @warningText; }
41
+ a.text-warning:hover { color: darken(@warningText, 10%); }
42
+
43
+ .text-error { color: @errorText; }
44
+ a.text-error:hover { color: darken(@errorText, 10%); }
45
+
46
+ .text-info { color: @infoText; }
47
+ a.text-info:hover { color: darken(@infoText, 10%); }
48
+
49
+ .text-success { color: @successText; }
50
+ a.text-success:hover { color: darken(@successText, 10%); }
52
51
 
53
52
 
54
53
  // Headings
@@ -58,7 +57,7 @@ h1, h2, h3, h4, h5, h6 {
58
57
  margin: (@baseLineHeight / 2) 0;
59
58
  font-family: @headingsFontFamily;
60
59
  font-weight: @headingsFontWeight;
61
- line-height: 1;
60
+ line-height: @baseLineHeight;
62
61
  color: @headingsColor;
63
62
  text-rendering: optimizelegibility; // Fix the character spacing for headings
64
63
  small {
@@ -67,17 +66,22 @@ h1, h2, h3, h4, h5, h6 {
67
66
  color: @grayLight;
68
67
  }
69
68
  }
70
- h1 { font-size: 36px; line-height: 40px; }
71
- h2 { font-size: 30px; line-height: 40px; }
72
- h3 { font-size: 24px; line-height: 40px; }
73
- h4 { font-size: 18px; line-height: 20px; }
74
- h5 { font-size: 14px; line-height: 20px; }
75
- h6 { font-size: 12px; line-height: 20px; }
76
69
 
77
- h1 small { font-size: 24px; }
78
- h2 small { font-size: 18px; }
79
- h3 small { font-size: 14px; }
80
- h4 small { font-size: 14px; }
70
+ h1,
71
+ h2,
72
+ h3 { line-height: @baseLineHeight * 2; }
73
+
74
+ h1 { font-size: @baseFontSize * 2.75; } // ~38px
75
+ h2 { font-size: @baseFontSize * 2.25; } // ~32px
76
+ h3 { font-size: @baseFontSize * 1.75; } // ~24px
77
+ h4 { font-size: @baseFontSize * 1.25; } // ~18px
78
+ h5 { font-size: @baseFontSize; }
79
+ h6 { font-size: @baseFontSize * 0.85; } // ~12px
80
+
81
+ h1 small { font-size: @baseFontSize * 1.75; } // ~24px
82
+ h2 small { font-size: @baseFontSize * 1.25; } // ~18px
83
+ h3 small { font-size: @baseFontSize; }
84
+ h4 small { font-size: @baseFontSize; }
81
85
 
82
86
 
83
87
  // Page header
@@ -155,7 +159,9 @@ hr {
155
159
  }
156
160
 
157
161
  // Abbreviations and acronyms
158
- abbr[title] {
162
+ abbr[title],
163
+ // Added data-* attribute to help out our tooltip plugin, per https://github.com/twitter/bootstrap/issues/5257
164
+ abbr[data-original-title] {
159
165
  cursor: help;
160
166
  border-bottom: 1px dotted @grayLight;
161
167
  }
@@ -57,6 +57,24 @@
57
57
  @headingsFontWeight: bold; // instead of browser default, bold
58
58
  @headingsColor: inherit; // empty to use BS default, @textColor
59
59
 
60
+
61
+ // Component sizing
62
+ // -------------------------
63
+ // Based on 14px font-size and 20px line-height
64
+
65
+ @fontSizeLarge: @baseFontSize * 1.25; // ~18px
66
+ @fontSizeSmall: @baseFontSize * 0.85; // ~12px
67
+ @fontSizeMini: @baseFontSize * 0.75; // ~11px
68
+
69
+ @paddingLarge: 11px 19px; // 44px
70
+ @paddingSmall: 2px 10px; // 26px
71
+ @paddingMini: 1px 6px; // 24px
72
+
73
+ @baseBorderRadius: 4px;
74
+ @borderRadiusLarge: 6px;
75
+ @borderRadiusSmall: 3px;
76
+
77
+
60
78
  // Tables
61
79
  // -------------------------
62
80
  @tableBackground: transparent; // overall background-color
@@ -93,9 +111,11 @@
93
111
  // -------------------------
94
112
  @inputBackground: @white;
95
113
  @inputBorder: #ccc;
96
- @inputBorderRadius: 3px;
114
+ @inputBorderRadius: @baseBorderRadius;
97
115
  @inputDisabledBackground: @grayLighter;
98
116
  @formActionsBackground: #f5f5f5;
117
+ @inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
118
+
99
119
 
100
120
  // Dropdowns
101
121
  // -------------------------
@@ -116,6 +136,7 @@
116
136
  // COMPONENT VARIABLES
117
137
  // --------------------------------------------------
118
138
 
139
+
119
140
  // Z-index master list
120
141
  // -------------------------
121
142
  // Used for a bird's eye view of components dependent on the z-axis
@@ -157,6 +178,7 @@
157
178
  // Navbar
158
179
  // -------------------------
159
180
  @navbarCollapseWidth: 979px;
181
+ @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
160
182
 
161
183
  @navbarHeight: 40px;
162
184
  @navbarBackgroundHighlight: #ffffff;