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,300 @@
|
|
|
1
|
+
.st-blocks {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
position:relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.st-block {
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.st-block__inner {
|
|
11
|
+
position: relative;
|
|
12
|
+
margin: 0 110px;
|
|
13
|
+
margin-top: 1em;
|
|
14
|
+
margin-bottom: 1em;
|
|
15
|
+
|
|
16
|
+
.st-block--textable & {
|
|
17
|
+
margin-top: 0;
|
|
18
|
+
margin-bottom: 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.st-block__inner--droppable {
|
|
23
|
+
border: 1px solid $blocks-control-border-color;
|
|
24
|
+
background: $blocks-control-bg-color;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
margin-top: 2em;
|
|
27
|
+
margin-bottom: 2em;
|
|
28
|
+
|
|
29
|
+
&:focus {
|
|
30
|
+
border-color: $accent-color;
|
|
31
|
+
outline: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.st-block__inner {
|
|
36
|
+
.st-block[data-type="quote"] & {
|
|
37
|
+
margin-left: 155px;
|
|
38
|
+
margin-right: 155px;
|
|
39
|
+
margin-top: 2em;
|
|
40
|
+
margin-bottom: 2em;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.st-block__inner--controllable {
|
|
45
|
+
padding-bottom: 3em;
|
|
46
|
+
transition: all 0.2s;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.st-block--with-errors .st-block__inner,
|
|
50
|
+
.st-block--delete-active .st-block__inner {
|
|
51
|
+
border-color: $error-color;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.st-block--with-plus:after,
|
|
55
|
+
.st-icon--add:after {
|
|
56
|
+
display: block;
|
|
57
|
+
position: relative; z-index: 1;
|
|
58
|
+
bottom: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.st--block-limit-reached .st-block-addition {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.st-icon--add:after {
|
|
66
|
+
text-align: center;
|
|
67
|
+
font-size: 1.875em;
|
|
68
|
+
padding: 0.3em 0;
|
|
69
|
+
line-height: 0.9;
|
|
70
|
+
border-radius: 0.2em;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.st-block--with-plus:after {
|
|
74
|
+
background: $blocks-control-bg-color;
|
|
75
|
+
color: $accent-color;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.with-st-controls:after,
|
|
80
|
+
.with-st-controls:before {
|
|
81
|
+
display:none
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.st-block.st-drag-over:after,
|
|
85
|
+
.st-block.st-drag-over:last-child:after,
|
|
86
|
+
.st-top-controls.st-drag-over:before {
|
|
87
|
+
content: "";
|
|
88
|
+
background: transparent;
|
|
89
|
+
display:block;
|
|
90
|
+
width:100%;
|
|
91
|
+
height:3px;
|
|
92
|
+
position:absolute;
|
|
93
|
+
bottom:0;
|
|
94
|
+
left:0;
|
|
95
|
+
background:$accent-color;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.st-drag-element {
|
|
99
|
+
background:#fff;
|
|
100
|
+
box-shadow: 3px 3px $accent-color inset, -3px -3px $accent-color inset ;
|
|
101
|
+
position:absolute;
|
|
102
|
+
width:100%;
|
|
103
|
+
z-index:-1;
|
|
104
|
+
|
|
105
|
+
.st-block-addition {
|
|
106
|
+
display:none;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.st-block--dragging {
|
|
111
|
+
background:#f6f7f9;
|
|
112
|
+
& > * {
|
|
113
|
+
opacity:0;
|
|
114
|
+
}
|
|
115
|
+
& .st-block-addition {
|
|
116
|
+
opacity:1;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.st-drag-over {
|
|
121
|
+
& .st-block-addition {
|
|
122
|
+
opacity:0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.st-text-block {
|
|
127
|
+
@include st-input;
|
|
128
|
+
@include st-input-active;
|
|
129
|
+
font-size: $text-block-font-size;
|
|
130
|
+
line-height: 1.45;
|
|
131
|
+
overflow:visible;
|
|
132
|
+
|
|
133
|
+
.st-block--empty & {
|
|
134
|
+
line-height: 55px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.st-text-block p {
|
|
139
|
+
// display: inline;
|
|
140
|
+
// margin: 0;
|
|
141
|
+
vertical-align: 14%;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.st-text-block--heading {
|
|
145
|
+
line-height: 1.45;
|
|
146
|
+
font-size: 1.5em;
|
|
147
|
+
min-height: 1em;
|
|
148
|
+
font-weight: 700;
|
|
149
|
+
margin: 0.58em 0;
|
|
150
|
+
overflow: visible;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.st-text-block--heading p {
|
|
154
|
+
margin:.5em 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.st-text-block--quote {
|
|
158
|
+
font-size: 1.875em;
|
|
159
|
+
line-height: 1.3;
|
|
160
|
+
margin-bottom: 1.8em;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
ul.st-text-block {
|
|
164
|
+
margin-left: 1.875em;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.st-list-block__list {
|
|
168
|
+
font-size: $text-block-font-size;
|
|
169
|
+
margin: 0;
|
|
170
|
+
padding-left: 1em;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.st-list-block__editor {
|
|
174
|
+
width: 100%;
|
|
175
|
+
line-height: 1.8em;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.st-block__inputs {
|
|
179
|
+
padding: 1.6em 0 1em;
|
|
180
|
+
border-radius: 0.2em;
|
|
181
|
+
border-top: $border-size $border-style transparent;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.st-block__dropzone .st-icon {
|
|
185
|
+
font-size: 4em;
|
|
186
|
+
color: $base-ui-color;
|
|
187
|
+
display: block;
|
|
188
|
+
text-align: center;
|
|
189
|
+
margin: 0 auto 0.2em;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.st-block__dropzone p {
|
|
193
|
+
text-align: center;
|
|
194
|
+
color: $base-ui-color;
|
|
195
|
+
font-size: 1.2em;
|
|
196
|
+
margin: 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.st-block__dropzone p span {
|
|
200
|
+
font-weight: 700;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.st-drag-over .st-block__inputs {
|
|
204
|
+
border-top-color: darken($blocks-control-bg-color, 15%);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.st-block .st-block__paste-input[type="text"] {
|
|
208
|
+
text-align: center;
|
|
209
|
+
width: 80%;
|
|
210
|
+
display: block;
|
|
211
|
+
margin: 0.4em auto 0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.st-upload-btn {
|
|
215
|
+
border: 0;
|
|
216
|
+
background: $base-ui-color;
|
|
217
|
+
border-radius: 0.2em;
|
|
218
|
+
padding: 0.35em 1em;
|
|
219
|
+
font-size: 1.125em;
|
|
220
|
+
cursor: pointer;
|
|
221
|
+
color: #fff;
|
|
222
|
+
position: relative;
|
|
223
|
+
z-index: 10;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.st-block__upload-container:hover .st-upload-btn {
|
|
227
|
+
background:$accent-color;
|
|
228
|
+
color: #fff;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.st-block__editor--with-square-media {
|
|
232
|
+
padding-top: 100%; /* 16:9 */
|
|
233
|
+
height: 0;
|
|
234
|
+
position: relative;
|
|
235
|
+
width: 100%;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.st-block__editor--with-sixteen-by-nine-media {
|
|
239
|
+
padding-top: 56.25%; /* 16:9 */
|
|
240
|
+
height: 0;
|
|
241
|
+
position: relative;
|
|
242
|
+
width: 100%;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.st-block__editor--with-square-media video,
|
|
246
|
+
.st-block__editor--with-square-media iframe,
|
|
247
|
+
.st-block__editor--with-sixteen-by-nine-media video,
|
|
248
|
+
.st-block__editor--with-sixteen-by-nine-media iframe {
|
|
249
|
+
height: 100%;
|
|
250
|
+
width: 100%;
|
|
251
|
+
left: 0; top: 0;
|
|
252
|
+
position: absolute;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.st-block__editor img {
|
|
256
|
+
width: 100%;
|
|
257
|
+
height: auto;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.st-block__upload-container {
|
|
261
|
+
margin: 0.4em 0 0 0;
|
|
262
|
+
text-align: center;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.st-block__upload-container input[type="file"] {
|
|
266
|
+
position: absolute;
|
|
267
|
+
z-index: 50;
|
|
268
|
+
opacity: 0;
|
|
269
|
+
cursor: pointer;
|
|
270
|
+
left: 0;
|
|
271
|
+
width: 100%;
|
|
272
|
+
padding: 7px 0;
|
|
273
|
+
text-align: center;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.st-block__messages {
|
|
277
|
+
display: none;
|
|
278
|
+
position: relative;
|
|
279
|
+
padding: .3em .5em;
|
|
280
|
+
border: $default-border;
|
|
281
|
+
border-left: none;
|
|
282
|
+
border-top: none;
|
|
283
|
+
max-width: 80%;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.st-block__messages--is-visible {
|
|
287
|
+
display: block;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.st-block--with-errors .st-block__messages {
|
|
291
|
+
border-color: $error-color;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.st-block__messages span {
|
|
295
|
+
display: block;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.st-msg--error {
|
|
299
|
+
color: $error-color;
|
|
300
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.st-errors {
|
|
2
|
+
background-color: lighten($error-color, 52%);
|
|
3
|
+
padding: 2em;
|
|
4
|
+
color: $error-color;
|
|
5
|
+
margin-bottom: 2em;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.st-errors p,
|
|
9
|
+
.st-errors ul {
|
|
10
|
+
margin: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.st-errors ul {
|
|
14
|
+
padding-left: 1em;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.st-errors p {
|
|
18
|
+
margin-bottom: 0.5em;
|
|
19
|
+
font-weight: 700;
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
.st-format-bar {
|
|
2
|
+
top: 0;
|
|
3
|
+
position: absolute;
|
|
4
|
+
margin: -4.5em 0 0 0;
|
|
5
|
+
background: #252525;
|
|
6
|
+
opacity: 0;
|
|
7
|
+
visibility: hidden;
|
|
8
|
+
z-index: 10;
|
|
9
|
+
border-radius: 0.4em;
|
|
10
|
+
padding: 0;
|
|
11
|
+
|
|
12
|
+
transition: opacity 0.2s ease-in-out;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.st-format-bar:before {
|
|
16
|
+
content: '';
|
|
17
|
+
display: block;
|
|
18
|
+
position: absolute;
|
|
19
|
+
left: 50%;
|
|
20
|
+
top: 3.3em;
|
|
21
|
+
width: 0;
|
|
22
|
+
height: 0;
|
|
23
|
+
border-left: 0.875em solid transparent;
|
|
24
|
+
border-right: 0.875em solid transparent;
|
|
25
|
+
border-top: 0.875em solid #252525;
|
|
26
|
+
margin-left: -0.875em;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.st-format-bar--is-ready {
|
|
30
|
+
visibility: visible;
|
|
31
|
+
opacity: 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.st-format-btn {
|
|
35
|
+
background: transparent;
|
|
36
|
+
border: 0;
|
|
37
|
+
color: #fff;
|
|
38
|
+
font-size: 1em;
|
|
39
|
+
line-height: 1;
|
|
40
|
+
padding: 0.5em 0.6em;
|
|
41
|
+
vertical-align: middle;
|
|
42
|
+
text-align: center;
|
|
43
|
+
|
|
44
|
+
&:focus {
|
|
45
|
+
outline: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
.st-format-btn .st-icon {
|
|
49
|
+
width: 35px;
|
|
50
|
+
height: 35px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.st-format-btn--Heading,
|
|
54
|
+
.st-format-btn--Quote {
|
|
55
|
+
border-left: 1px solid #3e4245;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.st-format-btn:hover,
|
|
59
|
+
.st-format-btn--is-active {
|
|
60
|
+
color:$accent-color;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.st-format-btn--Unlink {
|
|
64
|
+
text-decoration: line-through;
|
|
65
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Reset all our input styles
|
|
2
|
+
.st-input-label {
|
|
3
|
+
display: block;
|
|
4
|
+
margin-bottom: 0.5em;
|
|
5
|
+
font-size: 13px;
|
|
6
|
+
text-transform: uppercase;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// Generic styles
|
|
10
|
+
@mixin st-input {
|
|
11
|
+
font-size: inherit;
|
|
12
|
+
margin: 0;
|
|
13
|
+
/*padding: 0.3em 0;*/
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.st-block input[type="text"],
|
|
17
|
+
.st-block textarea {
|
|
18
|
+
@include st-input;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Focus / Active styles
|
|
22
|
+
@mixin st-input-active {
|
|
23
|
+
outline: none;
|
|
24
|
+
border: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.st-block [contenteditable="true"],
|
|
28
|
+
.st-block [contenteditable="true"]:active,
|
|
29
|
+
.st-block [contenteditable="true"]:focus,
|
|
30
|
+
.st-block input[type="text"],
|
|
31
|
+
.st-block input[type="text"]:active,
|
|
32
|
+
.st-block input[type="text"]:focus,
|
|
33
|
+
.st-block textarea,
|
|
34
|
+
.st-block textarea:hover,
|
|
35
|
+
.st-block textarea:active {
|
|
36
|
+
@include st-input-active;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.st-block input[type="text"],
|
|
40
|
+
.st-block input[type="text"]:active,
|
|
41
|
+
.st-block input[type="text"]:focus {
|
|
42
|
+
color: #42474b;
|
|
43
|
+
border: 0.1em solid #d4d4d4;
|
|
44
|
+
padding:.6em;
|
|
45
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import '_variables';
|
|
2
|
+
@import '_icons';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@import 'patterns/ui-popup';
|
|
6
|
+
@import 'utils';
|
|
7
|
+
@import 'base';
|
|
8
|
+
@import 'inputs';
|
|
9
|
+
|
|
10
|
+
@import 'errors';
|
|
11
|
+
|
|
12
|
+
// Block Controls
|
|
13
|
+
@import 'block-addition';
|
|
14
|
+
@import 'block-addition-top';
|
|
15
|
+
@import 'block-controls';
|
|
16
|
+
@import 'block-replacer';
|
|
17
|
+
|
|
18
|
+
// Blocks
|
|
19
|
+
@import 'block';
|
|
20
|
+
@import 'block-positioner';
|
|
21
|
+
@import 'block-ui';
|
|
22
|
+
|
|
23
|
+
// Format Bar
|
|
24
|
+
@import 'format-bar';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@mixin ui-popup {
|
|
2
|
+
border: $default-border;
|
|
3
|
+
position: absolute;
|
|
4
|
+
z-index: 2;
|
|
5
|
+
background: #fff;
|
|
6
|
+
display:none;
|
|
7
|
+
|
|
8
|
+
&.active {
|
|
9
|
+
display:block;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:after {
|
|
13
|
+
content: '';
|
|
14
|
+
display: block;
|
|
15
|
+
background-color:#fff;
|
|
16
|
+
position:absolute;
|
|
17
|
+
top:0;
|
|
18
|
+
right:0;
|
|
19
|
+
bottom:0;
|
|
20
|
+
left:0;
|
|
21
|
+
z-index: -1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:before {
|
|
25
|
+
content: '';
|
|
26
|
+
display: block;
|
|
27
|
+
width: 0.4em;
|
|
28
|
+
height: 0.4em;
|
|
29
|
+
position: absolute;
|
|
30
|
+
left: -0.3em;
|
|
31
|
+
top: 50%;
|
|
32
|
+
z-index: -1;
|
|
33
|
+
border: $default-border;
|
|
34
|
+
background: #fff;
|
|
35
|
+
transform: translateY(-50%) rotate(45deg);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.tns-outer{padding:0 !important}.tns-outer [hidden]{display:none !important}.tns-outer [aria-controls],.tns-outer [data-action]{cursor:pointer}.tns-slider{-webkit-transition:all 0s;-moz-transition:all 0s;transition:all 0s}.tns-slider>.tns-item{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.tns-horizontal.tns-subpixel{white-space:nowrap}.tns-horizontal.tns-subpixel>.tns-item{display:inline-block;vertical-align:top;white-space:normal}.tns-horizontal.tns-no-subpixel:after{content:'';display:table;clear:both}.tns-horizontal.tns-no-subpixel>.tns-item{float:left}.tns-horizontal.tns-carousel.tns-no-subpixel>.tns-item{margin-right:-100%}.tns-no-calc{position:relative;left:0}.tns-gallery{position:relative;left:0;min-height:1px}.tns-gallery>.tns-item{position:absolute;left:-100%;-webkit-transition:transform 0s, opacity 0s;-moz-transition:transform 0s, opacity 0s;transition:transform 0s, opacity 0s}.tns-gallery>.tns-slide-active{position:relative;left:auto !important}.tns-gallery>.tns-moving{-webkit-transition:all 0.25s;-moz-transition:all 0.25s;transition:all 0.25s}.tns-autowidth{display:inline-block}.tns-lazy-img{-webkit-transition:opacity 0.6s;-moz-transition:opacity 0.6s;transition:opacity 0.6s;opacity:0.6}.tns-lazy-img.tns-complete{opacity:1}.tns-ah{-webkit-transition:height 0s;-moz-transition:height 0s;transition:height 0s}.tns-ovh{overflow:hidden}.tns-visually-hidden{position:absolute;left:-10000em}.tns-transparent{opacity:0;visibility:hidden}.tns-fadeIn{opacity:1;filter:alpha(opacity=100);z-index:0}.tns-normal,.tns-fadeOut{opacity:0;filter:alpha(opacity=0);z-index:-1}.tns-vpfix{white-space:nowrap}.tns-vpfix>div,.tns-vpfix>li{display:inline-block}.tns-t-subp2{margin:0 auto;width:310px;position:relative;height:10px;overflow:hidden}.tns-t-ct{width:2333.3333333%;width:-webkit-calc(100% * 70 / 3);width:-moz-calc(100% * 70 / 3);width:calc(100% * 70 / 3);position:absolute;right:0}.tns-t-ct:after{content:'';display:table;clear:both}.tns-t-ct>div{width:1.4285714%;width:-webkit-calc(100% / 70);width:-moz-calc(100% / 70);width:calc(100% / 70);height:10px;float:left}
|