bootstrap-sass 2.0.3.1 → 2.0.4.0

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

Potentially problematic release.


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

Files changed (28) hide show
  1. data/README.md +11 -2
  2. data/vendor/assets/javascripts/bootstrap-alert.js +1 -1
  3. data/vendor/assets/javascripts/bootstrap-button.js +1 -1
  4. data/vendor/assets/javascripts/bootstrap-carousel.js +1 -1
  5. data/vendor/assets/javascripts/bootstrap-collapse.js +1 -1
  6. data/vendor/assets/javascripts/bootstrap-dropdown.js +1 -1
  7. data/vendor/assets/javascripts/bootstrap-modal.js +1 -1
  8. data/vendor/assets/javascripts/bootstrap-popover.js +1 -1
  9. data/vendor/assets/javascripts/bootstrap-scrollspy.js +2 -2
  10. data/vendor/assets/javascripts/bootstrap-tab.js +1 -1
  11. data/vendor/assets/javascripts/bootstrap-tooltip.js +3 -3
  12. data/vendor/assets/javascripts/bootstrap-transition.js +1 -1
  13. data/vendor/assets/javascripts/bootstrap-typeahead.js +1 -1
  14. data/vendor/assets/stylesheets/_bootstrap-responsive.scss +12 -357
  15. data/vendor/assets/stylesheets/bootstrap/_component-animations.scss +2 -2
  16. data/vendor/assets/stylesheets/bootstrap/_dropdowns.scss +3 -3
  17. data/vendor/assets/stylesheets/bootstrap/_forms.scss +54 -79
  18. data/vendor/assets/stylesheets/bootstrap/_mixins.scss +31 -4
  19. data/vendor/assets/stylesheets/bootstrap/_navbar.scss +7 -6
  20. data/vendor/assets/stylesheets/bootstrap/_reset.scss +5 -0
  21. data/vendor/assets/stylesheets/bootstrap/_responsive-1200px-min.scss +26 -0
  22. data/vendor/assets/stylesheets/bootstrap/_responsive-767px-max.scss +136 -0
  23. data/vendor/assets/stylesheets/bootstrap/_responsive-768px-979px.scss +16 -0
  24. data/vendor/assets/stylesheets/bootstrap/_responsive-navbar.scss +147 -0
  25. data/vendor/assets/stylesheets/bootstrap/_responsive-utilities.scss +41 -0
  26. data/vendor/assets/stylesheets/bootstrap/_type.scss +1 -4
  27. data/vendor/assets/stylesheets/bootstrap/_variables.scss +3 -0
  28. metadata +11 -6
@@ -2,10 +2,10 @@
2
2
  // --------------------
3
3
 
4
4
  .fade {
5
- @include opacity(0);
5
+ opacity: 0;
6
6
  @include transition(opacity .15s linear);
7
7
  &.in {
8
- @include opacity(1);
8
+ opacity: 1;
9
9
  }
10
10
  }
11
11
 
@@ -68,7 +68,7 @@
68
68
 
69
69
  // Dividers (basically an hr) within the dropdown
70
70
  .divider {
71
- @include nav-divider();
71
+ @include nav-divider($dropdownDividerTop, $dropdownDividerBottom);
72
72
  }
73
73
 
74
74
  // Links within the dropdown menu
@@ -98,14 +98,14 @@
98
98
  // make the menu appear below buttons that appeared later on the page
99
99
  *z-index: $zindexDropdown;
100
100
 
101
- .dropdown-menu {
101
+ & > .dropdown-menu {
102
102
  display: block;
103
103
  }
104
104
  }
105
105
 
106
106
  // Right aligned dropdowns
107
107
  // ---------------------------
