sass-rails-bootstrap 2.0.2 → 2.0.3a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/README.md +5 -5
  2. data/lib/sass-rails-bootstrap/version.rb +1 -1
  3. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
  4. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
  5. data/vendor/assets/javascripts/twitter/bootstrap/alert.js +28 -32
  6. data/vendor/assets/javascripts/twitter/bootstrap/button.js +32 -36
  7. data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +28 -20
  8. data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +46 -27
  9. data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +18 -10
  10. data/vendor/assets/javascripts/twitter/bootstrap/modal.js +25 -17
  11. data/vendor/assets/javascripts/twitter/bootstrap/popover.js +4 -6
  12. data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +44 -18
  13. data/vendor/assets/javascripts/twitter/bootstrap/tab.js +12 -7
  14. data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +40 -35
  15. data/vendor/assets/javascripts/twitter/bootstrap/transition.js +31 -21
  16. data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +25 -11
  17. data/vendor/assets/stylesheets/twitter/_bootstrap-responsive.scss +41 -0
  18. data/vendor/assets/stylesheets/twitter/_bootstrap.scss +3 -4
  19. data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.sass +5 -0
  20. data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.sass +56 -35
  21. data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.sass +16 -10
  22. data/vendor/assets/stylesheets/twitter/bootstrap/_close.sass +11 -1
  23. data/vendor/assets/stylesheets/twitter/bootstrap/_code.sass +4 -4
  24. data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.sass +4 -4
  25. data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.sass +15 -19
  26. data/vendor/assets/stylesheets/twitter/bootstrap/_forms.sass +58 -28
  27. data/vendor/assets/stylesheets/twitter/bootstrap/_labels-badges.sass +77 -0
  28. data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.sass +1 -1
  29. data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.sass +49 -34
  30. data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.sass +66 -37
  31. data/vendor/assets/stylesheets/twitter/bootstrap/_navs.sass +31 -28
  32. data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.sass +16 -7
  33. data/vendor/assets/stylesheets/twitter/bootstrap/_reset.sass +3 -3
  34. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-1200px-min.sass +20 -0
  35. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-767px-max.sass +134 -0
  36. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-768px-979px.sass +15 -0
  37. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-navbar.sass +139 -0
  38. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-utilities.sass +50 -0
  39. data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.sass +45 -4
  40. data/vendor/assets/stylesheets/twitter/bootstrap/_tables.sass +22 -6
  41. data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.sass +11 -2
  42. data/vendor/assets/stylesheets/twitter/bootstrap/_type.sass +7 -6
  43. data/vendor/assets/stylesheets/twitter/bootstrap/_variables.sass +11 -4
  44. metadata +14 -75
  45. data/lib/tasks/sass-rails-bootstrap_tasks.rake +0 -4
  46. data/test/dummy/README.rdoc +0 -261
  47. data/test/dummy/Rakefile +0 -7
  48. data/test/dummy/app/assets/javascripts/application.js +0 -15
  49. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  50. data/test/dummy/app/controllers/application_controller.rb +0 -3
  51. data/test/dummy/app/helpers/application_helper.rb +0 -2
  52. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  53. data/test/dummy/config/application.rb +0 -56
  54. data/test/dummy/config/boot.rb +0 -10
  55. data/test/dummy/config/database.yml +0 -25
  56. data/test/dummy/config/environment.rb +0 -5
  57. data/test/dummy/config/environments/development.rb +0 -37
  58. data/test/dummy/config/environments/production.rb +0 -67
  59. data/test/dummy/config/environments/test.rb +0 -37
  60. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  61. data/test/dummy/config/initializers/inflections.rb +0 -15
  62. data/test/dummy/config/initializers/mime_types.rb +0 -5
  63. data/test/dummy/config/initializers/secret_token.rb +0 -7
  64. data/test/dummy/config/initializers/session_store.rb +0 -8
  65. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  66. data/test/dummy/config/locales/en.yml +0 -5
  67. data/test/dummy/config/routes.rb +0 -58
  68. data/test/dummy/config.ru +0 -4
  69. data/test/dummy/db/test.sqlite3 +0 -0
  70. data/test/dummy/log/test.log +0 -2
  71. data/test/dummy/public/404.html +0 -26
  72. data/test/dummy/public/422.html +0 -26
  73. data/test/dummy/public/500.html +0 -25
  74. data/test/dummy/public/favicon.ico +0 -0
  75. data/test/dummy/script/rails +0 -6
  76. data/test/sass-rails-bootstrap_test.rb +0 -7
  77. data/test/test_helper.rb +0 -10
  78. data/vendor/assets/stylesheets/twitter/bootstrap/_badges.sass +0 -44
  79. data/vendor/assets/stylesheets/twitter/bootstrap/_labels.sass +0 -45
  80. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.sass +0 -333
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v2.0.1
2
+ * Bootstrap v2.0.3
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -8,7 +8,7 @@
8
8
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
9
  */
