publish_my_data 0.0.32 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. data/app/assets/images/publish_my_data/small-spinner.gif +0 -0
  2. data/app/assets/images/publish_my_data/sort-asc.gif +0 -0
  3. data/app/assets/images/publish_my_data/sort-desc.gif +0 -0
  4. data/app/assets/javascripts/bootstrap/affix.js +126 -0
  5. data/app/assets/javascripts/bootstrap/alert.js +98 -0
  6. data/app/assets/javascripts/bootstrap/button.js +109 -0
  7. data/app/assets/javascripts/bootstrap/carousel.js +217 -0
  8. data/app/assets/javascripts/bootstrap/collapse.js +179 -0
  9. data/app/assets/javascripts/bootstrap/dropdown.js +154 -0
  10. data/app/assets/javascripts/bootstrap/modal.js +246 -0
  11. data/app/assets/javascripts/bootstrap/popover.js +117 -0
  12. data/app/assets/javascripts/bootstrap/scrollspy.js +158 -0
  13. data/app/assets/javascripts/bootstrap/tab.js +135 -0
  14. data/app/assets/javascripts/bootstrap/tooltip.js +386 -0
  15. data/app/assets/javascripts/bootstrap/transition.js +56 -0
  16. data/app/assets/javascripts/publish_my_data/grid/10_data-loader.js +142 -0
  17. data/app/assets/javascripts/publish_my_data/grid/20_cube-grid.js +512 -0
  18. data/app/assets/javascripts/publish_my_data/grid/30_cube-dimension.js +77 -0
  19. data/app/assets/javascripts/publish_my_data/grid/40_cube-dimension-dropdown.js +87 -0
  20. data/app/assets/javascripts/publish_my_data/grid/45_cube-dimension-label.js +58 -0
  21. data/app/assets/javascripts/publish_my_data/grid/50_cube-dimensions-controls.js +336 -0
  22. data/app/assets/javascripts/publish_my_data/grid/60_dataset_cube_grid.js +187 -0
  23. data/app/assets/javascripts/publish_my_data/grid/70_sparql_results_grid.js +135 -0
  24. data/app/assets/javascripts/publish_my_data/select_text.js +27 -0
  25. data/app/assets/javascripts/publish_my_data.js +3 -0
  26. data/app/assets/javascripts/slick_grid/10_event-drag.js +402 -0
  27. data/app/assets/javascripts/slick_grid/20_slick-core.js +458 -0
  28. data/app/assets/javascripts/slick_grid/30_slick-grid.js +3295 -0
  29. data/app/assets/stylesheets/bootstrap/_alerts.scss +67 -0
  30. data/app/assets/stylesheets/bootstrap/_badges.scss +51 -0
  31. data/app/assets/stylesheets/bootstrap/_breadcrumbs.scss +23 -0
  32. data/app/assets/stylesheets/bootstrap/_button-groups.scss +248 -0
  33. data/app/assets/stylesheets/bootstrap/_buttons.scss +160 -0
  34. data/app/assets/stylesheets/bootstrap/_carousel.scss +209 -0
  35. data/app/assets/stylesheets/bootstrap/_close.scss +33 -0
  36. data/app/assets/stylesheets/bootstrap/_code.scss +56 -0
  37. data/app/assets/stylesheets/bootstrap/_component-animations.scss +29 -0
  38. data/app/assets/stylesheets/bootstrap/_dropdowns.scss +194 -0
  39. data/app/assets/stylesheets/bootstrap/_forms.scss +350 -0
  40. data/app/assets/stylesheets/bootstrap/_glyphicons.scss +232 -0
  41. data/app/assets/stylesheets/bootstrap/_grid.scss +346 -0
  42. data/app/assets/stylesheets/bootstrap/_input-groups.scss +127 -0
  43. data/app/assets/stylesheets/bootstrap/_jumbotron.scss +40 -0
  44. data/app/assets/stylesheets/bootstrap/_labels.scss +58 -0
  45. data/app/assets/stylesheets/bootstrap/_list-group.scss +88 -0
  46. data/app/assets/stylesheets/bootstrap/_media.scss +56 -0
  47. data/app/assets/stylesheets/bootstrap/_mixins.scss +728 -0
  48. data/app/assets/stylesheets/bootstrap/_modals.scss +145 -0
  49. data/app/assets/stylesheets/bootstrap/_navbar.scss +625 -0
  50. data/app/assets/stylesheets/bootstrap/_navs.scss +229 -0
  51. data/app/assets/stylesheets/bootstrap/_normalize.scss +396 -0
  52. data/app/assets/stylesheets/bootstrap/_pager.scss +55 -0
  53. data/app/assets/stylesheets/bootstrap/_pagination.scss +83 -0
  54. data/app/assets/stylesheets/bootstrap/_panels.scss +148 -0
  55. data/app/assets/stylesheets/bootstrap/_popovers.scss +133 -0
  56. data/app/assets/stylesheets/bootstrap/_print.scss +100 -0
  57. data/app/assets/stylesheets/bootstrap/_progress-bars.scss +95 -0
  58. data/app/assets/stylesheets/bootstrap/_responsive-utilities.scss +209 -0
  59. data/app/assets/stylesheets/bootstrap/_scaffolding.scss +130 -0
  60. data/app/assets/stylesheets/bootstrap/_tables.scss +236 -0
  61. data/app/assets/stylesheets/bootstrap/_theme.scss +232 -0
  62. data/app/assets/stylesheets/bootstrap/_thumbnails.scss +31 -0
  63. data/app/assets/stylesheets/bootstrap/_tooltip.scss +95 -0
  64. data/app/assets/stylesheets/bootstrap/_type.scss +238 -0
  65. data/app/assets/stylesheets/bootstrap/_utilities.scss +42 -0
  66. data/app/assets/stylesheets/bootstrap/_variables.scss +620 -0
  67. data/app/assets/stylesheets/bootstrap/_wells.scss +29 -0
  68. data/app/assets/stylesheets/bootstrap/bootstrap.scss +59 -0
  69. data/app/assets/stylesheets/publish_my_data/core.scss +244 -0
  70. data/app/assets/stylesheets/publish_my_data/data_grid.scss +103 -0
  71. data/app/assets/stylesheets/publish_my_data/variables.scss +1 -0
  72. data/app/assets/stylesheets/{publish_my_data.css → publish_my_data.scss} +13 -2
  73. data/app/assets/stylesheets/slick_grid/slick_grid.scss +155 -0
  74. data/app/assets/stylesheets/slick_grid/slick_grid_default_theme.scss +97 -0
  75. data/app/controllers/concerns/publish_my_data/data_cube.rb +42 -0
  76. data/app/controllers/publish_my_data/data_cube/dimensions_controller.rb +58 -0
  77. data/app/controllers/publish_my_data/data_cube/observations_controller.rb +54 -0
  78. data/app/controllers/publish_my_data/datasets_controller.rb +0 -11
  79. data/app/controllers/publish_my_data/example_resources_controller.rb +11 -0
  80. data/app/controllers/publish_my_data/home_controller.rb +4 -0
  81. data/app/controllers/publish_my_data/information_resources_controller.rb +0 -13
  82. data/app/helpers/publish_my_data/application_helper.rb +66 -0
  83. data/app/helpers/publish_my_data/crumb_helper.rb +61 -0
  84. data/app/helpers/publish_my_data/datasets_helper.rb +31 -0
  85. data/app/helpers/publish_my_data/resources_helper.rb +24 -0
  86. data/app/models/concerns/publish_my_data/cube_results.rb +51 -0
  87. data/app/models/concerns/publish_my_data/dataset_powers.rb +13 -0
  88. data/app/models/publish_my_data/data_cube/cube.rb +358 -0
  89. data/app/models/publish_my_data/data_cube/dimension.rb +58 -0
  90. data/app/models/publish_my_data/vocabulary.rb +0 -4
  91. data/app/views/layouts/publish_my_data/application.html.haml +18 -0
  92. data/app/views/layouts/publish_my_data/error.html.haml +21 -0
  93. data/app/views/publish_my_data/classes/show.html.haml +28 -0
  94. data/app/views/publish_my_data/concept_schemes/show.html.haml +79 -0
  95. data/app/views/publish_my_data/concepts/show.html.haml +28 -0
  96. data/app/views/publish_my_data/data_cube/_controls.html.haml +19 -0
  97. data/app/views/publish_my_data/data_cube/_grid.html.haml +37 -0
  98. data/app/views/publish_my_data/datasets/_example_resources.html.haml +47 -0
  99. data/app/views/publish_my_data/datasets/_types_table.html.erb +33 -0
  100. data/app/views/publish_my_data/datasets/index.html.haml +32 -0
  101. data/app/views/publish_my_data/datasets/show.html.haml +186 -0
  102. data/app/views/publish_my_data/errors/not_found.html.haml +18 -0
  103. data/app/views/publish_my_data/errors/response_too_large.html.haml +16 -0
  104. data/app/views/publish_my_data/errors/timeout.html.haml +16 -0
  105. data/app/views/publish_my_data/errors/uncaught.html.haml +16 -0
  106. data/app/views/publish_my_data/example_resources/index.js.erb +1 -0
  107. data/app/views/publish_my_data/home/accessibility.html.haml +1 -0
  108. data/app/views/publish_my_data/home/docs.html.haml +1 -0
  109. data/app/views/publish_my_data/home/home.html.haml +5 -0
  110. data/app/views/publish_my_data/home/privacy.html.haml +1 -0
  111. data/app/views/publish_my_data/ontologies/show.html.haml +100 -0
  112. data/app/views/publish_my_data/properties/show.html.haml +28 -0
  113. data/app/views/publish_my_data/resources/_resource_data.html.haml +16 -0
  114. data/app/views/publish_my_data/resources/_sparql_section.html.haml +22 -0
  115. data/app/views/publish_my_data/resources/index.html.haml +37 -0
  116. data/app/views/publish_my_data/resources/show.html.haml +36 -0
  117. data/app/views/publish_my_data/shared/_browser_warning.html.haml +4 -0
  118. data/app/views/publish_my_data/shared/_deprecation_notice.html.haml +8 -0
  119. data/app/views/publish_my_data/shared/_footer.html.haml +11 -0
  120. data/app/views/publish_my_data/shared/_google_analytics.html.haml +11 -0
  121. data/app/views/publish_my_data/shared/_logo.html.haml +1 -0
  122. data/app/views/publish_my_data/shared/_meta_title.html.haml +2 -0
  123. data/app/views/publish_my_data/sparql/_form.html.haml +28 -0
  124. data/app/views/publish_my_data/sparql/_formats_dropdown.html.haml +11 -0
  125. data/app/views/publish_my_data/sparql/endpoint.html.haml +125 -0
  126. data/app/views/publish_my_data/sparql/formats_dropdowns/_ask.html.haml +7 -0
  127. data/app/views/publish_my_data/sparql/formats_dropdowns/_construct.html.haml +7 -0
  128. data/app/views/publish_my_data/sparql/formats_dropdowns/_describe.html.haml +1 -0
  129. data/app/views/publish_my_data/sparql/formats_dropdowns/_select.html.haml +9 -0
  130. data/app/views/publish_my_data/themes/index.html.haml +30 -0
  131. data/app/views/publish_my_data/themes/show.html.haml +43 -0
  132. data/config/routes.rb +20 -5
  133. data/lib/publish_my_data/version.rb +1 -1
  134. data/lib/publish_my_data.rb +7 -12
  135. data/spec/controllers/publish_my_data/datasets_controller_spec.rb +0 -75
  136. data/spec/controllers/publish_my_data/information_resources_controller_spec.rb +2 -11
  137. data/spec/dummy/config/environments/development.rb +0 -4
  138. data/spec/dummy/config/environments/test.rb +0 -4
  139. data/spec/dummy/log/test.log +62962 -0
  140. data/spec/dummy/tmp/cache/sass/e509ccd4d793d2c162d70125e9f3656b6c28f357/(__TEMPLATE__)c +0 -0
  141. data/spec/features/running_a_sparql_query_spec.rb +1 -1
  142. data/spec/features/uri_dereferencing_spec.rb +1 -1
  143. metadata +200 -58
  144. data/app/controllers/concerns/publish_my_data/data_download.rb +0 -22
  145. data/app/controllers/publish_my_data/vocabularies_controller.rb +0 -18
  146. data/app/views/layouts/publish_my_data/application.html.erb +0 -13
  147. data/app/views/layouts/publish_my_data/error.html.erb +0 -13
  148. data/app/views/publish_my_data/classes/show.html.erb +0 -3
  149. data/app/views/publish_my_data/concept_schemes/_concepts.html.erb +0 -18
  150. data/app/views/publish_my_data/concept_schemes/show.html.erb +0 -11
  151. data/app/views/publish_my_data/concepts/show.html.erb +0 -3
  152. data/app/views/publish_my_data/datasets/index.html.erb +0 -20
  153. data/app/views/publish_my_data/datasets/show.html.erb +0 -18
  154. data/app/views/publish_my_data/errors/not_found.html.erb +0 -1
  155. data/app/views/publish_my_data/errors/response_too_large.html.erb +0 -1
  156. data/app/views/publish_my_data/errors/timeout.html.erb +0 -1
  157. data/app/views/publish_my_data/errors/uncaught.html.erb +0 -6
  158. data/app/views/publish_my_data/ontologies/show.html.erb +0 -17
  159. data/app/views/publish_my_data/properties/show.html.erb +0 -3
  160. data/app/views/publish_my_data/resources/_predicates_table.html.erb +0 -30
  161. data/app/views/publish_my_data/resources/_predicates_table_head.html.erb +0 -6
  162. data/app/views/publish_my_data/resources/_resource_formats.html.erb +0 -4
  163. data/app/views/publish_my_data/resources/_summaries.html.erb +0 -18
  164. data/app/views/publish_my_data/resources/_uri_and_label.html.erb +0 -3
  165. data/app/views/publish_my_data/resources/index.html.erb +0 -40
  166. data/app/views/publish_my_data/resources/show.html.erb +0 -3
  167. data/app/views/publish_my_data/sparql/_ask_formats.html.erb +0 -3
  168. data/app/views/publish_my_data/sparql/_construct_formats.html.erb +0 -3
  169. data/app/views/publish_my_data/sparql/_describe_formats.html.erb +0 -1
  170. data/app/views/publish_my_data/sparql/_error_message.html.erb +0 -3
  171. data/app/views/publish_my_data/sparql/_form.html.erb +0 -4
  172. data/app/views/publish_my_data/sparql/_formats.html.erb +0 -6
  173. data/app/views/publish_my_data/sparql/_pagination.html.erb +0 -6
  174. data/app/views/publish_my_data/sparql/_results.html.erb +0 -5
  175. data/app/views/publish_my_data/sparql/_results_data.html.erb +0 -4
  176. data/app/views/publish_my_data/sparql/_select_formats.html.erb +0 -3
  177. data/app/views/publish_my_data/sparql/endpoint.html.erb +0 -10
  178. data/app/views/publish_my_data/themes/index.html.erb +0 -13
  179. data/app/views/publish_my_data/themes/show.html.erb +0 -15
  180. data/config/initializers/20_s3_setup.rb +0 -4
  181. data/spec/controllers/publish_my_data/vocabularies_controller_spec.rb +0 -14
  182. data/spec/support/data_download.rb +0 -60
