style-guide 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (209) hide show
  1. data/.gitignore +11 -0
  2. data/.gitmodules +3 -0
  3. data/.pairs +11 -0
  4. data/.rvmrc +1 -0
  5. data/Gemfile +5 -0
  6. data/Gemfile.lock +144 -0
  7. data/Guardfile +14 -0
  8. data/LICENSE +7 -0
  9. data/README.md +7 -0
  10. data/Rakefile +27 -0
  11. data/app/assets/images/style_guide/.gitkeep +0 -0
  12. data/app/assets/images/style_guide/img/bird.png +0 -0
  13. data/app/assets/images/style_guide/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
  14. data/app/assets/images/style_guide/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
  15. data/app/assets/images/style_guide/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
  16. data/app/assets/images/style_guide/img/browsers.png +0 -0
  17. data/app/assets/images/style_guide/img/bs-docs-bootstrap-features.png +0 -0
  18. data/app/assets/images/style_guide/img/bs-docs-masthead-pattern.png +0 -0
  19. data/app/assets/images/style_guide/img/bs-docs-responsive-illustrations.png +0 -0
  20. data/app/assets/images/style_guide/img/bs-docs-twitter-github.png +0 -0
  21. data/app/assets/images/style_guide/img/example-diagram-01.png +0 -0
  22. data/app/assets/images/style_guide/img/example-diagram-02.png +0 -0
  23. data/app/assets/images/style_guide/img/example-diagram-03.png +0 -0
  24. data/app/assets/images/style_guide/img/example-sites/8020select.png +0 -0
  25. data/app/assets/images/style_guide/img/example-sites/adoptahydrant.png +0 -0
  26. data/app/assets/images/style_guide/img/example-sites/bartop.png +0 -0
  27. data/app/assets/images/style_guide/img/example-sites/breakingnews.png +0 -0
  28. data/app/assets/images/style_guide/img/example-sites/fleetio.png +0 -0
  29. data/app/assets/images/style_guide/img/example-sites/gathercontent.png +0 -0
  30. data/app/assets/images/style_guide/img/example-sites/jshint.png +0 -0
  31. data/app/assets/images/style_guide/img/example-sites/kippt.png +0 -0
  32. data/app/assets/images/style_guide/img/example-sites/railwayjs.png +0 -0
  33. data/app/assets/images/style_guide/img/example-sites/soundready.png +0 -0
  34. data/app/assets/images/style_guide/img/example-sites/totalwireframe.png +0 -0
  35. data/app/assets/images/style_guide/img/examples/bootstrap-example-carousel.png +0 -0
  36. data/app/assets/images/style_guide/img/examples/bootstrap-example-fluid.jpg +0 -0
  37. data/app/assets/images/style_guide/img/examples/bootstrap-example-hero.jpg +0 -0
  38. data/app/assets/images/style_guide/img/examples/bootstrap-example-marketing-narrow.png +0 -0
  39. data/app/assets/images/style_guide/img/examples/bootstrap-example-signin.png +0 -0
  40. data/app/assets/images/style_guide/img/examples/bootstrap-example-starter.jpg +0 -0
  41. data/app/assets/images/style_guide/img/examples/bootstrap-example-sticky-footer.png +0 -0
  42. data/app/assets/images/style_guide/img/examples/browser-icon-chrome.png +0 -0
  43. data/app/assets/images/style_guide/img/examples/browser-icon-firefox.png +0 -0
  44. data/app/assets/images/style_guide/img/examples/browser-icon-safari.png +0 -0
  45. data/app/assets/images/style_guide/img/examples/slide-01.jpg +0 -0
  46. data/app/assets/images/style_guide/img/examples/slide-02.jpg +0 -0
  47. data/app/assets/images/style_guide/img/examples/slide-03.jpg +0 -0
  48. data/app/assets/images/style_guide/img/github-16px.png +0 -0
  49. data/app/assets/images/style_guide/img/glyphicons/glyphicons_009_magic.png +0 -0
  50. data/app/assets/images/style_guide/img/glyphicons/glyphicons_042_group.png +0 -0
  51. data/app/assets/images/style_guide/img/glyphicons/glyphicons_079_podium.png +0 -0
  52. data/app/assets/images/style_guide/img/glyphicons/glyphicons_082_roundabout.png +0 -0
  53. data/app/assets/images/style_guide/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
  54. data/app/assets/images/style_guide/img/glyphicons/glyphicons_163_iphone.png +0 -0
  55. data/app/assets/images/style_guide/img/glyphicons/glyphicons_214_resize_small.png +0 -0
  56. data/app/assets/images/style_guide/img/glyphicons/glyphicons_266_book_open.png +0 -0
  57. data/app/assets/images/style_guide/img/glyphicons-halflings-white.png +0 -0
  58. data/app/assets/images/style_guide/img/glyphicons-halflings.png +0 -0
  59. data/app/assets/images/style_guide/img/grid-18px-masked.png +0 -0
  60. data/app/assets/images/style_guide/img/grid-baseline-20px.png +0 -0
  61. data/app/assets/images/style_guide/img/icon-css3.png +0 -0
  62. data/app/assets/images/style_guide/img/icon-github.png +0 -0
  63. data/app/assets/images/style_guide/img/icon-html5.png +0 -0
  64. data/app/assets/images/style_guide/img/icon-twitter.png +0 -0
  65. data/app/assets/images/style_guide/img/less-logo-large.png +0 -0
  66. data/app/assets/images/style_guide/img/less-small.png +0 -0
  67. data/app/assets/images/style_guide/img/responsive-illustrations.png +0 -0
  68. data/app/assets/javascripts/style_guide/application.js +13 -0
  69. data/app/assets/javascripts/style_guide/docs.js +154 -0
  70. data/app/assets/javascripts/style_guide/prettify.js +28 -0
  71. data/app/assets/stylesheets/style_guide/application.css +13 -0
  72. data/app/assets/stylesheets/style_guide/docs.css +1015 -0
  73. data/app/assets/stylesheets/style_guide/prettify.css +30 -0
  74. data/app/controllers/style_guide/application_controller.rb +4 -0
  75. data/app/controllers/style_guide/style_controller.rb +12 -0
  76. data/app/helpers/style_guide/application_helper.rb +4 -0
  77. data/app/views/layouts/style_guide/application.html.erb +44 -0
  78. data/app/views/style_guide/partials/_buttons.erb +167 -0
  79. data/app/views/style_guide/partials/_code.erb +31 -0
  80. data/app/views/style_guide/partials/_forms.erb +714 -0
  81. data/app/views/style_guide/partials/_images.erb +318 -0
  82. data/app/views/style_guide/partials/_tables.erb +409 -0
  83. data/app/views/style_guide/partials/_typography.erb +331 -0
  84. data/app/views/style_guide/style/index.html.erb +32 -0
  85. data/config/routes.rb +3 -0
  86. data/lib/style_guide/engine.rb +12 -0
  87. data/lib/style_guide/version.rb +3 -0
  88. data/lib/style_guide.rb +4 -0
  89. data/script/rails +8 -0
  90. data/spec/dummy/README.rdoc +261 -0
  91. data/spec/dummy/Rakefile +7 -0
  92. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_009_magic.png +0 -0
  93. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_042_group.png +0 -0
  94. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_079_podium.png +0 -0
  95. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_082_roundabout.png +0 -0
  96. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
  97. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_163_iphone.png +0 -0
  98. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_214_resize_small.png +0 -0
  99. data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_266_book_open.png +0 -0
  100. data/spec/dummy/app/assets/images/img/glyphicons-halflings-white.png +0 -0
  101. data/spec/dummy/app/assets/images/img/glyphicons-halflings.png +0 -0
  102. data/spec/dummy/app/assets/javascripts/application.js +27 -0
  103. data/spec/dummy/app/assets/javascripts/bootstrap-affix.js +106 -0
  104. data/spec/dummy/app/assets/javascripts/bootstrap-alert.js +88 -0
  105. data/spec/dummy/app/assets/javascripts/bootstrap-button.js +94 -0
  106. data/spec/dummy/app/assets/javascripts/bootstrap-carousel.js +176 -0
  107. data/spec/dummy/app/assets/javascripts/bootstrap-collapse.js +156 -0
  108. data/spec/dummy/app/assets/javascripts/bootstrap-dropdown.js +148 -0
  109. data/spec/dummy/app/assets/javascripts/bootstrap-modal.js +234 -0
  110. data/spec/dummy/app/assets/javascripts/bootstrap-popover.js +103 -0
  111. data/spec/dummy/app/assets/javascripts/bootstrap-scrollspy.js +151 -0
  112. data/spec/dummy/app/assets/javascripts/bootstrap-tab.js +133 -0
  113. data/spec/dummy/app/assets/javascripts/bootstrap-tooltip.js +276 -0
  114. data/spec/dummy/app/assets/javascripts/bootstrap-transition.js +60 -0
  115. data/spec/dummy/app/assets/javascripts/bootstrap-typeahead.js +310 -0
  116. data/spec/dummy/app/assets/javascripts/jquery.js +2 -0
  117. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  118. data/spec/dummy/app/assets/stylesheets/bootstrap/accordion.less +34 -0
  119. data/spec/dummy/app/assets/stylesheets/bootstrap/alerts.less +65 -0
  120. data/spec/dummy/app/assets/stylesheets/bootstrap/bootstrap.less +63 -0
  121. data/spec/dummy/app/assets/stylesheets/bootstrap/breadcrumbs.less +24 -0
  122. data/spec/dummy/app/assets/stylesheets/bootstrap/button-groups.less +242 -0
  123. data/spec/dummy/app/assets/stylesheets/bootstrap/buttons.less +232 -0
  124. data/spec/dummy/app/assets/stylesheets/bootstrap/carousel.less +131 -0
  125. data/spec/dummy/app/assets/stylesheets/bootstrap/close.less +31 -0
  126. data/spec/dummy/app/assets/stylesheets/bootstrap/code.less +58 -0
  127. data/spec/dummy/app/assets/stylesheets/bootstrap/component-animations.less +22 -0
  128. data/spec/dummy/app/assets/stylesheets/bootstrap/dropdowns.less +237 -0
  129. data/spec/dummy/app/assets/stylesheets/bootstrap/forms.less +683 -0
  130. data/spec/dummy/app/assets/stylesheets/bootstrap/grid.less +21 -0
  131. data/spec/dummy/app/assets/stylesheets/bootstrap/hero-unit.less +25 -0
  132. data/spec/dummy/app/assets/stylesheets/bootstrap/labels-badges.less +74 -0
  133. data/spec/dummy/app/assets/stylesheets/bootstrap/layouts.less +16 -0
  134. data/spec/dummy/app/assets/stylesheets/bootstrap/media.less +55 -0
  135. data/spec/dummy/app/assets/stylesheets/bootstrap/mixins.less +687 -0
  136. data/spec/dummy/app/assets/stylesheets/bootstrap/modals.less +94 -0
  137. data/spec/dummy/app/assets/stylesheets/bootstrap/navbar.less +475 -0
  138. data/spec/dummy/app/assets/stylesheets/bootstrap/navs.less +385 -0
  139. data/spec/dummy/app/assets/stylesheets/bootstrap/pager.less +41 -0
  140. data/spec/dummy/app/assets/stylesheets/bootstrap/pagination.less +121 -0
  141. data/spec/dummy/app/assets/stylesheets/bootstrap/popovers.less +117 -0
  142. data/spec/dummy/app/assets/stylesheets/bootstrap/progress-bars.less +122 -0
  143. data/spec/dummy/app/assets/stylesheets/bootstrap/reset.less +138 -0
  144. data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-1200px-min.less +28 -0
  145. data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-767px-max.less +193 -0
  146. data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-768px-979px.less +19 -0
  147. data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-navbar.less +185 -0
  148. data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-utilities.less +43 -0
  149. data/spec/dummy/app/assets/stylesheets/bootstrap/responsive.less +48 -0
  150. data/spec/dummy/app/assets/stylesheets/bootstrap/scaffolding.less +52 -0
  151. data/spec/dummy/app/assets/stylesheets/bootstrap/sprites.less +193 -0
  152. data/spec/dummy/app/assets/stylesheets/bootstrap/tables.less +236 -0
  153. data/spec/dummy/app/assets/stylesheets/bootstrap/thumbnails.less +52 -0
  154. data/spec/dummy/app/assets/stylesheets/bootstrap/tooltip.less +70 -0
  155. data/spec/dummy/app/assets/stylesheets/bootstrap/type.less +227 -0
  156. data/spec/dummy/app/assets/stylesheets/bootstrap/utilities.less +30 -0
  157. data/spec/dummy/app/assets/stylesheets/bootstrap/variables.less +301 -0
  158. data/spec/dummy/app/assets/stylesheets/bootstrap/wells.less +29 -0
  159. data/spec/dummy/app/assets/stylesheets/bootstrap-responsive.css +1088 -0
  160. data/spec/dummy/app/assets/stylesheets/bootstrap.css +5893 -0
  161. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/_colors.scss +10 -0
  162. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/ars-maquette-web.css +35 -0
  163. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/button.less +5 -0
  164. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/layout.css.scss +11 -0
  165. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/typography.css.scss +20 -0
  166. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/variables.css.less +10 -0
  167. data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap.css.less +3 -0
  168. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  169. data/spec/dummy/app/controllers/home_controller.rb +3 -0
  170. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  171. data/spec/dummy/app/mailers/.gitkeep +0 -0
  172. data/spec/dummy/app/models/.gitkeep +0 -0
  173. data/spec/dummy/app/views/home/index.html.erb +1 -0
  174. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  175. data/spec/dummy/app/views/styles/_info-header.erb +1 -0
  176. data/spec/dummy/config/application.rb +32 -0
  177. data/spec/dummy/config/boot.rb +10 -0
  178. data/spec/dummy/config/environment.rb +5 -0
  179. data/spec/dummy/config/environments/development.rb +30 -0
  180. data/spec/dummy/config/environments/production.rb +67 -0
  181. data/spec/dummy/config/environments/test.rb +34 -0
  182. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  183. data/spec/dummy/config/initializers/inflections.rb +15 -0
  184. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  185. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  186. data/spec/dummy/config/initializers/session_store.rb +8 -0
  187. data/spec/dummy/config/initializers/wrap_parameters.rb +9 -0
  188. data/spec/dummy/config/locales/en.yml +5 -0
  189. data/spec/dummy/config/routes.rb +4 -0
  190. data/spec/dummy/config.ru +4 -0
  191. data/spec/dummy/lib/assets/.gitkeep +0 -0
  192. data/spec/dummy/log/.gitkeep +0 -0
  193. data/spec/dummy/public/404.html +26 -0
  194. data/spec/dummy/public/422.html +26 -0
  195. data/spec/dummy/public/500.html +25 -0
  196. data/spec/dummy/public/favicon.ico +0 -0
  197. data/spec/dummy/public/img/glyphicons/glyphicons_009_magic.png +0 -0
  198. data/spec/dummy/public/img/glyphicons/glyphicons_042_group.png +0 -0
  199. data/spec/dummy/public/img/glyphicons/glyphicons_079_podium.png +0 -0
  200. data/spec/dummy/public/img/glyphicons/glyphicons_082_roundabout.png +0 -0
  201. data/spec/dummy/public/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
  202. data/spec/dummy/public/img/glyphicons/glyphicons_163_iphone.png +0 -0
  203. data/spec/dummy/public/img/glyphicons/glyphicons_214_resize_small.png +0 -0
  204. data/spec/dummy/public/img/glyphicons/glyphicons_266_book_open.png +0 -0
  205. data/spec/dummy/public/img/glyphicons-halflings-white.png +0 -0
  206. data/spec/dummy/public/img/glyphicons-halflings.png +0 -0
  207. data/spec/dummy/script/rails +6 -0
  208. data/style-guide.gemspec +26 -0
  209. metadata +500 -0