10
10
 
11
- // NOTE: This file has to be in SCSS rather than SASS format because of an apparent bug
11
+ // NOTE: This file's format has to be SCSS rather than SASS because of an apparent bug
12
12
  // with variable visibility when importing.
13
13
 
14
14
  // Core variables and mixins
@@ -55,8 +55,7 @@
55
55
 
56
56
  // Components: Misc
57
57
  @import "bootstrap/thumbnails";
58
- @import "bootstrap/labels";
59
- @import "bootstrap/badges";
58
+ @import "bootstrap/labels-badges";
60
59
  @import "bootstrap/progress-bars";
61
60
  @import "bootstrap/accordion";
62
61
  @import "bootstrap/carousel";
@@ -20,6 +20,11 @@
20
20
  padding: 8px 15px
21
21
 
22
22
 
23
+ // General toggle styles
24
+ .accordion-toggle
25
+ cursor: pointer
26
+
27
+
23
28
  // Inner needs the styles because you can't animate properly with any styles on the element
24
29
  .accordion-inner
25
30
  padding: 9px 15px
@@ -21,14 +21,14 @@
21
21
  +ie7-inline-block
22
22
 
23
23
  // Float them, remove border radius, then re-add to first and last elements
24
- .btn-group .btn
24
+ .btn-group > .btn
25
25
  position: relative
26
26
  float: left
27
27
  margin-left: -1px
28
28
  +border-radius(0)
29
29
 
30
30
  // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
31
- .btn-group .btn:first-child
31
+ .btn-group > .btn:first-child
32
32
  margin-left: 0
33
33
  -webkit-border-top-left-radius: 4px
34
34
  -moz-border-radius-topleft: 4px
@@ -37,8 +37,9 @@
37
37
  -moz-border-radius-bottomleft: 4px
38
38
  border-bottom-left-radius: 4px
39
39
 
40
- .btn-group .btn:last-child,
41
- .btn-group .dropdown-toggle
40
+ // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
41
+ .btn-group > .btn:last-child,
42
+ .btn-group > .dropdown-toggle
42
43
  -webkit-border-top-right-radius: 4px
43
44
  -moz-border-radius-topright: 4px
44
45
  border-top-right-radius: 4px
@@ -47,7 +48,7 @@
47
48
  border-bottom-right-radius: 4px
48
49
 
49
50
  // Reset corners for large buttons
50
- .btn-group .btn.large:first-child
51
+ .btn-group > .btn.large:first-child
51
52
  margin-left: 0
52
53
  -webkit-border-top-left-radius: 6px
53
54
  -moz-border-radius-topleft: 6px
@@ -56,8 +57,8 @@
56
57
  -moz-border-radius-bottomleft: 6px
57
58
  border-bottom-left-radius: 6px
58
59
 
59
- .btn-group .btn.large:last-child,
60
- .btn-group .large.dropdown-toggle
60
+ .btn-group > .btn.large:last-child,
61
+ .btn-group > .large.dropdown-toggle
61
62
  -webkit-border-top-right-radius: 6px
62
63
  -moz-border-radius-topright: 6px
63
64
  border-top-right-radius: 6px
@@ -66,10 +67,10 @@
66
67
  border-bottom-right-radius: 6px
67
68
 
68
69
  // On hover/focus/active, bring the proper btn to front
69
- .btn-group .btn:hover,
70
- .btn-group .btn:focus,
71
- .btn-group .btn:active,
72
- .btn-group .btn.active
70
+ .btn-group > .btn:hover,
71
+ .btn-group > .btn:focus,
72
+ .btn-group > .btn:active,
73
+ .btn-group > .btn.active
73
74
  z-index: 2
74
75
 
