blacklight 4.9.0 → 5.0.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -1
  3. data/.travis.yml +22 -12
  4. data/Gemfile +3 -40
  5. data/LICENSE +1 -2
  6. data/README.md +1 -2
  7. data/Rakefile +0 -4
  8. data/VERSION +1 -1
  9. data/app/assets/images/blacklight/logo.png +0 -0
  10. data/app/assets/javascripts/blacklight/ajax_modal.js +190 -0
  11. data/app/assets/javascripts/blacklight/blacklight.js +7 -17
  12. data/app/assets/javascripts/blacklight/checkbox_submit.js +1 -1
  13. data/app/assets/stylesheets/blacklight/{_blacklight_base.scss → _blacklight_base.css.scss} +0 -21
  14. data/app/assets/stylesheets/blacklight/_bookmark.css.scss +4 -0
  15. data/app/assets/stylesheets/blacklight/_catalog.css.scss +192 -0
  16. data/app/assets/stylesheets/blacklight/_facets.css.scss +141 -0
  17. data/app/assets/stylesheets/blacklight/{_group.scss → _group.css.scss} +1 -1
  18. data/app/assets/stylesheets/blacklight/_header.css.scss +44 -0
  19. data/app/assets/stylesheets/blacklight/_layout.css.scss +5 -0
  20. data/app/assets/stylesheets/blacklight/{_modal.scss → _modal.css.scss} +7 -7
  21. data/app/assets/stylesheets/blacklight/_search_history.css.scss +20 -0
  22. data/app/assets/stylesheets/blacklight/{blacklight.scss → blacklight.css.scss} +0 -0
  23. data/app/assets/stylesheets/blacklight/blacklight_defaults.css.scss +14 -0
  24. data/app/controllers/bookmarks_controller.rb +0 -4
  25. data/app/controllers/feedback_controller.rb +0 -4
  26. data/app/helpers/blacklight/blacklight_helper_behavior.rb +45 -155
  27. data/app/helpers/blacklight/catalog_helper_behavior.rb +8 -41
  28. data/app/helpers/blacklight/facets_helper_behavior.rb +20 -43
  29. data/app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb +2 -9
  30. data/app/helpers/blacklight/render_constraints_helper_behavior.rb +9 -14
  31. data/app/helpers/blacklight/search_history_constraints_helper_behavior.rb +6 -6
  32. data/app/views/_flash_msg.html.erb +9 -2
  33. data/app/views/_user_util_links.html.erb +29 -15
  34. data/app/views/bookmarks/_tools.html.erb +4 -7
  35. data/app/views/bookmarks/index.html.erb +3 -2
  36. data/app/views/catalog/_citation.html.erb +1 -1
  37. data/app/views/catalog/_constraints.html.erb +1 -1
  38. data/app/views/catalog/_constraints_element.html.erb +12 -8
  39. data/app/views/catalog/_did_you_mean.html.erb +2 -2
  40. data/app/views/catalog/_document_header.html.erb +3 -3
  41. data/app/views/catalog/_email_form.html.erb +10 -10
  42. data/app/views/catalog/_facet_layout.html.erb +11 -3
  43. data/app/views/catalog/_facet_limit.html.erb +7 -7
  44. data/app/views/catalog/_facet_pagination.html.erb +8 -7
  45. data/app/views/catalog/_facet_pivot.html.erb +3 -1
  46. data/app/views/catalog/_facets.html.erb +12 -9
  47. data/app/views/catalog/_paginate_compact.html.erb +1 -7
  48. data/app/views/catalog/_per_page_widget.html.erb +5 -8
  49. data/app/views/catalog/_previous_next_doc.html.erb +11 -9
  50. data/app/views/catalog/_refworks_form.html.erb +3 -4
  51. data/app/views/catalog/_results_pagination.html.erb +1 -1
  52. data/app/views/catalog/_search_form.html.erb +16 -14
  53. data/app/views/catalog/_show_sidebar.html.erb +7 -9
  54. data/app/views/catalog/_show_tools.html.erb +13 -7
  55. data/app/views/catalog/_sms_form.html.erb +8 -8
  56. data/app/views/catalog/_sort_and_per_page.html.erb +4 -6
  57. data/app/views/catalog/_sort_widget.html.erb +5 -6
  58. data/app/views/catalog/email.html.erb +1 -1
  59. data/app/views/catalog/facet.html.erb +2 -8
  60. data/app/views/catalog/index.html.erb +11 -6
  61. data/app/views/catalog/show.html.erb +5 -5
  62. data/app/views/catalog/sms.html.erb +1 -1
  63. data/app/views/catalog/sms_sent.html.erb +1 -1
  64. data/app/views/feedback/complete.html.erb +2 -2
  65. data/app/views/feedback/show.html.erb +1 -1
  66. data/app/views/kaminari/blacklight/_paginator.html.erb +1 -1
  67. data/app/views/kaminari/blacklight_compact/_paginator.html.erb +25 -5
  68. data/app/views/layouts/blacklight.html.erb +23 -23
  69. data/app/views/saved_searches/index.html.erb +2 -2
  70. data/app/views/search_history/index.html.erb +5 -7
  71. data/app/views/shared/_header_navbar.html.erb +23 -23
  72. data/blacklight.gemspec +10 -13
  73. data/config/locales/blacklight.en.yml +1 -12
  74. data/config/locales/blacklight.fr.yml +1 -12
  75. data/gemfiles/rails3.gemfile +21 -0
  76. data/gemfiles/rails4.gemfile +20 -0
  77. data/lib/blacklight.rb +0 -8
  78. data/lib/blacklight/base.rb +0 -2
  79. data/lib/blacklight/catalog.rb +6 -32
  80. data/lib/blacklight/catalog/search_context.rb +8 -48
  81. data/lib/blacklight/configurable.rb +2 -1
  82. data/lib/blacklight/configuration.rb +1 -2
  83. data/lib/blacklight/configuration/facet_field.rb +0 -2
  84. data/lib/blacklight/engine.rb +3 -3
  85. data/lib/blacklight/legacy_controller_methods.rb +1 -64
  86. data/lib/blacklight/rails/routes.rb +17 -0
  87. data/lib/blacklight/routes.rb +46 -40
  88. data/lib/blacklight/solr.rb +1 -0
  89. data/lib/blacklight/solr/document.rb +21 -42
  90. data/lib/blacklight/solr/facet_paginator.rb +30 -54
  91. data/lib/blacklight/solr/request.rb +45 -0
  92. data/lib/blacklight/solr_helper.rb +16 -53
  93. data/lib/blacklight/solr_response.rb +0 -6
  94. data/lib/blacklight/user.rb +2 -7
  95. data/lib/blacklight/utils.rb +1 -9
  96. data/lib/generators/blacklight/assets_generator.rb +0 -14
  97. data/lib/generators/blacklight/blacklight_generator.rb +17 -14
  98. data/lib/generators/blacklight/templates/blacklight.css.scss +3 -0
  99. data/lib/generators/blacklight/templates/catalog_controller.rb +4 -1
  100. data/lib/railties/blacklight.rake +3 -1
  101. data/solr/sample_solr_documents.yml +641 -0
  102. data/spec/controllers/application_controller_spec.rb +5 -21
  103. data/spec/controllers/bookmarks_controller_spec.rb +11 -11
  104. data/spec/controllers/catalog_controller_spec.rb +122 -119
  105. data/spec/controllers/search_history_controller_spec.rb +8 -8
  106. data/spec/features/alternate_controller_spec.rb +5 -5
  107. data/spec/features/facets_spec.rb +9 -0
  108. data/spec/features/record_view_spec.rb +1 -1
  109. data/spec/features/search_filters_spec.rb +97 -41
  110. data/spec/features/search_results_spec.rb +14 -17
  111. data/spec/features/search_sort_spec.rb +1 -1
  112. data/spec/helpers/blacklight_helper_spec.rb +170 -285
  113. data/spec/helpers/catalog_helper_spec.rb +57 -96
  114. data/spec/helpers/facets_helper_spec.rb +130 -152
  115. data/spec/helpers/hash_as_hidden_fields_spec.rb +9 -15
  116. data/spec/helpers/render_constraints_helper_spec.rb +5 -5
  117. data/spec/helpers/search_history_constraints_helper_spec.rb +21 -21
  118. data/spec/lib/blacklight/routes_spec.rb +25 -0
  119. data/spec/lib/blacklight/solr/request_spec.rb +37 -0
  120. data/spec/lib/blacklight/solr_response/group_response_spec.rb +2 -2
  121. data/spec/lib/blacklight_configurable_spec.rb +16 -16
  122. data/spec/lib/blacklight_configuration_spec.rb +132 -132
  123. data/spec/lib/blacklight_email_spec.rb +4 -4
  124. data/spec/lib/blacklight_sms_spec.rb +4 -4
  125. data/spec/lib/blacklight_solr_document_dublin_core_spec.rb +6 -6
  126. data/spec/lib/blacklight_solr_document_more_like_this_spec.rb +4 -4
  127. data/spec/lib/blacklight_solr_document_spec.rb +36 -36
  128. data/spec/lib/blacklight_solr_response_spec.rb +43 -48
  129. data/spec/lib/blacklight_spec.rb +6 -14
  130. data/spec/lib/blacklight_user_spec.rb +5 -9
  131. data/spec/lib/facet_paginator_spec.rb +59 -51
  132. data/spec/lib/search_fields_spec.rb +13 -13
  133. data/spec/lib/solr_helper_spec.rb +258 -304
  134. data/spec/lib/tasks/blacklight_task_spec.rb +1 -1
  135. data/spec/lib/utils_spec.rb +16 -46
  136. data/spec/models/bookmark_spec.rb +6 -7
  137. data/spec/models/record_mailer_spec.rb +16 -16
  138. data/spec/models/search_spec.rb +8 -8
  139. data/spec/models/solr_document_spec.rb +6 -77
  140. data/spec/routing/catalog_routing_spec.rb +16 -10
  141. data/spec/spec_helper.rb +7 -7
  142. data/spec/support/assert_difference.rb +2 -2
  143. data/spec/support/features.rb +0 -11
  144. data/spec/support/features/session_helpers.rb +3 -3
  145. data/spec/support/include_text.rb +2 -2
  146. data/spec/test_app_templates/Gemfile.extra +10 -2
  147. data/spec/test_app_templates/lib/generators/test_app_generator.rb +12 -18
  148. data/spec/views/catalog/_constraints_element.html.erb_spec.rb +13 -13
  149. data/spec/views/catalog/_document.html.erb_spec.rb +1 -1
  150. data/spec/views/catalog/_document_list.html.erb_spec.rb +1 -1
  151. data/spec/views/catalog/_facets.html.erb_spec.rb +13 -14
  152. data/spec/views/catalog/_index_default.erb_spec.rb +21 -21
  153. data/spec/views/catalog/_search_header.erb_spec.rb +1 -1
  154. data/spec/views/catalog/_show_default.erb_spec.rb +21 -21
  155. data/spec/views/catalog/_show_sidebar.erb_spec.rb +7 -7
  156. data/spec/views/catalog/_thumbnail_default.erb_spec.rb +3 -3
  157. data/spec/views/catalog/index.atom.builder_spec.rb +29 -29
  158. data/spec/views/catalog/index.html.erb_spec.rb +6 -7
  159. data/tasks/blacklight.rake +8 -2
  160. metadata +84 -180
  161. data/app/assets/javascripts/blacklight/css_dropdowns.js +0 -10
  162. data/app/assets/javascripts/blacklight/facet_expand_contract.js +0 -41
  163. data/app/assets/javascripts/blacklight/lightbox_dialog.js +0 -70
  164. data/app/assets/javascripts/blacklight/select_submit.js +0 -27
  165. data/app/assets/javascripts/blacklight/zebra_stripe.js +0 -13
  166. data/app/assets/javascripts/improved-modal/bootstrap-modal.js +0 -355
  167. data/app/assets/javascripts/improved-modal/bootstrap-modalmanager.js +0 -370
  168. data/app/assets/stylesheets/blacklight/_bookmark.scss +0 -33
  169. data/app/assets/stylesheets/blacklight/_catalog.scss +0 -255
  170. data/app/assets/stylesheets/blacklight/_dropdown.scss +0 -57
  171. data/app/assets/stylesheets/blacklight/_facets.scss +0 -197
  172. data/app/assets/stylesheets/blacklight/_footer.scss +0 -0
  173. data/app/assets/stylesheets/blacklight/_header.scss +0 -53
  174. data/app/assets/stylesheets/blacklight/_layout.scss +0 -10
  175. data/app/assets/stylesheets/blacklight/_mixins.scss +0 -0
  176. data/app/assets/stylesheets/blacklight/_print.scss +0 -0
  177. data/app/assets/stylesheets/blacklight/_responsive.scss +0 -3
  178. data/app/assets/stylesheets/blacklight/_search_history.scss +0 -42
  179. data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +0 -49
  180. data/app/assets/stylesheets/blacklight/responsive_partials/_catalog.scss +0 -5
  181. data/app/assets/stylesheets/blacklight/responsive_partials/_facets.scss +0 -37
  182. data/app/assets/stylesheets/blacklight/responsive_partials/_header.scss +0 -30
  183. data/app/assets/stylesheets/improved-modal/bootstrap-modal.css +0 -217
  184. data/app/helpers/blacklight/html_head_helper_behavior.rb +0 -118
  185. data/app/helpers/html_head_helper.rb +0 -3
  186. data/app/views/catalog/_bookmark_form.html.erb +0 -7
  187. data/app/views/catalog/_marc_view.html.erb +0 -32
  188. data/app/views/catalog/librarian_view.html.erb +0 -10
  189. data/config/routes.rb +0 -17
  190. data/doc/Atom-Responses.md +0 -90
  191. data/doc/Blacklight-3.0-Release-Notes-And-Upgrade-Guide.md +0 -107
  192. data/doc/Blacklight-3.2-Release-Notes-and-Upgrade-Guide.md +0 -191
  193. data/doc/Blacklight-3.3-release-notes-and-upgrade-guide.md +0 -37
  194. data/doc/Blacklight-3.4-release-notes-and-upgrade-guide.md +0 -27
  195. data/doc/Blacklight-3.5-release-notes-and-upgrade-guide.md +0 -44
  196. data/doc/Blacklight-3.6-release-notes-and-upgrade-guide.md +0 -25
  197. data/doc/Blacklight-3.7-release-notes-and-upgrade-guide.md +0 -80
  198. data/doc/Blacklight-3.8-release-notes-and-upgrade-guide.md +0 -11
  199. data/doc/Blacklight-4.0-release-notes-and-upgrade-guide.md +0 -135
  200. data/doc/Blacklight-4.1-release-notes-and-upgrade-guide.md +0 -17
  201. data/doc/Blacklight-4.2-release-notes-and-upgrade-guide.md +0 -25
  202. data/doc/Blacklight-4.3-release-notes-and-upgrade-guide.md +0 -21
  203. data/doc/Blacklight-4.4-release-notes-and-upgrade-guide.md +0 -41
  204. data/doc/Blacklight-Add-ons.md +0 -28
  205. data/doc/Blacklight-configuration.md +0 -411
  206. data/doc/Blacklight-on-Heroku.md +0 -135
  207. data/doc/Code4Lib-2014.md +0 -48
  208. data/doc/Community-principles.md +0 -44
  209. data/doc/Configuring-and-Customizing-Blacklight.md +0 -271
  210. data/doc/Configuring-rails-routes.md +0 -13
  211. data/doc/Contributing-to-Blacklight.md +0 -25
  212. data/doc/Examples.md +0 -94
  213. data/doc/Extending-or-Modifying-Blacklight-Search-Behavior.md +0 -141
  214. data/doc/FAQs.md +0 -1
  215. data/doc/Home.md +0 -80
  216. data/doc/How-to-release-a-version.md +0 -29
  217. data/doc/Indexing-your-data-into-solr.md +0 -32
  218. data/doc/Integration-with-Rails-Footnotes.md +0 -20
  219. data/doc/Internationalization.md +0 -32
  220. data/doc/JSON-API.md +0 -17
  221. data/doc/Pagination.md +0 -51
  222. data/doc/Providing-your-own-view-templates.md +0 -109
  223. data/doc/Quickstart.md +0 -115
  224. data/doc/README_SOLR.md +0 -245
  225. data/doc/Release-Notes-And-Upgrade-Guides.md +0 -20
  226. data/doc/Roadmap.md +0 -43
  227. data/doc/Sunspot-for-indexing.md +0 -46
  228. data/doc/Theming.md +0 -64
  229. data/doc/User-Authentication.md +0 -60
  230. data/doc/testing.md +0 -57
  231. data/lib/SolrMarc.jar +0 -0
  232. data/lib/blacklight/mash.rb +0 -19
  233. data/lib/blacklight/solr/document/marc.rb +0 -71
  234. data/lib/blacklight/solr/document/marc_export.rb +0 -590
  235. data/lib/generators/blacklight/marc_generator.rb +0 -66
  236. data/lib/generators/blacklight/templates/blacklight.scss +0 -4
  237. data/lib/generators/blacklight/templates/config/SolrMarc/config-test.properties +0 -37
  238. data/lib/generators/blacklight/templates/config/SolrMarc/config.properties +0 -37
  239. data/lib/generators/blacklight/templates/config/SolrMarc/index.properties +0 -97
  240. data/lib/generators/blacklight/templates/config/SolrMarc/index_scripts/dewey.bsh +0 -47
  241. data/lib/generators/blacklight/templates/config/SolrMarc/index_scripts/format.bsh +0 -126
  242. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/README_MAPS +0 -1
  243. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/callnumber_map.properties +0 -407
  244. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/composition_era_map.properties +0 -56
  245. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/country_map.properties +0 -379
  246. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/format_map.properties +0 -50
  247. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/instrument_map.properties +0 -101
  248. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/language_map.properties +0 -490
  249. data/lib/railties/solr_marc.rake +0 -162
  250. data/spec/data/test_data.utf8.mrc +0 -1
  251. data/spec/features/librarian_view_spec.rb +0 -13
  252. data/spec/helpers/html_head_helper_spec.rb +0 -164
  253. data/spec/lib/blacklight_solr_document_marc_spec.rb +0 -89
  254. data/spec/lib/marc_export_spec.rb +0 -746
  255. data/spec/lib/tasks/solr_marc_task_spec.rb +0 -60
  256. data/spec/requests/alternate_controller_spec.rb +0 -16
  257. data/spec/routing/routes_spec.rb +0 -20
  258. data/spec/views/catalog/_constraints.html.erb_spec.rb +0 -33
  259. data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +0 -49
  260. data/test_support/data/test_data.utf8.mrc +0 -1
