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.
- package/LICENSE +13 -0
- package/README.md +114 -0
- package/app/assets/images/blacklight/arrow-alt-circle-left.svg +1 -0
- package/app/assets/images/blacklight/arrow-alt-circle-right.svg +1 -0
- package/app/assets/images/blacklight/arrow_back_ios.svg +1 -0
- package/app/assets/images/blacklight/arrow_forward_ios.svg +1 -0
- package/app/assets/images/blacklight/check.svg +1 -0
- package/app/assets/images/blacklight/check_circle.svg +1 -0
- package/app/assets/images/blacklight/chevron_right.svg +1 -0
- package/app/assets/images/blacklight/close.svg +1 -0
- package/app/assets/images/blacklight/edit.svg +1 -0
- package/app/assets/images/blacklight/error.svg +1 -0
- package/app/assets/images/blacklight/highlight_off.svg +1 -0
- package/app/assets/images/blacklight/info.svg +1 -0
- package/app/assets/images/blacklight/warning.svg +1 -0
- package/app/assets/images/blacklight/zoom_in.svg +1 -0
- package/app/assets/images/blacklight/zoom_out.svg +1 -0
- package/app/assets/images/spotlight/.keep +0 -0
- package/app/assets/images/spotlight/blocks/sir-trevor-icons.svg +320 -0
- package/app/assets/images/spotlight/default_browse_thumbnail.jpg +0 -0
- package/app/assets/images/spotlight/default_thumbnail.jpg +0 -0
- package/app/assets/images/spotlight/fallback/default.png +0 -0
- package/app/assets/javascripts/spotlight/admin/add_another.js +22 -0
- package/app/assets/javascripts/spotlight/admin/add_new_button.js +81 -0
- package/app/assets/javascripts/spotlight/admin/appearance.js +24 -0
- package/app/assets/javascripts/spotlight/admin/attachments.js +2 -0
- package/app/assets/javascripts/spotlight/admin/blacklight_configuration.js +63 -0
- package/app/assets/javascripts/spotlight/admin/block_mixins/autocompleteable.js +72 -0
- package/app/assets/javascripts/spotlight/admin/block_mixins/formable.js +78 -0
- package/app/assets/javascripts/spotlight/admin/block_mixins/plustextable.js +57 -0
- package/app/assets/javascripts/spotlight/admin/blocks/block.js +23 -0
- package/app/assets/javascripts/spotlight/admin/blocks/browse_block.js +87 -0
- package/app/assets/javascripts/spotlight/admin/blocks/browse_group_categories_block.js +88 -0
- package/app/assets/javascripts/spotlight/admin/blocks/iframe_block.js +34 -0
- package/app/assets/javascripts/spotlight/admin/blocks/link_to_search_block.js +16 -0
- package/app/assets/javascripts/spotlight/admin/blocks/oembed_block.js +40 -0
- package/app/assets/javascripts/spotlight/admin/blocks/pages_block.js +22 -0
- package/app/assets/javascripts/spotlight/admin/blocks/resources_block.js +145 -0
- package/app/assets/javascripts/spotlight/admin/blocks/rule_block.js +25 -0
- package/app/assets/javascripts/spotlight/admin/blocks/search_result_block.js +44 -0
- package/app/assets/javascripts/spotlight/admin/blocks/solr_documents_base_block.js +108 -0
- package/app/assets/javascripts/spotlight/admin/blocks/solr_documents_block.js +25 -0
- package/app/assets/javascripts/spotlight/admin/blocks/solr_documents_carousel_block.js +103 -0
- package/app/assets/javascripts/spotlight/admin/blocks/solr_documents_embed_block.js +17 -0
- package/app/assets/javascripts/spotlight/admin/blocks/solr_documents_features_block.js +41 -0
- package/app/assets/javascripts/spotlight/admin/blocks/solr_documents_grid_block.js +14 -0
- package/app/assets/javascripts/spotlight/admin/blocks/uploaded_items_block.js +145 -0
- package/app/assets/javascripts/spotlight/admin/catalog_edit.js +16 -0
- package/app/assets/javascripts/spotlight/admin/copy_email_addresses.js +9 -0
- package/app/assets/javascripts/spotlight/admin/crop.es6 +310 -0
- package/app/assets/javascripts/spotlight/admin/croppable.js +25 -0
- package/app/assets/javascripts/spotlight/admin/edit_in_place.js +54 -0
- package/app/assets/javascripts/spotlight/admin/exhibit_tag_autocomplete.js +37 -0
- package/app/assets/javascripts/spotlight/admin/exhibits.js +58 -0
- package/app/assets/javascripts/spotlight/admin/form_observer.js +86 -0
- package/app/assets/javascripts/spotlight/admin/iiif.es6 +54 -0
- package/app/assets/javascripts/spotlight/admin/index.js +16 -0
- package/app/assets/javascripts/spotlight/admin/locks.js +12 -0
- package/app/assets/javascripts/spotlight/admin/multi_image_selector.js +158 -0
- package/app/assets/javascripts/spotlight/admin/pages.js.erb +40 -0
- package/app/assets/javascripts/spotlight/admin/progress_monitor.js +148 -0
- package/app/assets/javascripts/spotlight/admin/readonly_checkbox.js +6 -0
- package/app/assets/javascripts/spotlight/admin/search_typeahead.js +108 -0
- package/app/assets/javascripts/spotlight/admin/select_related_input.js +34 -0
- package/app/assets/javascripts/spotlight/admin/sir-trevor/block_controls.js +120 -0
- package/app/assets/javascripts/spotlight/admin/sir-trevor/block_limits.js +37 -0
- package/app/assets/javascripts/spotlight/admin/sir-trevor/locales.js +120 -0
- package/app/assets/javascripts/spotlight/admin/spotlight_nestable.js +72 -0
- package/app/assets/javascripts/spotlight/admin/tabs.js +6 -0
- package/app/assets/javascripts/spotlight/admin/translation_progress.js +23 -0
- package/app/assets/javascripts/spotlight/admin/users.js +79 -0
- package/app/assets/javascripts/spotlight/application.js +14 -0
- package/app/assets/javascripts/spotlight/spotlight.js +23 -0
- package/app/assets/javascripts/spotlight/user/analytics.js +9 -0
- package/app/assets/javascripts/spotlight/user/browse_group_categories.js +59 -0
- package/app/assets/javascripts/spotlight/user/carousel.js +3 -0
- package/app/assets/javascripts/spotlight/user/clear_form_button.js +27 -0
- package/app/assets/javascripts/spotlight/user/index.js +8 -0
- package/app/assets/javascripts/spotlight/user/report_a_problem.js +39 -0
- package/app/assets/javascripts/spotlight/user/zpr_links.js.erb +45 -0
- package/app/assets/stylesheets/spotlight/_accessibility.scss +8 -0
- package/app/assets/stylesheets/spotlight/_attachments.css +4 -0
- package/app/assets/stylesheets/spotlight/_blacklight_configuration.scss +82 -0
- package/app/assets/stylesheets/spotlight/_blacklight_overrides.scss +21 -0
- package/app/assets/stylesheets/spotlight/_bootstrap_overrides.scss +105 -0
- package/app/assets/stylesheets/spotlight/_breadcrumbs.scss +6 -0
- package/app/assets/stylesheets/spotlight/_browse.scss +158 -0
- package/app/assets/stylesheets/spotlight/_catalog.scss +161 -0
- package/app/assets/stylesheets/spotlight/_collapse_toggle.scss +14 -0
- package/app/assets/stylesheets/spotlight/_croppable.scss +4 -0
- package/app/assets/stylesheets/spotlight/_curation.scss +224 -0
- package/app/assets/stylesheets/spotlight/_edit_in_place.scss +9 -0
- package/app/assets/stylesheets/spotlight/_exhibit_admin.scss +81 -0
- package/app/assets/stylesheets/spotlight/_exhibit_navbar.scss +10 -0
- package/app/assets/stylesheets/spotlight/_exhibits_index.scss +147 -0
- package/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +269 -0
- package/app/assets/stylesheets/spotlight/_footer.scss +12 -0
- package/app/assets/stylesheets/spotlight/_header.scss +155 -0
- package/app/assets/stylesheets/spotlight/_item_text_block.scss +50 -0
- package/app/assets/stylesheets/spotlight/_mixins.scss +17 -0
- package/app/assets/stylesheets/spotlight/_modals.scss +3 -0
- package/app/assets/stylesheets/spotlight/_multi_image_selector.scss +22 -0
- package/app/assets/stylesheets/spotlight/_multi_up_item_grid.scss +63 -0
- package/app/assets/stylesheets/spotlight/_nestable.scss +124 -0
- package/app/assets/stylesheets/spotlight/_pages.scss +282 -0
- package/app/assets/stylesheets/spotlight/_report_a_problem.scss +14 -0
- package/app/assets/stylesheets/spotlight/_sir-trevor_overrides.scss +87 -0
- package/app/assets/stylesheets/spotlight/_slideshow_block.scss +87 -0
- package/app/assets/stylesheets/spotlight/_spotlight.scss +49 -0
- package/app/assets/stylesheets/spotlight/_translations.scss +86 -0
- package/app/assets/stylesheets/spotlight/_upload.scss +0 -0
- package/app/assets/stylesheets/spotlight/_uploaded_items_block.scss +7 -0
- package/app/assets/stylesheets/spotlight/_utilities.scss +7 -0
- package/app/assets/stylesheets/spotlight/_variables.scss +42 -0
- package/app/assets/stylesheets/spotlight/_variables_bootstrap.scss +7 -0
- package/app/assets/stylesheets/spotlight/_view_larger.scss +22 -0
- package/app/assets/stylesheets/spotlight/browse_group_categories_block.scss +92 -0
- package/app/assets/stylesheets/spotlight/typeahead.css +77 -0
- package/package.json +29 -0
- package/vendor/assets/images/sir-trevor-icons.svg +263 -0
- package/vendor/assets/javascripts/Leaflet.Editable.js +1917 -0
- package/vendor/assets/javascripts/MutationObserver.js +625 -0
- package/vendor/assets/javascripts/Path.Drag.js +137 -0
- package/vendor/assets/javascripts/bootstrap-tagsinput.js +530 -0
- package/vendor/assets/javascripts/eventable.js +205 -0
- package/vendor/assets/javascripts/jquery.serializejson.js +234 -0
- package/vendor/assets/javascripts/jquery.waitforimages.min.js +2 -0
- package/vendor/assets/javascripts/leaflet-iiif.js +323 -0
- package/vendor/assets/javascripts/nestable.js +645 -0
- package/vendor/assets/javascripts/parameterize.js +137 -0
- package/vendor/assets/javascripts/polyfill.min.js +4 -0
- package/vendor/assets/javascripts/sir-trevor.js +21639 -0
- package/vendor/assets/javascripts/tiny-slider.js +3218 -0
- package/vendor/assets/javascripts/typeahead.bundle.min.js +7 -0
- package/vendor/assets/stylesheets/bootstrap-tagsinput.css +46 -0
- package/vendor/assets/stylesheets/leaflet-areaselect.css +15 -0
- package/vendor/assets/stylesheets/sir-trevor/_icons.scss +6 -0
- package/vendor/assets/stylesheets/sir-trevor/_variables.scss +22 -0
- package/vendor/assets/stylesheets/sir-trevor/base.scss +17 -0
- package/vendor/assets/stylesheets/sir-trevor/block-addition-top.scss +95 -0
- package/vendor/assets/stylesheets/sir-trevor/block-addition.scss +72 -0
- package/vendor/assets/stylesheets/sir-trevor/block-controls.scss +34 -0
- package/vendor/assets/stylesheets/sir-trevor/block-positioner.scss +34 -0
- package/vendor/assets/stylesheets/sir-trevor/block-replacer.scss +43 -0
- package/vendor/assets/stylesheets/sir-trevor/block-ui.scss +120 -0
- package/vendor/assets/stylesheets/sir-trevor/block.scss +300 -0
- package/vendor/assets/stylesheets/sir-trevor/errors.scss +21 -0
- package/vendor/assets/stylesheets/sir-trevor/format-bar.scss +65 -0
- package/vendor/assets/stylesheets/sir-trevor/inputs.scss +45 -0
- package/vendor/assets/stylesheets/sir-trevor/main.scss +24 -0
- package/vendor/assets/stylesheets/sir-trevor/patterns/ui-popup.scss +38 -0
- package/vendor/assets/stylesheets/sir-trevor/utils.scss +10 -0
- package/vendor/assets/stylesheets/tiny-slider.css +1 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
$featured-browse-category-border-color: $border-color;
|
|
2
|
+
$featured-browse-category-caption-color: $white;
|
|
3
|
+
|
|
4
|
+
// These are the widths of the main content area at each viewport width
|
|
5
|
+
$container-sm: 510px; // (Bootstrap 4 "sm")
|
|
6
|
+
$container-md: 690px; // (Bootstrap 4 "md")
|
|
7
|
+
$container-lg: 930px; // (Bootstrap 4 "lg")
|
|
8
|
+
$container-xl: 1100px; // (Bootstrap 4 "xl")
|
|
9
|
+
$container-xl-sidebar: 825px; // ("xl" main content area when sidebar present)
|
|
10
|
+
|
|
11
|
+
// The aspect ratio factor determines the height of the tile.
|
|
12
|
+
// Can use different values because images are background images
|
|
13
|
+
// and will fit the container without distortion.
|
|
14
|
+
$aspect-ratio-factor-4x3: 0.75; // 4:3 width:height
|
|
15
|
+
$aspect-ratio-factor-1x1: 1; // 1:1 width: height
|
|
16
|
+
|
|
17
|
+
// Horizontal space between tiles
|
|
18
|
+
$tile-margin: 16px;
|
|
19
|
+
|
|
20
|
+
// Limits size of tile in cases where calculations create unreasonably large tile
|
|
21
|
+
$maximum-tile-width: 290px;
|
|
22
|
+
|
|
23
|
+
// `xs` viewport width; always display one full-width tile, wrapping others
|
|
24
|
+
$xs-one-tile-width: $maximum-tile-width;
|
|
25
|
+
|
|
26
|
+
// `sm` viewport width
|
|
27
|
+
$sm-one-tile-width: $xs-one-tile-width;
|
|
28
|
+
$sm-two-tile-width: ($container-sm / 2) - $tile-margin;
|
|
29
|
+
$sm-three-tile-width: ($container-sm / 3) - $tile-margin;
|
|
30
|
+
|
|
31
|
+
// `md` viewport width
|
|
32
|
+
$md-one-tile-width: $xs-one-tile-width;
|
|
33
|
+
$md-two-tile-width: ($container-md/ 2) - $tile-margin;
|
|
34
|
+
$md-three-tile-width: ($container-md / 3) - $tile-margin;
|
|
35
|
+
|
|
36
|
+
// `lg` viewport width
|
|
37
|
+
$lg-one-tile-width: $xs-one-tile-width;
|
|
38
|
+
$lg-two-tile-width: ($container-lg/ 2) - $tile-margin;
|
|
39
|
+
$lg-three-tile-width: ($container-lg / 3) - $tile-margin;
|
|
40
|
+
$lg-four-tile-width: ($container-lg / 4) - $tile-margin;
|
|
41
|
+
$lg-five-tile-width: ($container-lg / 5) - $tile-margin;
|
|
42
|
+
|
|
43
|
+
// `xl` viewport width
|
|
44
|
+
$xl-one-tile-width: $xs-one-tile-width;
|
|
45
|
+
$xl-two-tile-width: ($container-xl/ 2) - $tile-margin;
|
|
46
|
+
$xl-three-tile-width: ($container-xl / 3) - $tile-margin;
|
|
47
|
+
$xl-four-tile-width: ($container-xl / 4) - $tile-margin;
|
|
48
|
+
$xl-five-tile-width: ($container-xl / 5) - $tile-margin;
|
|
49
|
+
|
|
50
|
+
// `xl` with sidebar viewport width
|
|
51
|
+
$xl-sidebar-three-tile-width: ($container-xl-sidebar / 3) - $tile-margin;
|
|
52
|
+
$xl-sidebar-four-tile-width: ($container-xl-sidebar / 4) - $tile-margin;
|
|
53
|
+
$xl-sidebar-five-tile-width: ($container-xl-sidebar / 5) - $tile-margin;
|
|
54
|
+
|
|
55
|
+
.browse-category {
|
|
56
|
+
background-size: cover;
|
|
57
|
+
background-position: center;
|
|
58
|
+
background-repeat: no-repeat;
|
|
59
|
+
border: 2px solid $featured-browse-category-border-color;
|
|
60
|
+
border-radius: $border-radius-lg;
|
|
61
|
+
position: relative;
|
|
62
|
+
|
|
63
|
+
.category-caption {
|
|
64
|
+
bottom: 16px; // assumes default font-size of 16px, using browser default of 1 rem == 16px
|
|
65
|
+
color: $featured-browse-category-caption-color;
|
|
66
|
+
position: absolute;
|
|
67
|
+
text-align: center;
|
|
68
|
+
text-shadow: 0 1px 0 $black;
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.category-title {
|
|
73
|
+
font-size: $h4-font-size;
|
|
74
|
+
line-height: 1.2;
|
|
75
|
+
margin: 0;
|
|
76
|
+
padding: $spacer / 4;
|
|
77
|
+
|
|
78
|
+
@media (min-width: breakpoint-min("sm")) {
|
|
79
|
+
font-size: 1.125rem;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (min-width: breakpoint-min("md")) {
|
|
83
|
+
font-size: $h5-font-size;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@media (min-width: breakpoint-min("lg")) {
|
|
87
|
+
font-size: $h4-font-size;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.category-subtitle {
|
|
92
|
+
display: block;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.item-count {
|
|
96
|
+
font-size: $font-size-base;
|
|
97
|
+
text-transform: uppercase;
|
|
98
|
+
|
|
99
|
+
@media (min-width: breakpoint-min("sm")) and (max-width: breakpoint-min("lg")) {
|
|
100
|
+
font-size: $font-size-sm;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.spotlight-flexbox.browse-categories {
|
|
106
|
+
justify-content: space-around;
|
|
107
|
+
|
|
108
|
+
.box {
|
|
109
|
+
flex: none;
|
|
110
|
+
margin-bottom: 1rem;
|
|
111
|
+
min-width: 150px;
|
|
112
|
+
padding: 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Most tile sizing works regardless of sidebar or not, because
|
|
117
|
+
// only "lg" and "xl" have a sidebar, and "lg" with a sidebar
|
|
118
|
+
// is the same width as "md" without a sidebar.
|
|
119
|
+
[data-sidebar="false"],
|
|
120
|
+
[data-sidebar="true"] {
|
|
121
|
+
&.categories-1, &.categories-2, &.categories-3,
|
|
122
|
+
&.categories-4, &.categories-5 {
|
|
123
|
+
.browse-category {
|
|
124
|
+
max-width: $maximum-tile-width;
|
|
125
|
+
max-height: $maximum-tile-width * $aspect-ratio-factor-4x3;
|
|
126
|
+
width: $xs-one-tile-width;
|
|
127
|
+
height: $xs-one-tile-width * $aspect-ratio-factor-4x3;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
&.categories-2 {
|
|
131
|
+
.browse-category {
|
|
132
|
+
@media (min-width: breakpoint-min("sm")) {
|
|
133
|
+
width: $sm-two-tile-width;
|
|
134
|
+
height: $sm-two-tile-width * $aspect-ratio-factor-4x3;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@media (min-width: breakpoint-min("md")) {
|
|
138
|
+
width: $md-two-tile-width;
|
|
139
|
+
height: $md-two-tile-width * $aspect-ratio-factor-4x3;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
&.categories-3 {
|
|
144
|
+
.browse-category {
|
|
145
|
+
@media (min-width: breakpoint-min("sm")) {
|
|
146
|
+
width: $sm-three-tile-width;
|
|
147
|
+
height: $sm-three-tile-width * $aspect-ratio-factor-4x3;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@media (min-width: breakpoint-min("md")) {
|
|
151
|
+
width: $md-three-tile-width;
|
|
152
|
+
height: $md-three-tile-width * $aspect-ratio-factor-4x3;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@media (min-width: breakpoint-min("lg")) {
|
|
156
|
+
width: $lg-three-tile-width;
|
|
157
|
+
height: $lg-three-tile-width * $aspect-ratio-factor-4x3;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
&.categories-4 {
|
|
162
|
+
.browse-category {
|
|
163
|
+
@media (min-width: breakpoint-min("sm")) {
|
|
164
|
+
width: $sm-two-tile-width;
|
|
165
|
+
height: $sm-two-tile-width * $aspect-ratio-factor-4x3;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@media (min-width: breakpoint-min("md")) {
|
|
169
|
+
width: $md-two-tile-width;
|
|
170
|
+
height: $md-two-tile-width * $aspect-ratio-factor-4x3;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@media (min-width: breakpoint-min("lg")) {
|
|
174
|
+
width: $lg-four-tile-width;
|
|
175
|
+
height: $lg-four-tile-width * $aspect-ratio-factor-4x3;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@media (min-width: breakpoint-min("xl")) {
|
|
179
|
+
width: $xl-four-tile-width;
|
|
180
|
+
height: $xl-four-tile-width * $aspect-ratio-factor-4x3;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
&.categories-5 {
|
|
185
|
+
.browse-category {
|
|
186
|
+
@media (min-width: breakpoint-min("sm")) {
|
|
187
|
+
width: $sm-three-tile-width;
|
|
188
|
+
height: $sm-three-tile-width * $aspect-ratio-factor-4x3;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@media (min-width: breakpoint-min("md")) {
|
|
192
|
+
width: $md-three-tile-width;
|
|
193
|
+
height: $md-three-tile-width * $aspect-ratio-factor-4x3;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@media (min-width: breakpoint-min("lg")) {
|
|
197
|
+
width: $lg-five-tile-width;
|
|
198
|
+
height: $lg-five-tile-width * $aspect-ratio-factor-4x3;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
@media (min-width: breakpoint-min("xl")) {
|
|
202
|
+
width: $xl-five-tile-width;
|
|
203
|
+
height: $xl-five-tile-width * $aspect-ratio-factor-4x3;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
[data-sidebar="true"] {
|
|
210
|
+
// Font size smaller at "lg" breakpoint only when there is a sidebar
|
|
211
|
+
.browse-category {
|
|
212
|
+
.category-title {
|
|
213
|
+
@media (min-width: breakpoint-min("lg")) and (max-width: breakpoint-min("xl")) {
|
|
214
|
+
font-size: $h5-font-size;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.item-count {
|
|
219
|
+
@media (min-width: breakpoint-min("lg")) and (max-width: breakpoint-min("xl")) {
|
|
220
|
+
font-size: $font-size-sm;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// Special cases where the sizing above doesn't work when there is a sidebar.
|
|
227
|
+
// Note that "lg" with a sidebar has the same available width as "md"
|
|
228
|
+
// without a sidebar.
|
|
229
|
+
[data-sidebar="true"] {
|
|
230
|
+
&.categories-3 {
|
|
231
|
+
.browse-category {
|
|
232
|
+
@media (min-width: breakpoint-min("lg")) {
|
|
233
|
+
width: $md-three-tile-width;
|
|
234
|
+
height: $md-three-tile-width * $aspect-ratio-factor-4x3;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@media (min-width: breakpoint-min("xl")) {
|
|
238
|
+
width: $xl-sidebar-three-tile-width;
|
|
239
|
+
height: $xl-sidebar-three-tile-width * $aspect-ratio-factor-4x3;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
&.categories-4 {
|
|
244
|
+
.browse-category {
|
|
245
|
+
@media (min-width: breakpoint-min("lg")) {
|
|
246
|
+
width: $md-two-tile-width;
|
|
247
|
+
height: $md-two-tile-width * $aspect-ratio-factor-4x3;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@media (min-width: breakpoint-min("xl")) {
|
|
251
|
+
width: $xl-sidebar-four-tile-width;
|
|
252
|
+
height: $xl-sidebar-four-tile-width * $aspect-ratio-factor-4x3;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
&.categories-5 {
|
|
257
|
+
.browse-category {
|
|
258
|
+
@media (min-width: breakpoint-min("lg")) {
|
|
259
|
+
width: $md-three-tile-width;
|
|
260
|
+
height: $md-three-tile-width * $aspect-ratio-factor-4x3;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
@media (min-width: breakpoint-min("xl")) {
|
|
264
|
+
width: $xl-sidebar-five-tile-width;
|
|
265
|
+
height: $xl-sidebar-five-tile-width * $aspect-ratio-factor-4x3;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
@mixin masthead-background-containers() {
|
|
2
|
+
position: absolute;
|
|
3
|
+
left: 0;
|
|
4
|
+
right: 0;
|
|
5
|
+
display: block;
|
|
6
|
+
width: auto;
|
|
7
|
+
height: inherit;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.navbar-static-top {
|
|
11
|
+
margin-bottom: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.masthead {
|
|
15
|
+
background-color: $masthead-bg;
|
|
16
|
+
border-bottom: 1px solid $border-color;
|
|
17
|
+
margin-bottom: $spacer * 1.5;
|
|
18
|
+
padding: 0;
|
|
19
|
+
position: relative;
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
.site-title {
|
|
23
|
+
margin-bottom: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.site-title-wrapper {
|
|
27
|
+
margin-top: $spacer * 1.25;
|
|
28
|
+
padding-bottom: $spacer * 0.75;
|
|
29
|
+
position: relative;
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
small {
|
|
34
|
+
@extend .d-none;
|
|
35
|
+
@extend .d-md-block;
|
|
36
|
+
@extend .py-2;
|
|
37
|
+
|
|
38
|
+
font-size: $h4-font-size;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.navbar {
|
|
42
|
+
&:last-child {
|
|
43
|
+
margin-bottom: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.navbar-form {
|
|
48
|
+
text-align: right;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.resource-masthead {
|
|
53
|
+
.site-title {
|
|
54
|
+
@extend .text-center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.navbar {
|
|
58
|
+
border-bottom: 1px solid $navbar-transparent-border;
|
|
59
|
+
border-top: 0;
|
|
60
|
+
margin-bottom: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.navbar-nav {
|
|
64
|
+
float: right;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.search-query-form {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.site-title-container {
|
|
73
|
+
@extend .px-4;
|
|
74
|
+
@extend .py-2;
|
|
75
|
+
|
|
76
|
+
max-height: $masthead-height - $navbar-brand-height;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.image-masthead {
|
|
80
|
+
background-color: $black;
|
|
81
|
+
|
|
82
|
+
.exhibit-navbar {
|
|
83
|
+
@extend .navbar-dark;
|
|
84
|
+
background-color: $navbar-transparent-page-bg;
|
|
85
|
+
|
|
86
|
+
.navbar-nav {
|
|
87
|
+
text-transform: uppercase;
|
|
88
|
+
|
|
89
|
+
.dropdown-menu {
|
|
90
|
+
text-transform: none;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.h2 {
|
|
96
|
+
color: $white;
|
|
97
|
+
text-shadow: 1px 1px 0 $gray-900;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
small {
|
|
101
|
+
color: $white;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// This is to add a background image to the masthead, in a way that
|
|
105
|
+
// enables the site title and subtitle text to be visible above it.
|
|
106
|
+
.background-container {
|
|
107
|
+
@include masthead-background-containers();
|
|
108
|
+
background-repeat: no-repeat;
|
|
109
|
+
background-size: cover;
|
|
110
|
+
|
|
111
|
+
// Add right border to image to hide lighter blurred edge
|
|
112
|
+
border-right: 1px solid $black;
|
|
113
|
+
|
|
114
|
+
// Add small amount of blur to help text stand out
|
|
115
|
+
//filter: url(masthead/blur.svg#blur); // for older versions of FF
|
|
116
|
+
-webkit-filter: blur($masthead-image-blur);
|
|
117
|
+
filter: blur($masthead-image-blur);
|
|
118
|
+
|
|
119
|
+
height: 100%;
|
|
120
|
+
|
|
121
|
+
// Shift image slightly to hide blurred edge of image
|
|
122
|
+
margin-left: -$masthead-image-blur;
|
|
123
|
+
margin-top: -$masthead-image-blur;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Include gradient to improve text legibility,
|
|
128
|
+
// especially on light background images.
|
|
129
|
+
.background-container-gradient {
|
|
130
|
+
@include masthead-background-containers();
|
|
131
|
+
background:
|
|
132
|
+
linear-gradient(
|
|
133
|
+
rgba(0, 0, 0, 0.0),
|
|
134
|
+
rgba(0, 0, 0, 0.4),
|
|
135
|
+
rgba(0, 0, 0, 0.5)
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
height: 100%;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.col-md-4 {
|
|
143
|
+
.submit-search-text {
|
|
144
|
+
// hide 'search' label
|
|
145
|
+
// copied from .sr-only, sadly can't seem to use @extend in a media
|
|
146
|
+
// query like this, have to copy.
|
|
147
|
+
border: 0;
|
|
148
|
+
clip: rect(0, 0, 0, 0);
|
|
149
|
+
height: 1px;
|
|
150
|
+
margin: -1px;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
position: absolute;
|
|
153
|
+
width: 1px;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@mixin record-thumbnail-textarea {
|
|
2
|
+
color: #42474b;
|
|
3
|
+
border: 0.1em solid #d4d4d4;
|
|
4
|
+
padding: 0 .6em;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.st-block input[type="text"] {
|
|
8
|
+
@extend .form-control;
|
|
9
|
+
}
|
|
10
|
+
.primary-caption, .secondary-caption, .auto-cyle-images {
|
|
11
|
+
select {
|
|
12
|
+
margin-left: 10px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.max-heights {
|
|
17
|
+
label.carousel-size {
|
|
18
|
+
margin-left: 5px;
|
|
19
|
+
padding-right: 10px;
|
|
20
|
+
font-weight: normal;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.item-text {
|
|
25
|
+
.items-col {
|
|
26
|
+
z-index: 1;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.item-text-admin {
|
|
31
|
+
.text-align {
|
|
32
|
+
margin-top: 15px;
|
|
33
|
+
}
|
|
34
|
+
.dd3-content {
|
|
35
|
+
&.card {
|
|
36
|
+
padding-left: 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
#item-text {
|
|
40
|
+
@extend .form-control;
|
|
41
|
+
|
|
42
|
+
min-height: 7em;
|
|
43
|
+
|
|
44
|
+
&:hover, &:active {
|
|
45
|
+
@include record-thumbnail-textarea;
|
|
46
|
+
}
|
|
47
|
+
@include record-thumbnail-textarea;
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@mixin edit-in-place-highlighting() {
|
|
2
|
+
background: #F7F7D0;
|
|
3
|
+
cursor: text;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin panel-hover-highlighting() {
|
|
7
|
+
background: $gray-300;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@mixin private-label() {
|
|
11
|
+
&:after {
|
|
12
|
+
@extend .badge;
|
|
13
|
+
@extend .badge-warning;
|
|
14
|
+
content: 'Private';
|
|
15
|
+
margin-left: 3px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.thumbs-list {
|
|
2
|
+
overflow-x: scroll;
|
|
3
|
+
height: 150px;
|
|
4
|
+
padding-bottom: 10px;
|
|
5
|
+
position: relative;
|
|
6
|
+
ul {
|
|
7
|
+
background: white;
|
|
8
|
+
padding-left: 0;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
list-style-type: none;
|
|
12
|
+
position: absolute;
|
|
13
|
+
li {
|
|
14
|
+
flex: 0 0 auto;
|
|
15
|
+
min-width: 60px;
|
|
16
|
+
padding: $spacer $spacer;
|
|
17
|
+
&.active {
|
|
18
|
+
background-color: #999999;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
.item-grid-admin {
|
|
2
|
+
.field {
|
|
3
|
+
input[type='text'] {
|
|
4
|
+
width: 89%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.twitter-typeahead {
|
|
8
|
+
margin-bottom: 2*$spacer;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
.field-select {
|
|
12
|
+
margin-top: 2*$spacer;
|
|
13
|
+
select {
|
|
14
|
+
display: inline;
|
|
15
|
+
width: auto;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.dd3-item {
|
|
19
|
+
margin-bottom: 2*$spacer;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
// Hide the secondary caption field
|
|
23
|
+
// for the Features block so we can
|
|
24
|
+
// re-use the rest from the generic
|
|
25
|
+
// multi-up item grid.
|
|
26
|
+
[data-type='item-features'] {
|
|
27
|
+
.secondary-caption {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.spotlight-flexbox {
|
|
32
|
+
display: -webkit-box;
|
|
33
|
+
display: -moz-box;
|
|
34
|
+
display: -ms-flexbox;
|
|
35
|
+
display: -webkit-flex;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-flow: row wrap;
|
|
38
|
+
|
|
39
|
+
.box {
|
|
40
|
+
text-align: center;
|
|
41
|
+
padding: 1em;
|
|
42
|
+
min-width: 125px;
|
|
43
|
+
|
|
44
|
+
@media (max-width: breakpoint-max("sm")) {
|
|
45
|
+
min-width: 200px;
|
|
46
|
+
-webkit-flex: 1 1 200px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.caption {
|
|
50
|
+
margin-top: 5px;
|
|
51
|
+
font-style: italic;
|
|
52
|
+
}
|
|
53
|
+
img {
|
|
54
|
+
max-width: 100%;
|
|
55
|
+
}
|
|
56
|
+
-webkit-box-flex: 1;
|
|
57
|
+
-moz-box-flex: 1;
|
|
58
|
+
-webkit-flex: 1;
|
|
59
|
+
-ms-flex: 1;
|
|
60
|
+
flex: 1;
|
|
61
|
+
-webkit-flex: 1 1 125px;
|
|
62
|
+
}
|
|
63
|
+
}
|