75
76
  // On active and open, don't show outline
@@ -83,41 +84,56 @@
83
84
  // ----------------------
84
85
 
85
86
  // Give the line between buttons some depth
86
- .btn-group .dropdown-toggle
87
+ .btn-group > .dropdown-toggle
87
88
  padding-left: 8px
88
89
  padding-right: 8px
89
90
  $shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)
90
91
  +box-shadow($shadow)
91
- *padding-top: 3px
92
- *padding-bottom: 3px
92
+ *padding-top: 4px
93
+ *padding-bottom: 4px
93
94
 
94
- .btn-group .btn-mini.dropdown-toggle
95
- padding-left: 1px
96
- padding-right: 1px
95
+ .btn-group > .btn-mini.dropdown-toggle
96
+ padding-left: 5px
97
+ padding-right: 5px
97
98
 
98
- .btn-group .btn-small.dropdown-toggle
99
- padding-left: 4px
100
- padding-right: 4px
99
+ .btn-group > .btn-small.dropdown-toggle
100
+ *padding-top: 4px
101
+ *padding-bottom: 4px
101
102
 
102
- .btn-group .btn-large.dropdown-toggle
103
+ .btn-group > .btn-large.dropdown-toggle
103
104
  padding-left: 12px
104
105
  padding-right: 12px
105
106
 
106
107
  .btn-group.open
107
- // IE7's z-index only goes to the nearest positioned ancestor, which would
108
- // make the menu appear below buttons that appeared later on the page
109
- *z-index: $zindexDropdown
110
-
111
- // Reposition menu on open and round all corners
112
- .dropdown-menu
113
- display: block
114
- margin-top: 1px
115
- +border-radius(5px)
116
-
108
+ // The clickable button for toggling the menu
109
+ // Remove the gradient and set the same inset shadow as the :active state
117
110
  .dropdown-toggle
118
111
  background-image: none
119
- $shadow: inset 0 1px 6px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)
112
+ $shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05)
120
113
  +box-shadow($shadow)
114
+
115
+ // Keep the hover's background when dropdown is open
116
+ .btn.dropdown-toggle
117
+ background-color: $btnBackgroundHighlight
118
+
119
+ .btn-primary.dropdown-toggle
120
+ background-color: $btnPrimaryBackgroundHighlight
121
+
122
+ .btn-warning.dropdown-toggle
123
+ background-color: $btnWarningBackgroundHighlight
124
+
125
+ .btn-danger.dropdown-toggle
126
+ background-color: $btnDangerBackgroundHighlight
127
+
128
+ .btn-success.dropdown-toggle
129
+ background-color: $btnSuccessBackgroundHighlight
130
+
131
+ .btn-info.dropdown-toggle
132
+ background-color: $btnInfoBackgroundHighlight
133
+
134
+ .btn-inverse.dropdown-toggle
135
+ background-color: $btnInverseBackgroundHighlight
136
+
121
137
 
122
138
  // Reposition the caret
123
139
  .btn .caret
@@ -137,9 +153,14 @@
137
153
 
138
154
  .btn-large .caret
139
155
  margin-top: 6px
140
- border-left: 5px solid transparent
141
- border-right: 5px solid transparent
142
- border-top: 5px solid $black
156
+ border-left-width: 5px
157
+ border-right-width: 5px
158
+ border-top-width: 5px
159
+
160
+ // Upside down carets for .dropup
161
+ .dropup .btn-large .caret
162
+ border-bottom: 5px solid $black
163
+ border-top: 0
143
164
 
144
165
  // Account for other colors
145
166
  .btn-primary,
@@ -10,28 +10,30 @@
10
10
  display: inline-block
11
11
  +ie7-inline-block
12
12
  padding: 4px 10px 4px
13
+ margin-bottom: 0 // For input.btn
13
14
  font-size: $baseFontSize
14
15
  line-height: $baseLineHeight
16
+ *line-height: 20px
15
17
  color: $grayDark
16
18
  text-align: center
17
19
  text-shadow: 0 1px 1px rgba(255,255,255,.75)
20
+ vertical-align: middle
21
+ cursor: pointer
18
22
  +button-background($btnBackground, $btnBackgroundHighlight)
19
23
  border: 1px solid $btnBorder
24
+ *border: 0 // Remove the border to prevent IE7's black border on input:focus
20
25
  border-bottom-color: darken($btnBorder, 10%)
