spotlight-frontend 3.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +114 -0
  3. package/app/assets/images/blacklight/arrow-alt-circle-left.svg +1 -0
  4. package/app/assets/images/blacklight/arrow-alt-circle-right.svg +1 -0
  5. package/app/assets/images/blacklight/arrow_back_ios.svg +1 -0
  6. package/app/assets/images/blacklight/arrow_forward_ios.svg +1 -0
  7. package/app/assets/images/blacklight/check.svg +1 -0
  8. package/app/assets/images/blacklight/check_circle.svg +1 -0
  9. package/app/assets/images/blacklight/chevron_right.svg +1 -0
  10. package/app/assets/images/blacklight/close.svg +1 -0
  11. package/app/assets/images/blacklight/edit.svg +1 -0
  12. package/app/assets/images/blacklight/error.svg +1 -0
  13. package/app/assets/images/blacklight/highlight_off.svg +1 -0
  14. package/app/assets/images/blacklight/info.svg +1 -0
  15. package/app/assets/images/blacklight/warning.svg +1 -0
  16. package/app/assets/images/blacklight/zoom_in.svg +1 -0
  17. package/app/assets/images/blacklight/zoom_out.svg +1 -0
  18. package/app/assets/images/spotlight/.keep +0 -0
  19. package/app/assets/images/spotlight/blocks/sir-trevor-icons.svg +320 -0
  20. package/app/assets/images/spotlight/default_browse_thumbnail.jpg +0 -0
  21. package/app/assets/images/spotlight/default_thumbnail.jpg +0 -0
  22. package/app/assets/images/spotlight/fallback/default.png +0 -0
  23. package/app/assets/javascripts/spotlight/admin/add_another.js +22 -0
  24. package/app/assets/javascripts/spotlight/admin/add_new_button.js +81 -0
  25. package/app/assets/javascripts/spotlight/admin/appearance.js +24 -0
  26. package/app/assets/javascripts/spotlight/admin/attachments.js +2 -0
  27. package/app/assets/javascripts/spotlight/admin/blacklight_configuration.js +63 -0
  28. package/app/assets/javascripts/spotlight/admin/block_mixins/autocompleteable.js +72 -0
  29. package/app/assets/javascripts/spotlight/admin/block_mixins/formable.js +78 -0
  30. package/app/assets/javascripts/spotlight/admin/block_mixins/plustextable.js +57 -0
  31. package/app/assets/javascripts/spotlight/admin/blocks/block.js +23 -0
  32. package/app/assets/javascripts/spotlight/admin/blocks/browse_block.js +87 -0
  33. package/app/assets/javascripts/spotlight/admin/blocks/browse_group_categories_block.js +88 -0
  34. package/app/assets/javascripts/spotlight/admin/blocks/iframe_block.js +34 -0
  35. package/app/assets/javascripts/spotlight/admin/blocks/link_to_search_block.js +16 -0
  36. package/app/assets/javascripts/spotlight/admin/blocks/oembed_block.js +40 -0
  37. package/app/assets/javascripts/spotlight/admin/blocks/pages_block.js +22 -0
  38. package/app/assets/javascripts/spotlight/admin/blocks/resources_block.js +145 -0
  39. package/app/assets/javascripts/spotlight/admin/blocks/rule_block.js +25 -0
  40. package/app/assets/javascripts/spotlight/admin/blocks/search_result_block.js +44 -0
  41. package/app/assets/javascripts/spotlight/admin/blocks/solr_documents_base_block.js +108 -0
  42. package/app/assets/javascripts/spotlight/admin/blocks/solr_documents_block.js +25 -0
  43. package/app/assets/javascripts/spotlight/admin/blocks/solr_documents_carousel_block.js +103 -0
  44. package/app/assets/javascripts/spotlight/admin/blocks/solr_documents_embed_block.js +17 -0
  45. package/app/assets/javascripts/spotlight/admin/blocks/solr_documents_features_block.js +41 -0
  46. package/app/assets/javascripts/spotlight/admin/blocks/solr_documents_grid_block.js +14 -0
  47. package/app/assets/javascripts/spotlight/admin/blocks/uploaded_items_block.js +145 -0
  48. package/app/assets/javascripts/spotlight/admin/catalog_edit.js +16 -0
  49. package/app/assets/javascripts/spotlight/admin/copy_email_addresses.js +9 -0
  50. package/app/assets/javascripts/spotlight/admin/crop.es6 +310 -0
  51. package/app/assets/javascripts/spotlight/admin/croppable.js +25 -0
  52. package/app/assets/javascripts/spotlight/admin/edit_in_place.js +54 -0
  53. package/app/assets/javascripts/spotlight/admin/exhibit_tag_autocomplete.js +37 -0
  54. package/app/assets/javascripts/spotlight/admin/exhibits.js +58 -0
  55. package/app/assets/javascripts/spotlight/admin/form_observer.js +86 -0
  56. package/app/assets/javascripts/spotlight/admin/iiif.es6 +54 -0
  57. package/app/assets/javascripts/spotlight/admin/index.js +16 -0
  58. package/app/assets/javascripts/spotlight/admin/locks.js +12 -0
  59. package/app/assets/javascripts/spotlight/admin/multi_image_selector.js +158 -0
  60. package/app/assets/javascripts/spotlight/admin/pages.js.erb +40 -0
  61. package/app/assets/javascripts/spotlight/admin/progress_monitor.js +148 -0
  62. package/app/assets/javascripts/spotlight/admin/readonly_checkbox.js +6 -0
  63. package/app/assets/javascripts/spotlight/admin/search_typeahead.js +108 -0
  64. package/app/assets/javascripts/spotlight/admin/select_related_input.js +34 -0
  65. package/app/assets/javascripts/spotlight/admin/sir-trevor/block_controls.js +120 -0
  66. package/app/assets/javascripts/spotlight/admin/sir-trevor/block_limits.js +37 -0
  67. package/app/assets/javascripts/spotlight/admin/sir-trevor/locales.js +120 -0
  68. package/app/assets/javascripts/spotlight/admin/spotlight_nestable.js +72 -0
  69. package/app/assets/javascripts/spotlight/admin/tabs.js +6 -0
  70. package/app/assets/javascripts/spotlight/admin/translation_progress.js +23 -0
  71. package/app/assets/javascripts/spotlight/admin/users.js +79 -0
  72. package/app/assets/javascripts/spotlight/application.js +14 -0
  73. package/app/assets/javascripts/spotlight/spotlight.js +23 -0
  74. package/app/assets/javascripts/spotlight/user/analytics.js +9 -0
  75. package/app/assets/javascripts/spotlight/user/browse_group_categories.js +59 -0
  76. package/app/assets/javascripts/spotlight/user/carousel.js +3 -0
  77. package/app/assets/javascripts/spotlight/user/clear_form_button.js +27 -0
  78. package/app/assets/javascripts/spotlight/user/index.js +8 -0
  79. package/app/assets/javascripts/spotlight/user/report_a_problem.js +39 -0
  80. package/app/assets/javascripts/spotlight/user/zpr_links.js.erb +45 -0
  81. package/app/assets/stylesheets/spotlight/_accessibility.scss +8 -0
  82. package/app/assets/stylesheets/spotlight/_attachments.css +4 -0
  83. package/app/assets/stylesheets/spotlight/_blacklight_configuration.scss +82 -0
  84. package/app/assets/stylesheets/spotlight/_blacklight_overrides.scss +21 -0
  85. package/app/assets/stylesheets/spotlight/_bootstrap_overrides.scss +105 -0
  86. package/app/assets/stylesheets/spotlight/_breadcrumbs.scss +6 -0
  87. package/app/assets/stylesheets/spotlight/_browse.scss +158 -0
  88. package/app/assets/stylesheets/spotlight/_catalog.scss +161 -0
  89. package/app/assets/stylesheets/spotlight/_collapse_toggle.scss +14 -0
  90. package/app/assets/stylesheets/spotlight/_croppable.scss +4 -0
  91. package/app/assets/stylesheets/spotlight/_curation.scss +224 -0
  92. package/app/assets/stylesheets/spotlight/_edit_in_place.scss +9 -0
  93. package/app/assets/stylesheets/spotlight/_exhibit_admin.scss +81 -0
  94. package/app/assets/stylesheets/spotlight/_exhibit_navbar.scss +10 -0
  95. package/app/assets/stylesheets/spotlight/_exhibits_index.scss +147 -0
  96. package/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +269 -0
  97. package/app/assets/stylesheets/spotlight/_footer.scss +12 -0
  98. package/app/assets/stylesheets/spotlight/_header.scss +155 -0
  99. package/app/assets/stylesheets/spotlight/_item_text_block.scss +50 -0
  100. package/app/assets/stylesheets/spotlight/_mixins.scss +17 -0
  101. package/app/assets/stylesheets/spotlight/_modals.scss +3 -0
  102. package/app/assets/stylesheets/spotlight/_multi_image_selector.scss +22 -0
  103. package/app/assets/stylesheets/spotlight/_multi_up_item_grid.scss +63 -0
  104. package/app/assets/stylesheets/spotlight/_nestable.scss +124 -0
  105. package/app/assets/stylesheets/spotlight/_pages.scss +282 -0
  106. package/app/assets/stylesheets/spotlight/_report_a_problem.scss +14 -0
  107. package/app/assets/stylesheets/spotlight/_sir-trevor_overrides.scss +87 -0
  108. package/app/assets/stylesheets/spotlight/_slideshow_block.scss +87 -0
  109. package/app/assets/stylesheets/spotlight/_spotlight.scss +49 -0
  110. package/app/assets/stylesheets/spotlight/_translations.scss +86 -0
  111. package/app/assets/stylesheets/spotlight/_upload.scss +0 -0
  112. package/app/assets/stylesheets/spotlight/_uploaded_items_block.scss +7 -0
  113. package/app/assets/stylesheets/spotlight/_utilities.scss +7 -0
  114. package/app/assets/stylesheets/spotlight/_variables.scss +42 -0
  115. package/app/assets/stylesheets/spotlight/_variables_bootstrap.scss +7 -0
  116. package/app/assets/stylesheets/spotlight/_view_larger.scss +22 -0
  117. package/app/assets/stylesheets/spotlight/browse_group_categories_block.scss +92 -0
  118. package/app/assets/stylesheets/spotlight/typeahead.css +77 -0
  119. package/package.json +29 -0
  120. package/vendor/assets/images/sir-trevor-icons.svg +263 -0
  121. package/vendor/assets/javascripts/Leaflet.Editable.js +1917 -0
  122. package/vendor/assets/javascripts/MutationObserver.js +625 -0
  123. package/vendor/assets/javascripts/Path.Drag.js +137 -0
  124. package/vendor/assets/javascripts/bootstrap-tagsinput.js +530 -0
  125. package/vendor/assets/javascripts/eventable.js +205 -0
  126. package/vendor/assets/javascripts/jquery.serializejson.js +234 -0
  127. package/vendor/assets/javascripts/jquery.waitforimages.min.js +2 -0
  128. package/vendor/assets/javascripts/leaflet-iiif.js +323 -0
  129. package/vendor/assets/javascripts/nestable.js +645 -0
  130. package/vendor/assets/javascripts/parameterize.js +137 -0
  131. package/vendor/assets/javascripts/polyfill.min.js +4 -0
  132. package/vendor/assets/javascripts/sir-trevor.js +21639 -0
  133. package/vendor/assets/javascripts/tiny-slider.js +3218 -0
  134. package/vendor/assets/javascripts/typeahead.bundle.min.js +7 -0
  135. package/vendor/assets/stylesheets/bootstrap-tagsinput.css +46 -0
  136. package/vendor/assets/stylesheets/leaflet-areaselect.css +15 -0
  137. package/vendor/assets/stylesheets/sir-trevor/_icons.scss +6 -0
  138. package/vendor/assets/stylesheets/sir-trevor/_variables.scss +22 -0
  139. package/vendor/assets/stylesheets/sir-trevor/base.scss +17 -0
  140. package/vendor/assets/stylesheets/sir-trevor/block-addition-top.scss +95 -0
  141. package/vendor/assets/stylesheets/sir-trevor/block-addition.scss +72 -0
  142. package/vendor/assets/stylesheets/sir-trevor/block-controls.scss +34 -0
  143. package/vendor/assets/stylesheets/sir-trevor/block-positioner.scss +34 -0
  144. package/vendor/assets/stylesheets/sir-trevor/block-replacer.scss +43 -0
  145. package/vendor/assets/stylesheets/sir-trevor/block-ui.scss +120 -0
  146. package/vendor/assets/stylesheets/sir-trevor/block.scss +300 -0
  147. package/vendor/assets/stylesheets/sir-trevor/errors.scss +21 -0
  148. package/vendor/assets/stylesheets/sir-trevor/format-bar.scss +65 -0
  149. package/vendor/assets/stylesheets/sir-trevor/inputs.scss +45 -0
  150. package/vendor/assets/stylesheets/sir-trevor/main.scss +24 -0
  151. package/vendor/assets/stylesheets/sir-trevor/patterns/ui-popup.scss +38 -0
  152. package/vendor/assets/stylesheets/sir-trevor/utils.scss +10 -0
  153. package/vendor/assets/stylesheets/tiny-slider.css +1 -0
