bootstrap-sass-rails 3.0.0.3 → 3.0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
  2. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +200 -199
  3. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  4. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
  5. data/app/assets/javascripts/twitter/bootstrap/affix.js +2 -2
  6. data/app/assets/javascripts/twitter/bootstrap/alert.js +1 -1
  7. data/app/assets/javascripts/twitter/bootstrap/button.js +1 -1
  8. data/app/assets/javascripts/twitter/bootstrap/carousel.js +2 -2
  9. data/app/assets/javascripts/twitter/bootstrap/collapse.js +2 -2
  10. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +2 -2
  11. data/app/assets/javascripts/twitter/bootstrap/modal.js +2 -2
  12. data/app/assets/javascripts/twitter/bootstrap/popover.js +2 -2
  13. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +2 -2
  14. data/app/assets/javascripts/twitter/bootstrap/tab.js +3 -3
  15. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +2 -2
  16. data/app/assets/javascripts/twitter/bootstrap/transition.js +1 -1
  17. data/app/assets/stylesheets/twitter/bootstrap.css.scss +0 -10
  18. data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +1 -1
  19. data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +2 -2
  20. data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +6 -1
  21. data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +2 -4
  22. data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +32 -10
  23. data/app/assets/stylesheets/twitter/bootstrap/_code.scss +5 -8
  24. data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +1 -2
  25. data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +16 -3
  26. data/app/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +16 -11
  27. data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +31 -285
  28. data/app/assets/stylesheets/twitter/bootstrap/_input-groups.scss +9 -0
  29. data/app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +2 -2
  30. data/app/assets/stylesheets/twitter/bootstrap/_list-group.scss +14 -15
  31. data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +155 -31
  32. data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +2 -16
  33. data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +10 -7
  34. data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +53 -20
  35. data/app/assets/stylesheets/twitter/bootstrap/_normalize.scss +16 -6
  36. data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +2 -0
  37. data/app/assets/stylesheets/twitter/bootstrap/_panels.scss +31 -7
  38. data/app/assets/stylesheets/twitter/bootstrap/_print.scss +6 -1
  39. data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +4 -7
  40. data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +37 -48
  41. data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +1 -12
  42. data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +40 -40
  43. data/app/assets/stylesheets/twitter/bootstrap/_theme.scss +26 -11
  44. data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +6 -6
  45. data/app/assets/stylesheets/twitter/bootstrap/_tooltip.scss +8 -8
  46. data/app/assets/stylesheets/twitter/bootstrap/_type.scss +71 -30
  47. data/app/assets/stylesheets/twitter/bootstrap/_utilities.scss +15 -1
  48. data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +56 -39
  49. data/lib/bootstrap/sass/rails/engine.rb +9 -1
  50. data/lib/bootstrap/sass/rails/version.rb +1 -1
  51. data/test/cases/usage_css_spec.rb +0 -3
  52. metadata +25 -7
  53. checksums.yaml +0 -15
@@ -37,17 +37,6 @@ textarea {
37
37
  line-height: inherit;
38
38
  }
39
39
 
40
- // Reset unusual Firefox-on-Android default style.
41
- //
42
- // See https://github.com/necolas/normalize.css/issues/214
43
-
44
- button,
45
- input,
46
- select[multiple],
47
- textarea {
48
- background-image: none;
49
- }
50
-
51
40
 
52
41
  // Links
53
42
 
@@ -125,6 +114,6 @@ hr {
125
114
  margin: -1px;
126
115
  padding: 0;
127
116
  overflow: hidden;
128
- clip: rect(0 0 0 0);
117
+ clip: rect(0,0,0,0);
129
118
  border: 0;
130
119
  }