21
26
  +border-radius(4px)
27
+ +ie7-restore-left-whitespace // Give IE7 some love
22
28
  $shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)
23
29
  +box-shadow($shadow)
24
- cursor: pointer
25
-
26
- // Give IE7 some love
27
- +reset-filter
28
- +ie7-restore-left-whitespace
29
30
 
30
31
  // Hover state
31
32
  .btn:hover
32
33
  color: $grayDark
33
34
  text-decoration: none
34
35
  background-color: darken($white, 10%)
36
+ *background-color: darken($white, 15%) /* Buttons in IE7 don't get borders, so darken on hover */
35
37
  background-position: 0 -15px
36
38
  // transition is only when going to hover, otherwise the background
37
39
  // behind the gradient (there for IE<=9 fallback) gets mismatched
@@ -44,19 +46,19 @@
44
46
  // Active state
45
47
  .btn.active,
46
48
  .btn:active
47
- background-image: none
48
- $shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)
49
- +box-shadow($shadow)
50
49
  background-color: darken($white, 10%)
51
50
  background-color: darken($white, 15%) #{"\9"}
51
+ background-image: none
52
52
  outline: 0
53
+ $shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)
54
+ +box-shadow($shadow)
53
55
 
54
56
  // Disabled state
55
57
  .btn.disabled,
56
58
  .btn[disabled]
57
59
  cursor: default
58
- background-image: none
59
60
  background-color: darken($white, 10%)
61
+ background-image: none
60
62
  +opacity(65)
61
63
  +box-shadow(none)
62
64
 
@@ -104,8 +106,8 @@
104
106
  .btn-info:hover,
105
107
  .btn-inverse,
106
108
  .btn-inverse:hover
107
- text-shadow: 0 -1px 0 rgba(0,0,0,.25)
108
109
  color: $white
110
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25)
109
111
 
110
112
  // Provide *some* extra contrast for those who can get it
111
113
  .btn-primary.active,
@@ -118,6 +120,10 @@
118
120
 
119
121
  // Set the backgrounds
120
122
  // -------------------------
123
+ .btn
124
+ // reset here as of 2.0.3 due to Recess property order
125
+ border-color: #ccc
126
+ border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25)
121
127
  .btn-primary
122
128
  +button-background($btnPrimaryBackground, $btnPrimaryBackgroundHighlight)
123
129
  // Warning appears as orange
@@ -12,5 +12,15 @@
12
12
  &:hover
13
13
  color: $black
14
14
  text-decoration: none
15
- +opacity(40)
16
15
  cursor: pointer
16
+ +opacity(40)
17
+
18
+ // Additional properties for button version
19
+ // iOS requires the button element instead of an anchor tag.
20
+ // If you want the anchor version, it requires `href="#"`.
21
+ button.close
22
+ padding: 0
23
+ cursor: pointer
24
+ background: transparent
25
+ border: 0
26
+ -webkit-appearance: none
@@ -24,14 +24,14 @@ pre
24
24
  margin: 0 0 $baseLineHeight / 2
25
25
  font-size: $baseFontSize * 0.925 // 13px to 12px
26
26
  line-height: $baseLineHeight
27
+ word-break: break-all
28
+ word-wrap: break-word
29
+ white-space: pre
30
+ white-space: pre-wrap
27
31
  background-color: #f5f5f5
28
32
  border: 1px solid #ccc // fallback for IE7-8
29
33
  border: 1px solid rgba(0, 0, 0, 0.15)
30
34
  +border-radius(4px)
31
- white-space: pre
32
- white-space: pre-wrap
33
- word-break: break-all
34
- word-wrap: break-word
35
35
 
36
36
  // Make prettyprint styles more spaced out for readability
37
37
  &.prettyprint
@@ -2,15 +2,15 @@
2
2
  // --------------------
3
3
 
4
4
  .fade
5
+ +opacity(0)
5
6
  +transition(opacity .15s linear)
6
- opacity: 0
7
7
  &.in
8
- opacity: 1
8
+ +opacity(1)
9
9
 
10
10
  .collapse
11
- +transition(height .35s ease)
12
11
  position: relative
13
- overflow: hidden
14
12
  height: 0
13
+ overflow: hidden
14
+ +transition(height .35s ease)
15
15
  &.in