@@ -0,0 +1,625 @@
1
+ //
2
+ // Navbars
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Wrapper and base class
7
+ //
8
+ // Provide a static navbar from which we expand to create full-width, fixed, and
9
+ // other navbar variations.
10
+
11
+ .navbar {
12
+ position: relative;
13
+ z-index: $zindex-navbar;
14
+ min-height: $navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)
15
+ margin-bottom: $navbar-margin-bottom;
16
+ border: 1px solid transparent;
17
+
18
+ // Prevent floats from breaking the navbar
19
+ @include clearfix();
20
+
21
+ @media (min-width: $grid-float-breakpoint) {
22
+ border-radius: $navbar-border-radius;
23
+ }
24
+ }
25
+
26
+
27
+ // Navbar heading
28
+ //
29
+ // Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
30
+ // styling of responsive aspects.
31
+
32
+ .navbar-header {
33
+ @include clearfix();
34
+
35
+ @media (min-width: $grid-float-breakpoint) {
36
+ float: left;
37
+ }
38
+ }
39
+
40
+
41
+ // Navbar collapse (body)
42
+ //
43
+ // Group your navbar content into this for easy collapsing and expanding across
44
+ // various device sizes. By default, this content is collapsed when <768px, but
45
+ // will expand past that for a horizontal display.
46
+ //
47
+ // To start (on mobile devices) the navbar links, forms, and buttons are stacked
48
+ // vertically and include a `max-height` to overflow in case you have too much
49
+ // content for the user's viewport.
50
+
51
+ .navbar-collapse {
52
+ max-height: 340px;
53
+ overflow-x: visible;
54
+ padding-right: $navbar-padding-horizontal;
55
+ padding-left: $navbar-padding-horizontal;
56
+ border-top: 1px solid transparent;
57
+ box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
58
+ @include clearfix();
59
+ -webkit-overflow-scrolling: touch;
60
+
61
+ &.in {
62
+ overflow-y: auto;
63
+ }
64
+
65
+ @media (min-width: $grid-float-breakpoint) {
66
+ width: auto;
67
+ border-top: 0;
68
+ box-shadow: none;
69
+
70
+ &.collapse {
71
+ display: block !important;
72
+ height: auto !important;
73
+ padding-bottom: 0; // Override default setting
74
+ overflow: visible !important;
75
+ }
76
+
77
+ &.in {
78
+ overflow-y: visible;
79
+ }
80
+
81
+ // Account for first and last children spacing
82
+ .navbar-nav.navbar-left:first-child {
83
+ margin-left: -$navbar-padding-horizontal;
84
+ }
85
+ .navbar-nav.navbar-right:last-child {
86
+ margin-right: -$navbar-padding-horizontal;
87
+ }
88
+ .navbar-text:last-child {
89
+ margin-right: 0;
90
+ }
91
+ }
92
+ }
93
+
94
+
95
+ // Both navbar header and collapse
96
+ //
97
+ // When a container is present, change the behavior of the header and collapse.
98
+
99
+ .container > .navbar-header,
100
+ .container > .navbar-collapse {
101
+ margin-right: -$navbar-padding-horizontal;
102
+ margin-left: -$navbar-padding-horizontal;
103
+
104
+ @media (min-width: $grid-float-breakpoint) {
105
+ margin-right: 0;
106
+ margin-left: 0;
107
+ }
108
+ }
109
+
110
+
111
+ //
112
+ // Navbar alignment options
113
+ //
114
+ // Display the navbar across the entirity of the page or fixed it to the top or
115
+ // bottom of the page.
116
+
117
+ // Static top (unfixed, but 100% wide) navbar
118
+ .navbar-static-top {
119
+ border-width: 0 0 1px;
120
+ @media (min-width: $grid-float-breakpoint) {
121
+ border-radius: 0;
122
+ }
123
+ }
124
+
125
+ // Fix the top/bottom navbars when screen real estate supports it
126
+ .navbar-fixed-top,
127
+ .navbar-fixed-bottom {
128
+ position: fixed;
129
+ right: 0;
130
+ left: 0;
131
+ border-width: 0 0 1px;
132
+
133
+ // Undo the rounded corners
134
+ @media (min-width: $grid-float-breakpoint) {
135
+ border-radius: 0;
136
+ }
137
+ }
138
+ .navbar-fixed-top {
139
+ z-index: $zindex-navbar-fixed;
140
+ top: 0;
141
+ }
142
+ .navbar-fixed-bottom {
143
+ bottom: 0;
144
+ margin-bottom: 0; // override .navbar defaults
145
+ }
146
+
147
+
148
+ // Brand/project name
149
+
150
+ .navbar-brand {
151
+ float: left;
152
+ padding: $navbar-padding-vertical $navbar-padding-horizontal;
153
+ font-size: $font-size-large;
154
+ line-height: $line-height-computed;
155
+ &:hover,
156
+ &:focus {
157
+ text-decoration: none;
158
+ }
159
+
160
+ @media (min-width: $grid-float-breakpoint) {
161
+ .navbar > .container & {
162
+ margin-left: -$navbar-padding-horizontal;
163
+ }
164
+ }
165
+ }
166
+
167
+
168
+ // Navbar toggle
169
+ //
170
+ // Custom button for toggling the `.navbar-collapse`, powered by the collapse
171
+ // JavaScript plugin.
172
+
173
+ .navbar-toggle {
174
+ position: relative;
175
+ float: right;
176
+ margin-right: $navbar-padding-horizontal;
177
+ padding: 9px 10px;
178
+ @include navbar-vertical-align(34px);
179
+ background-color: transparent;
180
+ border: 1px solid transparent;
181
+ border-radius: $border-radius-base;
182
+
183
+ // Bars
184
+ .icon-bar {
185
+ display: block;
186
+ width: 22px;
187
+ height: 2px;
188
+ border-radius: 1px;
189
+ }
190
+ .icon-bar + .icon-bar {
191
+ margin-top: 4px;
192
+ }
193
+
194
+ @media (min-width: $grid-float-breakpoint) {
195
+ display: none;
196
+ }
197
+ }
198
+
199
+
200
+ // Navbar nav links
201
+ //
202
+ // Builds on top of the `.nav` components with it's own modifier class to make
203
+ // the nav the full height of the horizontal nav (above 768px).
204
+
205
+ .navbar-nav {
206
+ margin: ($navbar-padding-vertical / 2) (-$navbar-padding-horizontal);
207
+
208
+ > li > a {
209
+ padding-top: 10px;
210
+ padding-bottom: 10px;
211
+ line-height: $line-height-computed;
212
+ }
213
+
214
+ @media (max-width: $screen-xs-max) {
215
+ // Dropdowns get custom display when collapsed
216
+ .open .dropdown-menu {
217
+ position: static;
218
+ float: none;
219
+ width: auto;
220
+ margin-top: 0;
221
+ background-color: transparent;
222
+ border: 0;
223
+ box-shadow: none;
224
+ > li > a,
225
+ .dropdown-header {
226
+ padding: 5px 15px 5px 25px;
227
+ }
228
+ > li > a {
229
+ line-height: $line-height-computed;
230
+ &:hover,
231
+ &:focus {
232
+ background-image: none;
233
+ }
234
+ }
235
+ }
236
+ }
237
+
238
+ // Uncollapse the nav
239
+ @media (min-width: $grid-float-breakpoint) {
240
+ float: left;
241
+ margin: 0;
242
+
243
+ > li {
244
+ float: left;
245
+ > a {
246
+ padding-top: (($navbar-height - $line-height-computed) / 2);
247
+ padding-bottom: (($navbar-height - $line-height-computed) / 2);
248
+ }
249
+ }
250
+ }
251
+
252
+ }
253
+
254
+
255
+ // Component alignment
256
+ //
257
+ // Repurpose the pull utilities as their own navbar utilities to avoid specifity
258
+ // issues with parents and chaining. Only do this when the navbar is uncollapsed
259
+ // though so that navbar contents properly stack and align in mobile.
260
+
261
+ @media (min-width: $grid-float-breakpoint) {
262
+ .navbar-left {
263
+ float: left !important;
264
+ }
265
+ .navbar-right {
266
+ float: right !important;
267
+ }
268
+ }
269
+
270
+
271
+ // Navbar form
272
+ //
273
+ // Extension of the `.form-inline` with some extra flavor for optimum display in
274
+ // our navbars.
275
+
276
+ .navbar-form {
277
+ margin-left: -$navbar-padding-horizontal;
278
+ margin-right: -$navbar-padding-horizontal;
279
+ padding: 10px $navbar-padding-horizontal;
280
+ border-top: 1px solid transparent;
281
+ border-bottom: 1px solid transparent;
282
+ $shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
283
+ @include box-shadow($shadow);
284
+
285
+ // Mixin behavior for optimum display
286
+ @extend .form-inline;
287
+
288
+ .form-group {
289
+ @media (max-width: $screen-xs-max) {
290
+ margin-bottom: 5px;
291
+ }
292
+ }
293
+
294
+ // Vertically center in expanded, horizontal navbar
295
+ @include navbar-vertical-align($input-height-base);
296
+
297
+ // Undo 100% width for pull classes
298
+ @media (min-width: $grid-float-breakpoint) {
299
+ width: auto;
300
+ border: 0;
301
+ margin-left: 0;
302
+ margin-right: 0;
303
+ padding-top: 0;
304
+ padding-bottom: 0;
305
+ @include box-shadow(none);
306
+ }
307
+ }
308
+
309
+
310
+ // Dropdown menus
311
+
312
+ // Menu position and menu carets
313
+ .navbar-nav > li > .dropdown-menu {
314
+ margin-top: 0;
315
+ @include border-top-radius(0);
316
+ }
317
+ // Menu position and menu caret support for dropups via extra dropup class
318
+ .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
319
+ @include border-bottom-radius(0);
320
+ }
321
+
322
+ // Right aligned menus need alt position
323
+ .navbar-nav.pull-right > li > .dropdown-menu,
324
+ .navbar-nav > li > .dropdown-menu.pull-right {
325
+ left: auto;
326
+ right: 0;
327
+ }
328
+
329
+
330
+ // Buttons in navbars
331
+ //
332
+ // Vertically center a button within a navbar (when *not* in a form).
333
+
334
+ .navbar-btn {
335
+ @include navbar-vertical-align($input-height-base);
336
+ }
337
+
338
+
339
+ // Text in navbars
340
+ //
341
+ // Add a class to make any element properly align itself vertically within the navbars.
342
+
343
+ .navbar-text {
344
+ float: left;
345
+ @include navbar-vertical-align($line-height-computed);
346
+
347
+ @media (min-width: $grid-float-breakpoint) {
348
+ margin-left: $navbar-padding-horizontal;
349
+ margin-right: $navbar-padding-horizontal;
350
+ }
351
+ }
352
+
353
+ // Alternate navbars
354
+ // --------------------------------------------------
355
+
356
+ // Default navbar
357
+ .navbar-default {
358
+ background-color: $navbar-default-bg;
359
+ border-color: $navbar-default-border;
360
+
361
+ .navbar-brand {
362
+ color: $navbar-default-brand-color;
363
+ &:hover,
364
+ &:focus {
365
+ color: $navbar-default-brand-hover-color;
366
+ background-color: $navbar-default-brand-hover-bg;
367
+ }
368
+ }
369
+
370
+ .navbar-text {
371
+ color: $navbar-default-color;
372
+ }
373
+
374
+ .navbar-nav {
375
+ > li > a {
376
+ color: $navbar-default-link-color;
377
+
378
+ &:hover,
379
+ &:focus {
380
+ color: $navbar-default-link-hover-color;
381
+ background-color: $navbar-default-link-hover-bg;
382
+ }
383
+ }
384
+ > .active > a {
385
+ &,
386
+ &:hover,
387
+ &:focus {
388
+ color: $navbar-default-link-active-color;
389
+ background-color: $navbar-default-link-active-bg;
390
+ }
391
+ }
392
+ > .disabled > a {
393
+ &,
394
+ &:hover,
395
+ &:focus {
396
+ color: $navbar-default-link-disabled-color;
397
+ background-color: $navbar-default-link-disabled-bg;
398
+ }
399
+ }
400
+ }
401
+
402
+ .navbar-toggle {
403
+ border-color: $navbar-default-toggle-border-color;
404
+ &:hover,
405
+ &:focus {
406
+ background-color: $navbar-default-toggle-hover-bg;
407
+ }
408
+ .icon-bar {
409
+ background-color: $navbar-default-toggle-icon-bar-bg;
410
+ }
411
+ }
412
+
413
+ .navbar-collapse,
414
+ .navbar-form {
415
+ border-color: darken($navbar-default-bg, 7%);
416
+ }
417
+
418
+ // Dropdown menu items and carets
419
+ .navbar-nav {
420
+ // Caret should match text color on hover
421
+ > .dropdown > a:hover .caret,
422
+ > .dropdown > a:focus .caret {
423
+ border-top-color: $navbar-default-link-hover-color;
424
+ border-bottom-color: $navbar-default-link-hover-color;
425
+ }
426
+
427
+ // Remove background color from open dropdown
428
+ > .open > a {
429
+ &,
430
+ &:hover,
431
+ &:focus {
432
+ background-color: $navbar-default-link-active-bg;
433
+ color: $navbar-default-link-active-color;
434
+ .caret {
435
+ border-top-color: $navbar-default-link-active-color;
436
+ border-bottom-color: $navbar-default-link-active-color;
437
+ }
438
+ }
439
+ }
440
+ > .dropdown > a .caret {
441
+ border-top-color: $navbar-default-link-color;
442
+ border-bottom-color: $navbar-default-link-color;
443
+ }
444
+
445
+
446
+ @media (max-width: $screen-xs-max) {
447
+ // Dropdowns get custom display when collapsed
448
+ .open .dropdown-menu {
449
+ > li > a {
450
+ color: $navbar-default-link-color;
451
+ &:hover,
452
+ &:focus {
453
+ color: $navbar-default-link-hover-color;
454
+ background-color: $navbar-default-link-hover-bg;
455
+ }
456
+ }
457
+ > .active > a {
458
+ &,
459
+ &:hover,
460
+ &:focus {
461
+ color: $navbar-default-link-active-color;
462
+ background-color: $navbar-default-link-active-bg;
463
+ }
464
+ }
465
+ > .disabled > a {
466
+ &,
467
+ &:hover,
468
+ &:focus {
469
+ color: $navbar-default-link-disabled-color;
470
+ background-color: $navbar-default-link-disabled-bg;
471
+ }
472
+ }
473
+ }
474
+ }
475
+ }
476
+
477
+
478
+ // Links in navbars
479
+ //
480
+ // Add a class to ensure links outside the navbar nav are colored correctly.
481
+
482
+ .navbar-link {
483
+ color: $navbar-default-link-color;
484
+ &:hover {
485
+ color: $navbar-default-link-hover-color;
486
+ }
487
+ }
488
+
489
+ }
490
+
491
+ // Inverse navbar
492
+
493
+ .navbar-inverse {
494
+ background-color: $navbar-inverse-bg;
495
+ border-color: $navbar-inverse-border;
496
+
497
+ .navbar-brand {
498
+ color: $navbar-inverse-brand-color;
499
+ &:hover,
500
+ &:focus {
501
+ color: $navbar-inverse-brand-hover-color;
502
+ background-color: $navbar-inverse-brand-hover-bg;
503
+ }
504
+ }
505
+
506
+ .navbar-text {
507
+ color: $navbar-inverse-color;
508
+ }
509
+
510
+ .navbar-nav {
511
+ > li > a {
512
+ color: $navbar-inverse-link-color;
513
+
514
+ &:hover,
515
+ &:focus {
516
+ color: $navbar-inverse-link-hover-color;
517
+ background-color: $navbar-inverse-link-hover-bg;
518
+ }
519
+ }
520
+ > .active > a {
521
+ &,
522
+ &:hover,
523
+ &:focus {
524
+ color: $navbar-inverse-link-active-color;
525
+ background-color: $navbar-inverse-link-active-bg;
526
+ }
527
+ }
528
+ > .disabled > a {
529
+ &,
530
+ &:hover,
531
+ &:focus {
532
+ color: $navbar-inverse-link-disabled-color;
533
+ background-color: $navbar-inverse-link-disabled-bg;
534
+ }
535
+ }
536
+ }
537
+
538
+ // Darken the responsive nav toggle
539
+ .navbar-toggle {
540
+ border-color: $navbar-inverse-toggle-border-color;
541
+ &:hover,
542
+ &:focus {
543
+ background-color: $navbar-inverse-toggle-hover-bg;
544
+ }
545
+ .icon-bar {
546
+ background-color: $navbar-inverse-toggle-icon-bar-bg;
547
+ }
548
+ }
549
+
550
+ .navbar-collapse,
551
+ .navbar-form {
552
+ border-color: darken($navbar-inverse-bg, 7%);
553
+ }
554
+
555
+ // Dropdowns
556
+ .navbar-nav {
557
+ > .open > a {
558
+ &,
559
+ &:hover,
560
+ &:focus {
561
+ background-color: $navbar-inverse-link-active-bg;
562
+ color: $navbar-inverse-link-active-color;
563
+ }
564
+ }
565
+ > .dropdown > a:hover .caret {
566
+ border-top-color: $navbar-inverse-link-hover-color;
567
+ border-bottom-color: $navbar-inverse-link-hover-color;
568
+ }
569
+ > .dropdown > a .caret {
570
+ border-top-color: $navbar-inverse-link-color;
571
+ border-bottom-color: $navbar-inverse-link-color;
572
+ }
573
+ > .open > a {
574
+ &,
575
+ &:hover,
576
+ &:focus {
577
+ .caret {
578
+ border-top-color: $navbar-inverse-link-active-color;
579
+ border-bottom-color: $navbar-inverse-link-active-color;
580
+ }
581
+ }
582
+ }
583
+
584
+ @media (max-width: $screen-xs-max) {
585
+ // Dropdowns get custom display
586
+ .open .dropdown-menu {
587
+ > .dropdown-header {
588
+ border-color: $navbar-inverse-border;
589
+ }
590
+ > li > a {
591
+ color: $navbar-inverse-link-color;
592
+ &:hover,
593
+ &:focus {
594
+ color: $navbar-inverse-link-hover-color;
595
+ background-color: $navbar-inverse-link-hover-bg;
596
+ }
597
+ }
598
+ > .active > a {
599
+ &,
600
+ &:hover,
601
+ &:focus {
602
+ color: $navbar-inverse-link-active-color;
603
+ background-color: $navbar-inverse-link-active-bg;
604
+ }
605
+ }
606
+ > .disabled > a {
607
+ &,
608
+ &:hover,
609
+ &:focus {
610
+ color: $navbar-inverse-link-disabled-color;
611
+ background-color: $navbar-inverse-link-disabled-bg;
612
+ }
613
+ }
614
+ }
615
+ }
616
+ }
617
+
618
+ .navbar-link {
619
+ color: $navbar-inverse-link-color;
620
+ &:hover {
621
+ color: $navbar-inverse-link-hover-color;
622
+ }
623
+ }
624
+
625
+ }