@@ -1,57 +0,0 @@
1
- .css-dropdown {
2
- list-style: none;
3
- position: relative;
4
- margin: -5px 0 0 0;
5
- display: inline-block;
6
- li {
7
- cursor: pointer;
8
- padding: 5px 10px;
9
- &:hover, &.hovering {
10
- border-bottom-left-radius: 0;
11
- border-bottom-right-radius: 0;
12
- -webkit-border-bottom-left-radius: 0;
13
- -webkit-border-bottom-right-radius: 0;
14
- -moz-border-radius-bottom-left: 0;
15
- -moz-border-radius-bottom-right: 0;
16
- & > ul {
17
- border-top: 1px solid white;
18
- display: block;
19
- }
20
- }
21
- a:hover {
22
- text-decoration: none;
23
- }
24
- }
25
- ul {
26
- list-style: none;
27
- position: absolute;
28
- z-index: $zindexDropdown;
29
- top: 100%;
30
- left: 0;
31
- right: 0;
32
- margin: 0;
33
- display: none;
34
- background: white;
35
- border: 1px solid #cccccc;
36
- -webkit-border-radius: 4px;
37
- -moz-border-radius: 4px;
38
- border-radius: 4px;
39
- -webkit-border-top-left-radius: 0;
40
- -moz-border-radius-top-left: 0;
41
- border-top-left-radius: 0;
42
- -webkit-border-top-right-radius: 0;
43
- -moz-border-radius-top-right: 0;
44
- border-top-right-radius: 0;
45
- li {
46
- padding: 0;
47
- text-align: left;
48
- &:hover {
49
- background: whiteSmoke;
50
- }
51
- a {
52
- padding: 5px 10px;
53
- display: block;
54
- }
55
- }
56
- }
57
- }
@@ -1,197 +0,0 @@
1
- #facets
2
- {
3
- div.facet_limit {
4
- clear: both;
5
- }
6
-
7
- h5 a {
8
- color: inherit;
9
- text-decoration: none;
10
-
11
- &:hover
12
- {
13
- background-color:#eee;
14
- }
15
- }
16
-
17
- ul {
18
- padding-top:0.5em;
19
- margin-left: 14px;
20
- }
21
-
22
- li
23
- {
24
- list-style:none;
25
- margin-right:1em;
26
- padding-bottom:0.3em;
27
- padding-right: 50px;
28
- clear: right;
29
-
30
- a.remove
31
- {
32
- color:#666;
33
- margin-left: 0px;
34
- padding: 3px 5px;
35
- }
36
-
37
- .count {
38
- text-align:right;
39
- float:right;
40
- margin-right: -50px;
41
- }
42
-
43
- &.more_facets_link {
44
- text-align:right;
45
- float:right;
46
- margin-right: -35px;
47
- }
48
- }
49
-
50
- span.selected
51
- {
52
- color:green;
53
- }
54
-
55
- ul,h5 +div
56
- {
57
- padding-bottom:1em;
58
- }
59
- }
60
-
61
- .facet_extended_list
62
- {
63
- .sort_options
64
- {
65
- text-align:right;
66
- }
67
-
68
-
69
- .prev_next_links
70
- {
71
- float:left;
72
- }
73
-
74
- }
75
-
76
- ul.facet_extended_list
77
- {
78
- clear:both;
79
- margin:1.5em 0;
80
-
81
- li
82
- {
83
- list-style:none;
84
- margin:0.5em 0;
85
- }
86
-
87
- .count {
88
- float:right;
89
- }
90
- }
91
-
92
-
93
- /* Sidenav
94
- -------------------------------------------------- */
95
-
96
- .sidenav {
97
- margin-bottom:1em;
98
- padding: 0;
99
- background-color: transparent;
100
- border: 1px solid $navbarBorder;
101
- -webkit-border-radius: 6px;
102
- -moz-border-radius: 6px;
103
- border-radius: 6px;
104
- -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.065);
105
- -moz-box-shadow: 0 1px 4px rgba(0,0,0,.065);
106
- box-shadow: 0 1px 4px rgba(0,0,0,.065);
107
-
108
- h5, h4 {
109
- display: block;
110
- *width: 190px;
111
- margin: 0 0 -1px;
112
- padding: 8px 14px;
113
- }
114
- h5 {
115
- border-top: 1px solid $navbarBorder;
116
- }
117
-
118
- .facet_limit:last-child > h5 {
119
-
120
- &.twiddle-open {
121
- @include border-bottom-radius(0px);
122
- }
123
-
124
- @include border-bottom-radius(6px);
125
- }
126
-
127
- }
128
-
129
-
130
- #facets .btn-navbar {
131
- // Navbar button for toggling navbar items in responsive layouts
132
- // These definitions need to come after '.navbar .btn'
133
- display: none;
134
- float: right;
135
- padding: 7px 10px;
136
- margin-left: 5px;
137
- margin-right: 5px;
138
- @include buttonBackground(darken($navbarBackgroundHighlight, 5%), darken($navbarBackground, 5%));
139
- @include box-shadow(#{inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)});
140
- & .icon-bar {
141
- display: block;
142
- width: 18px;
143
- height: 2px;
144
- background-color: #f5f5f5;
145
- @include border-radius(1px);
146
- @include box-shadow(0 1px 0 rgba(0,0,0,.25));
147
- }
148
- & .icon-bar + .icon-bar {
149
- margin-top: 3px;
150
- }
151
-
152
- }
153
-
154
- .facets-collapse {
155
- h5 {
156
- cursor: pointer;
157
- }
158
- /* Chevrons */
159
- .icon-chevron {
160
- float: right;
161
- margin-top: 2px;
162
- margin-right: -6px;
163
- opacity: .25;
164
- }
165
-
166
- .facet_limit h5:hover {
167
- background-color: darken($bodyBackground, 10%);
168
- }
169
-
170
- .icon-chevron {
171
- @extend .icon-chevron-right;
172
- opacity: .5;
173
- }
174
-
175
- .twiddle-open .icon-chevron {
176
- @extend .icon-chevron-down;
177
- opacity: 1;
178
- padding-right:2px;
179
- }
180
-
181
- /* hide the chevron when js isn't supported */
182
- .no-js & .icon-chevron {
183
- @extend .icon-chevron-down;
184
- padding-right:2px;
185
- }
186
-
187
- h5:hover .icon-chevron,
188
- .twiddle-open .icon-chevron {
189
- opacity: 1;
190
- }
191
- }
192
-
193
- .facet_pagination {
194
- @extend .clearfix;
195
- }
196
-
197
-
@@ -1,53 +0,0 @@
1
- /*
2
- Header bar at top (Bootstrap nav-bar)
3
- */
4
-
5
- #header-navbar-fixed-top {
6
- box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
7
- min-width: 395px;
8
- /* This ensures that any tool pop-up goes infront of the header */
9
- z-index:1000;
10
-
11
- .brand { /* The main logo image for the Blacklight instance */
12
- width: 150px;
13
- background:transparent image_url($logo_image) no-repeat top left;
14
- display: inline-block;
15
- text-indent: 100%;
16
- white-space: nowrap;
17
- overflow: hidden;
18
- padding-right:0;
19
- margin-right:20px;
20
- padding-left: 0;
21
- }
22
-
23
- .navbar-inner {
24
- padding-top: 0.5em;
25
- padding-bottom: 0.5em;
26
- }
27
-
28
- .desktop-search-bar { /* Search form is in the header */
29
- opacity: 1 !important;
30
- padding-top: 0.5em;
31
-
32
- }
33
- }
34
-
35
- #searchbar {
36
- padding-top:5px;
37
- }
38
-
39
- .search-query-form {
40
- margin-bottom: 0;
41
- }
42
-
43
- .btn.search-btn {
44
- margin-top: 0;
45
- }
46
-
47
- .search_field {
48
- margin-right: 0.5em;
49
- }
50
-
51
- .util-links-login, .util-links-other {
52
- font-size: 0.9em;
53
- }
@@ -1,10 +0,0 @@
1
- /* Generic layout stuff */
2
- .hide
3
- {
4
- display:none
5
- }
6
-
7
- /* This provides a fixed distance between the header and the main content */
8
- body {
9
- padding-top: 6em;
10
- }
@@ -1,3 +0,0 @@
1
- @import "blacklight/responsive_partials/_catalog";
2
- @import "blacklight/responsive_partials/_facets";
3
- @import "blacklight/responsive_partials/_header";
@@ -1,42 +0,0 @@
1
- /* Search History */
2
- .search_history
3
- {
4
-
5
- .query > a
6
- {
7
- display: block;
8
- border-bottom: none;
9
- }
10
-
11
- .constraint
12
- {
13
- display: block;
14
- text-indent: -2em;
15
- padding-left: 2em;
16
- margin-right: 2em;
17
-
18
- .search
19
- {
20
- padding-right: 0.5em;
21
- padding-left: 0.5em;
22
- }
23
-
24
- &:last-child
25
- {
26
- margin-right: 0;
27
- }
28
- }
29
-
30
- td
31
- {
32
- vertical-align: top;
33
- }
34
-
35
- .filterName, .filterSeparator
36
- {
37
- color: gray;
38
- }
39
- }
40
-
41
-
42
-
@@ -1,49 +0,0 @@
1
- /* Warning! If you want to change these, just copy them into your own theme css. But you want to remove the !default, which only will set them if not already set. */
2
-
3
-
4
-
5
- $background_image: 'blacklight/bg.png' !default;
6
- $logo_image: 'blacklight/logo.png' !default;
7
- $header_background_border: 'blacklight/border.png' !default;
8
-
9
- $navbar_background_color: #000000 !default;
10
-
11
- /* Various elements of search customization share these colors */
12
-
13
- $well_bg_color: #F5F5F5 !default;
14
-
15
- $search_ui_border_color: #FFFFFF !default;
16
- $search_ui_bg_color: #FFFFFF !default;
17
-
18
- $main_container_bg_color: #FFFFFF !default;
19
-
20
- /* separates documents, facets */
21
- $dotted_border_color: #CCC !default;
22
- $dark_border_color: #333 !default;
23
-
24
- /* background color of page */
25
- $page_bg_color: #2E4F81 !default;
26
-
27
-
28
- /* label (field names) */
29
- $field_name_color: #888 !default;
30
-
31
-
32
- /* constraint (you searched for:) details: */
33
-
34
- $constraint_bg_color: #E2EDFE !default;
35
-
36
- $constraint_border_color: #C4DAFE !default;
37
- $constraint_border_active_color: #FFD27A !default;
38
-
39
- /* dialog that pops up when you pick more on facets */
40
- $facet_extended_button_bg_color: #F6F6F6 !default;
41
- $facet_extended_button_border_color: #CCC !default;
42
- $facet_extended_disabled_button_bg_color: #E2EDFE !default;
43
- $facet_extended_disabled_border_color: #C4DAFE !default;
44
- $facet_extended_button_hover_bg_color: #DADADA !default;
45
- $facet_extended_button_hover_border_color: #999 !default;
46
- $facet_extended_button_hover_color: #212121 !default;
47
-
48
- /* border between items on marc view */
49
- $marc_item_separator: 1px solid #CCC !default;
@@ -1,5 +0,0 @@
1
- @media (max-width: 767px) {
2
- #documents .documentFunctions {
3
- margin-top: 0;
4
- }
5
- }
@@ -1,37 +0,0 @@
1
- @media (max-width: 767px) {
2
- #facets .btn-navbar {
3
- display: block;
4
- }
5
- .facets-collapse {
6
- clear: both;
7
-
8
- &.in {
9
-
10
- }
11
-
12
- &, &.collapse {
13
- overflow: hidden;
14
- height: 0;
15
- }
16
-
17
- &.collapse.in {
18
- height: auto !important;
19
- }
20
- }
21
-
22
- .no-js .facets-collapse, .no-js .facets-collapse.collapse {
23
- height: auto !important;
24
- overflow: visible !important;
25
- }
26
- }
27
-
28
- @media (min-width: 768px) {
29
- .facets-collapse.collapse {
30
- height: auto !important;
31
- overflow: visible !important;
32
- }
33
-
34
- .facet-collapse-toggle {
35
- display: none;
36
- }
37
- }