arclight 0.1.4 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +5 -5
  2. data/.all-contributorsrc +450 -0
  3. data/.babelrc +3 -0
  4. data/.codeclimate.yml +5 -0
  5. data/.eslintrc +3 -0
  6. data/.gitignore +1 -0
  7. data/.rubocop.yml +20 -42
  8. data/.rubocop_todo.yml +139 -0
  9. data/.travis.yml +24 -20
  10. data/CONTRIBUTORS.md +79 -0
  11. data/README.md +34 -23
  12. data/Rakefile +0 -1
  13. data/app/assets/images/blacklight/bookmark.svg +1 -0
  14. data/app/assets/images/blacklight/collection.svg +5 -0
  15. data/app/assets/images/blacklight/compact.svg +1 -25
  16. data/app/assets/images/blacklight/container.svg +5 -0
  17. data/app/assets/images/blacklight/ead.svg +1 -0
  18. data/app/assets/images/blacklight/file.svg +5 -0
  19. data/app/assets/images/blacklight/folder.svg +1 -0
  20. data/app/assets/images/blacklight/list.svg +1 -0
  21. data/app/assets/images/blacklight/minus.svg +1 -0
  22. data/app/assets/images/blacklight/online.svg +5 -0
  23. data/app/assets/images/blacklight/pdf.svg +1 -0
  24. data/app/assets/images/blacklight/plus.svg +1 -0
  25. data/app/assets/images/blacklight/repository.svg +1 -0
  26. data/app/assets/javascripts/arclight/arclight.js +1 -2
  27. data/app/assets/javascripts/arclight/collection_navigation.js +36 -50
  28. data/app/assets/javascripts/arclight/collection_scrollspy.js +1 -1
  29. data/app/assets/javascripts/arclight/context_navigation.js +386 -0
  30. data/app/assets/javascripts/arclight/oembed_viewer.js +11 -4
  31. data/app/assets/javascripts/arclight/truncator.js.erb +8 -2
  32. data/app/assets/stylesheets/arclight/application.scss +4 -1
  33. data/app/assets/stylesheets/arclight/bootstrap_overrides.scss +23 -0
  34. data/app/assets/stylesheets/arclight/modules/context_navigation.scss +75 -0
  35. data/app/assets/stylesheets/arclight/modules/hierarchy_and_online_contents.scss +34 -38
  36. data/app/assets/stylesheets/arclight/modules/highlights.scss +2 -1
  37. data/app/assets/stylesheets/arclight/modules/icons.scss +4 -0
  38. data/app/assets/stylesheets/arclight/modules/layout.scss +149 -11
  39. data/app/assets/stylesheets/arclight/modules/mastheads.scss +60 -5
  40. data/app/assets/stylesheets/arclight/modules/repositories.scss +1 -5
  41. data/app/assets/stylesheets/arclight/modules/repository_card.scss +6 -7
  42. data/app/assets/stylesheets/arclight/modules/search_results.scss +145 -24
  43. data/app/assets/stylesheets/arclight/modules/show_collection.scss +38 -59
  44. data/app/assets/stylesheets/arclight/responsive.scss +13 -0
  45. data/app/assets/stylesheets/arclight/variables.scss +21 -1
  46. data/app/controllers/concerns/arclight/ead_format_helpers.rb +225 -0
  47. data/app/controllers/concerns/arclight/field_config_helpers.rb +23 -7
  48. data/app/factories/blacklight_field_configuration_factory.rb +1 -0
  49. data/app/helpers/arclight_helper.rb +198 -36
  50. data/app/models/arclight/document_downloads.rb +125 -0
  51. data/app/models/arclight/parent.rb +4 -2
  52. data/app/models/arclight/parents.rb +6 -4
  53. data/app/models/arclight/requests/aeon_external_request.rb +42 -0
  54. data/app/models/arclight/requests/aeon_web_ead.rb +47 -0
  55. data/app/models/arclight/requests/google_form.rb +2 -2
  56. data/app/models/concerns/arclight/catalog.rb +14 -2
  57. data/app/models/concerns/arclight/search_behavior.rb +27 -12
  58. data/app/models/concerns/arclight/solr_document.rb +29 -7
  59. data/app/views/arclight/_requests.html.erb +7 -0
  60. data/app/views/arclight/repositories/_in_person_repository.html.erb +2 -2
  61. data/app/views/arclight/repositories/_repository.html.erb +2 -2
  62. data/app/views/arclight/repositories/_repository_contact.html.erb +9 -0
  63. data/app/views/arclight/repositories/index.html.erb +3 -0
  64. data/app/views/arclight/repositories/show.html.erb +5 -4
  65. data/app/views/arclight/requests/_aeon_external_request_endpoint.html.erb +9 -0
  66. data/app/views/arclight/requests/_aeon_web_ead.html.erb +7 -0
  67. data/app/views/arclight/requests/_google_form.html.erb +2 -1
  68. data/app/views/arclight/viewers/_oembed.html.erb +2 -1
  69. data/app/views/catalog/_access_contents.html.erb +15 -0
  70. data/app/views/catalog/_arclight_abstract_or_scope.html.erb +5 -0
  71. data/app/views/catalog/_arclight_bookmark_control.html.erb +38 -0
  72. data/app/views/catalog/_arclight_document_header_icon.html.erb +1 -0
  73. data/app/views/catalog/_arclight_index_compact_default.html.erb +18 -11
  74. data/app/views/catalog/_arclight_index_default.html.erb +45 -0
  75. data/app/views/catalog/_arclight_index_group_document_compact_default.html.erb +19 -0
  76. data/app/views/catalog/_arclight_index_group_document_default.html.erb +18 -0
  77. data/app/views/catalog/_arclight_online_content_indicator.html.erb +1 -3
  78. data/app/views/catalog/_collection_contents.html.erb +2 -10
  79. data/app/views/catalog/_collection_context.html.erb +15 -0
  80. data/app/views/catalog/_collection_context_nav.html.erb +12 -0
  81. data/app/views/catalog/_collection_online_contents.html.erb +3 -3
  82. data/app/views/catalog/_component_context.html.erb +5 -0
  83. data/app/views/catalog/_containers.html.erb +3 -0
  84. data/app/views/catalog/_context_card.html.erb +1 -1
  85. data/app/views/catalog/_context_sidebar.html.erb +2 -2
  86. data/app/views/catalog/_custom_metadata.html.erb +1 -1
  87. data/app/views/catalog/_document_downloads.html.erb +14 -0
  88. data/app/views/catalog/_group.html.erb +21 -0
  89. data/app/views/catalog/_group_header_compact_default.html.erb +15 -0
  90. data/app/views/catalog/_group_header_default.html.erb +20 -0
  91. data/app/views/catalog/_group_toggle.html.erb +10 -0
  92. data/app/views/catalog/_home.html.erb +1 -1
  93. data/app/views/catalog/_index_breadcrumb_default.html.erb +5 -2
  94. data/app/views/catalog/_index_collection_context_default.html.erb +53 -0
  95. data/app/views/catalog/_index_default.html.erb +1 -1
  96. data/app/views/catalog/_index_header.html.erb +3 -3
  97. data/app/views/catalog/_index_online_contents_default.html.erb +1 -1
  98. data/app/views/catalog/_online_content_label.html.erb +5 -0
  99. data/app/views/catalog/_search_form.html.erb +34 -0
  100. data/app/views/catalog/_search_results.html.erb +1 -4
  101. data/app/views/catalog/_show_actions_box_default.html.erb +27 -0
  102. data/app/views/catalog/_show_breadcrumbs_default.html.erb +5 -6
  103. data/app/views/catalog/_show_collection.html.erb +42 -24
  104. data/app/views/catalog/_show_default.html.erb +64 -26
  105. data/app/views/catalog/_show_upper_metadata_collection.html.erb +1 -0
  106. data/app/views/catalog/_show_upper_metadata_default.html.erb +14 -0
  107. data/app/views/catalog/_sort_and_per_page.html.erb +8 -0
  108. data/app/views/catalog/_within_collection_dropdown.html.erb +26 -0
  109. data/app/views/shared/_breadcrumbs.html.erb +4 -4
  110. data/app/views/shared/_context_sidebar.html.erb +2 -2
  111. data/app/views/shared/_header_navbar.html.erb +51 -43
  112. data/app/views/shared/_main_menu_links.html.erb +1 -1
  113. data/app/views/shared/_show_breadcrumbs.html.erb +27 -0
  114. data/arclight.gemspec +15 -12
  115. data/config/i18n-tasks.yml +133 -0
  116. data/config/locales/arclight.en.yml +89 -55
  117. data/config/repositories.yml +0 -0
  118. data/lib/arclight/engine.rb +23 -12
  119. data/lib/arclight/hash_absolute_xpath.rb +61 -0
  120. data/lib/arclight/level_label.rb +46 -0
  121. data/lib/arclight/missing_id_strategy.rb +21 -0
  122. data/lib/arclight/normalized_date.rb +21 -12
  123. data/lib/arclight/normalized_id.rb +1 -0
  124. data/lib/arclight/normalized_title.rb +1 -0
  125. data/lib/arclight/repository.rb +61 -25
  126. data/lib/arclight/traject/ead2_config.rb +495 -0
  127. data/lib/arclight/traject/nokogiri_namespaceless_reader.rb +22 -0
  128. data/lib/arclight/version.rb +1 -1
  129. data/lib/arclight/viewers/oembed.rb +1 -0
  130. data/lib/arclight/year_range.rb +9 -1
  131. data/lib/generators/arclight/install_generator.rb +34 -3
  132. data/lib/generators/arclight/templates/catalog_controller.rb +162 -131
  133. data/lib/generators/arclight/templates/config/downloads.yml +12 -0
  134. data/lib/generators/arclight/templates/config/repositories.yml +20 -2
  135. data/lib/generators/arclight/update_generator.rb +1 -1
  136. data/lib/tasks/index.rake +19 -19
  137. data/package.json +8 -1
  138. data/solr/conf/schema.xml +56 -292
  139. data/solr/conf/solrconfig.xml +40 -125
  140. data/tasks/arclight.rake +6 -1
  141. data/template.rb +1 -1
  142. data/vendor/assets/javascripts/responsiveTruncator.js +2 -2
  143. metadata +159 -60
  144. data/app/assets/javascripts/arclight/collection_context.js +0 -18
  145. data/app/assets/javascripts/arclight/component_ancestors.js +0 -56
  146. data/app/assets/stylesheets/arclight/modules/sidebar.scss +0 -21
  147. data/app/views/catalog/_arclight_document_show_header.html.erb +0 -15
  148. data/app/views/catalog/_arclight_document_show_header_collection.html.erb +0 -12
  149. data/app/views/catalog/_collection_count.html.erb +0 -7
  150. data/app/views/catalog/_collection_downloads.html.erb +0 -15
  151. data/app/views/catalog/_collection_overview.html.erb +0 -7
  152. data/app/views/catalog/_component_overview.html.erb +0 -46
  153. data/app/views/catalog/_index_header_hierarchy_default.html.erb +0 -42
  154. data/app/views/catalog/_index_hierarchy_default.html.erb +0 -28
  155. data/app/views/catalog/_results_histogram.html.erb +0 -10
  156. data/app/views/catalog/_search_within_form.html.erb +0 -16
  157. data/app/views/catalog/_show_component_sidebar.html.erb +0 -12
  158. data/app/views/catalog/_show_header.html.erb +0 -5
  159. data/app/views/catalog/_show_sidebar.html.erb +0 -30
  160. data/lib/arclight/custom_component.rb +0 -99
  161. data/lib/arclight/custom_document.rb +0 -93
  162. data/lib/arclight/indexer.rb +0 -9
  163. data/lib/arclight/shared_indexing_behavior.rb +0 -97
  164. data/lib/arclight/shared_terminology_behavior.rb +0 -65
  165. data/lib/arclight/solr_ead_indexer_ext.rb +0 -159
  166. data/lib/generators/arclight/templates/arclight.js +0 -2
