sass-twitter-bootstrap 0.1.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (245) hide show
  1. data/lib/{sass-twitter-bootstrap.rb → sass/twitter/bootstrap.rb} +1 -1
  2. data/lib/sass/twitter/bootstrap/rails.rb +1 -5
  3. data/lib/sass/twitter/bootstrap/rails/engine.rb +12 -0
  4. data/lib/sass/twitter/bootstrap/version.rb +1 -1
  5. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  6. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  7. data/vendor/assets/javascripts/twitter/bootstrap-alert.js +32 -28
  8. data/vendor/assets/javascripts/twitter/bootstrap-button.js +33 -29
  9. data/vendor/assets/javascripts/twitter/bootstrap-carousel.js +21 -33
  10. data/vendor/assets/javascripts/twitter/bootstrap-collapse.js +26 -47
  11. data/vendor/assets/javascripts/twitter/bootstrap-dropdown.js +10 -18
  12. data/vendor/assets/javascripts/twitter/bootstrap-modal.js +17 -25
  13. data/vendor/assets/javascripts/twitter/bootstrap-popover.js +10 -13
  14. data/vendor/assets/javascripts/twitter/bootstrap-scrollspy.js +18 -44
  15. data/vendor/assets/javascripts/twitter/bootstrap-tab.js +7 -12
  16. data/vendor/assets/javascripts/twitter/bootstrap-tooltip.js +35 -40
  17. data/vendor/assets/javascripts/twitter/bootstrap-transition.js +20 -30
  18. data/vendor/assets/javascripts/twitter/bootstrap-typeahead.js +15 -29
  19. data/vendor/assets/stylesheets/tests/buttons.html +139 -0
  20. data/vendor/assets/stylesheets/tests/css-tests.css +99 -1
  21. data/vendor/assets/stylesheets/tests/css-tests.html +519 -37
  22. data/vendor/assets/stylesheets/tests/forms-responsive.html +71 -0
  23. data/vendor/assets/stylesheets/tests/navbar-fixed-top.html +104 -0
  24. data/vendor/assets/stylesheets/tests/navbar-static-top.html +107 -0
  25. data/vendor/assets/stylesheets/tests/navbar.html +38 -39
  26. data/vendor/assets/stylesheets/twitter/_accordion.scss +0 -5
  27. data/vendor/assets/stylesheets/twitter/_alerts.scss +15 -3
  28. data/vendor/assets/stylesheets/twitter/_breadcrumbs.scss +0 -2
  29. data/vendor/assets/stylesheets/twitter/_button-groups.scss +32 -76
  30. data/vendor/assets/stylesheets/twitter/_buttons.scss +25 -33
  31. data/vendor/assets/stylesheets/twitter/_close.scss +1 -12
  32. data/vendor/assets/stylesheets/twitter/_code.scss +8 -8
  33. data/vendor/assets/stylesheets/twitter/_component-animations.scss +7 -9
  34. data/vendor/assets/stylesheets/twitter/_dropdowns.scss +45 -58
  35. data/vendor/assets/stylesheets/twitter/_forms.scss +146 -206
  36. data/vendor/assets/stylesheets/twitter/_grid.scss +5 -2
  37. data/vendor/assets/stylesheets/twitter/_hero-unit.scss +1 -3
  38. data/vendor/assets/stylesheets/twitter/_labels.scss +32 -0
  39. data/vendor/assets/stylesheets/twitter/_layouts.scss +2 -2
  40. data/vendor/assets/stylesheets/twitter/_mixins.scss +208 -273
  41. data/vendor/assets/stylesheets/twitter/_modals.scss +8 -14
  42. data/vendor/assets/stylesheets/twitter/_navbar.scss +73 -132
  43. data/vendor/assets/stylesheets/twitter/_navs.scss +43 -53
  44. data/vendor/assets/stylesheets/twitter/_pager.scss +0 -6
  45. data/vendor/assets/stylesheets/twitter/_pagination.scss +0 -1
  46. data/vendor/assets/stylesheets/twitter/_progress-bars.scss +6 -28
  47. data/vendor/assets/stylesheets/twitter/_reset.scss +4 -9
  48. data/vendor/assets/stylesheets/twitter/_scaffolding.scss +8 -4
  49. data/vendor/assets/stylesheets/twitter/_sprites.scss +7 -40
  50. data/vendor/assets/stylesheets/twitter/_tables.scss +33 -38
  51. data/vendor/assets/stylesheets/twitter/_thumbnails.scss +2 -14
  52. data/vendor/assets/stylesheets/twitter/_tooltip.scss +1 -1
  53. data/vendor/assets/stylesheets/twitter/_type.scss +14 -28
  54. data/vendor/assets/stylesheets/twitter/_variables.scss +19 -116
  55. data/vendor/assets/stylesheets/twitter/_wells.scss +0 -10
  56. data/vendor/assets/stylesheets/twitter/bootstrap.scss +7 -3
  57. data/vendor/assets/stylesheets/twitter/responsive.scss +301 -15
  58. metadata +25 -190
  59. data/.gitignore +0 -4
  60. data/Gemfile +0 -3
  61. data/Gemfile.lock +0 -14
  62. data/LICENSE +0 -176
  63. data/Makefile +0 -94
  64. data/README.md +0 -217
  65. data/Rakefile +0 -52
  66. data/bootstrap-2.0.4.css +0 -4661
  67. data/bootstrap-2.0.4.min.css +0 -9
  68. data/bootstrap-responsive-2.0.4.css +0 -932
  69. data/bootstrap-responsive-2.0.4.min.css +0 -9
  70. data/docs/assets/css/bootstrap-responsive.css +0 -932
  71. data/docs/assets/css/bootstrap.css +0 -4661
  72. data/docs/assets/css/docs.css +0 -846
  73. data/docs/assets/ico/apple-touch-icon-114-precomposed.png +0 -0
  74. data/docs/assets/ico/apple-touch-icon-144-precomposed.png +0 -0
  75. data/docs/assets/ico/apple-touch-icon-57-precomposed.png +0 -0
  76. data/docs/assets/ico/apple-touch-icon-72-precomposed.png +0 -0
  77. data/docs/assets/ico/favicon.ico +0 -0
  78. data/docs/assets/img/bird.png +0 -0
  79. data/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
  80. data/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
  81. data/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
  82. data/docs/assets/img/browsers.png +0 -0
  83. data/docs/assets/img/example-sites/fleetio.png +0 -0
  84. data/docs/assets/img/example-sites/jshint.png +0 -0
  85. data/docs/assets/img/example-sites/kippt.png +0 -0
  86. data/docs/assets/img/example-sites/soundready.png +0 -0
  87. data/docs/assets/img/examples/bootstrap-example-fluid.jpg +0 -0
  88. data/docs/assets/img/examples/bootstrap-example-hero.jpg +0 -0
  89. data/docs/assets/img/examples/bootstrap-example-starter.jpg +0 -0
  90. data/docs/assets/img/github-16px.png +0 -0
  91. data/docs/assets/img/glyphicons-halflings-white.png +0 -0
  92. data/docs/assets/img/glyphicons-halflings.png +0 -0
  93. data/docs/assets/img/glyphicons/glyphicons_009_magic.png +0 -0
  94. data/docs/assets/img/glyphicons/glyphicons_042_group.png +0 -0
  95. data/docs/assets/img/glyphicons/glyphicons_079_podium.png +0 -0
  96. data/docs/assets/img/glyphicons/glyphicons_082_roundabout.png +0 -0
  97. data/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
  98. data/docs/assets/img/glyphicons/glyphicons_163_iphone.png +0 -0
  99. data/docs/assets/img/glyphicons/glyphicons_214_resize_small.png +0 -0
  100. data/docs/assets/img/glyphicons/glyphicons_266_book_open.png +0 -0
  101. data/docs/assets/img/grid-18px-masked.png +0 -0
  102. data/docs/assets/img/icon-css3.png +0 -0
  103. data/docs/assets/img/icon-github.png +0 -0
  104. data/docs/assets/img/icon-html5.png +0 -0
  105. data/docs/assets/img/icon-twitter.png +0 -0
  106. data/docs/assets/img/less-logo-large.png +0 -0
  107. data/docs/assets/img/less-small.png +0 -0
  108. data/docs/assets/img/responsive-illustrations.png +0 -0
  109. data/docs/assets/js/README.md +0 -106
  110. data/docs/assets/js/application.js +0 -184
  111. data/docs/assets/js/bootstrap-alert.js +0 -90
  112. data/docs/assets/js/bootstrap-button.js +0 -96
  113. data/docs/assets/js/bootstrap-carousel.js +0 -169
  114. data/docs/assets/js/bootstrap-collapse.js +0 -157
  115. data/docs/assets/js/bootstrap-dropdown.js +0 -100
  116. data/docs/assets/js/bootstrap-modal.js +0 -218
  117. data/docs/assets/js/bootstrap-popover.js +0 -98
  118. data/docs/assets/js/bootstrap-scrollspy.js +0 -151
  119. data/docs/assets/js/bootstrap-tab.js +0 -135
  120. data/docs/assets/js/bootstrap-tooltip.js +0 -275
  121. data/docs/assets/js/bootstrap-transition.js +0 -61
  122. data/docs/assets/js/bootstrap-typeahead.js +0 -285
  123. data/docs/assets/js/bootstrap.js +0 -1825
  124. data/docs/assets/js/bootstrap.min.js +0 -6
  125. data/docs/assets/js/google-code-prettify/prettify.css +0 -30
  126. data/docs/assets/js/google-code-prettify/prettify.js +0 -28
  127. data/docs/assets/js/jquery.js +0 -9252
  128. data/docs/base-css.html +0 -1710
  129. data/docs/build/index.js +0 -44
  130. data/docs/build/node_modules/.bin/hulk +0 -93
  131. data/docs/build/node_modules/hogan.js/.git_ignore +0 -1
  132. data/docs/build/node_modules/hogan.js/.gitmodules +0 -3
  133. data/docs/build/node_modules/hogan.js/LICENSE +0 -177
  134. data/docs/build/node_modules/hogan.js/Makefile +0 -62
  135. data/docs/build/node_modules/hogan.js/README.md +0 -93
  136. data/docs/build/node_modules/hogan.js/bin/hulk +0 -93
  137. data/docs/build/node_modules/hogan.js/lib/compiler.js +0 -348
  138. data/docs/build/node_modules/hogan.js/lib/hogan.js +0 -20
  139. data/docs/build/node_modules/hogan.js/lib/template.js +0 -233
  140. data/docs/build/node_modules/hogan.js/package.json +0 -20
  141. data/docs/build/node_modules/hogan.js/test/html/list.html +0 -8
  142. data/docs/build/node_modules/hogan.js/test/index.html +0 -13
  143. data/docs/build/node_modules/hogan.js/test/index.js +0 -848
  144. data/docs/build/node_modules/hogan.js/test/mustache.js +0 -90
  145. data/docs/build/node_modules/hogan.js/test/spec.js +0 -77
  146. data/docs/build/node_modules/hogan.js/test/spec/Changes +0 -31
  147. data/docs/build/node_modules/hogan.js/test/spec/README.md +0 -65
  148. data/docs/build/node_modules/hogan.js/test/spec/Rakefile +0 -27
  149. data/docs/build/node_modules/hogan.js/test/spec/TESTING.md +0 -46
  150. data/docs/build/node_modules/hogan.js/test/spec/specs/comments.json +0 -1
  151. data/docs/build/node_modules/hogan.js/test/spec/specs/comments.yml +0 -103
  152. data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.json +0 -1
  153. data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.yml +0 -158
  154. data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.json +0 -1
  155. data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.yml +0 -230
  156. data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.json +0 -1
  157. data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.yml +0 -193
  158. data/docs/build/node_modules/hogan.js/test/spec/specs/partials.json +0 -1
  159. data/docs/build/node_modules/hogan.js/test/spec/specs/partials.yml +0 -109
  160. data/docs/build/node_modules/hogan.js/test/spec/specs/sections.json +0 -1
  161. data/docs/build/node_modules/hogan.js/test/spec/specs/sections.yml +0 -256
  162. data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.json +0 -1
  163. data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.yml +0 -149
  164. data/docs/build/node_modules/hogan.js/test/templates/list.mustache +0 -8
  165. data/docs/build/node_modules/hogan.js/tools/release.js +0 -74
  166. data/docs/build/node_modules/hogan.js/tools/web_templates.js +0 -32
  167. data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.js +0 -500
  168. data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.min.js +0 -14
  169. data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.js +0 -500
  170. data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.min.js +0 -14
  171. data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.js +0 -545
  172. data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.min.js +0 -5
  173. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.amd.js +0 -576
  174. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.common.js +0 -576
  175. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.js +0 -572
  176. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.amd.js +0 -5
  177. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.common.js +0 -5
  178. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.js +0 -5
  179. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.mustache.js +0 -5
  180. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.mustache.js +0 -619
  181. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.js +0 -233
  182. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.min.js +0 -5
  183. data/docs/build/node_modules/hogan.js/web/favicon.ico +0 -0
  184. data/docs/build/node_modules/hogan.js/web/images/logo.png +0 -0
  185. data/docs/build/node_modules/hogan.js/web/images/noise.png +0 -0
  186. data/docs/build/node_modules/hogan.js/web/images/small-hogan-icon.png +0 -0
  187. data/docs/build/node_modules/hogan.js/web/images/stripes.png +0 -0
  188. data/docs/build/node_modules/hogan.js/web/index.html.mustache +0 -139
  189. data/docs/build/node_modules/hogan.js/web/stylesheets/layout.css +0 -206
  190. data/docs/build/node_modules/hogan.js/web/stylesheets/skeleton.css +0 -236
  191. data/docs/build/node_modules/hogan.js/wrappers/amd.js.mustache +0 -21
  192. data/docs/build/node_modules/hogan.js/wrappers/common.js.mustache +0 -21
  193. data/docs/build/node_modules/hogan.js/wrappers/js.mustache +0 -17
  194. data/docs/build/node_modules/hogan.js/wrappers/mustache.js.mustache +0 -64
  195. data/docs/build/package.json +0 -6
  196. data/docs/components.html +0 -1931
  197. data/docs/download.html +0 -454
  198. data/docs/examples.html +0 -147
  199. data/docs/examples/fluid.html +0 -162
  200. data/docs/examples/hero.html +0 -109
  201. data/docs/examples/starter-template.html +0 -79
  202. data/docs/index.html +0 -259
  203. data/docs/javascript.html +0 -1520
  204. data/docs/less.html +0 -1060
  205. data/docs/scaffolding.html +0 -671
  206. data/docs/templates/layout.mustache +0 -146
  207. data/docs/templates/pages/base-css.mustache +0 -1594
  208. data/docs/templates/pages/components.mustache +0 -1815
  209. data/docs/templates/pages/download.mustache +0 -338
  210. data/docs/templates/pages/examples.mustache +0 -31
  211. data/docs/templates/pages/index.mustache +0 -144
  212. data/docs/templates/pages/javascript.mustache +0 -1405
  213. data/docs/templates/pages/less.mustache +0 -944
  214. data/docs/templates/pages/scaffolding.mustache +0 -555
  215. data/docs/templates/pages/upgrading.mustache +0 -194
  216. data/docs/upgrading.html +0 -310
  217. data/js/tests/index.html +0 -54
  218. data/js/tests/phantom.js +0 -63
  219. data/js/tests/server.js +0 -14
  220. data/js/tests/unit/bootstrap-alert.js +0 -56
  221. data/js/tests/unit/bootstrap-button.js +0 -77
  222. data/js/tests/unit/bootstrap-carousel.js +0 -28
  223. data/js/tests/unit/bootstrap-collapse.js +0 -54
  224. data/js/tests/unit/bootstrap-dropdown.js +0 -87
  225. data/js/tests/unit/bootstrap-modal.js +0 -114
  226. data/js/tests/unit/bootstrap-phantom.js +0 -21
  227. data/js/tests/unit/bootstrap-popover.js +0 -93
  228. data/js/tests/unit/bootstrap-scrollspy.js +0 -31
  229. data/js/tests/unit/bootstrap-tab.js +0 -61
  230. data/js/tests/unit/bootstrap-tooltip.js +0 -155
  231. data/js/tests/unit/bootstrap-transition.js +0 -13
  232. data/js/tests/unit/bootstrap-typeahead.js +0 -148
  233. data/js/tests/vendor/jquery.js +0 -9252
  234. data/js/tests/vendor/qunit.css +0 -232
  235. data/js/tests/vendor/qunit.js +0 -1510
  236. data/package.json +0 -25
  237. data/sass-twitter-bootstrap.gemspec +0 -19
  238. data/vendor/assets/javascripts/README.md +0 -112
  239. data/vendor/assets/javascripts/twitter/bootstrap.js +0 -12
  240. data/vendor/assets/stylesheets/twitter/_labels-badges.scss +0 -52
  241. data/vendor/assets/stylesheets/twitter/_responsive-1200px-min.scss +0 -26
  242. data/vendor/assets/stylesheets/twitter/_responsive-767px-max.scss +0 -149
  243. data/vendor/assets/stylesheets/twitter/_responsive-768px-979px.scss +0 -17
  244. data/vendor/assets/stylesheets/twitter/_responsive-navbar.scss +0 -153
  245. data/vendor/assets/stylesheets/twitter/_responsive-utilities.scss +0 -41