16
16
  height: auto
@@ -2,6 +2,7 @@
2
2
  // --------------
3
3
 
4
4
  // Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
5
+ .dropup,
5
6
  .dropdown
6
7
  position: relative
7
8
 
@@ -19,11 +20,11 @@
19
20
  width: 0
20
21
  height: 0
21
22
  vertical-align: top
22
- border-left: 4px solid transparent
23
- border-right: 4px solid transparent
24
23
  border-top: 4px solid $black
25
- +opacity(30)
24
+ border-right: 4px solid transparent
25
+ border-left: 4px solid transparent
26
26
  content: ""
27
+ +opacity(30)
27
28
 
28
29
  // Place the caret
29
30
  .dropdown .caret
@@ -31,7 +32,7 @@
31
32
  margin-left: 2px
32
33
 
33
34
  .dropdown:hover .caret,
34
- .open.dropdown .caret
35
+ .open .caret
35
36
  +opacity(100)
36
37
 
37
38
  // The dropdown menu (ul)
@@ -41,25 +42,23 @@
41
42
  top: 100%
42
43
  left: 0
43
44
  z-index: $zindexDropdown
44
- float: left
45
45
  display: none // none by default, but block on "open" of the menu
46
+ float: left
46
47
  min-width: 160px
47
48
  max-width: 220px
48
49
  padding: 4px 0
49
- margin: 0 // override default ul
50
+ margin: 1px 0 0 // override default ul
50
51
  list-style: none
51
52
  background-color: $dropdownBackground
52
- border-color: #ccc
53
- border-color: rgba(0,0,0,.2)
54
- border-style: solid
55
- border-width: 1px
56
- +border-radius(0 0 5px 5px)
53
+ border: 1px solid #ccc
54
+ border: 1px solid rgba(0, 0, 0, 0.2)
55
+ *border-right-width: 2px
56
+ *border-bottom-width: 2px
57
+ +border-radius(5px)
57
58
  +box-shadow(0 5px 10px rgba(0,0,0,.2))
58
59
  -webkit-background-clip: padding-box
59
60
  -moz-background-clip: padding
60
61
  background-clip: padding-box
61
- *border-right-width: 2px
62
- *border-bottom-width: 2px
63
62
 
64
63
  // Aligns the dropdown menu to right
65
64
  &.pull-right
@@ -91,21 +90,18 @@
91
90
 
92
91
  // Open state for the dropdown
93
92
  // ---------------------------
94
- .dropdown.open
93
+ .open
95
94
  // IE7's z-index only goes to the nearest positioned ancestor, which would
96
95
  // make the menu appear below buttons that appeared later on the page
97
96
  *z-index: $zindexDropdown
98
- .dropdown-toggle
99
- color: $white
100
- background: #ccc
101
- background: rgba(0,0,0,.3)
102
97
  .dropdown-menu
103
98
  display: block
104
99
 
105
100
  // Right aligned dropdowns
101
+ // ---------------------------
106
102
  .pull-right .dropdown-menu
107
- left: auto
108
103
  right: 0
104
+ left: auto
109
105
 
110
106
  // Allow for dropdowns to go bottom up (aka, dropup-menu)
111
107
  // ------------------------------------------------------
@@ -63,8 +63,9 @@ select,
63
63
  font-size: $baseFontSize
64
64
  line-height: $baseLineHeight
65
65
  color: $gray
66
+ background-color: $inputBackground
66
67
  border: 1px solid $inputBorder
67
- +border-radius(3px)
68
+ +border-radius($inputBorderRadius)
68
69
 
69
70
  .uneditable-textarea
70
71
  width: auto
@@ -87,8 +88,9 @@ input[type="radio"]
87
88
  *margin-top: 0 // IE7
88
89
  line-height: normal
89
90
  cursor: pointer
90
- +border-radius(0)
91
+ background-color: transparent
91
92
  border: 0 \9 // IE9 and down
93
+ +border-radius(0)
92
94
 
93
95
  input[type="image"]
94
96
  border: 0
@@ -97,9 +99,9 @@ input[type="image"]
97
99
  input[type="file"]
98
100
  padding: initial
99
101
  line-height: initial
100
- border: initial
101
102
  background-color: $inputBackground
102
103
  background-color: initial
104
+ border: initial
103
105
  +box-shadow(none)