@@ -0,0 +1,94 @@
1
+ //
2
+ // Modals
3
+ // --------------------------------------------------
4
+
5
+ // Background
6
+ .modal-backdrop {
7
+ position: fixed;
8
+ top: 0;
9
+ right: 0;
10
+ bottom: 0;
11
+ left: 0;
12
+ z-index: @zindexModalBackdrop;
13
+ background-color: @black;
14
+ // Fade for backdrop
15
+ &.fade { opacity: 0; }
16
+ }
17
+
18
+ .modal-backdrop,
19
+ .modal-backdrop.fade.in {
20
+ .opacity(80);
21
+ }
22
+
23
+ // Base modal
24
+ .modal {
25
+ position: fixed;
26
+ top: 50%;
27
+ left: 50%;
28
+ z-index: @zindexModal;
29
+ width: 560px;
30
+ margin: -250px 0 0 -280px;
31
+ background-color: @white;
32
+ border: 1px solid #999;
33
+ border: 1px solid rgba(0,0,0,.3);
34
+ *border: 1px solid #999; /* IE6-7 */
35
+ .border-radius(6px);
36
+ .box-shadow(0 3px 7px rgba(0,0,0,0.3));
37
+ .background-clip(padding-box);
38
+ // Remove focus outline from opened modal
39
+ outline: none;
40
+
41
+ &.fade {
42
+ .transition(e('opacity .3s linear, top .3s ease-out'));
43
+ top: -25%;
44
+ }
45
+ &.fade.in { top: 50%; }
46
+ }
47
+ .modal-header {
48
+ padding: 9px 15px;
49
+ border-bottom: 1px solid #eee;
50
+ // Close icon
51
+ .close { margin-top: 2px; }
52
+ // Heading
53
+ h3 {
54
+ margin: 0;
55
+ line-height: 30px;
56
+ }
57
+ }
58
+
59
+ // Body (where all modal content resides)
60
+ .modal-body {
61
+ overflow-y: auto;
62
+ max-height: 400px;
63
+ padding: 15px;
64
+ }
65
+ // Remove bottom margin if need be
66
+ .modal-form {
67
+ margin-bottom: 0;
68
+ }
69
+
70
+ // Footer (for actions)
71
+ .modal-footer {
72
+ padding: 14px 15px 15px;
73
+ margin-bottom: 0;
74
+ text-align: right; // right align buttons
75
+ background-color: #f5f5f5;
76
+ border-top: 1px solid #ddd;
77
+ .border-radius(0 0 6px 6px);
78
+ .box-shadow(inset 0 1px 0 @white);
79
+ .clearfix(); // clear it in case folks use .pull-* classes on buttons
80
+
81
+ // Properly space out buttons
82
+ .btn + .btn {
83
+ margin-left: 5px;
84
+ margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
85
+ }
86
+ // but override that for button groups
87
+ .btn-group .btn + .btn {
88
+ margin-left: -1px;
89
+ }
90
+ // and override it for block buttons as well
91
+ .btn-block + .btn-block {
92
+ margin-left: 0;
93
+ }
94
+ }
@@ -0,0 +1,475 @@
1
+ //
2
+ // Navbars (Redux)
3
+ // --------------------------------------------------
4
+
5
+
6
+ // COMMON STYLES
7
+ // -------------
8
+
9
+ // Base class and wrapper
10
+ .navbar {
11
+ overflow: visible;
12
+ margin-bottom: @baseLineHeight;
13
+ color: @navbarText;
14
+
15
+ // Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
16
+ *position: relative;
17
+ *z-index: 2;
18
+ }
19
+
20
+ // Inner for background effects
21
+ // Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
22
+ .navbar-inner {
23
+ min-height: @navbarHeight;
24
+ padding-left: 20px;
25
+ padding-right: 20px;
26
+ #gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
27
+ border: 1px solid @navbarBorder;
28
+ .border-radius(@baseBorderRadius);
29
+ .box-shadow(0 1px 4px rgba(0,0,0,.065));
30
+
31
+ // Prevent floats from breaking the navbar
32
+ .clearfix();
33
+ }
34
+
35
+ // Set width to auto for default container
36
+ // We then reset it for fixed navbars in the #gridSystem mixin
37
+ .navbar .container {
38
+ width: auto;
39
+ }
40
+
41
+ // Override the default collapsed state
42
+ .nav-collapse.collapse {
43
+ height: auto;
44
+ overflow: visible;
45
+ }
46
+
47
+
48
+ // Brand: website or project name
49
+ // -------------------------
50
+ .navbar .brand {
51
+ float: left;
52
+ display: block;
53
+ // Vertically center the text given @navbarHeight
54
+ padding: ((@navbarHeight - @baseLineHeight) / 2) 20px ((@navbarHeight - @baseLineHeight) / 2);
55
+ margin-left: -20px; // negative indent to left-align the text down the page
56
+ font-size: 20px;
57
+ font-weight: 200;
58
+ color: @navbarBrandColor;
59
+ text-shadow: 0 1px 0 @navbarBackgroundHighlight;
60
+ &:hover {
61
+ text-decoration: none;
62
+ }
63
+ }
64
+
65
+ // Plain text in topbar
66
+ // -------------------------
67
+ .navbar-text {
68
+ margin-bottom: 0;
69
+ line-height: @navbarHeight;
70
+ }
71
+
72
+ // Janky solution for now to account for links outside the .nav
73
+ // -------------------------
74
+ .navbar-link {
75
+ color: @navbarLinkColor;
76
+ &:hover {
77
+ color: @navbarLinkColorHover;
78
+ }
79
+ }
80
+
81
+ // Dividers in navbar
82
+ // -------------------------
83
+ .navbar .divider-vertical {
84
+ height: @navbarHeight;
85
+ margin: 0 9px;
86
+ border-left: 1px solid @navbarBackground;
87
+ border-right: 1px solid @navbarBackgroundHighlight;
88
+ }
89
+
90
+ // Buttons in navbar
91
+ // -------------------------
92
+ .navbar .btn,
93
+ .navbar .btn-group {
94
+ .navbarVerticalAlign(30px); // Vertically center in navbar
95
+ }
96
+ .navbar .btn-group .btn,
97
+ .navbar .input-prepend .btn,
98
+ .navbar .input-append .btn {
99
+ margin-top: 0; // then undo the margin here so we don't accidentally double it
100
+ }
101
+
102
+ // Navbar forms
103
+ // -------------------------
104
+ .navbar-form {
105
+ margin-bottom: 0; // remove default bottom margin
106
+ .clearfix();
107
+ input,
108
+ select,
109
+ .radio,
110
+ .checkbox {
111
+ .navbarVerticalAlign(30px); // Vertically center in navbar
112
+ }
113
+ input,
114
+ select,
115
+ .btn {
116
+ display: inline-block;
117
+ margin-bottom: 0;
118
+ }
119
+ input[type="image"],
120
+ input[type="checkbox"],
121
+ input[type="radio"] {
122
+ margin-top: 3px;
123
+ }
124
+ .input-append,
125
+ .input-prepend {
126
+ margin-top: 6px;
127
+ white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left
128
+ input {
129
+ margin-top: 0; // remove the margin on top since it's on the parent
130
+ }
131
+ }
132
+ }
133
+
134
+ // Navbar search
135
+ // -------------------------
136
+ .navbar-search {
137
+ position: relative;
138
+ float: left;
139
+ .navbarVerticalAlign(30px); // Vertically center in navbar
140
+ margin-bottom: 0;
141
+ .search-query {
142
+ margin-bottom: 0;
143
+ padding: 4px 14px;
144
+ #font > .sans-serif(13px, normal, 1);
145
+ .border-radius(15px); // redeclare because of specificity of the type attribute
146
+ }
147
+ }
148
+
149
+
150
+
151
+ // Static navbar
152
+ // -------------------------
153
+
154
+ .navbar-static-top {
155
+ position: static;
156
+ margin-bottom: 0; // remove 18px margin for default navbar
157
+ .navbar-inner {
158
+ .border-radius(0);
159
+ }
160
+ }
161
+
162
+
163
+
164
+ // Fixed navbar
165
+ // -------------------------
166
+
167
+ // Shared (top/bottom) styles
168
+ .navbar-fixed-top,
169
+ .navbar-fixed-bottom {
170
+ position: fixed;
171
+ right: 0;
172
+ left: 0;
173
+ z-index: @zindexFixedNavbar;
174
+ margin-bottom: 0; // remove 18px margin for default navbar
175
+ }
176
+ .navbar-fixed-top .navbar-inner,
177
+ .navbar-static-top .navbar-inner {
178
+ border-width: 0 0 1px;
179
+ }
180
+ .navbar-fixed-bottom .navbar-inner {
181
+ border-width: 1px 0 0;
182
+ }
183
+ .navbar-fixed-top .navbar-inner,
184
+ .navbar-fixed-bottom .navbar-inner {
185
+ padding-left: 0;
186
+ padding-right: 0;
187
+ .border-radius(0);
188
+ }
189
+
190
+ // Reset container width
191
+ // Required here as we reset the width earlier on and the grid mixins don't override early enough
192
+ .navbar-static-top .container,
193
+ .navbar-fixed-top .container,
194
+ .navbar-fixed-bottom .container {
195
+ #grid > .core > .span(@gridColumns);
196
+ }
197
+
198
+ // Fixed to top
199
+ .navbar-fixed-top {
200
+ top: 0;
201
+ }
202
+ .navbar-fixed-top,
203
+ .navbar-static-top {
204
+ .navbar-inner {
205
+ .box-shadow(~"0 1px 10px rgba(0,0,0,.1)");
206
+ }
207
+ }
208
+
209
+ // Fixed to bottom
210
+ .navbar-fixed-bottom {
211
+ bottom: 0;
212
+ .navbar-inner {
213
+ .box-shadow(~"0 -1px 10px rgba(0,0,0,.1)");
214
+ }
215
+ }
216
+
217
+
218
+
219
+ // NAVIGATION
220
+ // ----------
221
+
222
+ .navbar .nav {
223
+ position: relative;
224
+ left: 0;
225
+ display: block;
226
+ float: left;
227
+ margin: 0 10px 0 0;
228
+ }
229
+ .navbar .nav.pull-right {
230
+ float: right; // redeclare due to specificity
231
+ margin-right: 0; // remove margin on float right nav
232
+ }
233
+ .navbar .nav > li {
234
+ float: left;
235
+ }
236
+
237
+ // Links
238
+ .navbar .nav > li > a {
239
+ float: none;
240
+ // Vertically center the text given @navbarHeight
241
+ padding: ((@navbarHeight - @baseLineHeight) / 2) 15px ((@navbarHeight - @baseLineHeight) / 2);
242
+ color: @navbarLinkColor;
243
+ text-decoration: none;
244
+ text-shadow: 0 1px 0 @navbarBackgroundHighlight;
245
+ }
246
+ .navbar .nav .dropdown-toggle .caret {
247
+ margin-top: 8px;
248
+ }
249
+
250
+ // Hover
251
+ .navbar .nav > li > a:focus,
252
+ .navbar .nav > li > a:hover {
253
+ background-color: @navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
254
+ color: @navbarLinkColorHover;
255
+ text-decoration: none;
256
+ }
257
+
258
+ // Active nav items
259
+ .navbar .nav > .active > a,
260
+ .navbar .nav > .active > a:hover,
261
+ .navbar .nav > .active > a:focus {
262
+ color: @navbarLinkColorActive;
263
+ text-decoration: none;
264
+ background-color: @navbarLinkBackgroundActive;
265
+ .box-shadow(inset 0 3px 8px rgba(0,0,0,.125));
266
+ }
267
+
268
+ // Navbar button for toggling navbar items in responsive layouts
269
+ // These definitions need to come after '.navbar .btn'
270
+ .navbar .btn-navbar {
271
+ display: none;
272
+ float: right;
273
+ padding: 7px 10px;
274
+ margin-left: 5px;
275
+ margin-right: 5px;
276
+ .buttonBackground(darken(@navbarBackgroundHighlight, 5%), darken(@navbarBackground, 5%));
277
+ .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)");
278
+ }
279
+ .navbar .btn-navbar .icon-bar {
280
+ display: block;
281
+ width: 18px;
282
+ height: 2px;
283
+ background-color: #f5f5f5;
284
+ .border-radius(1px);
285
+ .box-shadow(0 1px 0 rgba(0,0,0,.25));
286
+ }
287
+ .btn-navbar .icon-bar + .icon-bar {
288
+ margin-top: 3px;
289
+ }
290
+
291
+
292
+
293
+ // Dropdown menus
294
+ // --------------
295
+
296
+ // Menu position and menu carets
297
+ .navbar .nav > li > .dropdown-menu {
298
+ &:before {
299
+ content: '';
300
+ display: inline-block;
301
+ border-left: 7px solid transparent;
302
+ border-right: 7px solid transparent;
303
+ border-bottom: 7px solid #ccc;
304
+ border-bottom-color: @dropdownBorder;
305
+ position: absolute;
306
+ top: -7px;
307
+ left: 9px;
308
+ }
309
+ &:after {
310
+ content: '';
311
+ display: inline-block;
312
+ border-left: 6px solid transparent;
313
+ border-right: 6px solid transparent;
314
+ border-bottom: 6px solid @dropdownBackground;
315
+ position: absolute;
316
+ top: -6px;
317
+ left: 10px;
318
+ }
319
+ }
320
+ // Menu position and menu caret support for dropups via extra dropup class
321
+ .navbar-fixed-bottom .nav > li > .dropdown-menu {
322
+ &:before {
323
+ border-top: 7px solid #ccc;
324
+ border-top-color: @dropdownBorder;
325
+ border-bottom: 0;
326
+ bottom: -7px;
327
+ top: auto;
328
+ }
329
+ &:after {
330
+ border-top: 6px solid @dropdownBackground;
331
+ border-bottom: 0;
332
+ bottom: -6px;
333
+ top: auto;
334
+ }
335
+ }
336
+
337
+ // Remove background color from open dropdown
338
+ .navbar .nav li.dropdown.open > .dropdown-toggle,
339
+ .navbar .nav li.dropdown.active > .dropdown-toggle,
340
+ .navbar .nav li.dropdown.open.active > .dropdown-toggle {
341
+ background-color: @navbarLinkBackgroundActive;
342
+ color: @navbarLinkColorActive;
343
+ }
344
+ .navbar .nav li.dropdown > .dropdown-toggle .caret {
345
+ border-top-color: @navbarLinkColor;
346
+ border-bottom-color: @navbarLinkColor;
347
+ }
348
+ .navbar .nav li.dropdown.open > .dropdown-toggle .caret,
349
+ .navbar .nav li.dropdown.active > .dropdown-toggle .caret,
350
+ .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
351
+ border-top-color: @navbarLinkColorActive;
352
+ border-bottom-color: @navbarLinkColorActive;
353
+ }
354
+
355
+ // Right aligned menus need alt position
356
+ .navbar .pull-right > li > .dropdown-menu,
357
+ .navbar .nav > li > .dropdown-menu.pull-right {
358
+ left: auto;
359
+ right: 0;
360
+ &:before {
361
+ left: auto;
362
+ right: 12px;
363
+ }
364
+ &:after {
365
+ left: auto;
366
+ right: 13px;
367
+ }
368
+ .dropdown-menu {
369
+ left: auto;
370
+ right: 100%;
371
+ margin-left: 0;
372
+ margin-right: -1px;
373
+ .border-radius(6px 0 6px 6px);
374
+ }
375
+ }
376
+
377
+
378
+ // Inverted navbar
379
+ // -------------------------
380
+
381
+ .navbar-inverse {
382
+ color: @navbarInverseText;
383
+
384
+ .navbar-inner {
385
+ #gradient > .vertical(@navbarInverseBackgroundHighlight, @navbarInverseBackground);
386
+ border-color: @navbarInverseBorder;
387
+ }
388
+
389
+ .brand,
390
+ .nav > li > a {
391
+ color: @navbarInverseLinkColor;
392
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
393
+ &:hover {
394
+ color: @navbarInverseLinkColorHover;
395
+ }
396
+ }
397
+
398
+ .nav > li > a:focus,
399
+ .nav > li > a:hover {
400
+ background-color: @navbarInverseLinkBackgroundHover;
401
+ color: @navbarInverseLinkColorHover;
402
+ }
403
+
404
+ .nav .active > a,
405
+ .nav .active > a:hover,
406
+ .nav .active > a:focus {
407
+ color: @navbarInverseLinkColorActive;
408
+ background-color: @navbarInverseLinkBackgroundActive;
409
+ }
410
+
411
+ // Inline text links
412
+ .navbar-link {
413
+ color: @navbarInverseLinkColor;
414
+ &:hover {
415
+ color: @navbarInverseLinkColorHover;
416
+ }
417
+ }
418
+
419
+ // Dividers in navbar
420
+ .divider-vertical {
421
+ border-left-color: @navbarInverseBackground;
422
+ border-right-color: @navbarInverseBackgroundHighlight;
423
+ }
424
+
425
+ // Dropdowns
426
+ .nav li.dropdown.open > .dropdown-toggle,
427
+ .nav li.dropdown.active > .dropdown-toggle,
428
+ .nav li.dropdown.open.active > .dropdown-toggle {
429
+ background-color: @navbarInverseLinkBackgroundActive;
430
+ color: @navbarInverseLinkColorActive;
431
+ }
432
+ .nav li.dropdown > .dropdown-toggle .caret {
433
+ border-top-color: @navbarInverseLinkColor;
434
+ border-bottom-color: @navbarInverseLinkColor;
435
+ }
436
+ .nav li.dropdown.open > .dropdown-toggle .caret,
437
+ .nav li.dropdown.active > .dropdown-toggle .caret,
438
+ .nav li.dropdown.open.active > .dropdown-toggle .caret {
439
+ border-top-color: @navbarInverseLinkColorActive;
440
+ border-bottom-color: @navbarInverseLinkColorActive;
441
+ }
442
+
443
+ // Navbar search
444
+ .navbar-search {
445
+ .search-query {
446
+ color: @white;
447
+ background-color: @navbarInverseSearchBackground;
448
+ border-color: @navbarInverseSearchBorder;
449
+ .box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
450
+ .transition(none);
451
+ .placeholder(@navbarInverseSearchPlaceholderColor);
452
+
453
+ // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
454
+ &:focus,
455
+ &.focused {
456
+ padding: 5px 15px;
457
+ color: @grayDark;
458
+ text-shadow: 0 1px 0 @white;
459
+ background-color: @navbarInverseSearchBackgroundFocus;
460
+ border: 0;
461
+ .box-shadow(0 0 3px rgba(0,0,0,.15));
462
+ outline: 0;
463
+ }
464
+ }
465
+ }
466
+
467
+ // Navbar collapse button
468
+ .btn-navbar {
469
+ .buttonBackground(darken(@navbarInverseBackgroundHighlight, 5%), darken(@navbarInverseBackground, 5%));
470
+ }
471
+
472
+ }
473
+
474
+
475
+