@@ -4,14 +4,12 @@
4
4
  .breadcrumb {
5
5
  padding: 7px 14px;
6
6
  margin: 0 0 $baseLineHeight;
7
- list-style: none;
8
7
  @include gradient-vertical($white, #f5f5f5);
9
8
  border: 1px solid #ddd;
10
9
  @include border-radius(3px);
11
10
  @include box-shadow(inset 0 1px 0 $white);
12
11
  li {
13
12
  display: inline-block;
14
- @include ie7-inline-block();
15
13
  text-shadow: 0 1px 0 $white;
16
14
  }
17
15
  .divider {
@@ -25,14 +25,14 @@
25
25
  }
26
26
 
27
27
  // Float them, remove border radius, then re-add to first and last elements
28
- .btn-group > .btn {
28
+ .btn-group .btn {
29
29
  position: relative;
30
30
  float: left;
31
31
  margin-left: -1px;
32
32
  @include border-radius(0);
33
33
  }
34
34
  // 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
35
- .btn-group > .btn:first-child {
35
+ .btn-group .btn:first-child {
36
36
  margin-left: 0;
37
37
  -webkit-border-top-left-radius: 4px;
38
38
  -moz-border-radius-topleft: 4px;
@@ -41,9 +41,8 @@
41
41
  -moz-border-radius-bottomleft: 4px;
42
42
  border-bottom-left-radius: 4px;
43
43
  }
44
- // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
45
- .btn-group > .btn:last-child,
46
- .btn-group > .dropdown-toggle {
44
+ .btn-group .btn:last-child,
45
+ .btn-group .dropdown-toggle {
47
46
  -webkit-border-top-right-radius: 4px;
48
47
  -moz-border-radius-topright: 4px;
49
48
  border-top-right-radius: 4px;
@@ -52,7 +51,7 @@
52
51
  border-bottom-right-radius: 4px;
53
52
  }
54
53
  // Reset corners for large buttons
55
- .btn-group > .btn.large:first-child {
54
+ .btn-group .btn.large:first-child {
56
55
  margin-left: 0;
57
56
  -webkit-border-top-left-radius: 6px;
58
57
  -moz-border-radius-topleft: 6px;
@@ -61,8 +60,8 @@
61
60
  -moz-border-radius-bottomleft: 6px;
62
61
  border-bottom-left-radius: 6px;
63
62
  }
64
- .btn-group > .btn.large:last-child,
65
- .btn-group > .large.dropdown-toggle {
63
+ .btn-group .btn.large:last-child,
64
+ .btn-group .large.dropdown-toggle {
66
65
  -webkit-border-top-right-radius: 6px;
67
66
  -moz-border-radius-topright: 6px;
68
67
  border-top-right-radius: 6px;
@@ -72,10 +71,10 @@
72
71
  }
73
72
 
74
73
  // On hover/focus/active, bring the proper btn to front
75
- .btn-group > .btn:hover,
76
- .btn-group > .btn:focus,
77
- .btn-group > .btn:active,
78
- .btn-group > .btn.active {
74
+ .btn-group .btn:hover,
75
+ .btn-group .btn:focus,
76
+ .btn-group .btn:active,
77
+ .btn-group .btn.active {
79
78
  z-index: 2;
80
79
  }
81
80
 
@@ -91,60 +90,34 @@
91
90
  // ----------------------
92
91
 
93
92
  // Give the line between buttons some depth
94
- .btn-group > .dropdown-toggle {
93
+ .btn-group .dropdown-toggle {
95
94
  padding-left: 8px;
96
95
  padding-right: 8px;
97
- @include box-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)});
98
- *padding-top: 4px;
99
- *padding-bottom: 4px;
100
- }
101
- .btn-group > .btn-mini.dropdown-toggle {
102
- padding-left: 5px;
103
- padding-right: 5px;
104
- }
105
- .btn-group > .btn-small.dropdown-toggle {
106
- *padding-top: 4px;
107
- *padding-bottom: 4px;
108
- }
109
- .btn-group > .btn-large.dropdown-toggle {
110
- padding-left: 12px;
111
- padding-right: 12px;
96
+ $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);
97
+ @include box-shadow($shadow);
98
+ *padding-top: 5px;
99
+ *padding-bottom: 5px;
112
100
  }
113
101
 
114
102
  .btn-group.open {
103
+ // IE7's z-index only goes to the nearest positioned ancestor, which would
104
+ // make the menu appear below buttons that appeared later on the page
105
+ *z-index: $zindexDropdown;
106
+
107
+ // Reposition menu on open and round all corners
108
+ .dropdown-menu {
109
+ display: block;
110
+ margin-top: 1px;
111
+ @include border-radius(5px);
112
+ }
115
113
 
116
- // The clickable button for toggling the menu
117
- // Remove the gradient and set the same inset shadow as the :active state
118
114
  .dropdown-toggle {
119
115
  background-image: none;
120
- @include box-shadow(#{inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)});
121
- }
122
-
123
- // Keep the hover's background when dropdown is open
124
- .btn.dropdown-toggle {
125
- background-color: $btnBackgroundHighlight;
126
- }
127
- .btn-primary.dropdown-toggle {
128
- background-color: $btnPrimaryBackgroundHighlight;
129
- }
130
- .btn-warning.dropdown-toggle {
131
- background-color: $btnWarningBackgroundHighlight;
132
- }
133
- .btn-danger.dropdown-toggle {
134
- background-color: $btnDangerBackgroundHighlight;
135
- }
136
- .btn-success.dropdown-toggle {
137
- background-color: $btnSuccessBackgroundHighlight;
138
- }
139
- .btn-info.dropdown-toggle {
140
- background-color: $btnInfoBackgroundHighlight;
141
- }
142
- .btn-inverse.dropdown-toggle {
143
- background-color: $btnInverseBackgroundHighlight;
116
+ $shadow: inset 0 1px 6px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
117
+ @include box-shadow($shadow);
144
118
  }
145
119
  }
146
120
 
147
-
148
121
  // Reposition the caret
149
122
  .btn .caret {
150
123
  margin-top: 7px;
@@ -154,38 +127,21 @@
154
127
  .open.btn-group .caret {
155
128
  @include opacity(100);
156
129
  }
157
- // Carets in other button sizes
158
- .btn-mini .caret {
159
- margin-top: 5px;
160
- }
161
- .btn-small .caret {
162
- margin-top: 6px;
163
- }
164
- .btn-large .caret {
165
- margin-top: 6px;
166
- border-left-width: 5px;
167
- border-right-width: 5px;
168
- border-top-width: 5px;
169
- }
170
- // Upside down carets for .dropup
171
- .dropup .btn-large .caret {
172
- border-bottom: 5px solid $black;
173
- border-top: 0;
174
- }
175
-
176
130
 
177
131
 
178
132
  // Account for other colors
179
133
  .btn-primary,
180
- .btn-warning,
181
134
  .btn-danger,
182
135
  .btn-info,
183
136
  .btn-success,
184
137
  .btn-inverse {
185
138
  .caret {
186
139
  border-top-color: $white;
187
- border-bottom-color: $white;
188
140
  @include opacity(75);
189
141
  }
190
142
  }
191
143
 
144
+ // Small button dropdowns
145
+ .btn-small .caret {
146
+ margin-top: 4px;
147
+ }
@@ -8,24 +8,25 @@
8
8
  // Core
9
9
  .btn {
10
10
  display: inline-block;
11
- @include ie7-inline-block();
12
11
  padding: 4px 10px 4px;
13
12
  margin-bottom: 0; // For input.btn
14
13
  font-size: $baseFontSize;
15
14
  line-height: $baseLineHeight;
16
- *line-height: 20px;
17
15
  color: $grayDark;
18
16
  text-align: center;
19
17
  text-shadow: 0 1px 1px rgba(255,255,255,.75);
20
18
  vertical-align: middle;
21
- cursor: pointer;
22
- @include buttonBackground($btnBackground, $btnBackgroundHighlight);
23
- border: 1px solid $btnBorder;
24
- *border: 0; // Remove the border to prevent IE7's black border on input:focus
25
- border-bottom-color: darken($btnBorder, 10%);
19
+ @include buttonBackground($white, darken($white, 10%));
20
+ border: 1px solid #ccc;
21
+ border-bottom-color: #bbb;
26
22
  @include border-radius(4px);
27
- @include ie7-restore-left-whitespace(); // Give IE7 some love
28
- @include box-shadow(#{inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)});
23
+ $shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
24
+ @include box-shadow($shadow);
25
+ cursor: pointer;
26
+
27
+ // Give IE7 some love
28
+ @include reset-filter();
29
+ @include ie7-restore-left-whitespace();
29
30
  }
30
31
 
31
32
  // Hover state
@@ -33,7 +34,6 @@
33
34
  color: $grayDark;
34
35
  text-decoration: none;
35
36
  background-color: darken($white, 10%);
36
- *background-color: darken($white, 15%); /* Buttons in IE7 don't get borders, so darken on hover */
37
37
  background-position: 0 -15px;
38
38
 
39
39
  // transition is only when going to hover, otherwise the background
@@ -49,19 +49,20 @@
49
49
  // Active state
50
50
  .btn.active,
51
51
  .btn:active {
52
- background-color: darken($white, 10%);
53
- background-color: darken($white, 15%) \9;
54
52
  background-image: none;
53
+ $shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
54
+ @include box-shadow($shadow);
55
+ background-color: darken($white, 10%);
56
+ background-color: darken($white, 15%) #{"\9"};
55
57
  outline: 0;
56
- @include box-shadow(#{inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)});
57
58
  }
58
59
 
59
60
  // Disabled state
60
61
  .btn.disabled,
61
62
  .btn[disabled] {
62
63
  cursor: default;
63
- background-color: darken($white, 10%);
64
64
  background-image: none;
65
+ background-color: darken($white, 10%);
65
66
  @include opacity(65);
66
67
  @include box-shadow(none);
67
68
  }
@@ -116,8 +117,8 @@
116
117
  .btn-info:hover,
117
118
  .btn-inverse,
118
119
  .btn-inverse:hover {
119
- color: $white;
120
120
  text-shadow: 0 -1px 0 rgba(0,0,0,.25);
121
+ color: $white;
121
122
  }
122
123
  // Provide *some* extra contrast for those who can get it
123
124
  .btn-primary.active,
@@ -125,39 +126,34 @@
125
126
  .btn-danger.active,
126
127
  .btn-success.active,
127
128
  .btn-info.active,
128
- .btn-inverse.active {
129
+ .btn-dark.active {
129
130
  color: rgba(255,255,255,.75);
130
131
  }
131
132
 
132
133
  // Set the backgrounds
133
134
  // -------------------------
134
- .btn {
135
- // reset here as of 2.0.3 due to Recess property order
136
- border-color: #ccc;
137
- border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);
138
- }
139
135
  .btn-primary {
140
- @include buttonBackground($btnPrimaryBackground, $btnPrimaryBackgroundHighlight);
136
+ @include buttonBackground($primaryButtonBackground, adjust-hue($primaryButtonBackground, 20));
141
137
  }
142
138
  // Warning appears are orange
143
139
  .btn-warning {
144
- @include buttonBackground($btnWarningBackground, $btnWarningBackgroundHighlight);
140
+ @include buttonBackground(lighten($orange, 15%), $orange);
145
141
  }
146
142
  // Danger and error appear as red
147
143
  .btn-danger {
148
- @include buttonBackground($btnDangerBackground, $btnDangerBackgroundHighlight);
144
+ @include buttonBackground(#ee5f5b, #bd362f);
149
145
  }
150
146
  // Success appears as green
151
147
  .btn-success {
152
- @include buttonBackground($btnSuccessBackground, $btnSuccessBackgroundHighlight);
148
+ @include buttonBackground(#62c462, #51a351);
153
149
  }
154
150
  // Info appears as a neutral blue
155
151
  .btn-info {
156
- @include buttonBackground($btnInfoBackground, $btnInfoBackgroundHighlight);
152
+ @include buttonBackground(#5bc0de, #2f96b4);
157
153
  }
158
154
  // Inverse appears as dark gray
159
155
  .btn-inverse {
160
- @include buttonBackground($btnInverseBackground, $btnInverseBackgroundHighlight);
156
+ @include buttonBackground(#454545, #262626);
161
157
  }
162
158
 
163
159
 
@@ -176,16 +172,12 @@ input[type="submit"].btn {
176
172
  // IE7 has some default padding on button controls
177
173
  *padding-top: 2px;
178
174
  *padding-bottom: 2px;
179
- &.btn-large {
175
+ &.large {
180
176
  *padding-top: 7px;
181
177
  *padding-bottom: 7px;
182
178
  }
183
- &.btn-small {
179
+ &.small {
184
180
  *padding-top: 3px;
185
181
  *padding-bottom: 3px;
186
182
  }
187
- &.btn-mini {
188
- *padding-top: 1px;
189
- *padding-bottom: 1px;
190
- }
191
183
  }
@@ -12,18 +12,7 @@
12
12
  &:hover {
13
13
  color: $black;
14
14
  text-decoration: none;
15
- cursor: pointer;
16
15
  @include opacity(40);
16
+ cursor: pointer;
17
17
  }
18
18
  }
19
-
20
- // Additional properties for button version
21
- // iOS requires the button element instead of an anchor tag.
22
- // If you want the anchor version, it requires `href="#"`.
23
- button.close {
24
- padding: 0;
25
- cursor: pointer;
26
- background: transparent;
27
- border: 0;
28
- -webkit-appearance: none;
29
- }
@@ -1,4 +1,4 @@
1
- // Code
1
+ // Code.scss
2
2
  // Code typography styles for the <code> and <pre> elements
3
3
  // --------------------------------------------------------
4
4
 
@@ -14,7 +14,7 @@ pre {
14
14
 
15
15
  // Inline code
16
16
  code {
17
- padding: 2px 4px;
17
+ padding: 3px 4px;
18
18
  color: #d14;
19
19
  background-color: #f7f7f9;
20
20
  border: 1px solid #e1e1e8;
@@ -25,16 +25,16 @@ pre {
25
25
  display: block;
26
26
  padding: ($baseLineHeight - 1) / 2;
27
27
  margin: 0 0 $baseLineHeight / 2;
28
- font-size: $baseFontSize * .925; // 13px to 12px
28
+ font-size: 12px;
29
29
  line-height: $baseLineHeight;
30
- word-break: break-all;
31
- word-wrap: break-word;
32
- white-space: pre;
33
- white-space: pre-wrap;
34
30
  background-color: #f5f5f5;
35
31
  border: 1px solid #ccc; // fallback for IE7-8
36
32
  border: 1px solid rgba(0,0,0,.15);
37
33
  @include border-radius(4px);
34
+ white-space: pre;
35
+ white-space: pre-wrap;
36
+ word-break: break-all;
37
+ word-wrap: break-word;
38
38
 
39
39
  // Make prettyprint styles more spaced out for readability
40
40
  &.prettyprint {
@@ -54,4 +54,4 @@ pre {
54
54
  .pre-scrollable {
55
55
  max-height: 340px;
56
56
  overflow-y: scroll;
57
- }
57
+ }
@@ -2,19 +2,17 @@
2
2
  // --------------------
3
3
 
4
4
  .fade {
5
- @include opacity(0);
6
5
  @include transition(opacity .15s linear);
6
+ opacity: 0;
7
7
  &.in {
8
- @include opacity(100);
8
+ opacity: 1;
9
9
  }
10
10
  }
11
11
 
12
12
  .collapse {
13
- position: relative;
14
- height: 0;
15
- overflow: hidden;
16
13
  @include transition(height .35s ease);
17
- &.in {
18
- height: auto;
19
- }
20
- }
14
+ position:relative;
15
+ overflow:hidden;
16
+ height: 0;
17
+ &.in { height: auto; }
18
+ }
@@ -2,7 +2,6 @@
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,
6
5
  .dropdown {
7
6
  position: relative;
8
7
  }
@@ -14,64 +13,77 @@
14
13
  .open .dropdown-toggle {
15
14
  outline: 0;
16
15
  }
17
-
18
16
  // Dropdown arrow/caret
19
- // --------------------
20
17
  .caret {
21
18
  display: inline-block;
22
19
  width: 0;
23
20
  height: 0;
21
+ text-indent: -99999px;
22
+ // IE7 won't do the border trick if there's a text indent, but it doesn't
23
+ // do the content that text-indent is hiding, either, so we're ok.
24
+ *text-indent: 0;
24
25
  vertical-align: top;
25
- border-top: 4px solid $black;
26
- border-right: 4px solid transparent;
27
26
  border-left: 4px solid transparent;
28
- content: "";
27
+ border-right: 4px solid transparent;
28
+ border-top: 4px solid $black;
29
29
  @include opacity(30);
30
+ content: "\2193";
30
31
  }
31
-
32
- // Place the caret
33
32
  .dropdown .caret {
34
33
  margin-top: 8px;
35
34
  margin-left: 2px;
36
35
  }
37
36
  .dropdown:hover .caret,
38
- .open .caret {
37
+ .open.dropdown .caret {
39
38
  @include opacity(100);
40
39
  }
41
-
42
40
  // The dropdown menu (ul)
43
- // ----------------------
44
41
  .dropdown-menu {
45
42
  position: absolute;
46
43
  top: 100%;
47
44
  left: 0;
48
45
  z-index: $zindexDropdown;
49
- display: none; // none by default, but block on "open" of the menu
50
46
  float: left;
47
+ display: none; // none by default, but block on "open" of the menu
51
48
  min-width: 160px;
49
+ _width: 160px;
52
50
  padding: 4px 0;
53
- margin: 1px 0 0; // override default ul
51
+ margin: 0; // override default ul
54
52
  list-style: none;
55
- background-color: $dropdownBackground;
56
- border: 1px solid #ccc;
57
- border: 1px solid rgba(0,0,0,.2);
58
- *border-right-width: 2px;
59
- *border-bottom-width: 2px;
60
- @include border-radius(5px);
53
+ background-color: $white;
54
+ border-color: #ccc;
55
+ border-color: rgba(0,0,0,.2);
56
+ border-style: solid;
57
+ border-width: 1px;
58
+ @include border-radius(0 0 5px 5px);
61
59
  @include box-shadow(0 5px 10px rgba(0,0,0,.2));
62
60
  -webkit-background-clip: padding-box;
63
61
  -moz-background-clip: padding;
64
62
  background-clip: padding-box;
63
+ *border-right-width: 2px;
64
+ *border-bottom-width: 2px;
65
65
 
66
- // Aligns the dropdown menu to right
67
- &.pull-right {
68
- right: 0;
69
- left: auto;
66
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
67
+ &.bottom-up {
68
+ top: auto;
69
+ bottom: 100%;
70
+ margin-bottom: 2px;
70
71
  }
71
72
 
72
73
  // Dividers (basically an hr) within the dropdown
73
74
  .divider {
74
- @include nav-divider();
75
+ height: 1px;
76
+ margin: 5px 1px;
77
+ overflow: hidden;
78
+ background-color: #e5e5e5;
79
+ border-bottom: 1px solid $white;
80
+
81
+ // IE7 needs a set width since we gave a height. Restricting just
82
+ // to IE7 to keep the 1px left/right space in other browsers.
83
+ // It is unclear where IE is getting the extra space that we need
84
+ // to negative-margin away, but so it goes.
85
+ *width: 100%;
86
+ *margin: -5px 0 5px;
75
87
  }
76
88
 
77
89
  // Links within the dropdown menu
@@ -81,62 +93,37 @@
81
93
  clear: both;
82
94
  font-weight: normal;
83
95
  line-height: $baseLineHeight;
84
- color: $dropdownLinkColor;
96
+ color: $gray;
85
97
  white-space: nowrap;
86
98
  }
87
99
  }
88
100
 
89
101
  // Hover state
90
- // -----------
91
102
  .dropdown-menu li > a:hover,
92
103
  .dropdown-menu .active > a,
93
104
  .dropdown-menu .active > a:hover {
94
- color: $dropdownLinkColorHover;
105
+ color: $white;
95
106
  text-decoration: none;
96
- background-color: $dropdownLinkBackgroundHover;
107
+ background-color: $linkColor;
97
108
  }
98
109
 
99
110
  // Open state for the dropdown
100
- // ---------------------------
101
- .open {
111
+ .dropdown.open {
102
112
  // IE7's z-index only goes to the nearest positioned ancestor, which would
103
113
  // make the menu appear below buttons that appeared later on the page
104
114
  *z-index: $zindexDropdown;
105
115
 
106
- .dropdown-menu {
107
- display: block;
116
+ .dropdown-toggle {
117
+ color: $white;
118
+ background: #ccc;
119
+ background: rgba(0,0,0,.3);
108
120
  }
109
- }
110
-
111
- // Right aligned dropdowns
112
- // ---------------------------
113
- .pull-right .dropdown-menu {
114
- right: 0;
115
- left: auto;
116
- }
117
-
118
- // Allow for dropdowns to go bottom up (aka, dropup-menu)
119
- // ------------------------------------------------------
120
- // Just add .dropup after the standard .dropdown class and you're set, bro.
121
- // TODO: abstract this so that the navbar fixed styles are not placed here?
122
- .dropup,
123
- .navbar-fixed-bottom .dropdown {
124
- // Reverse the caret
125
- .caret {
126
- border-top: 0;
127
- border-bottom: 4px solid $black;
128
- content: "\2191";
129
- }
130
- // Different positioning for bottom up menu
131
121
  .dropdown-menu {
132
- top: auto;
133
- bottom: 100%;
134
- margin-bottom: 1px;
122
+ display: block;
135
123
  }
136
124
  }
137
125
 
138
126
  // Typeahead
139
- // ---------
140
127
  .typeahead {
141
128
  margin-top: 2px; // give it some space to breathe
142
129
  @include border-radius(4px);