@@ -0,0 +1,124 @@
1
+ .dd {
2
+ position: relative;
3
+ display: block;
4
+ margin: 0;
5
+ padding: 0;
6
+ list-style: none;
7
+ font-size: 13px;
8
+ line-height: 20px;
9
+ }
10
+
11
+ tbody.dd-list {
12
+ display: table-row-group;
13
+ padding-left: 0;
14
+ }
15
+
16
+ tbody.dd-dragel {
17
+ display: table;
18
+ }
19
+
20
+ li.dd-item {
21
+ list-style: none;
22
+ }
23
+
24
+ tr.dd-item {
25
+ display: table-row;
26
+ position: relative;
27
+ }
28
+
29
+ .dd-list { display: block; position: relative; margin: 0; padding: 0; list-style: none; }
30
+ .dd-list .dd-list { padding-left: 30px; }
31
+ .dd-collapsed .dd-list { display: none; }
32
+
33
+ .dd-item,
34
+ .dd-empty,
35
+ .dd-placeholder { display: block; position: relative; margin: 0; padding: 0; min-height: 20px; font-size: 13px; line-height: 20px; }
36
+
37
+ .dd-handle { display: block; height: 100%; margin: 5px 0; padding: 5px 10px; color: #333; text-decoration: none; font-weight: bold; border: 1px solid #ccc;
38
+ background: #fafafa;
39
+ background: linear-gradient(to bottom, #fafafa 0%, #eee 100%);
40
+ border-radius: 3px;
41
+ box-sizing: border-box;
42
+ }
43
+ .dd-handle:hover { color: #2ea8e5; background: #fff; }
44
+
45
+ .dd-item > button { display: block; position: relative; cursor: pointer; float: left; width: 25px; height: 20px; margin: 5px 0; padding: 0; text-indent: 100%; white-space: nowrap; overflow: hidden; border: 0; background: transparent; font-size: 12px; line-height: 1; text-align: center; font-weight: bold; }
46
+ .dd-item > button:before { content: '+'; display: block; position: absolute; width: 100%; text-align: center; text-indent: 0; }
47
+ .dd-item > button[data-action="collapse"]:before { content: '-'; }
48
+
49
+ .dd-placeholder,
50
+ .dd-empty { margin: 5px 0; padding: 0; min-height: 30px; border: 1px dashed #b6bcbf; box-sizing: border-box; }
51
+ .dd-empty { border: 1px dashed #bbb; min-height: 100px;
52
+ background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff),
53
+ linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
54
+ background-size: 60px 60px;
55
+ background-position: 0 0, 30px 30px;
56
+ }
57
+
58
+ .dd-dragel { position: absolute; pointer-events: none; z-index: 9999; }
59
+ .dd-dragel > .dd-item .dd-handle { margin-top: 0; }
60
+ .dd-dragel .dd-handle {
61
+ box-shadow: 2px 4px 6px 0 rgba(0,0,0,.1);
62
+ }
63
+
64
+ /**
65
+ * Nestable Extras
66
+ */
67
+
68
+ .nestable-lists { display: block; clear: both; padding: 30px 0; width: 100%; border: 0; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; }
69
+
70
+
71
+ .dd-hover > .dd-handle { background: #2ea8e5 !important; }
72
+
73
+ /**
74
+ * Nestable Draggable Handles
75
+ */
76
+
77
+ .dd3-content {
78
+ display: block;
79
+ margin: 5px 0;
80
+ background: #fafafa;
81
+ background: linear-gradient(to bottom, #fafafa 0%, #eee 100%);
82
+ border-radius: 3px;
83
+ box-sizing: border-box;
84
+
85
+ &.card, .card {
86
+ padding: 0 0 0 30px;
87
+ }
88
+
89
+ .card-header[data-behavior="restore-default"] {
90
+ min-height: 3rem;
91
+ }
92
+ }
93
+ .dd3-content.page-admin {
94
+ position: relative;
95
+ }
96
+ .dd-dragel > .dd3-item > .dd3-content { margin: 0; }
97
+
98
+ .dd3-item > button { margin-left: 30px; }
99
+
100
+ .dd3-handle {
101
+ position: absolute; margin: 0; left: 0; top: 0; cursor: pointer; width: 30px;
102
+ text-indent: 100px;
103
+ white-space: nowrap; overflow: hidden;
104
+ border: 1px solid #aaa;
105
+ background: #ddd;
106
+ background: linear-gradient(to bottom, #ddd 0%, #bbb 100%);
107
+ border-top-right-radius: 0;
108
+ border-bottom-right-radius: 0;
109
+ }
110
+ .dd3-handle:before { content: '≡'; display: block; position: absolute; left: 0; top: 9px; width: 100%; text-align: center; text-indent: 0; color: #fff; font-size: 20px; font-weight: normal; }
111
+ .dd3-handle:hover { background: #ddd; }
112
+
113
+ .dd3-content .card-body,
114
+ .dd3-content .card-header {
115
+ padding: .5rem 1rem
116
+ }
117
+
118
+ .dd3-content.tag {
119
+ .dd3-handle {
120
+ display: none;
121
+ }
122
+
123
+ padding-left: 0;
124
+ }
@@ -0,0 +1,282 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
5
+
6
+ .blacklight-home_pages-show .edit-button {
7
+ margin-bottom: 2em;
8
+ }
9
+
10
+ .form-actions {
11
+ @extend .clearfix;
12
+ }
13
+
14
+ .primary-actions {
15
+ @extend .float-right;
16
+ }
17
+
18
+ #nested-pages {
19
+ margin-bottom: 1em;
20
+ }
21
+
22
+ .st-title {
23
+ position: absolute;
24
+ top: 0;
25
+ left: 0;
26
+ background-color: theme-colors("secondary");
27
+ padding: 3px 8px;
28
+ color: $body-color;
29
+ font-weight: bold;
30
+ }
31
+
32
+ .st-block__inner {
33
+ div.field + div.field {
34
+ margin-top: 2 * $spacer;
35
+ }
36
+
37
+ .field-select {
38
+ margin-bottom: $spacer;
39
+ @media (min-width: breakpoint-min("md")) and (max-width: breakpoint-max("lg")) {
40
+ margin-bottom: 2 * $spacer;
41
+
42
+ > select {
43
+ margin-left: 2 * $spacer * 0.25;
44
+ }
45
+ }
46
+ }
47
+ }
48
+
49
+ #sidebar {
50
+ li {
51
+ margin-top: $spacer * 0.5;
52
+ }
53
+ h4 {
54
+ line-height: $line-height-lg;
55
+ }
56
+ .contacts-header {
57
+ margin-top: 4 * $spacer;
58
+ }
59
+
60
+ .contact-properties {
61
+ padding-left: 0.125rem;
62
+
63
+ > div {
64
+ padding-bottom: 5px;
65
+ }
66
+ }
67
+
68
+ ol.contacts {
69
+ line-height: 1.33;
70
+
71
+ li {
72
+ margin-bottom: 1rem;
73
+ margin-top: $spacer * .5;
74
+ word-break: break-word;
75
+ .name {
76
+ font-weight: bold;
77
+ }
78
+ }
79
+ }
80
+
81
+ ol.sidenav {
82
+ li {
83
+ color: $gray-900;
84
+ margin-top: $spacer * .5;
85
+ }
86
+
87
+ ol.subsection {
88
+ margin-bottom: $spacer;
89
+ padding-left: 0;
90
+ li {
91
+ list-style: square;
92
+ margin-left: 18px;
93
+ margin-top: $spacer * 0.5;
94
+ }
95
+ }
96
+ }
97
+ }
98
+
99
+ .contacts_admin .name {
100
+ font-size: 16px;
101
+ font-weight: 500;
102
+ }
103
+
104
+ .contact-photo {
105
+ border: 1px solid #ccc;
106
+ border-radius: $border-radius;
107
+ height: 70px;
108
+ margin-right: 15px;
109
+ margin-top: 3px;
110
+ min-width: 70px;
111
+ }
112
+
113
+ // Indent contact fields so they align evenly, only when there is a contact photo
114
+ .sidenav.contacts .contact-photo + div[itemprop] ~ div[itemprop] {
115
+ margin-left: 85px;
116
+ }
117
+
118
+ .item-grid-block {
119
+ h3 { margin-top: 0; }
120
+
121
+ .text-col {
122
+ float: none;
123
+ width: auto;
124
+ }
125
+
126
+ .items-col {
127
+ display: flex;
128
+ margin-bottom: 1em;
129
+ z-index: 1;
130
+
131
+ @media (max-width: breakpoint-max("md")) {
132
+ margin-bottom: $line-height-lg;
133
+ }
134
+ }
135
+
136
+ .box {
137
+ align-self: auto;
138
+ flex: 1 0 25%;
139
+ margin: auto;
140
+ min-width: 25%;
141
+ order: 1;
142
+ padding: 5px;
143
+ }
144
+
145
+ .img-thumbnail {
146
+ border: 1px solid $gray-600;
147
+ border-radius: 0;
148
+ height: 110px;
149
+ object-fit: cover;
150
+ overflow: hidden;
151
+ padding: 0;
152
+ width: 100%;
153
+
154
+ @media (min-width: breakpoint-min("lg")) {
155
+ height: 160px; // default: no sidebar, no text column
156
+ // reduce height if on a page with a sidebar or text column, because will be less wide
157
+ .col-md-9 & {
158
+ height: 125px;
159
+ }
160
+ }
161
+ }
162
+
163
+ .item-0 {
164
+ flex: 3 1 41%;
165
+ }
166
+
167
+ .item-2 {
168
+ flex: 2 1 33%;
169
+ }
170
+
171
+ .item-0,
172
+ .item-1,
173
+ .item-2 {
174
+ order: 0;
175
+
176
+ .img-thumbnail {
177
+ height: 270px;
178
+ }
179
+ }
180
+ }
181
+
182
+ .preview-btn, .preview-exit-btn {
183
+ float: left;
184
+ width: 100px;
185
+ }
186
+
187
+ .missing-croppable {
188
+ display: none;
189
+ }
190
+
191
+ .item-input-field[disabled="disabled"] {
192
+ visibility: hidden;
193
+ }
194
+
195
+ .empty-page-block {
196
+ @extend .alert;
197
+ @extend .alert-info;
198
+ margin-top: $spacer;
199
+ h2 {
200
+ margin-top: 0;
201
+ }
202
+ p, ol > li {
203
+ padding: $spacer * 0.5;
204
+ }
205
+ ol > li:last-child {
206
+ padding-bottom: 0;
207
+ }
208
+ }
209
+
210
+ .oembed-block {
211
+ @media (max-width: breakpoint-max("md")) {
212
+ margin-bottom: $spacer;
213
+ }
214
+
215
+ iframe {
216
+ @media (min-width: breakpoint-min("md")) {
217
+ max-width: 100%;
218
+ }
219
+ }
220
+ }
221
+
222
+ .items-block {
223
+
224
+ .text-col {
225
+ float: none;
226
+ width: auto;
227
+ }
228
+ .items-col {
229
+ z-index: 1;
230
+
231
+ @media (max-width: breakpoint-max("md")) {
232
+ margin-bottom: 0;
233
+ }
234
+
235
+ .box {
236
+ min-width: 150px;
237
+ -webkit-flex: 1 1 150px;
238
+ }
239
+
240
+ /* two items */
241
+ .box:first-child:nth-last-child(2),
242
+ .box:first-child:nth-last-child(2) ~ .box {
243
+ min-width: 250px;
244
+ -webkit-flex: 1 1 250px;
245
+ }
246
+
247
+ /* only images, no text */
248
+ &:last-child {
249
+ .box {
250
+ padding: 0.25em;
251
+ img {
252
+ max-height: 250px;
253
+ object-fit: cover;
254
+ @media (max-width: breakpoint-max("md")) {
255
+ max-height: 175px;
256
+ }
257
+ }
258
+
259
+ @media (max-width: breakpoint-max("md")) {
260
+ -webkit-flex: 1 1 175px;
261
+ }
262
+ }
263
+ }
264
+ }
265
+ }
266
+
267
+ .item-features .carousel-indicators {
268
+ @media (max-width: breakpoint-max("sm")) {
269
+ width: 100%;
270
+ margin-top: 2 * $spacer;
271
+ }
272
+ }
273
+
274
+ .carousel-block .carousel-caption h3 {
275
+ padding-left: 2 * $spacer;
276
+ padding-right: 2 * $spacer;
277
+ }
278
+
279
+ .zpr-link {
280
+ @extend .btn-sm;
281
+ margin-top: $spacer * .75;
282
+ }
@@ -0,0 +1,14 @@
1
+ #report-problem-form {
2
+ display: none;
3
+ border-bottom: 1px solid $gray-600;
4
+
5
+ h2 {
6
+ @extend .sr-only;
7
+ }
8
+ }
9
+
10
+ @include media-breakpoint-up(sm) {
11
+ #new_contact_form .col-form-label {
12
+ text-align: right;
13
+ }
14
+ }
@@ -0,0 +1,87 @@
1
+ /* CSS for use across sir-trevor widgets */
2
+
3
+ .widget-header {
4
+ padding: 5px;
5
+ margin-bottom: 20px;
6
+ border-bottom: 1px solid #D4D4D4;
7
+ }
8
+
9
+ .blacklight-home_pages-edit {
10
+ [data-type="search_results"] {
11
+ display: none;
12
+ }
13
+ }
14
+
15
+ .content-block {
16
+ margin-top: 3*$spacer;
17
+ margin-bottom: 3*$spacer;
18
+ }
19
+
20
+ // Sir-trevor sets the overflow to hidden which
21
+ // obscures the bottom of things like the typeahead
22
+ .st-blocks {
23
+ overflow: visible;
24
+ }
25
+
26
+ .st-block__inner {
27
+ border: 1px solid $gray-700;
28
+ box-shadow: 3px 3px 15px $gray-700;
29
+ margin: 1em 20px;
30
+ padding: 1.875em 1.875em 2.8em;
31
+ }
32
+
33
+ .st-block--textable .st-block__inner {
34
+ margin: 1em 20px;
35
+ transition: padding-left .2s ease;
36
+ }
37
+
38
+ .st-block--empty.st-block--textable .st-block__inner {
39
+ padding-left: 75px;
40
+ }
41
+
42
+ .st-block-replacer {
43
+ top: 40%;
44
+ }
45
+
46
+ .form-group .st-text-block {
47
+ @extend .form-control;
48
+ height: auto !important;
49
+ min-height: 6em;
50
+ }
51
+
52
+ .st-block .st-block-ui-btn__delete {
53
+ display: block !important;
54
+ }
55
+
56
+ .st-block-addition {
57
+ display: block !important;
58
+ }
59
+
60
+ .st-block-controls {
61
+ display: none !important;
62
+ }
63
+
64
+ .st-block--controls-active .st-block__inner {
65
+ display: none;
66
+ }
67
+
68
+ .spotlight-block-controls {
69
+ border: 1px solid $gray-700;
70
+ border-radius: 4px;
71
+ box-shadow: 3px 3px 15px $gray-700;
72
+ margin: 1em 20px;
73
+ padding: 1.875em 1.875em 2.8em 70px;
74
+ }
75
+
76
+ .st-block-controls__button {
77
+ @extend .btn;
78
+ @extend .btn-secondary;
79
+ @extend .btn-outline-secondary;
80
+
81
+ border: 1px solid $gray-700;
82
+
83
+ .st-icon {
84
+ margin-left: auto;
85
+ margin-right: auto;
86
+ }
87
+ }
@@ -0,0 +1,87 @@
1
+ .carousel-block {
2
+
3
+ .carousel-inner > .carousel-item > a > img {
4
+ // center and fill the image
5
+ margin-left: auto;
6
+ margin-right: auto;
7
+ max-width: 100%;
8
+ }
9
+
10
+ .carousel-caption {
11
+
12
+ // replace bottom margin with padding
13
+ bottom: 0;
14
+ padding-bottom: 40px;
15
+
16
+ // fill left + right
17
+ left: 0;
18
+ right: 0;
19
+
20
+ // and add a nice background gradient to the captions
21
+ @include gradient-y($start-color: rgba(0,0,0,.0001), $end-color: rgba(0,0,0,.5));
22
+ }
23
+
24
+ // Scale up controls for tablets and up
25
+ @media screen and (min-width: breakpoint-min("sm")) {
26
+ // Show and left align the captions
27
+ .carousel-caption {
28
+ left: 0;
29
+ right: 0;
30
+ padding-bottom: 50px;
31
+ }
32
+ }
33
+
34
+ &.carousel-height-small {
35
+ .carousel-inner > .carousel-item > a > img {
36
+ height: 350px;
37
+ }
38
+ }
39
+
40
+ &.carousel-height-medium {
41
+ .carousel-inner > .carousel-item > a > img {
42
+ height: 500px;
43
+ }
44
+ }
45
+
46
+ &.carousel-height-large {
47
+ .carousel-inner > .carousel-item > a > img {
48
+ height: 800px;
49
+ }
50
+ }
51
+ }
52
+
53
+ .item-features {
54
+ .carousel-indicators {
55
+ bottom: initial;
56
+ left: initial;
57
+ margin-left: 0;
58
+ margin-right: 0;
59
+ text-align: left;
60
+
61
+ &.col-sm-6 {
62
+ @extend .col-sm-6;
63
+ }
64
+
65
+ li {
66
+ display: relative;
67
+ width: 100%;
68
+ height: auto;
69
+ text-indent: 0;
70
+ margin: 0;
71
+ border: none;
72
+ border-radius: 0;
73
+ opacity: 1;
74
+
75
+ @extend .list-group-item;
76
+ }
77
+
78
+ .active, .active:hover {
79
+ @extend .list-group-item;
80
+
81
+ width: 100%;
82
+ height: auto;
83
+
84
+ a { color: #fff; }
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,49 @@
1
+ @import "spotlight/variables";
2
+ @import "spotlight/mixins";
3
+ @import "bootstrap/variables";
4
+
5
+ @import "spotlight/sir-trevor_overrides";
6
+ @import "spotlight/attachments";
7
+ @import "spotlight/pages";
8
+ @import "spotlight/breadcrumbs";
9
+ @import "spotlight/browse";
10
+ @import "spotlight/browse_group_categories_block";
11
+ @import "spotlight/header";
12
+ @import "spotlight/footer";
13
+ @import "spotlight/catalog";
14
+ @import "spotlight/croppable";
15
+ @import "spotlight/curation";
16
+ @import "spotlight/exhibit_admin";
17
+ @import "spotlight/exhibit_navbar";
18
+ @import "spotlight/edit_in_place";
19
+ @import "spotlight/featured_browse_categories_block";
20
+ @import "spotlight/item_text_block";
21
+ @import "spotlight/uploaded_items_block";
22
+ @import "spotlight/modals";
23
+ @import "spotlight/multi_image_selector";
24
+ @import "spotlight/multi_up_item_grid";
25
+ @import "spotlight/slideshow_block";
26
+ @import "spotlight/upload";
27
+ @import "spotlight/nestable";
28
+ @import "spotlight/blacklight_configuration";
29
+ @import "spotlight/typeahead";
30
+ @import "spotlight/bootstrap_overrides";
31
+ @import "spotlight/blacklight_overrides";
32
+ @import "spotlight/report_a_problem";
33
+ @import "spotlight/exhibits_index";
34
+ @import "spotlight/collapse_toggle";
35
+ @import "spotlight/translations";
36
+ @import "spotlight/utilities";
37
+ @import "spotlight/view_larger";
38
+ @import "spotlight/accessibility";
39
+
40
+
41
+
42
+ // Styles below keep footer at bottom of viewport
43
+ html {
44
+ position: relative;
45
+ min-height: 100%;
46
+ }
47
+ body {
48
+ margin-bottom: $footer-height + $footer-top-margin;
49
+ }
@@ -0,0 +1,86 @@
1
+ .translation-edit-form {
2
+ .translation-complete {
3
+ svg { fill: $translation-available-color }
4
+ }
5
+
6
+ .browse-category-title {
7
+ margin-bottom: $spacer;
8
+
9
+ label {
10
+ font-weight: normal;
11
+ }
12
+ }
13
+
14
+ .browse-category-description {
15
+ margin-bottom: $spacer * 2;
16
+ }
17
+
18
+ .table.table-striped th {
19
+ border-top: 0;
20
+ }
21
+ }
22
+
23
+ .translation-subheading {
24
+ border-bottom: 1px solid $border-color;
25
+ margin-bottom: 20px;
26
+ @extend .mt-4;
27
+ }
28
+
29
+ .form-group.translation-form {
30
+ .col-form-label {
31
+ padding-top: $card-spacer-y + $spacer;
32
+ }
33
+
34
+ .translation-complete {
35
+ padding-top: $card-spacer-y + $spacer;
36
+ }
37
+ }
38
+
39
+ .translation-subtitle-toggle,
40
+ .translation-description-toggle {
41
+ margin: 0;
42
+ padding: 0;
43
+
44
+ &.collapsed {
45
+ .caret {
46
+ transform: rotate(-90deg);
47
+ }
48
+ }
49
+
50
+ label { cursor: pointer; }
51
+ }
52
+
53
+ .panel-translation {
54
+ background-color: $translation-panel-bg;
55
+ padding-bottom: 0;
56
+
57
+ .form-text {
58
+ color: $translation-help-color;
59
+ padding-left: 12px;
60
+ }
61
+ }
62
+
63
+ .default-page-outdated {
64
+ font-weight: 700;
65
+ }
66
+
67
+ .new-translated-page {
68
+ font-style: italic;
69
+ }
70
+
71
+ .browse-translations-header {
72
+ border-bottom: 1px solid $border-color;
73
+ color: $gray-600;
74
+ display: block;
75
+ font-size: $h4-font-size;
76
+ font-weight: bold;
77
+ margin-bottom: $spacer * 2;
78
+ margin-top: $spacer;
79
+ padding-bottom: 3px;
80
+ }
81
+
82
+ .translation-import-export-label {
83
+ @media (min-width: 576px) {
84
+ text-align: right;
85
+ }
86
+ }