104
106
 
105
107
  // Help out input buttons
@@ -150,6 +152,7 @@ input[type="hidden"]
150
152
  // Indent the labels to position radios/checkboxes as hanging
151
153
  .radio,
152
154
  .checkbox
155
+ min-height: 18px // clear the floating input if there is no label text
153
156
  padding-left: 18px
154
157
 
155
158
  .radio input[type="radio"],
@@ -188,17 +191,17 @@ textarea
188
191
  input:focus,
189
192
  textarea:focus
190
193
  border-color: rgba(82,168,236,.8)
191
- $shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)
192
- +box-shadow($shadow)
193
194
  outline: 0
194
195
  outline: thin dotted \9 /* IE6-9 */
196
+ $shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)
197
+ +box-shadow($shadow)
195
198
 
196
199
  input[type="file"]:focus,
197
200
  input[type="radio"]:focus,
198
201
  input[type="checkbox"]:focus,
199
202
  select:focus
200
- +box-shadow(none) // override for file inputs
201
203
  +tab-focus
204
+ +box-shadow(none) // override for file inputs
202
205
 
203
206
 
204
207
 
@@ -223,7 +226,12 @@ select:focus
223
226
  input[class*="span"],
224
227
  select[class*="span"],
225
228
  textarea[class*="span"],
226
- .uneditable-input
229
+ .uneditable-input[class*="span"],
230
+ // Redeclare since the fluid row class is more specific
231
+ .row-fluid input[class*="span"],
232
+ .row-fluid select[class*="span"],
233
+ .row-fluid textarea[class*="span"],
234
+ .row-fluid .uneditable-input[class*="span"]
227
235
  float: none
228
236
  margin-left: 0
229
237
 
@@ -246,9 +254,16 @@ textarea[disabled],
246
254
  input[readonly],
247
255
  select[readonly],
248
256
  textarea[readonly]
257
+ cursor: not-allowed
249
258
  background-color: $inputDisabledBackground
250
259
  border-color: #ddd
251
- cursor: not-allowed
260
+
261
+ // Explicitly reset the colors here
262
+ input[type="radio"][disabled],
263
+ input[type="checkbox"][disabled],
264
+ input[type="radio"][readonly],
265
+ input[type="checkbox"][readonly]
266
+ background-color: transparent
252
267
 
253
268
 
254
269
 
@@ -282,17 +297,19 @@ select:focus:required:invalid
282
297
  padding: ($baseLineHeight - 1) 20px $baseLineHeight
283
298
  margin-top: $baseLineHeight
284
299
  margin-bottom: $baseLineHeight
285
- background-color: $grayLighter
300
+ background-color: $formActionsBackground
286
301
  border-top: 1px solid #ddd
287
- +clearfix
302
+ +clearfix // Adding clearfix to allow for .pull-right button containers
288
303
 
289
304
  // For text that needs to appear as an input but should not be an input
290
305
  .uneditable-input
306
+ white-space: nowrap
307
+ overflow: hidden // prevent text from wrapping, but still cut it off like an input does
308
+ cursor: not-allowed
291
309
  display: block
292
310
  background-color: $inputBackground
293
311
  border-color: #eee
294
312
  +box-shadow(inset 0 1px 2px rgba(0,0,0,.025))
295
- cursor: not-allowed
296
313
 
297
314
  // Placeholder text gets special styles; can't be bundled together though for some reason
298
315
  +placeholder($grayLight)
@@ -329,18 +346,21 @@ select:focus:required:invalid
329
346
  input,
330
347
  select,
331
348
  .uneditable-input
349
+ position: relative // placed here by default so that on :focus we can place the input above the .add-on for full border and box-shadow goodness
350
+ margin-bottom: 0 // prevent bottom margin from screwing up alignment in stacked forms
332
351
  *margin-left: 0
333
- +border-radius(0 3px 3px 0)
352
+ vertical-align: middle
353
+ +border-radius(0 $inputBorderRadius $inputBorderRadius 0)
354
+ // Make input on top when focused so blue border and shadow always show
334
355
  &:focus
335
- position: relative
336
356
  z-index: 2
337
357
  .uneditable-input
338
358
  border-left-color: #ccc
339
359
  .add-on
340
360
  display: inline-block
341
361
  width: auto
342
- min-width: 16px
343
362
  height: $baseLineHeight