108
- .pull-right .dropdown-menu {
108
+ .pull-right > .dropdown-menu {
109
109
  right: 0;
110
110
  left: auto;
111
111
  }
@@ -27,7 +27,7 @@ legend {
27
27
  line-height: $baseLineHeight * 2;
28
28
  color: $grayDark;
29
29
  border: 0;
30
- border-bottom: 1px solid #eee;
30
+ border-bottom: 1px solid #e5e5e5;
31
31
 
32
32
  // Small
33
33
  small {
@@ -48,63 +48,67 @@ input, button, select, textarea {
48
48
  label {
49
49
  display: block;
50
50
  margin-bottom: 5px;
51
- color: $grayDark;
52
51
  }
53
52
 
54
- // Inputs, Textareas, Selects
55
- input, textarea, select, .uneditable-input {
53
+ // Form controls
54
+ // -------------------------
55
+
56
+ // Shared size and type resets
57
+ select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"],
58
+ input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"],
59
+ input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
56
60
  display: inline-block;
57
- width: 210px;
58
61
  height: $baseLineHeight;
59
62
  padding: 4px;
60
63
  margin-bottom: 9px;
61
64
  font-size: $baseFontSize;
62
65
  line-height: $baseLineHeight;
63
66
  color: $gray;
64
- background-color: $inputBackground;
65
- border: 1px solid $inputBorder;
66
- @include border-radius($inputBorderRadius);
67
67
  }
68
- .uneditable-textarea {
69
- width: auto;
68
+
69
+ // Reset appearance properties for textual inputs and textarea
70
+ // Declare width for legacy (can't be on input[type=*] selectors or it's too specific)
71
+ input, textarea {
72
+ width: 210px;
73
+ }
74
+ // Reset height since textareas have rows
75
+ textarea {
70
76
  height: auto;
71
77
  }
78
+ // Everything else
79
+ textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"],
80
+ input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"],
81
+ input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
82
+ background-color: $inputBackground;
83
+ border: 1px solid $inputBorder;
84
+ @include border-radius($inputBorderRadius);
85
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
86
+ @include transition(#{border linear .2s, box-shadow linear .2s});
72
87
 
73
- // Inputs within a label
74
- label input, label textarea, label select {
75
- display: block;
88
+ // Focus state
89
+ &:focus {
90
+ border-color: rgba(82,168,236,.8);
91
+ outline: 0;
92
+ outline: thin dotted \9; /* IE6-9 */
93
+ @include box-shadow(#{inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)});
94
+ }
76
95
  }
77
96
 
78
- // Mini reset for unique input types
79
- input[type="image"], input[type="checkbox"], input[type="radio"] {
80
- width: auto;
81
- height: auto;
82
- padding: 0;
97
+ // Position radios and checkboxes better
98
+ input[type="radio"], input[type="checkbox"] {
83
99
  margin: 3px 0;
84
100
  *margin-top: 0; /* IE7 */
85
101
  line-height: normal;
86
102
  cursor: pointer;
87
- background-color: transparent;
88
- border: 0 \9; /* IE9 and down */
89
- @include border-radius(0);
90
- }
91
- input[type="image"] {
92
- border: 0;
93
103
  }
94
104
 
95
- // Reset the file input to browser defaults
96
- input[type="file"] {
97
- width: auto;
98
- padding: initial;
99
- line-height: initial;
100
- background-color: $inputBackground;
101
- background-color: initial;
102
- border: initial;
103
- @include box-shadow(none);
105
+ // Reset width of input buttons, radios, checkboxes
106
+ input[type="submit"], input[type="reset"], input[type="button"], input[type="radio"], input[type="checkbox"] {
107
+ width: auto; // Override of generic input selector
104
108
  }
105
109
 
106
- // Help out input buttons
107
- input[type="button"], input[type="reset"], input[type="submit"] {
110
+ // Make uneditable textareas behave like a textarea
111
+ .uneditable-textarea {
108
112
  width: auto;
109
113
  height: auto;
110
114
  }
@@ -116,15 +120,10 @@ select, input[type="file"] {
116
120
  line-height: 28px;
117
121
  }
118
122
 
119
- // Reset line-height for IE
120
- input[type="file"] {
121
- line-height: 18px \9;
122
- }
123
-
124
- // Chrome on Linux and Mobile Safari need background-color
123
+ // Make select elements obey height by applying a border
125
124
  select {
126
125
  width: 220px; // default input width + 10px of padding that doesn't get applied
127
- background-color: $inputBackground;
126
+ border: 1px solid #bbb;
128
127
  }
129
128
 
130
129
  // Make multiple select elements height not fixed
@@ -132,19 +131,9 @@ select[multiple], select[size] {
132
131
  height: auto;
133
132
  }
134
133
 
135
- // Remove shadow from image inputs
136
- input[type="image"] {
137
- @include box-shadow(none);
138
- }
139
-
140
- // Make textarea height behave
141
- textarea {
142
- height: auto;
143
- }
144
-
145
- // Hidden inputs
146
- input[type="hidden"] {
147
- display: none;
134
+ // Focus for select, file, radio, and checkbox
135
+ select:focus, input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus {
136
+ @include tab-focus();
148
137
  }
149
138
 
150
139
 
@@ -181,26 +170,6 @@ input[type="hidden"] {
181
170
 
182
171
 
183
172
 
184
- // FOCUS STATE
185
- // -----------
186
-
187
- input, textarea {
188
- @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
189
- @include transition(#{border linear .2s, box-shadow linear .2s});
190
- }
191
- input:focus, textarea:focus {
192
- border-color: rgba(82,168,236,.8);
193
- outline: 0;
194
- outline: thin dotted \9; /* IE6-9 */
195
- @include box-shadow(#{inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)});
196
- }
197
- input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus, select:focus {
198
- @include tab-focus();
199
- @include box-shadow(none); // override for file inputs
200
- }
201
-
202
-
203
-
204
173
  // INPUT SIZES
205
174
  // -----------
206
175
 
@@ -219,6 +188,11 @@ input[class*="span"], select[class*="span"], textarea[class*="span"], .uneditabl
219
188
  float: none;
220
189
  margin-left: 0;
221
190
  }
191
+ // Ensure input-prepend/append never wraps
192
+ .input-append input[class*="span"], .input-append .uneditable-input[class*="span"], .input-prepend input[class*="span"],
193
+ .input-prepend .uneditable-input[class*="span"], .row-fluid .input-prepend [class*="span"], .row-fluid .input-append [class*="span"] {
194
+ display: inline-block;
195
+ }
222
196
 
223
197
 
224
198
 
@@ -229,7 +203,6 @@ input[class*="span"], select[class*="span"], textarea[class*="span"], .uneditabl
229
203
 
230
204
 
231
205
 
232
-
233
206
  // DISABLED STATE
234
207
  // --------------
235
208
 
@@ -284,7 +257,7 @@ input:focus:required:invalid, textarea:focus:required:invalid, select:focus:requ
284
257
  margin-top: $baseLineHeight;
285
258
  margin-bottom: $baseLineHeight;
286
259
  background-color: $formActionsBackground;
287
- border-top: 1px solid #ddd;
260
+ border-top: 1px solid #e5e5e5;
288
261
  @include clearfix(); // Adding clearfix to allow for .pull-right button containers
289
262
  }
290
263
 
@@ -299,7 +272,8 @@ input:focus:required:invalid, textarea:focus:required:invalid, select:focus:requ
299
272
  }
300
273
 
301
274
  // Placeholder text gets special styles; can't be bundled together though for some reason
302
- @include placeholder($grayLight);
275
+ // (sass-edit) - need special mixin
276
+ @include rootPlaceholder();
303
277
 
304
278
 
305
279
 
@@ -449,7 +423,8 @@ input:focus:required:invalid, textarea:focus:required:invalid, select:focus:requ
449
423
  vertical-align: middle;
450
424
  }
451
425
  // Remove float and margin, set to inline-block
452
- .form-search .radio input[type="radio"], .form-search .checkbox input[type="checkbox"], .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] {
426
+ .form-search .radio input[type="radio"], .form-search .checkbox input[type="checkbox"],
427
+ .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] {
453
428
  float: left;
454
429
  margin-right: 3px;
455
430
  margin-left: 0;
@@ -82,9 +82,25 @@
82
82
  // Placeholder text
83
83
  // -------------------------
84
84
  @mixin placeholder($color: $placeholderText) {
85
+ &:-moz-placeholder {
86
+ color: $color;
87
+ }
88
+ &:-ms-input-placeholder {
89
+ color: $color;
90
+ }
91
+ &::-webkit-input-placeholder {
92
+ color: $color;
93
+ }
94
+ }
95
+
96
+ // Sass doesn't support using & at base level, so we need a special root placeholder mixin.
97
+ @mixin rootPlaceholder($color: $placeholderText) {
85
98
  :-moz-placeholder {
86
99
  color: $color;
87
100
  }
101
+ :-ms-input-placeholder {
102
+ color: $color;
103
+ }
88
104
  ::-webkit-input-placeholder {
89
105
  color: $color;
90
106
  }
@@ -159,7 +175,7 @@
159
175
  color: $textColor;
160
176
  }
161
177
  // Style inputs accordingly
162
- input, select, textarea {
178
+ .checkbox, .radio, input, select, textarea {
163
179
  color: $textColor;
164
180
  border-color: $borderColor;
165
181
  &:focus {
@@ -303,6 +319,17 @@
303
319
  column-gap: $columnGap;
304
320
  }
305
321
 
322
+
323
+ // Optional hyphenation
324
+ @mixin hyphens($mode: auto) {
325
+ word-wrap: break-word;
326
+ -webkit-hyphens: $mode;
327
+ -moz-hyphens: $mode;
328
+ -ms-hyphens: $mode;
329
+ -o-hyphens: $mode;
330
+ hyphens: $mode;
331
+ }
332
+
306
333
  // Opacity
307
334
  @mixin opacity($opacity: 1) {
308
335
  opacity: $opacity;
@@ -403,7 +430,7 @@
403
430
  // Horizontal dividers
404
431
  // -------------------
405
432
  // Dividers (basically an hr) within dropdowns and nav lists
406
- @mixin nav-divider() {
433
+ @mixin nav-divider($top: #e5e5e5, $bottom: $white) {
407
434
  // IE7 needs a set width since we gave a height. Restricting just
408
435
  // to IE7 to keep the 1px left/right space in other browsers.
409
436
  // It is unclear where IE is getting the extra space that we need
@@ -413,8 +440,8 @@
413
440
  margin: (($baseLineHeight / 2) - 1) 1px; // 8px 1px
414
441
  *margin: -5px 0 5px;
415
442
  overflow: hidden;
416
- background-color: #e5e5e5;
417
- border-bottom: 1px solid $white;
443
+ background-color: $top;
444
+ border-bottom: 1px solid $bottom;
418
445
  }
419
446
 
420
447
  // Button backgrounds
@@ -115,13 +115,14 @@
115
115
  @include box-shadow(#{inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)});
116
116
  @include transition(none);
117
117
 
118
+ @include placeholder($navbarSearchPlaceholderColor);
118
119
  // Placeholder text gets special styles; can't be a grouped selector
119
- &:-moz-placeholder {
120
- color: $navbarSearchPlaceholderColor;
121
- }
122
- &::-webkit-input-placeholder {
123
- color: $navbarSearchPlaceholderColor;
124
- }
120
+ // &:-moz-placeholder {
121
+ // color: $navbarSearchPlaceholderColor;
122
+ // }
123
+ // &::-webkit-input-placeholder {
124
+ // color: $navbarSearchPlaceholderColor;
125
+ // }
125
126
 
126
127
  // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
127
128
  &:focus, &.focused {
@@ -68,6 +68,11 @@ img {
68
68
  -ms-interpolation-mode: bicubic;
69
69
  }
70
70
 
71
+ // Prevent max-width from affecting Google Maps
72
+ #map_canvas img {
73
+ max-width: none;
74
+ }
75
+
71
76
  // Forms
72
77
  // -------------------------
73
78
 
@@ -0,0 +1,26 @@
1
+ // LARGE DESKTOP & UP
2
+ // ------------------
3
+
4
+ @media (min-width: 1200px) {
5
+
6
+ // Fixed grid
7
+ @include gridCore($gridColumnWidthLarge, $gridGutterWidthLarge);
8
+
9
+ // Fluid grid
10
+ @include gridFluid($fluidGridColumnWidthLarge, $fluidGridGutterWidthLarge);
11
+
12
+ // Input grid
13
+ @include gridInput($gridColumnWidthLarge, $gridGutterWidthLarge);
14
+
15
+ // Thumbnails
16
+ .thumbnails {
17
+ margin-left: -30px;
18
+ }
19
+ .thumbnails > li {
20
+ margin-left: 30px;
21
+ }
22
+ .row-fluid .thumbnails {
23
+ margin-left: 0;
24
+ }
25
+
26
+ }
@@ -0,0 +1,136 @@
1
+ // UP TO LANDSCAPE PHONE
2
+ // ---------------------
3
+
4
+ @media (max-width: 480px) {
5
+
6
+ // Smooth out the collapsing/expanding nav
7
+ .nav-collapse {
8
+ -webkit-transform: translate3d(0, 0, 0); // activate the GPU
9
+ }
10
+
11
+ // Block level the page header small tag for readability
12
+ .page-header h1 small {
13
+ display: block;
14
+ line-height: $baseLineHeight;
15
+ }
16
+
17
+ // Update checkboxes for iOS
18
+ input[type="checkbox"], input[type="radio"] {
19
+ border: 1px solid #ccc;
20
+ }
21
+
22
+ // Remove the horizontal form styles
23
+ .form-horizontal .control-group > label {
24
+ float: none;
25
+ width: auto;
26
+ padding-top: 0;
27
+ text-align: left;
28
+ }
29
+ // Move over all input controls and content
30
+ .form-horizontal .controls {
31
+ margin-left: 0;
32
+ }
33
+ // Move the options list down to align with labels
34
+ .form-horizontal .control-list {
35
+ padding-top: 0; // has to be padding because margin collaspes
36
+ }
37
+ // Move over buttons in .form-actions to align with .controls
38
+ .form-horizontal .form-actions {
39
+ padding-left: 10px;
40
+ padding-right: 10px;
41
+ }
42
+
43
+ // Modals
44
+ .modal {
45
+ position: absolute;
46
+ top: 10px;
47
+ left: 10px;
48
+ right: 10px;
49
+ width: auto;
50
+ margin: 0;
51
+ &.fade.in { top: auto; }
52
+ }
53
+ .modal-header .close {
54
+ padding: 10px;
55
+ margin: -10px;
56
+ }
57
+
58
+ // Carousel
59
+ .carousel-caption {
60
+ position: static;
61
+ }
62
+
63
+ }
64
+
65
+
66
+
67
+ // LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
68
+ // --------------------------------------------------
69
+
70
+ @media (max-width: 767px) {
71
+
72
+ // Padding to set content in a bit
73
+ body {
74
+ padding-left: 20px;
75
+ padding-right: 20px;
76
+ }
77
+ // Negative indent the now static "fixed" navbar
78
+ .navbar-fixed-top, .navbar-fixed-bottom {
79
+ margin-left: -20px;
80
+ margin-right: -20px;
81
+ }
82
+ // Remove padding on container given explicit padding set on body
83
+ .container-fluid {
84
+ padding: 0;
85
+ }
86
+
87
+ // TYPOGRAPHY
88
+ // ----------
89
+ // Reset horizontal dl
90
+ .dl-horizontal {
91
+ dt {
92
+ float: none;
93
+ clear: none;
94
+ width: auto;
95
+ text-align: left;
96
+ }
97
+ dd {
98
+ margin-left: 0;
99
+ }
100
+ }
101
+
102
+ // GRID & CONTAINERS
103
+ // -----------------
104
+ // Remove width from containers
105
+ .container {
106
+ width: auto;
107
+ }
108
+ // Fluid rows
109
+ .row-fluid {
110
+ width: 100%;
111
+ }
112
+ // Undo negative margin on rows and thumbnails
113
+ .row, .thumbnails {
114
+ margin-left: 0;
115
+ }
116
+ // Make all grid-sized elements block level again
117
+ [class*="span"], .row-fluid [class*="span"] {
118
+ float: none;
119
+ display: block;
120
+ width: auto;
121
+ margin-left: 0;
122
+ }
123
+
124
+ // FORM FIELDS
125
+ // -----------
126
+ // Make span* classes full width
127
+ .input-large, .input-xlarge, .input-xxlarge, input[class*="span"], select[class*="span"], textarea[class*="span"], .uneditable-input {
128
+ @include input-block-level();
129
+ }
130
+ // But don't let it screw up prepend/append inputs
131
+ .input-prepend input, .input-append input, .input-prepend input[class*="span"], .input-append input[class*="span"] {
132
+ display: inline-block; // redeclare so they don't wrap to new lines
133
+ width: auto;
134
+ }
135
+
136
+ }