@@ -1,18 +1,24 @@
1
1
  Blacklight.onLoad(function () {
2
2
  'use strict';
3
+
3
4
  var onlineContentTabSelector = '[data-arclight-online-content-tab="true"]';
4
5
  var oEmbedViewerSelector = '[data-arclight-oembed="true"]';
5
6
 
6
- $(onlineContentTabSelector).on('shown.bs.tab', function() {
7
+ $(onlineContentTabSelector).on('shown.bs.tab', function () {
7
8
  var $viewerElements = $(oEmbedViewerSelector);
8
- if($viewerElements.length === 0) {
9
+ if ($viewerElements.length === 0) {
9
10
  return;
10
11
  }
11
12
 
12
13
  $viewerElements.each(function (i, element) {
13
14
  var $el = $(element);
15
+ var loadedAttr = $el.attr('loaded');
14
16
  var data = $el.data();
15
17
  var resourceUrl = data.arclightOembedUrl;
18
+ if (loadedAttr && loadedAttr === 'loaded') {
19
+ return;
20
+ }
21
+
16
22
  $.ajax({
17
23
  url: resourceUrl,
18
24
  dataType: 'html'
@@ -20,17 +26,18 @@ Blacklight.onLoad(function () {
20
26
  var links = $('<div>' + response.match(/<link .*>/g).join('') + '</div>'); // Parse out link elements so image assets are not loaded
21
27
  var oEmbedEndPoint = links.find('link[rel="alternate"][type="application/json+oembed"]').prop('href');
22
28
 
23
- if(!oEmbedEndPoint || oEmbedEndPoint.length === 0) {
29
+ if (!oEmbedEndPoint || oEmbedEndPoint.length === 0) {
24
30
  return;
25
31
  }
26
32
 
27
33
  $.ajax({
28
34
  url: oEmbedEndPoint
29
35
  }).done(function (oEmbedResponse) {
30
- if(oEmbedResponse.html) {
36
+ if (oEmbedResponse.html) {
31
37
  $el.hide()
32
38
  .html(oEmbedResponse.html)
33
39
  .fadeIn(500);
40
+ $el.attr('loaded', 'loaded');
34
41
  }
35
42
  });
36
43
  });
@@ -10,8 +10,8 @@ Blacklight.onLoad(function () {
10
10
  });
11
11
 
12
12
  // When elements get loaded from hierarchy
13
- $('.al-contents').on('navigation.contains.elements', function () {
14
- $('a[data-toggle="pill"]').on('shown.bs.tab', function () {
13
+ $('.al-contents, .context-navigator').on('navigation.contains.elements', function (e) {
14
+ $('a[data-toggle="tab"]').on('shown.bs.tab', function () {
15
15
  $('[data-arclight-truncate="true"]').each(function (_, el) {
16
16
  $(el).responsiveTruncate({
17
17
  more: "<%= I18n.t 'arclight.truncation.view_more' %>",
@@ -19,5 +19,11 @@ Blacklight.onLoad(function () {
19
19
  });
20
20
  });
21
21
  });
22
+ $(e.target).find('[data-arclight-truncate="true"]').each(function (_, el) {
23
+ $(el).responsiveTruncate({
24
+ more: "<%= I18n.t 'arclight.truncation.view_more' %>",
25
+ less: "<%= I18n.t 'arclight.truncation.view_less' %>"
26
+ });
27
+ });
22
28
  });
23
29
  });
@@ -1,14 +1,17 @@
1
1
  @import 'bootstrap/functions';
2
2
  @import 'bootstrap/variables';
3
+ @import 'bootstrap/mixins/breakpoints';
3
4
  @import 'bootstrap_overrides';
4
5
  @import 'variables';
6
+ @import 'responsive';
5
7
  @import 'modules/collection_search';
6
8
  @import 'modules/highlights';
7
9
  @import 'modules/hierarchy_and_online_contents';
10
+ @import 'modules/icons';
8
11
  @import 'modules/layout';
9
12
  @import 'modules/mastheads';
10
13
  @import 'modules/repositories.scss';
11
14
  @import 'modules/repository_card.scss';
12
15
  @import 'modules/search_results';
13
16
  @import 'modules/show_collection';
14
- @import 'modules/sidebar';
17
+ @import 'modules/context_navigation'
@@ -1,3 +1,26 @@
1
1
  .nav.nav-pills {
2
2
  margin-bottom: $spacer;
3
3
  }
4
+
5
+ .nav.nav-tabs {
6
+ margin-bottom: 0;
7
+ flex-wrap: nowrap;
8
+ & .nav-item .nav-link:not(.active) {
9
+ background: $gray-100;
10
+ border-color: $nav-tabs-border-color;
11
+ }
12
+ & .nav-item .nav-link {
13
+ height: 100%;
14
+ }
15
+ & .nav-item {
16
+ overflow-wrap: break-word;
17
+ }
18
+ }
19
+
20
+ .tab-pane {
21
+ border-style: solid;
22
+ border-width: 0 1px 1px 1px;
23
+ border-color: $nav-tabs-border-color;
24
+ border-radius: 0px 0px $nav-tabs-border-radius $nav-tabs-border-radius;
25
+ padding: $spacer*2;
26
+ }
@@ -0,0 +1,75 @@
1
+ #contents > .context-navigator,
2
+ #collection-context > .context-navigator {
3
+ padding-left: $spacer;
4
+ }
5
+
6
+ ul.al-context-nav-parent {
7
+ padding-left: 0px;
8
+ }
9
+
10
+ li.al-collection-context {
11
+ flex-grow: 1;
12
+ margin-right: 0;
13
+ margin-left: 0;
14
+ padding-left: 15px;
15
+ max-width: 100%;
16
+
17
+ .al-collection-context-collapsible {
18
+ width: 100%;
19
+ }
20
+
21
+ .blacklight-icons {
22
+ padding-top: $spacer * .25;
23
+ }
24
+
25
+ .al-number-of-children-badge {
26
+ font-size: 12px;
27
+ vertical-align: middle;
28
+ }
29
+
30
+ .documentHeader {
31
+ flex-grow: 1;
32
+ margin-bottom: $spacer;
33
+ width: 100%;
34
+ }
35
+
36
+ .document-title-heading {
37
+ font-size: 1.25rem;
38
+ }
39
+
40
+ .col.col-no-left-padding.d-flex.flex-wrap {
41
+ flex-grow: 1;
42
+ }
43
+ .order-2 .row {
44
+ margin-left: 0;
45
+ }
46
+
47
+ .al-document-abstract-or-scope {
48
+ max-width: 45em;
49
+ }
50
+
51
+ .blacklight-icons svg {
52
+ fill: $gray-600;
53
+ }
54
+
55
+ .al-online-content-icon svg {
56
+ fill: $green;
57
+ }
58
+ @media (max-width: 767px) {
59
+ padding-left: 0;
60
+ .al-document-abstract-or-scope {
61
+ max-width: 25em;
62
+ }
63
+ }
64
+ }
65
+
66
+ @media (max-width: 767px) {
67
+ .blacklight-catalog.blacklight-catalog-show {
68
+ #context {
69
+ padding: 10px;
70
+ }
71
+ }
72
+ ul.al-context-nav-parent {
73
+ padding-left: 40px;
74
+ }
75
+ }
@@ -1,4 +1,3 @@
1
- .documents-hierarchy,
2
1
  .documents-online_contents {
3
2
  .document-title-heading {
4
3
  font-size: $h5-font-size;
@@ -10,16 +9,6 @@
10
9
  }
11
10
  }
12
11
 
13
- .al-toggle-view-all {
14
- color: $gray-600;
15
-
16
- &:before {
17
- color: $gray-600;
18
- content: "\2022";
19
- padding-right: 3px;
20
- }
21
- }
22
-
23
12
  .al-hierarchy-children-status {
24
13
  font-size: $h6-font-size;
25
14
  margin-top: 6px;
@@ -31,17 +20,11 @@
31
20
  font-size: $font-size-sm;
32
21
  }
33
22
 
34
- // Component title + children badge
35
- .documentHeader {
36
- border-bottom: $border-width dashed #ccc;
37
- margin-bottom: ($spacer / 2);
38
- margin-top: ($spacer * 2);
39
- }
40
-
41
23
  // Headings and text
42
24
  .al-document-abstract-or-scope {
43
25
  font-size: 0.85rem;
44
- line-height: 1.25;
26
+ line-height: 1.5;
27
+ max-width: 45em;
45
28
  }
46
29
 
47
30
  .al-hierarchy-sub-heading {
@@ -53,15 +36,13 @@
53
36
 
54
37
  // Series level
55
38
  .blacklight-series .document-title-heading,
39
+ .blacklight-subseries .document-title-heading,
56
40
  .blacklight-file .document-title-heading,
57
- .blacklight-otherlevel .document-title-heading {
41
+ .blacklight-binder .document-title-heading,
42
+ .blacklight-other .document-title-heading {
58
43
  font-size: $h5-font-size;
59
44
  font-weight: 400;
60
45
  margin-bottom: ($spacer / 2);
61
-
62
- > a {
63
- color: $gray-900;
64
- }
65
46
  }
66
47
 
67
48
  .blacklight-series,
@@ -69,7 +50,8 @@
69
50
  // Additional for levels below series
70
51
  .blacklight-subseries .document-title-heading,
71
52
  .blacklight-file .document-title-heading,
72
- .blacklight-otherlevel .document-title-heading {
53
+ .blacklight-binder .document-title-heading,
54
+ .blacklight-other .document-title-heading {
73
55
  font-size: $h6-font-size;
74
56
 
75
57
  .documentHeader {
@@ -80,7 +62,8 @@
80
62
  // Icongraphy for each level
81
63
  .blacklight-subseries .document-title-heading,
82
64
  .al-hierarchy-level-1 .blacklight-file .document-title-heading,
83
- .al-hierarchy-level-1 .blacklight-otherlevel .document-title-heading {
65
+ .al-hierarchy-level-1 .blacklight-binder .document-title-heading,
66
+ .al-hierarchy-level-1 .blacklight-other .document-title-heading {
84
67
  padding-left: 10px;
85
68
 
86
69
  &:before {
@@ -106,7 +89,7 @@
106
89
  }
107
90
  }
108
91
 
109
- .al-hierarchy-highlight {
92
+ .al-hierarchy-highlight > .documentHeader {
110
93
  background: $mark-bg;
111
94
  }
112
95
 
@@ -127,13 +110,25 @@
127
110
  }
128
111
  }
129
112
 
113
+ // Scope content
114
+ .al-document-abstract-or-scope {
115
+ font-size: 0.85rem;
116
+ line-height: 1.5;
117
+ max-width: 45em;
118
+ margin-bottom: $spacer;
119
+ }
120
+
130
121
  // Component show page, Collection context section
131
122
  #collection-context {
132
123
  h1 {
133
124
  font-size: $h5-font-size;
134
125
  }
135
126
 
136
- .documents-hierarchy,
127
+ ul {
128
+ list-style: none;
129
+ flex-grow: 1;
130
+ }
131
+
137
132
  .documents-online_contents {
138
133
  .documentHeader {
139
134
  margin-top: 1.5rem;
@@ -142,25 +137,26 @@
142
137
 
143
138
  // Top-level context
144
139
  .al-hierarchy-level-0 .document-title-heading {
145
- // background-color: red;
146
140
  font-size: $h5-font-size;
147
- font-weight: 400;
148
141
  margin-bottom: ($spacer / 2);
149
-
150
- > a {
151
- color: $gray-900;
152
- }
153
142
  }
154
143
 
155
144
  // All subsequent levels
156
145
  @for $i from 1 through 12 {
157
146
  .al-hierarchy-level-#{$i} .document-title-heading {
158
147
  font-size: $h6-font-size;
159
- font-weight: 400;
148
+ }
149
+ }
160
150
 
161
- > a {
162
- color: $gray-900;
163
- }
151
+ .prev-siblings li, li.al-collection-context {
152
+ visibility: visible;
153
+ opacity: 1;
154
+ transition: visibility 0s, height 0.5s, opacity 0.5s linear;
155
+
156
+ &.collapsed {
157
+ visibility: hidden;
158
+ height: 0;
159
+ opacity: 0;
164
160
  }
165
161
  }
166
162
  }
@@ -3,8 +3,9 @@
3
3
  padding-left: 10px;
4
4
  font-size: $font-size-sm;
5
5
  font-style: italic;
6
+ margin-bottom: $spacer;
6
7
  em {
7
- background-color: yellow;
8
+ background-color: $background-highlight;
8
9
  font-weight: bold;
9
10
  }
10
11
  }
@@ -0,0 +1,4 @@
1
+ .blacklight-icons svg {
2
+ height: 1rem;
3
+ width: 1rem;
4
+ }
@@ -4,22 +4,126 @@
4
4
  margin-bottom: $spacer;
5
5
  }
6
6
 
7
- // Collapse arrow indicators
8
- .al-toggle-view-more,
9
- .al-toggle-view-all {
10
- &[aria-expanded="true"] {
11
- &::after {
12
- content: '\25BC';
13
- margin-left: 6px;
7
+ .al-show-breadcrumb .breadcrumb {
8
+ background-color: transparent;
9
+ margin-bottom: 0;
10
+ padding: 0;
11
+
12
+ .breadcrumb-item + .breadcrumb-item {
13
+ padding-top: 2px;
14
+
15
+ &::before {
16
+ content: '';
14
17
  }
15
18
  }
19
+ }
20
+
21
+ .breadcrumb-home-link {
22
+ margin-bottom: ($spacer / 4);
23
+ }
24
+ .al-show-actions-box {
25
+ border: $default-border-styling;
26
+ background-color: $gray-200;
27
+ font-size: $font-size-sm;
28
+ height: 100%;
29
+ margin-bottom: $spacer * 2;
30
+ padding: ($spacer * .5) $spacer ($spacer * .75);
31
+
32
+ @media (max-width: 767px) {
33
+ margin-top: $spacer;
34
+ }
35
+
36
+ .al-collection-id {
37
+ margin-bottom: $spacer * .75;
38
+ }
16
39
 
17
- &::after {
18
- content: '\25B6';
19
- margin-left: 6px;
40
+ &-options {
41
+ display: flex;
42
+ align-items: center;
43
+ }
44
+
45
+ &-downloads {
46
+ padding-top: $spacer * .25;
47
+ white-space: nowrap;
48
+
49
+ &-container {
50
+ margin-top: $spacer * .5;
51
+ }
52
+
53
+ &-file {
54
+ &.blacklight-icons {
55
+ margin-right: $spacer * .5;
56
+
57
+ svg {
58
+ fill: $secondary;
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+
65
+ .al-show-breadcrumb h1 {
66
+ font-size: 1.5rem;
67
+
68
+ &.media .col {
69
+ padding-top: $spacer * .25;
20
70
  }
21
71
  }
22
72
 
73
+ .breadcrumb-item {
74
+ flex: 1 0 100%;
75
+
76
+ &.al-bc-item {
77
+ &::before {
78
+ content: '»' !important;
79
+ }
80
+ }
81
+ }
82
+
83
+ // Show page breadcrumbs
84
+ @for $i from 1 to 14 {
85
+ .breadcrumb-item.breadcrumb-item-#{$i}.media {
86
+ padding-left: 0;
87
+
88
+ @media (max-width: 767px) {
89
+ &::before {
90
+ padding-right: 0;
91
+ }
92
+ }
93
+
94
+ @media (min-width: 768px) {
95
+ padding-left: ($i - 1) * 10px;
96
+ }
97
+ }
98
+ }
99
+
100
+ // Show page metadata.
101
+ // Indent to match terminal show page breadcrumb.
102
+ @for $i from 1 to 14 {
103
+ .al-metadata-section.breadcrumb-item-#{$i} {
104
+ padding-left: 0;
105
+
106
+ @media (min-width: 768px) {
107
+ padding-left: ($i * 10) + 10px;
108
+ }
109
+ }
110
+ }
111
+
112
+ // Collapse +/- indicators
113
+ .al-toggle-view-children {
114
+ &:not(.collapsed) {
115
+ & {
116
+ content: image-url('blacklight/minus.svg');
117
+ }
118
+ }
119
+
120
+ content: image-url('blacklight/plus.svg');
121
+ }
122
+
123
+ .al-toggle-children-container {
124
+ margin-left: -1.5rem;
125
+ }
126
+
23
127
  .bookmark-toggle .toggle-bookmark {
24
128
  display: inline;
25
129
  margin-bottom: 0;
@@ -28,7 +132,6 @@
28
132
 
29
133
  .bookmark-toggle {
30
134
  display: inline;
31
- float: right;
32
135
  }
33
136
 
34
137
  .al-hierarchy-side-content {
@@ -51,3 +154,38 @@
51
154
  content: "\0229F";
52
155
  }
53
156
  }
157
+
158
+
159
+ dl dd {
160
+ overflow-wrap: break-word;
161
+ }
162
+
163
+ dl.deflist dt {
164
+ text-align: left;
165
+ }
166
+
167
+ .chronlist-head, .list-head {
168
+ caption-side: top;
169
+ font-size: 1.25rem;
170
+ font-weight: 500;
171
+ margin-bottom: 1rem;
172
+ }
173
+
174
+ .chronlist th,
175
+ .chronlist-item-date {
176
+ font-weight: 500;
177
+ }
178
+
179
+ .chronlist-item-date {
180
+ width: 15ch;
181
+ }
182
+
183
+ .chronlist-item-event {
184
+ div:not(:last-child) {
185
+ margin-bottom: 0.75rem;
186
+ }
187
+ }
188
+
189
+ .text-underline {
190
+ text-decoration: underline;
191
+ }