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
@@ -33,6 +33,7 @@
33
33
  top: 50%;
34
34
  left: 50%;
35
35
  z-index: $zindexModal;
36
+ max-height: 500px;
36
37
  overflow: auto;
37
38
  width: 560px;
38
39
  margin: -250px 0 0 -280px;
@@ -44,7 +45,8 @@
44
45
  @include box-shadow(0 3px 7px rgba(0,0,0,0.3));
45
46
  @include background-clip(padding-box);
46
47
  &.fade {
47
- @include transition(#{opacity .3s linear, top .3s ease-out});
48
+ @include transition(opacity .3s linear);
49
+ // @include transition(top .3s ease-out);
48
50
  top: -25%;
49
51
  }
50
52
  &.fade.in { top: 50%; }
@@ -56,14 +58,12 @@
56
58
  .close { margin-top: 2px; }
57
59
  }
58
60
 
59
- // Body (where all modal content resides)
61
+ // Body (where all modal content resises)
60
62
  .modal-body {
61
- overflow-y: auto;
62
- max-height: 400px;
63
63
  padding: 15px;
64
64
  }
65
65
  // Remove bottom margin if need be
66
- .modal-form {
66
+ .modal-body .modal-form {
67
67
  margin-bottom: 0;
68
68
  }
69
69
 
@@ -71,20 +71,14 @@
71
71
  .modal-footer {
72
72
  padding: 14px 15px 15px;
73
73
  margin-bottom: 0;
74
- text-align: right; // right align buttons
75
74
  background-color: #f5f5f5;
76
75
  border-top: 1px solid #ddd;
77
76
  @include border-radius(0 0 6px 6px);
78
77
  @include box-shadow(inset 0 1px 0 $white);
79
- @include clearfix(); // clear it in case folks use .pull-* classes on buttons
80
-
81
- // Properly space out buttons
82
- .btn + .btn {
78
+ @include clearfix();
79
+ .btn {
80
+ float: right;
83
81
  margin-left: 5px;
84
82
  margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
85
83
  }
86
- // but override that for button groups
87
- .btn-group .btn + .btn {
88
- margin-left: -1px;
89
- }
90
84
  }
@@ -6,30 +6,42 @@
6
6
  // -------------
7
7
 
8
8
  .navbar {
9
- // Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
10
- *position: relative;
11
- *z-index: 2;
12
-
13
9
  overflow: visible;
14
10
  margin-bottom: $baseLineHeight;
15
11
  }
16
12
 
17
13
  // Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
18
14
  .navbar-inner {
19
- min-height: $navbarHeight;
20
15
  padding-left: 20px;
21
16
  padding-right: 20px;
22
17
  @include gradient-vertical($navbarBackgroundHighlight, $navbarBackground);
23
18
  @include border-radius(4px);
24
- @include box-shadow(#{0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1)});
19
+ $shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
20
+ @include box-shadow($shadow);
25
21
  }
26
22
 
27
- // Set width to auto for default container
28
- // We then reset it for fixed navbars in the #gridSystem mixin
29
- .navbar .container {
30
- width: auto;
23
+ // Navbar button for toggling navbar items in responsive layouts
24
+ .btn-navbar {
25
+ display: none;
26
+ float: right;
27
+ padding: 7px 10px;
28
+ margin-left: 5px;
29
+ margin-right: 5px;
30
+ @include buttonBackground($navbarBackgroundHighlight, $navbarBackground);
31
+ $shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075);
32
+ @include box-shadow($shadow);
33
+ }
34
+ .btn-navbar .icon-bar {
35
+ display: block;
36
+ width: 18px;
37
+ height: 2px;
38
+ background-color: #f5f5f5;
39
+ @include border-radius(1px);
40
+ @include box-shadow(0 1px 0 rgba(0,0,0,.25));
41
+ }
42
+ .btn-navbar .icon-bar + .icon-bar {
43
+ margin-top: 3px;
31
44
  }
32
-
33
45
  // Override the default collapsed state
34
46
  .nav-collapse.collapse {
35
47
  height: auto;
@@ -38,7 +50,6 @@
38
50
 
39
51
  // Brand, links, text, and buttons
40
52
  .navbar {
41
- color: $navbarText;
42
53
  // Hover and active states
43
54
  .brand:hover {
44
55
  text-decoration: none;
@@ -47,34 +58,30 @@
47
58
  .brand {
48
59
  float: left;
49
60
  display: block;
50
- // Vertically center the text given $navbarHeight
51
- $elementHeight: 20px;
52
- padding: (($navbarHeight - $elementHeight) / 2 - 2) 20px (($navbarHeight - $elementHeight) / 2 + 2);
61
+ padding: 8px 20px 12px;
53
62
  margin-left: -20px; // negative indent to left-align the text down the page
54
63
  font-size: 20px;
55
64
  font-weight: 200;
56
65
  line-height: 1;
57
- color: $navbarBrandColor;
66
+ color: $white;
58
67
  }
59
68
  // Plain text in topbar
60
69
  .navbar-text {
61
70
  margin-bottom: 0;
62
- line-height: $navbarHeight;
63
- }
64
- // Janky solution for now to account for links outside the .nav
65
- .navbar-link {
66
- color: $navbarLinkColor;
67
- &:hover {
68
- color: $navbarLinkColorHover;
71
+ line-height: 40px;
72
+ color: $navbarText;
73
+ a:hover {
74
+ color: $white;
75
+ background-color: transparent;
69
76
  }
70
77
  }
71
78
  // Buttons in navbar
72
79
  .btn,
73
80
  .btn-group {
74
- @include navbarVerticalAlign(30px); // Vertically center in navbar
81
+ margin-top: 5px; // make buttons vertically centered in navbar
75
82
  }
76
83
  .btn-group .btn {
77
- margin: 0; // then undo the margin here so we don't accidentally double it
84
+ margin-top: 0; // then undo the margin here so we don't accidentally double it
78
85
  }
79
86
  }
80
87
 
@@ -83,16 +90,15 @@
83
90
  margin-bottom: 0; // remove default bottom margin
84
91
  @include clearfix();
85
92
  input,
86
- select,
87
- .radio,
88
- .checkbox {
89
- @include navbarVerticalAlign(30px); // Vertically center in navbar
90
- }
91
- input,
92
93
  select {
93
94
  display: inline-block;
95
+ margin-top: 5px;
94
96
  margin-bottom: 0;
95
97
  }
98
+ .radio,
99
+ .checkbox {
100
+ margin-top: 5px;
101
+ }
96
102
  input[type="image"],
97
103
  input[type="checkbox"],
98
104
  input[type="radio"] {
@@ -112,26 +118,36 @@
112
118
  .navbar-search {
113
119
  position: relative;
114
120
  float: left;
115
- @include navbarVerticalAlign(28px); // Vertically center in navbar
121
+ margin-top: 6px;
116
122
  margin-bottom: 0;
117
123
  .search-query {
118
124
  padding: 4px 9px;
119
125
  @include font-sans-serif(13px, normal, 1);
120
126
  color: $white;
121
- background-color: $navbarSearchBackground;
122
- border: 1px solid $navbarSearchBorder;
123
- @include box-shadow(#{inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)});
127
+ color: rgba(255,255,255,.75);
128
+ background: #666;
129
+ background: rgba(255,255,255,.3);
130
+ border: 1px solid #111;
131
+ $shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15);
132
+ @include box-shadow($shadow);
124
133
  @include transition(none);
125
134
 
126
- @include placeholder($navbarSearchPlaceholderColor);
135
+ // Placeholder text gets special styles; can't be bundled together though for some reason
136
+ @include placeholder($grayLighter);
127
137
 
138
+ // Hover states
139
+ &:hover {
140
+ color: $white;
141
+ background-color: $grayLight;
142
+ background-color: rgba(255,255,255,.5);
143
+ }
128
144
  // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
129
145
  &:focus,
130
146
  &.focused {
131
147
  padding: 5px 10px;
132
148
  color: $grayDark;
133
149
  text-shadow: 0 1px 0 $white;
134
- background-color: $navbarSearchBackgroundFocus;
150
+ background-color: $white;
135
151
  border: 0;
136
152
  @include box-shadow(0 0 3px rgba(0,0,0,.15));
137
153
  outline: 0;
@@ -140,42 +156,22 @@
140
156
  }
141
157
 
142
158
 
143
-
144
159
  // FIXED NAVBAR
145
160
  // ------------
146
161
 
147
- // Shared (top/bottom) styles
148
- .navbar-fixed-top,
149
- .navbar-fixed-bottom {
162
+ .navbar-fixed-top {
150
163
  position: fixed;
164
+ top: 0;
151
165
  right: 0;
152
166
  left: 0;
153
167
  z-index: $zindexFixedNavbar;
154
- margin-bottom: 0; // remove 18px margin for static navbar
155
168
  }
156
- .navbar-fixed-top .navbar-inner,
157
- .navbar-fixed-bottom .navbar-inner {
169
+ .navbar-fixed-top .navbar-inner {
158
170
  padding-left: 0;
159
171
  padding-right: 0;
160
172
  @include border-radius(0);
161
173
  }
162
174
 
163
- .navbar-fixed-top .container,
164
- .navbar-fixed-bottom .container {
165
- @include core-span($gridColumns);
166
- }
167
-
168
- // Fixed to top
169
- .navbar-fixed-top {
170
- top: 0;
171
- }
172
-
173
- // Fixed to bottom
174
- .navbar-fixed-bottom {
175
- bottom: 0;
176
- }
177
-
178
-
179
175
 
180
176
  // NAVIGATION
181
177
  // ----------
@@ -198,29 +194,12 @@
198
194
  // Links
199
195
  .navbar .nav > li > a {
200
196
  float: none;
201
- // Vertically center the text given $navbarHeight
202
- $elementHeight: 20px;
203
- padding: (($navbarHeight - $elementHeight) / 2 - 1) 10px (($navbarHeight - $elementHeight) / 2 + 1);
197
+ padding: 10px 10px 11px;
204
198
  line-height: 19px;
205
199
  color: $navbarLinkColor;
206
200
  text-decoration: none;
207
201
  text-shadow: 0 -1px 0 rgba(0,0,0,.25);
208
202
  }
209
- // Buttons
210
- .navbar .btn {
211
- display: inline-block;
212
- padding: 4px 10px 4px;
213
- // Vertically center the button given @navbarHeight
214
- $elementHeight: 28px;
215
- margin: (($navbarHeight - $elementHeight) / 2 - 1) 5px (($navbarHeight - $elementHeight) / 2);
216
- line-height: $baseLineHeight;
217
- }
218
- .navbar .btn-group {
219
- margin: 0;
220
- // Vertically center the button given @navbarHeight
221
- $elementHeight: 28px;
222
- padding: (($navbarHeight - $elementHeight) / 2 - 1) 5px (($navbarHeight - $elementHeight) / 2);
223
- }
224
203
  // Hover
225
204
  .navbar .nav > li > a:hover {
226
205
  background-color: $navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
@@ -231,9 +210,9 @@
231
210
  // Active nav items
232
211
  .navbar .nav .active > a,
233
212
  .navbar .nav .active > a:hover {
234
- color: $navbarLinkColorActive;
213
+ color: $navbarLinkColorHover;
235
214
  text-decoration: none;
236
- background-color: $navbarLinkBackgroundActive;
215
+ background-color: $navbarBackground;
237
216
  }
238
217
 
239
218
  // Dividers (basically a vertical hr)
@@ -252,28 +231,6 @@
252
231
  margin-right: 0;
253
232
  }
254
233
 
255
- // Navbar button for toggling navbar items in responsive layouts
256
- // These definitions need to come after '.navbar .btn'
257
- .navbar .btn-navbar {
258
- display: none;
259
- float: right;
260
- padding: 7px 10px;
261
- margin-left: 5px;
262
- margin-right: 5px;
263
- @include buttonBackground($navbarBackgroundHighlight, $navbarBackground);
264
- @include box-shadow(#{inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)});
265
- }
266
- .navbar .btn-navbar .icon-bar {
267
- display: block;
268
- width: 18px;
269
- height: 2px;
270
- background-color: #f5f5f5;
271
- @include border-radius(1px);
272
- @include box-shadow(0 1px 0 rgba(0,0,0,.25));
273
- }
274
- .btn-navbar .icon-bar + .icon-bar {
275
- margin-top: 3px;
276
- }
277
234
 
278
235
 
279
236
  // Dropdown menus
@@ -281,13 +238,15 @@
281
238
 
282
239
  // Menu position and menu carets
283
240
  .navbar .dropdown-menu {
241
+ margin-top: 1px;
242
+ @include border-radius(4px);
284
243
  &:before {
285
244
  content: '';
286
245
  display: inline-block;
287
246
  border-left: 7px solid transparent;
288
247
  border-right: 7px solid transparent;
289
248
  border-bottom: 7px solid #ccc;
290
- border-bottom-color: $dropdownBorder;
249
+ border-bottom-color: rgba(0,0,0,.2);
291
250
  position: absolute;
292
251
  top: -7px;
293
252
  left: 9px;
@@ -297,54 +256,36 @@
297
256
  display: inline-block;
298
257
  border-left: 6px solid transparent;
299
258
  border-right: 6px solid transparent;
300
- border-bottom: 6px solid $dropdownBackground;
259
+ border-bottom: 6px solid $white;
301
260
  position: absolute;
302
261
  top: -6px;
303
262
  left: 10px;
304
263
  }
305
264
  }
306
- // Menu position and menu caret support for dropups via extra dropup class
307
- .navbar-fixed-bottom .dropdown-menu {
308
- &:before {
309
- border-top: 7px solid #ccc;
310
- border-top-color: $dropdownBorder;
311
- border-bottom: 0;
312
- bottom: -7px;
313
- top: auto;
314
- }
315
- &:after {
316
- border-top: 6px solid $dropdownBackground;
317
- border-bottom: 0;
318
- bottom: -6px;
319
- top: auto;
320
- }
321
- }
265
+
322
266
  // Dropdown toggle caret
323
- .navbar .nav li.dropdown .dropdown-toggle .caret,
324
- .navbar .nav li.dropdown.open .caret {
267
+ .navbar .nav .dropdown-toggle .caret,
268
+ .navbar .nav .open.dropdown .caret {
325
269
  border-top-color: $white;
326
- border-bottom-color: $white;
327
270
  }
328
- .navbar .nav li.dropdown.active .caret {
271
+ .navbar .nav .active .caret {
329
272
  @include opacity(100);
330
273
  }
331
274
 
332
275
  // Remove background color from open dropdown
333
- .navbar .nav li.dropdown.open > .dropdown-toggle,
334
- .navbar .nav li.dropdown.active > .dropdown-toggle,
335
- .navbar .nav li.dropdown.open.active > .dropdown-toggle {
276
+ .navbar .nav .open > .dropdown-toggle,
277
+ .navbar .nav .active > .dropdown-toggle,
278
+ .navbar .nav .open.active > .dropdown-toggle {
336
279
  background-color: transparent;
337
280
  }
338
281
 
339
282
  // Dropdown link on hover
340
- .navbar .nav li.dropdown.active > .dropdown-toggle:hover {
283
+ .navbar .nav .active > .dropdown-toggle:hover {
341
284
  color: $white;
342
285
  }
343
286
 
344
287
  // Right aligned menus need alt position
345
- // TODO: rejigger this at some point to simplify the selectors
346
- .navbar .pull-right .dropdown-menu,
347
- .navbar .dropdown-menu.pull-right {
288
+ .navbar .nav.pull-right .dropdown-menu {
348
289
  left: auto;
349
290
  right: 0;
350
291
  &:before {
@@ -355,4 +296,4 @@
355
296
  left: auto;
356
297
  right: 13px;
357
298
  }
358
- }
299
+ }
@@ -21,11 +21,6 @@
21
21
  background-color: $grayLighter;
22
22
  }
23
23
 
24
- // Redeclare pull classes because of specifity
25
- .nav > .pull-right {
26
- float: right;
27
- }
28
-
29
24
  // Nav headers (for dropdowns and lists)
30
25
  .nav .nav-header {
31
26
  display: block;
@@ -47,8 +42,8 @@
47
42
  // --------
48
43
 
49
44
  .nav-list {
50
- padding-left: 15px;
51
- padding-right: 15px;
45
+ padding-left: 14px;
46
+ padding-right: 14px;
52
47
  margin-bottom: 0;
53
48
  }
54
49
  .nav-list > li > a,
@@ -60,8 +55,8 @@
60
55
  .nav-list > li > a {
61
56
  padding: 3px 15px;
62
57
  }
63
- .nav-list > .active > a,
64
- .nav-list > .active > a:hover {
58
+ .nav-list .active > a,
59
+ .nav-list .active > a:hover {
65
60
  color: $white;
66
61
  text-shadow: 0 -1px 0 rgba(0,0,0,.2);
67
62
  background-color: $linkColor;
@@ -69,10 +64,6 @@
69
64
  .nav-list [class^="icon-"] {
70
65
  margin-right: 2px;
71
66
  }
72
- // Dividers (basically an hr) within the dropdown
73
- .nav-list .divider {
74
- @include nav-divider();
75
- }
76
67
 
77
68
 
78
69
 
@@ -103,15 +94,16 @@
103
94
  .nav-tabs {
104
95
  border-bottom: 1px solid #ddd;
105
96
  }
97
+
106
98
  // Make the list-items overlay the bottom border
107
99
  .nav-tabs > li {
108
100
  margin-bottom: -1px;
109
101
  }
102
+
110
103
  // Actual tabs (as links)
111
104
  .nav-tabs > li > a {
112
- padding-top: 8px;
113
- padding-bottom: 8px;
114
- line-height: $baseLineHeight;
105
+ padding-top: 9px;
106
+ padding-bottom: 9px;
115
107
  border: 1px solid transparent;
116
108
  @include border-radius(4px 4px 0 0);
117
109
  &:hover {
@@ -128,7 +120,6 @@
128
120
  cursor: default;
129
121
  }
130
122
 
131
-
132
123
  // PILLS
133
124
  // -----
134
125
 
@@ -142,8 +133,8 @@
142
133
  }
143
134
 
144
135
  // Active state
145
- .nav-pills > .active > a,
146
- .nav-pills > .active > a:hover {
136
+ .nav-pills .active > a,
137
+ .nav-pills .active > a:hover {
147
138
  color: $white;
148
139
  background-color: $linkColor;
149
140
  }
@@ -193,11 +184,14 @@
193
184
  // DROPDOWNS
194
185
  // ---------
195
186
 
196
- .nav-tabs .dropdown-menu {
197
- @include border-radius(0 0 5px 5px); // remove the top rounded corners here since there is a hard edge above the menu
187
+ // Position the menu
188
+ .nav-tabs .dropdown-menu,
189
+ .nav-pills .dropdown-menu {
190
+ margin-top: 1px;
191
+ border-width: 1px;
198
192
  }
199
193
  .nav-pills .dropdown-menu {
200
- @include border-radius(4px); // make rounded corners match the pills
194
+ @include border-radius(4px);
201
195
  }
202
196
 
203
197
  // Default dropdown links
@@ -206,13 +200,11 @@
206
200
  .nav-tabs .dropdown-toggle .caret,
207
201
  .nav-pills .dropdown-toggle .caret {
208
202
  border-top-color: $linkColor;
209
- border-bottom-color: $linkColor;
210
203
  margin-top: 6px;
211
204
  }
212
205
  .nav-tabs .dropdown-toggle:hover .caret,
213
206
  .nav-pills .dropdown-toggle:hover .caret {
214
207
  border-top-color: $linkColorHover;
215
- border-bottom-color: $linkColorHover;
216
208
  }
217
209
 
218
210
  // Active dropdown links
@@ -220,7 +212,6 @@
220
212
  .nav-tabs .active .dropdown-toggle .caret,
221
213
  .nav-pills .active .dropdown-toggle .caret {
222
214
  border-top-color: $grayDark;
223
- border-bottom-color: $grayDark;
224
215
  }
225
216
 
226
217
  // Active:hover dropdown links
@@ -234,16 +225,15 @@
234
225
  // -------------------------
235
226
  .nav-tabs .open .dropdown-toggle,
236
227
  .nav-pills .open .dropdown-toggle,
237
- .nav > li.dropdown.open.active > a:hover {
228
+ .nav > .open.active > a:hover {
238
229
  color: $white;
239
230
  background-color: $grayLight;
240
231
  border-color: $grayLight;
241
232
  }
242
- .nav li.dropdown.open .caret,
243
- .nav li.dropdown.open.active .caret,
244
- .nav li.dropdown.open a:hover .caret {
233
+ .nav .open .caret,
234
+ .nav .open.active .caret,
235
+ .nav .open a:hover .caret {
245
236
  border-top-color: $white;
246
- border-bottom-color: $white;
247
237
  @include opacity(100);
248
238
  }
249
239
 
@@ -266,13 +256,13 @@
266
256
  @include clearfix();
267
257
  }
268
258
  .tab-content {
269
- overflow: auto; // prevent content from running below tabs
259
+ overflow: hidden; // prevent content from running below tabs
270
260
  }
271
261
 
272
262
  // Remove border on bottom, left, right
273
- .tabs-below > .nav-tabs,
274
- .tabs-right > .nav-tabs,
275
- .tabs-left > .nav-tabs {
263
+ .tabs-below .nav-tabs,
264
+ .tabs-right .nav-tabs,
265
+ .tabs-left .nav-tabs {
276
266
  border-bottom: 0;
277
267
  }
278
268
 
@@ -290,22 +280,22 @@
290
280
  // BOTTOM
291
281
  // ------
292
282
 
293
- .tabs-below > .nav-tabs {
283
+ .tabs-below .nav-tabs {
294
284
  border-top: 1px solid #ddd;
295
285
  }
296
- .tabs-below > .nav-tabs > li {
286
+ .tabs-below .nav-tabs > li {
297
287
  margin-top: -1px;
298
288
  margin-bottom: 0;
299
289
  }
300
- .tabs-below > .nav-tabs > li > a {
290
+ .tabs-below .nav-tabs > li > a {
301
291
  @include border-radius(0 0 4px 4px);
302
292
  &:hover {
303
293
  border-bottom-color: transparent;
304
294
  border-top-color: #ddd;
305
295
  }
306
296
  }
307
- .tabs-below > .nav-tabs > .active > a,
308
- .tabs-below > .nav-tabs > .active > a:hover {
297
+ .tabs-below .nav-tabs .active > a,
298
+ .tabs-below .nav-tabs .active > a:hover {
309
299
  border-color: transparent #ddd #ddd #ddd;
310
300
  }
311
301
 
@@ -313,51 +303,51 @@
313
303
  // ------------
314
304
 
315
305
  // Common styles
316
- .tabs-left > .nav-tabs > li,
317
- .tabs-right > .nav-tabs > li {
306
+ .tabs-left .nav-tabs > li,
307
+ .tabs-right .nav-tabs > li {
318
308
  float: none;
319
309
  }
320
- .tabs-left > .nav-tabs > li > a,
321
- .tabs-right > .nav-tabs > li > a {
310
+ .tabs-left .nav-tabs > li > a,
311
+ .tabs-right .nav-tabs > li > a {
322
312
  min-width: 74px;
323
313
  margin-right: 0;
324
314
  margin-bottom: 3px;
325
315
  }
326
316
 
327
317
  // Tabs on the left
328
- .tabs-left > .nav-tabs {
318
+ .tabs-left .nav-tabs {
329
319
  float: left;
330
320
  margin-right: 19px;
331
321
  border-right: 1px solid #ddd;
332
322
  }
333
- .tabs-left > .nav-tabs > li > a {
323
+ .tabs-left .nav-tabs > li > a {
334
324
  margin-right: -1px;
335
325
  @include border-radius(4px 0 0 4px);
336
326
  }
337
- .tabs-left > .nav-tabs > li > a:hover {
327
+ .tabs-left .nav-tabs > li > a:hover {
338
328
  border-color: $grayLighter #ddd $grayLighter $grayLighter;
339
329
  }
340
- .tabs-left > .nav-tabs .active > a,
341
- .tabs-left > .nav-tabs .active > a:hover {
330
+ .tabs-left .nav-tabs .active > a,
331
+ .tabs-left .nav-tabs .active > a:hover {
342
332
  border-color: #ddd transparent #ddd #ddd;
343
333
  *border-right-color: $white;
344
334
  }
345
335
 
346
336
  // Tabs on the right
347
- .tabs-right > .nav-tabs {
337
+ .tabs-right .nav-tabs {
348
338
  float: right;
349
339
  margin-left: 19px;
350
340
  border-left: 1px solid #ddd;
351
341
  }
352
- .tabs-right > .nav-tabs > li > a {
342
+ .tabs-right .nav-tabs > li > a {
353
343
  margin-left: -1px;
354
344
  @include border-radius(0 4px 4px 0);
355
345
  }
356
- .tabs-right > .nav-tabs > li > a:hover {
346
+ .tabs-right .nav-tabs > li > a:hover {
357
347
  border-color: $grayLighter $grayLighter $grayLighter #ddd;
358
348
  }
359
- .tabs-right > .nav-tabs .active > a,
360
- .tabs-right > .nav-tabs .active > a:hover {
349
+ .tabs-right .nav-tabs .active > a,
350
+ .tabs-right .nav-tabs .active > a:hover {
361
351
  border-color: #ddd #ddd #ddd transparent;
362
352
  *border-left-color: $white;
363
353
  }