363
+ min-width: 16px
344
364
  padding: 4px 5px
345
365
  font-weight: normal
346
366
  line-height: $baseLineHeight
@@ -351,7 +371,8 @@ select:focus:required:invalid
351
371
  border: 1px solid #ccc
352
372
  .add-on,
353
373
  .btn
354
- +border-radius(3px 0 0 3px)
374
+ margin-left: -1px
375
+ +border-radius(0)
355
376
  .active
356
377
  background-color: lighten($green, 30)
357
378
  border-color: $green
@@ -360,19 +381,21 @@ select:focus:required:invalid
360
381
  .add-on,
361
382
  .btn
362
383
  margin-right: -1px
384
+ .add-on:first-child,
385
+ .btn:first-child
386
+ +border-radius($inputBorderRadius 0 0 $inputBorderRadius)
363
387
 
364
388
  .input-append
365
389
  input,
366
390
  select,
367
391
  .uneditable-input
368
- +border-radius(3px 0 0 3px)
392
+ +border-radius($inputBorderRadius 0 0 $inputBorderRadius)
369
393
  .uneditable-input
370
- border-left-color: #eee
371
394
  border-right-color: #ccc
372
- .add-on,
373
- .btn
374
- margin-left: -1px
375
- +border-radius(0 3px 3px 0)
395
+ border-left-color: #eee
396
+ .add-on:last-child,
397
+ .btn:last-child
398
+ +border-radius(0 $inputBorderRadius $inputBorderRadius 0)
376
399
 
377
400
  // Remove all border-radius for inputs with both prepend and append
378
401
  .input-prepend.input-append
@@ -383,11 +406,11 @@ select:focus:required:invalid
383
406
  .add-on:first-child,
384
407
  .btn:first-child
385
408
  margin-right: -1px
386
- +border-radius(3px 0 0 3px)
409
+ +border-radius($inputBorderRadius 0 0 $inputBorderRadius)
387
410
  .add-on:last-child,
388
411
  .btn:last-child
389
412
  margin-left: -1px
390
- +border-radius(0 3px 3px 0)
413
+ +border-radius(0 $inputBorderRadius $inputBorderRadius 0)
391
414
 
392
415
 
393
416
 
@@ -395,8 +418,10 @@ select:focus:required:invalid
395
418
  // -----------
396
419
 
397
420
  .search-query
398
- padding-left: 14px
399
421
  padding-right: 14px
422
+ padding-right: 4px \9
423
+ padding-left: 14px
424
+ padding-left: 4px \9 /* IE7-8 doesn't have border-radius, so don't indent the padding */
400
425
  margin-bottom: 0 // remove the default margin on all inputs
401
426
  +border-radius(14px)
402
427
 
@@ -419,6 +444,7 @@ select:focus:required:invalid
419
444
  .input-prepend,
420
445
  .input-append
421
446
  display: inline-block
447
+ +ie7-inline-block
422
448
  margin-bottom: 0
423
449
  // Re-hide hidden elements due to specifity
424
450
  .hide
@@ -450,8 +476,8 @@ select:focus:required:invalid
450
476
  .form-inline .radio input[type="radio"],
451
477
  .form-inline .checkbox input[type="checkbox"]
452
478
  float: left
453
- margin-left: 0
454
479
  margin-right: 3px
480
+ margin-left: 0
455
481
 
456
482
  // Margin to space out fieldsets
457
483
  .control-group
@@ -479,11 +505,15 @@ legend + .control-group
479
505
  text-align: right
480
506
  // Move over all input controls and content
481
507
  .controls
482
- margin-left: 160px
483
- // Super jank IE7 fix to ensure the inputs in .input-append and input-prepend don't inherit the margin of the parent, in this case .controls
508
+ // Super jank IE7 fix to ensure the inputs in .input-append and input-prepend
509
+ // don't inherit the margin of the parent, in this case .controls
484
510
  *display: inline-block
485
- *margin-left: 0
486
511
  *padding-left: 20px
512
+ margin-left: 160px
513
+ *margin-left: 0
514
+ &:first-child
515
+ *padding-left: 160px
516
+ // Remove bottom margin on block level help text since that's accounted for on .control-group
487
517
  .help-block
488
518
  margin-top: $baseLineHeight / 2
489
519
  margin-bottom: 0