@@ -18,9 +18,9 @@ th {
18
18
  width: 100%;
19
19
  margin-bottom: $line-height-computed;
20
20
  // Cells
21
- thead,
22
- tbody,
23
- tfoot {
21
+ > thead,
22
+ > tbody,
23
+ > tfoot {
24
24
  > tr {
25
25
  > th,
26
26
  > td {
@@ -32,22 +32,23 @@ th {
32
32
  }
33
33
  }
34
34
  // Bottom align for column headings
35
- thead > tr > th {
35
+ > thead > tr > th {
36
36
  vertical-align: bottom;
37
37
  border-bottom: 2px solid $table-border-color;
38
38
  }
39
39
  // Remove top border from thead by default
40
- caption + thead,
41
- colgroup + thead,
42
- thead:first-child {
43
- tr:first-child {
44
- th, td {
40
+ > caption + thead,
41
+ > colgroup + thead,
42
+ > thead:first-child {
43
+ > tr:first-child {
44
+ > th,
45
+ > td {
45
46
  border-top: 0;
46
47
  }
47
48
  }
48
49
  }
49
50
  // Account for multiple tbody instances
50
- tbody + tbody {
51
+ > tbody + tbody {
51
52
  border-top: 2px solid $table-border-color;
52
53
  }
53
54
 
@@ -61,9 +62,9 @@ th {
61
62
  // Condensed table w/ half padding
62
63
 
63
64
  .table-condensed {
64
- thead,
65
- tbody,
66
- tfoot {
65
+ > thead,
66
+ > tbody,
67
+ > tfoot {
67
68
  > tr {
68
69
  > th,
69
70
  > td {
@@ -90,12 +91,10 @@ th {
90
91
  }
91
92
  }
92
93
  }
93
- > thead {
94
- > tr {
95
- > th,
96
- > td {
97
- border-bottom-width: 2px;
98
- }
94
+ > thead > tr {
95
+ > th,
96
+ > td {
97
+ border-bottom-width: 2px;
99
98
  }
100
99
  }
101
100
  }
@@ -105,14 +104,10 @@ th {
105
104
  //
106
105
  // Default zebra-stripe styles (alternating gray and transparent backgrounds)
107
106
 
108
- .table-striped {
109
- > tbody {
110
- > tr:nth-child(odd) {
111
- > td,
112
- > th {
113
- background-color: $table-bg-accent;
114
- }
115
- }
107
+ .table-striped > tbody > tr:nth-child(odd) {
108
+ > td,
109
+ > th {
110
+ background-color: $table-bg-accent;
116
111
  }
117
112
  }
118
113
 
@@ -121,14 +116,10 @@ th {
121
116
  //
122
117
  // Placed here since it has to come after the potential zebra striping
123
118
 
124
- .table-hover {
125
- > tbody {
126
- > tr:hover {
127
- > td,
128
- > th {
129
- background-color: $table-bg-hover;
130
- }
131
- }
119
+ .table-hover > tbody > tr:hover {
120
+ > td,
121
+ > th {
122
+ background-color: $table-bg-hover;
132
123
  }
133
124
  }
134
125
 
@@ -176,22 +167,23 @@ table {
176
167
 
177
168
  // Responsive tables
178
169
  //
179
- // Wrap your tables in `.table-scrollable` and we'll make them mobile friendly
170
+ // Wrap your tables in `.table-responsive` and we'll make them mobile friendly
180
171
  // by enabling horizontal scrolling. Only applies <768px. Everything above that
181
172
  // will display normally.
182
173
 
183
- @media (max-width: $screen-sm) {
174
+ @media (max-width: $screen-xs-max) {
184
175
  .table-responsive {
185
176
  width: 100%;
186
- margin-bottom: 15px;
177
+ margin-bottom: ($line-height-computed * 0.75);
187
178
  overflow-y: hidden;
188
179
  overflow-x: scroll;
180
+ -ms-overflow-style: -ms-autohiding-scrollbar;
189
181
  border: 1px solid $table-border-color;
182
+ -webkit-overflow-scrolling: touch;
190
183
 
191
- // Tighten up spacing and give a background color
184
+ // Tighten up spacing
192
185
  > .table {
193
186
  margin-bottom: 0;
194
- background-color: #fff;
195
187
 
196
188
  // Ensure the content doesn't wrap
197
189
  > thead,
@@ -224,6 +216,13 @@ table {
224
216
  border-right: 0;
225
217
  }
226
218
  }
219
+ }
220
+
221
+ // Only nuke the last row's bottom-border in `tbody` and `tfoot` since
222
+ // chances are there will be only one `tr` in a `thead` and that would
223
+ // remove the border altogether.
224
+ > tbody,
225
+ > tfoot {
227
226
  > tr:last-child {
228
227
  > th,
229
228
  > td {
@@ -231,6 +230,7 @@ table {
231
230
  }
232
231
  }
233
232
  }
233
+
234
234
  }
235
235
  }
236
236
  }
@@ -32,13 +32,21 @@
32
32
 
33
33
  // Mixin for generating new styles
34
34
  @mixin btn-styles($btn-color: #555) {
35
- @include gradient-vertical($start-color: $btn-color, $end-color: darken($btn-color, 10%));
36
- border-color: darken($btn-color, 12%);
35
+ @include gradient-vertical($start-color: $btn-color, $end-color: darken($btn-color, 12%));
36
+ @include reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners
37
+ background-repeat: repeat-x;
38
+ border-color: darken($btn-color, 14%);
39
+
40
+ &:hover,
41
+ &:focus {
42
+ background-color: darken($btn-color, 12%);
43
+ background-position: 0 -15px;
44
+ }
37
45
 
38
46
  &:active,
39
47
  &.active {
40
- background-color: darken($btn-color, 10%);
41
- border-color: darken($btn-color, 12%);
48
+ background-color: darken($btn-color, 12%);
49
+ border-color: darken($btn-color, 14%);
42
50
  }
43
51
  }
44
52
 
@@ -77,12 +85,15 @@
77
85
  // --------------------------------------------------
78
86
 
79
87
  .dropdown-menu > li > a:hover,
80
- .dropdown-menu > li > a:focus,
88
+ .dropdown-menu > li > a:focus {
89
+ @include gradient-vertical($start-color: $dropdown-link-hover-bg, $end-color: darken($dropdown-link-hover-bg, 5%));
90
+ background-color: darken($dropdown-link-hover-bg, 5%);
91
+ }
81
92
  .dropdown-menu > .active > a,
82
93
  .dropdown-menu > .active > a:hover,
83
94
  .dropdown-menu > .active > a:focus {
84
- @include gradient-vertical($start-color: $dropdown-link-hover-bg, $end-color: darken($dropdown-link-hover-bg, 5%));
85
- background-color: darken($dropdown-link-hover-bg, 5%);
95
+ @include gradient-vertical($start-color: $dropdown-link-active-bg, $end-color: darken($dropdown-link-active-bg, 5%));
96
+ background-color: darken($dropdown-link-active-bg, 5%);
86
97
  }
87
98
 
88
99
 
@@ -91,15 +102,17 @@
91
102
  // Navbar
92
103
  // --------------------------------------------------
93
104
 
94
- // Basic navbar
95
- .navbar {
105
+ // Default navbar
106
+ .navbar-default {
96
107
  @include gradient-vertical($start-color: lighten($navbar-default-bg, 10%), $end-color: $navbar-default-bg);
108
+ @include reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
97
109
  border-radius: $navbar-border-radius;
98
110
  $shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
99
111
  @include box-shadow($shadow);
100
112
 
101
113
  .navbar-nav > .active > a {
102
- background-color: $navbar-default-bg;
114
+ @include gradient-vertical($start-color: darken($navbar-default-bg, 5%), $end-color: darken($navbar-default-bg, 2%));
115
+ @include box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
103
116
  }
104
117
  }
105
118
  .navbar-brand,
@@ -110,9 +123,11 @@
110
123
  // Inverted navbar
111
124
  .navbar-inverse {
112
125
  @include gradient-vertical($start-color: lighten($navbar-inverse-bg, 10%), $end-color: $navbar-inverse-bg);
126
+ @include reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
113
127
 
114
128
  .navbar-nav > .active > a {
115
- background-color: $navbar-inverse-bg;
129
+ @include gradient-vertical($start-color: $navbar-inverse-bg, $end-color: lighten($navbar-inverse-bg, 2.5%));
130
+ @include box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
116
131
  }
117
132
 
118
133
  .navbar-brand,
@@ -7,24 +7,24 @@
7
7
  .thumbnail {
8
8
  @extend .img-thumbnail;
9
9
  display: block; // Override the inline-block from `.img-thumbnail`
10
+ margin-bottom: $line-height-computed;
10
11
 
11
12
  > img {
12
13
  @include img-responsive();
14
+ margin-left: auto;
15
+ margin-right: auto;
13
16
  }
14
17
  }
15
18
 
16
19
 
17
20
  // Add a hover state for linked versions only
18
21
  a.thumbnail:hover,
19
- a.thumbnail:focus {
22
+ a.thumbnail:focus,
23
+ a.thumbnail.active {
20
24
  border-color: $link-color;
21
25
  }
22
26
 
23
- // Images and captions
24
- .thumbnail > img {
25
- margin-left: auto;
26
- margin-right: auto;
27
- }
27
+ // Image captions
28
28
  .thumbnail .caption {
29
29
  padding: $thumbnail-caption-padding;
30
30
  color: $thumbnail-caption-color;
@@ -14,10 +14,10 @@
14
14
  @include opacity(0);
15
15
 
16
16
  &.in { @include opacity(.9); }
17
- &.top { margin-top: -3px; padding: 5px 0; }
18
- &.right { margin-left: 3px; padding: 0 5px; }
19
- &.bottom { margin-top: 3px; padding: 5px 0; }
20
- &.left { margin-left: -3px; padding: 0 5px; }
17
+ &.top { margin-top: -3px; padding: $tooltip-arrow-width 0; }
18
+ &.right { margin-left: 3px; padding: 0 $tooltip-arrow-width; }
19
+ &.bottom { margin-top: 3px; padding: $tooltip-arrow-width 0; }
20
+ &.left { margin-left: -3px; padding: 0 $tooltip-arrow-width; }
21
21
  }
22
22
 
23
23
  // Wrapper for the tooltip content
@@ -49,13 +49,13 @@
49
49
  }
50
50
  &.top-left .tooltip-arrow {
51
51
  bottom: 0;
52
- left: 5px;
52
+ left: $tooltip-arrow-width;
53
53
  border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
54
54
  border-top-color: $tooltip-arrow-color;
55
55
  }
56
56
  &.top-right .tooltip-arrow {
57
57
  bottom: 0;
58
- right: 5px;
58
+ right: $tooltip-arrow-width;
59
59
  border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
60
60
  border-top-color: $tooltip-arrow-color;
61
61
  }
@@ -82,13 +82,13 @@
82
82
  }
83
83
  &.bottom-left .tooltip-arrow {
84
84
  top: 0;
85
- left: 5px;
85
+ left: $tooltip-arrow-width;
86
86
  border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
87
87
  border-bottom-color: $tooltip-arrow-color;
88
88
  }
89
89
  &.bottom-right .tooltip-arrow {
90
90
  top: 0;
91
- right: 5px;
91
+ right: $tooltip-arrow-width;
92
92
  border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
93
93
  border-bottom-color: $tooltip-arrow-color;
94
94
  }
@@ -11,11 +11,11 @@ p {
11
11
  }
12
12
  .lead {
13
13
  margin-bottom: $line-height-computed;
14
- font-size: ($font-size-base * 1.15);
14
+ font-size: floor($font-size-base * 1.15);
15
15
  font-weight: 200;
16
16
  line-height: 1.4;
17
17
 
18
- @media (min-width: 768px) {
18
+ @media (min-width: $screen-sm-min) {
19
19
  font-size: ($font-size-base * 1.5);
20
20
  }
21
21
  }
@@ -25,18 +25,46 @@ p {
25
25
  // -------------------------
26
26
 
27
27
  // Ex: 14px base font * 85% = about 12px
28
- small { font-size: 85%; }
28
+ small,
29
+ .small { font-size: 85%; }
29
30
 
30
31
  // Undo browser default styling
31
32
  cite { font-style: normal; }
32
33
 
33
34
  // Contextual emphasis
34
- .text-muted { color: $text-muted; }
35
- .text-primary { color: $brand-primary; }
36
- .text-warning { color: $state-warning-text; }
37
- .text-danger { color: $state-danger-text; }
38
- .text-success { color: $state-success-text; }
39
- .text-info { color: $state-info-text; }
35
+ .text-muted {
36
+ color: $text-muted;
37
+ }
38
+ .text-primary {
39
+ color: $brand-primary;
40
+ &:hover {
41
+ color: darken($brand-primary, 10%);
42
+ }
43
+ }
44
+ .text-warning {
45
+ color: $state-warning-text;
46
+ &:hover {
47
+ color: darken($state-warning-text, 10%);
48
+ }
49
+ }
50
+ .text-danger {
51
+ color: $state-danger-text;
52
+ &:hover {
53
+ color: darken($state-danger-text, 10%);
54
+ }
55
+ }
56
+ .text-success {
57
+ color: $state-success-text;
58
+ &:hover {
59
+ color: darken($state-success-text, 10%);
60
+ }
61
+ }
62
+ .text-info {
63
+ color: $state-info-text;
64
+ &:hover {
65
+ color: darken($state-info-text, 10%);
66
+ }
67
+ }
40
68
 
41
69
  // Alignment
42
70
  .text-left { text-align: left; }
@@ -52,7 +80,10 @@ h1, h2, h3, h4, h5, h6,
52
80
  font-family: $headings-font-family;
53
81
  font-weight: $headings-font-weight;
54
82
  line-height: $headings-line-height;
55
- small {
83
+ color: $headings-color;
84
+
85
+ small,
86
+ .small {
56
87
  font-weight: normal;
57
88
  line-height: 1;
58
89
  color: $headings-small-color;
@@ -64,25 +95,30 @@ h2,
64
95
  h3 {
65
96
  margin-top: $line-height-computed;
66
97
  margin-bottom: ($line-height-computed / 2);
98
+
99
+ small,
100
+ .small {
101
+ font-size: 65%;
102
+ }
67
103
  }
68
104
  h4,
69
105
  h5,
70
106
  h6 {
71
107
  margin-top: ($line-height-computed / 2);
72
108
  margin-bottom: ($line-height-computed / 2);
73
- }
74
109
 
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
- h3, .h3 { font-size: ceil($font-size-base * 1.70); } // ~24px
78
- h4, .h4 { font-size: ceil($font-size-base * 1.25); } // ~18px
79
- h5, .h5 { font-size: $font-size-base; }
80
- h6, .h6 { font-size: ceil($font-size-base * 0.85); } // ~12px
110
+ small,
111
+ .small {
112
+ font-size: 75%;
113
+ }
114
+ }
81
115
 
82
- h1 small, .h1 small { font-size: ceil($font-size-base * 1.70); } // ~24px
83
- h2 small, .h2 small { font-size: ceil($font-size-base * 1.25); } // ~18px
84
- h3 small, .h3 small,
85
- h4 small, .h4 small { font-size: $font-size-base; }
116
+ h1, .h1 { font-size: $font-size-h1; }
117
+ h2, .h2 { font-size: $font-size-h2; }
118
+ h3, .h3 { font-size: $font-size-h3; }
119
+ h4, .h4 { font-size: $font-size-h4; }
120
+ h5, .h5 { font-size: $font-size-h5; }
121
+ h6, .h6 { font-size: $font-size-h6; }
86
122
 
87
123
 
88
124
  // Page header
@@ -105,7 +141,7 @@ ol {
105
141
  margin-top: 0;
106
142
  margin-bottom: ($line-height-computed / 2);
107
143
  ul,
108
- ol{
144
+ ol {
109
145
  margin-bottom: 0;
110
146
  }
111
147
  }
@@ -117,13 +153,19 @@ ol {
117
153
  padding-left: 0;
118
154
  list-style: none;
119
155
  }
156
+
120
157
  // Inline turns list items into inline-block
121
158
  .list-inline {
122
159
  @extend .list-unstyled;
160
+
123
161
  > li {
124
162
  display: inline-block;
125
163
  padding-left: 5px;
126
164
  padding-right: 5px;
165
+
166
+ &:first-child {
167
+ padding-left: 0;
168
+ }
127
169
  }
128
170
  }
129
171
 
@@ -168,7 +210,7 @@ dd {
168
210
 
169
211
  // Abbreviations and acronyms
170
212
  abbr[title],
171
- // Added data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
213
+ // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
172
214
  abbr[data-original-title] {
173
215
  cursor: help;
174
216
  border-bottom: 1px dotted $abbr-border-color;
@@ -196,7 +238,7 @@ blockquote {
196
238
  line-height: $line-height-base;
197
239
  color: $blockquote-small-color;
198
240
  &:before {
199
- content: '\2014 \00A0';// EM DASH, NBSP
241
+ content: '\2014 \00A0'; // EM DASH, NBSP
200
242
  }
201
243
  }
202
244
 
@@ -207,23 +249,23 @@ blockquote {
207
249
  border-right: 5px solid $blockquote-border-color;
208
250
  border-left: 0;
209
251
  p,
210
- small {
252
+ small,
253
+ .small {
211
254
  text-align: right;
212
255
  }
213
- small {
256
+ small,
257
+ .small {
214
258
  &:before {
215
259
  content: '';
216
260
  }
217
261
  &:after {
218
- content: '\00A0 \2014';// NBSP, EM DASH
262
+ content: '\00A0 \2014'; // NBSP, EM DASH
219
263
  }
220
264
  }
221
265
  }
222
266
  }
223
267
 
224
268
  // Quotes
225
- q:before,
226
- q:after,
227
269
  blockquote:before,
228
270
  blockquote:after {
229
271
  content: "";
@@ -231,7 +273,6 @@ blockquote:after {
231
273
 
232
274
  // Addresses
233
275
  address {
234
- display: block;
235
276
  margin-bottom: $line-height-computed;
236
277
  font-style: normal;
237
278
  line-height: $line-height-base;