@internetarchive/bookreader 5.0.0-106 → 5.0.0-108
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/BookReader/BookReader.js +1 -1
- package/BookReader/BookReader.js.map +1 -1
- package/BookReader/ia-bookreader-bundle.js +54 -60
- package/BookReader/ia-bookreader-bundle.js.map +1 -1
- package/BookReader/plugins/plugin.chapters.js +1 -4
- package/BookReader/plugins/plugin.chapters.js.map +1 -1
- package/package.json +12 -10
- package/src/BookReader.js +1 -1
- package/src/css/icon_checkmark.js +9 -0
- package/src/css/sharedStyles.js +15 -0
- package/src/{BookNavigator → ia-bookreader}/downloads/downloads.js +1 -1
- package/src/ia-bookreader/ia-bookreader.js +513 -71
- package/src/{BookNavigator → ia-bookreader}/viewable-files.js +4 -1
- package/src/{BookNavigator → ia-bookreader}/visual-adjustments/visual-adjustments-provider.js +1 -2
- package/src/{BookNavigator → ia-bookreader}/visual-adjustments/visual-adjustments.js +4 -14
- package/src/{BookNavigator → plugins}/bookmarks/bookmark-button.js +1 -1
- package/src/{BookNavigator → plugins}/bookmarks/bookmark-edit.js +41 -28
- package/src/{BookNavigator → plugins}/bookmarks/bookmarks-list.js +46 -46
- package/src/{BookNavigator → plugins}/bookmarks/bookmarks-loginCTA.js +1 -1
- package/src/{BookNavigator → plugins}/bookmarks/bookmarks-provider.js +1 -1
- package/src/{BookNavigator → plugins}/bookmarks/ia-bookmarks.js +2 -2
- package/src/{BookNavigator → plugins}/search/search-results.js +14 -20
- package/src/util/lit.js +17 -0
- package/src/BookNavigator/assets/ia-logo.js +0 -17
- package/src/BookNavigator/assets/icon_checkmark.js +0 -6
- package/src/BookNavigator/assets/icon_close.js +0 -3
- package/src/BookNavigator/book-navigator.js +0 -620
- /package/src/{BookNavigator/assets → css}/button-base.js +0 -0
- /package/src/{BookNavigator → ia-bookreader}/downloads/downloads-provider.js +0 -0
- /package/src/{BookNavigator → ia-bookreader}/sharing.js +0 -0
- /package/src/{BookNavigator/assets → plugins/bookmarks}/bookmark-colors.js +0 -0
- /package/src/{BookNavigator → plugins/bookmarks}/delete-modal-actions.js +0 -0
- /package/src/{BookNavigator → plugins}/search/search-provider.js +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { css, html, LitElement, nothing } from "lit";
|
|
2
2
|
import { classMap } from 'lit/directives/class-map.js';
|
|
3
3
|
import { repeat } from "lit/directives/repeat.js";
|
|
4
|
+
import { sharedStyles } from '../../css/sharedStyles.js';
|
|
4
5
|
import "@internetarchive/icon-magnify-minus/icon-magnify-minus.js";
|
|
5
6
|
import "@internetarchive/icon-magnify-plus/icon-magnify-plus.js";
|
|
6
7
|
|
|
@@ -184,7 +185,7 @@ export class IABookVisualAdjustments extends LitElement {
|
|
|
184
185
|
}
|
|
185
186
|
|
|
186
187
|
static get styles() {
|
|
187
|
-
|
|
188
|
+
const main = css`
|
|
188
189
|
:host {
|
|
189
190
|
display: block;
|
|
190
191
|
height: 100%;
|
|
@@ -280,19 +281,8 @@ export class IABookVisualAdjustments extends LitElement {
|
|
|
280
281
|
button:hover {
|
|
281
282
|
background-color: rgba(255, 255, 255, 0.1);
|
|
282
283
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
position: absolute !important;
|
|
286
|
-
width: 1px !important;
|
|
287
|
-
height: 1px !important;
|
|
288
|
-
padding: 0 !important;
|
|
289
|
-
margin: -1px !important;
|
|
290
|
-
overflow: hidden !important;
|
|
291
|
-
clip: rect(0 0 0 0) !important;
|
|
292
|
-
white-space: nowrap !important;
|
|
293
|
-
border: 0 !important;
|
|
294
|
-
}
|
|
295
|
-
`;
|
|
284
|
+
`;
|
|
285
|
+
return [sharedStyles, main];
|
|
296
286
|
}
|
|
297
287
|
}
|
|
298
288
|
customElements.define('ia-book-visual-adjustments', IABookVisualAdjustments);
|
|
@@ -56,7 +56,7 @@ export default class BookmarkButton extends LitElement {
|
|
|
56
56
|
const position = this.side || 'right';
|
|
57
57
|
return html`
|
|
58
58
|
<button title=${this.title} @click=${this.handleClick} class=${position}>
|
|
59
|
-
<icon-bookmark state=${this.state}></icon-bookmark>
|
|
59
|
+
<icon-bookmark state=${this.state} aria-hidden="true"></icon-bookmark>
|
|
60
60
|
</button>
|
|
61
61
|
`;
|
|
62
62
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { repeat } from 'lit/directives/repeat.js';
|
|
2
2
|
import { css, html, LitElement, nothing } from 'lit';
|
|
3
|
-
import bookmarkColorsCSS from '
|
|
4
|
-
import buttonCSS from '
|
|
3
|
+
import bookmarkColorsCSS from './bookmark-colors.js';
|
|
4
|
+
import buttonCSS from '../../css/button-base.js';
|
|
5
5
|
|
|
6
6
|
export class IABookmarkEdit extends LitElement {
|
|
7
7
|
static get properties() {
|
|
@@ -64,12 +64,12 @@ export class IABookmarkEdit extends LitElement {
|
|
|
64
64
|
|
|
65
65
|
bookmarkColor(color) {
|
|
66
66
|
return html`
|
|
67
|
-
<
|
|
67
|
+
<div class="color-option">
|
|
68
68
|
<input type="radio" name="color" id="color_${color.id}" .value=${color.id} @change=${() => this.changeColorTo(color.id)} ?checked=${this.bookmark.color === color.id}>
|
|
69
|
-
<label for="color_${color.id}">
|
|
70
|
-
<icon-bookmark class=${color.className}></icon-bookmark>
|
|
69
|
+
<label for="color_${color.id}" title=${color.className}>
|
|
70
|
+
<icon-bookmark class=${color.className} aria-hidden="true"></icon-bookmark>
|
|
71
71
|
</label>
|
|
72
|
-
</
|
|
72
|
+
</div>
|
|
73
73
|
`;
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -87,18 +87,18 @@ export class IABookmarkEdit extends LitElement {
|
|
|
87
87
|
${this.renderHeader ? IABookmarkEdit.headerSection : nothing}
|
|
88
88
|
${this.showBookmark ? this.bookmarkTemplate : nothing}
|
|
89
89
|
<form action="" method="put" @submit=${this.emitSaveEvent}>
|
|
90
|
+
<label for="note">Note <small>(optional)</small></label>
|
|
91
|
+
<textarea rows="4" cols="80" name="note" id="note" @change=${this.updateNote}>${this.bookmark.note}</textarea>
|
|
90
92
|
<fieldset>
|
|
91
|
-
<
|
|
92
|
-
<
|
|
93
|
-
<label for="color">Bookmark color</label>
|
|
94
|
-
<ul>
|
|
93
|
+
<legend>Bookmark color</legend>
|
|
94
|
+
<div class="color-options">
|
|
95
95
|
${repeat(this.bookmarkColors, color => color.id, this.bookmarkColor.bind(this))}
|
|
96
|
-
</ul>
|
|
97
|
-
<div class="actions">
|
|
98
|
-
<button type="button" class="ia-button cancel" @click=${this.emitDeleteEvent}>Delete</button>
|
|
99
|
-
<input class="ia-button" type="submit" value="Save">
|
|
100
96
|
</div>
|
|
101
97
|
</fieldset>
|
|
98
|
+
<div class="actions">
|
|
99
|
+
<button type="button" class="ia-button cancel" @click=${this.emitDeleteEvent}>Delete</button>
|
|
100
|
+
<input class="ia-button" type="submit" value="Save">
|
|
101
|
+
</div>
|
|
102
102
|
</form>
|
|
103
103
|
`;
|
|
104
104
|
}
|
|
@@ -128,11 +128,11 @@ export class IABookmarkEdit extends LitElement {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
fieldset {
|
|
131
|
-
padding:
|
|
131
|
+
padding: 0;
|
|
132
132
|
border: none;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
label {
|
|
135
|
+
label, legend {
|
|
136
136
|
display: block;
|
|
137
137
|
font-weight: bold;
|
|
138
138
|
}
|
|
@@ -152,21 +152,24 @@ export class IABookmarkEdit extends LitElement {
|
|
|
152
152
|
resize: vertical;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
|
|
156
|
-
display:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
list-style: none;
|
|
155
|
+
.color-options {
|
|
156
|
+
display: flex;
|
|
157
|
+
gap: 10px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.color-option {
|
|
161
|
+
position: relative;
|
|
163
162
|
}
|
|
164
163
|
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
.color-option input {
|
|
165
|
+
position: absolute;
|
|
166
|
+
opacity: 0;
|
|
167
|
+
width: 0;
|
|
168
|
+
height: 0;
|
|
169
|
+
pointer-events: none;
|
|
167
170
|
}
|
|
168
171
|
|
|
169
|
-
|
|
172
|
+
.color-option label {
|
|
170
173
|
display: block;
|
|
171
174
|
min-width: 50px;
|
|
172
175
|
padding-top: .4rem;
|
|
@@ -176,10 +179,19 @@ export class IABookmarkEdit extends LitElement {
|
|
|
176
179
|
cursor: pointer;
|
|
177
180
|
}
|
|
178
181
|
|
|
179
|
-
|
|
182
|
+
.color-option input:checked + label {
|
|
180
183
|
border-color: var(--primaryTextColor);
|
|
181
184
|
}
|
|
182
185
|
|
|
186
|
+
.color-option input:focus + label {
|
|
187
|
+
outline: 2px solid currentColor;
|
|
188
|
+
outline-offset: 2px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.color-option input:focus:not(:focus-visible) + label {
|
|
192
|
+
outline: none;
|
|
193
|
+
}
|
|
194
|
+
|
|
183
195
|
input[type="submit"] {
|
|
184
196
|
background: var(--primaryCTAFill);
|
|
185
197
|
border-color: var(--primaryCTABorder);
|
|
@@ -202,6 +214,7 @@ export class IABookmarkEdit extends LitElement {
|
|
|
202
214
|
}
|
|
203
215
|
|
|
204
216
|
.actions {
|
|
217
|
+
margin-top: 20px;
|
|
205
218
|
display: grid;
|
|
206
219
|
grid-template-columns: auto auto;
|
|
207
220
|
grid-gap: 0 1rem;
|
|
@@ -2,7 +2,7 @@ import { repeat } from 'lit/directives/repeat.js';
|
|
|
2
2
|
import { css, html, LitElement, nothing } from 'lit';
|
|
3
3
|
import './bookmark-edit.js';
|
|
4
4
|
import '@internetarchive/icon-edit-pencil/icon-edit-pencil.js';
|
|
5
|
-
import bookmarkColorsCSS from '
|
|
5
|
+
import bookmarkColorsCSS from './bookmark-colors.js';
|
|
6
6
|
|
|
7
7
|
export class IABookmarksList extends LitElement {
|
|
8
8
|
static get properties() {
|
|
@@ -99,24 +99,23 @@ export class IABookmarksList extends LitElement {
|
|
|
99
99
|
const { className } = this.bookmarkColorInfo(bookmark.color);
|
|
100
100
|
const activeClass = bookmark.id === this.activeBookmarkID ? 'active' : '';
|
|
101
101
|
return html`
|
|
102
|
-
<li
|
|
103
|
-
@click=${() => this.emitSelectedEvent(bookmark)}
|
|
104
|
-
tabindex="0"
|
|
105
|
-
data-pageIndex=${bookmark.id}
|
|
106
|
-
>
|
|
102
|
+
<li data-pageIndex=${bookmark.id}>
|
|
107
103
|
<div class="separator"></div>
|
|
108
|
-
<div class="
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
<
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
104
|
+
<div class="bookmark-card ${activeClass}">
|
|
105
|
+
<div class="bookmark-header" @click=${() => this.emitSelectedEvent(bookmark)}>
|
|
106
|
+
<button>
|
|
107
|
+
<icon-bookmark class=${className} aria-label="${className} bookmark"></icon-bookmark>
|
|
108
|
+
<span> Page ${bookmark.page}</span>
|
|
109
|
+
</button>
|
|
110
|
+
<button
|
|
111
|
+
class="edit"
|
|
112
|
+
@click=${e => this.editBookmark(e, bookmark)}
|
|
113
|
+
title="Edit this bookmark"
|
|
114
|
+
aria-expanded=${editMode ? 'true' : 'false'}
|
|
115
|
+
>
|
|
116
|
+
<ia-icon-edit-pencil aria-hidden="true"></ia-icon-edit-pencil>
|
|
117
|
+
</button>
|
|
118
|
+
</div>
|
|
120
119
|
${!editMode && bookmark.note ? html`<p>${bookmark.note}</p>` : nothing}
|
|
121
120
|
${editMode ? this.editBookmarkComponent : nothing}
|
|
122
121
|
</div>
|
|
@@ -208,19 +207,24 @@ export class IABookmarksList extends LitElement {
|
|
|
208
207
|
font-style: italic;
|
|
209
208
|
}
|
|
210
209
|
|
|
211
|
-
|
|
210
|
+
.bookmark-header {
|
|
211
|
+
display: flex;
|
|
212
|
+
align-items: center;
|
|
212
213
|
margin: 0;
|
|
213
214
|
font-size: 1.4rem;
|
|
215
|
+
font-weight: bold;
|
|
214
216
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
|
|
218
|
+
.bookmark-header > button:first-child {
|
|
219
|
+
flex: 1;
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
gap: 4px;
|
|
223
|
+
padding: 4px;
|
|
220
224
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
225
|
+
|
|
226
|
+
ia-icon-edit-pencil {
|
|
227
|
+
pointer-events: none;
|
|
224
228
|
}
|
|
225
229
|
|
|
226
230
|
p {
|
|
@@ -243,38 +247,34 @@ export class IABookmarksList extends LitElement {
|
|
|
243
247
|
display: none;
|
|
244
248
|
}
|
|
245
249
|
li {
|
|
246
|
-
cursor: pointer;
|
|
247
|
-
outline: none;
|
|
248
250
|
position: relative;
|
|
249
251
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
+
|
|
253
|
+
li .bookmark-card {
|
|
252
254
|
border: var(--activeBorderWidth) solid transparent;
|
|
253
|
-
|
|
255
|
+
border-radius: 4px;
|
|
254
256
|
}
|
|
255
|
-
|
|
257
|
+
|
|
258
|
+
li .bookmark-card.active {
|
|
256
259
|
border: var(--activeBorderWidth) solid #538bc5;
|
|
257
260
|
}
|
|
258
|
-
|
|
259
|
-
|
|
261
|
+
|
|
262
|
+
.bookmark-header button {
|
|
260
263
|
background: transparent;
|
|
261
264
|
cursor: pointer;
|
|
262
|
-
height: 40px;
|
|
263
|
-
width: 40px;
|
|
264
|
-
position: absolute;
|
|
265
|
-
right: 2px;
|
|
266
|
-
top: 2px;
|
|
267
|
-
text-align: right;
|
|
268
265
|
-webkit-appearance: none;
|
|
269
266
|
appearance: none;
|
|
270
|
-
outline: none;
|
|
271
267
|
box-sizing: border-box;
|
|
272
268
|
border: none;
|
|
269
|
+
padding: 0;
|
|
270
|
+
text-align: left;
|
|
273
271
|
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
height:
|
|
277
|
-
width:
|
|
272
|
+
|
|
273
|
+
li button.edit {
|
|
274
|
+
height: 34px;
|
|
275
|
+
width: 34px;
|
|
276
|
+
flex-shrink: 0;
|
|
277
|
+
text-align: center;
|
|
278
278
|
}
|
|
279
279
|
`;
|
|
280
280
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement, html, css, render } from 'lit';
|
|
2
2
|
// eslint-disable-next-line no-unused-vars
|
|
3
3
|
import { ModalConfig, ModalManager } from '@internetarchive/modal-manager';
|
|
4
|
-
import buttonStyles from '
|
|
4
|
+
import buttonStyles from '../../css/button-base.js';
|
|
5
5
|
import './bookmarks-loginCTA.js';
|
|
6
6
|
|
|
7
7
|
const api = {
|
|
@@ -109,6 +109,7 @@ class IABookmarks extends LitElement {
|
|
|
109
109
|
|
|
110
110
|
this.bookmarkColors = [{
|
|
111
111
|
id: 0,
|
|
112
|
+
// FIXME: This is also used as the aria-label
|
|
112
113
|
className: 'red',
|
|
113
114
|
}, {
|
|
114
115
|
id: 1,
|
|
@@ -500,7 +501,6 @@ class IABookmarks extends LitElement {
|
|
|
500
501
|
return html`
|
|
501
502
|
<button
|
|
502
503
|
class="ia-button primary"
|
|
503
|
-
tabindex="-1"
|
|
504
504
|
?disabled=${this.shouldEnableAddBookmarkButton}
|
|
505
505
|
@click=${this.addBookmark}>
|
|
506
506
|
Add bookmark
|
|
@@ -2,12 +2,17 @@
|
|
|
2
2
|
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
|
|
3
3
|
import { css, html, LitElement, nothing } from 'lit';
|
|
4
4
|
import '@internetarchive/ia-activity-indicator/ia-activity-indicator.js';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import buttonCSS from '
|
|
5
|
+
import checkmarkIconTemplate from '../../css/icon_checkmark.js';
|
|
6
|
+
import closeIconTemplate from '@internetarchive/icon-close/index.js';
|
|
7
|
+
import buttonCSS from '../../css/button-base.js';
|
|
8
8
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
9
|
+
import { sharedStyles } from '../../css/sharedStyles.js';
|
|
10
|
+
import { svgToDataUrl } from '../../util/lit.js';
|
|
9
11
|
/** @typedef {import('@/src/plugins/search/plugin.search.js').SearchInsideMatch} SearchInsideMatch */
|
|
10
12
|
|
|
13
|
+
const checkmarkIconData = svgToDataUrl(checkmarkIconTemplate);
|
|
14
|
+
const closeIconData = svgToDataUrl(closeIconTemplate);
|
|
15
|
+
|
|
11
16
|
export class IABookSearchResults extends LitElement {
|
|
12
17
|
static get properties() {
|
|
13
18
|
return {
|
|
@@ -284,7 +289,7 @@ export class IABookSearchResults extends LitElement {
|
|
|
284
289
|
border-radius: 2px;
|
|
285
290
|
}
|
|
286
291
|
:checked + label.checkbox:after {
|
|
287
|
-
background-image: url('${
|
|
292
|
+
background-image: url('${checkmarkIconData}');
|
|
288
293
|
}
|
|
289
294
|
|
|
290
295
|
label.checkbox[for="all_files"]:after {
|
|
@@ -298,7 +303,7 @@ export class IABookSearchResults extends LitElement {
|
|
|
298
303
|
-webkit-appearance: textfield;
|
|
299
304
|
width: 100%;
|
|
300
305
|
height: 3rem;
|
|
301
|
-
padding: 0
|
|
306
|
+
padding: 0 10px;
|
|
302
307
|
box-sizing: border-box;
|
|
303
308
|
font: normal 1.6rem "Helvetica qNeue", Helvetica, Arial, sans-serif;
|
|
304
309
|
border-radius: 1.5rem;
|
|
@@ -310,10 +315,11 @@ export class IABookSearchResults extends LitElement {
|
|
|
310
315
|
[type="search"]::-webkit-search-cancel-button {
|
|
311
316
|
width: 18px;
|
|
312
317
|
height: 18px;
|
|
318
|
+
margin-right: -5px;
|
|
313
319
|
-webkit-appearance: none;
|
|
314
320
|
appearance: none;
|
|
315
|
-
-webkit-mask: url('${
|
|
316
|
-
mask: url('${
|
|
321
|
+
-webkit-mask: url('${closeIconData}') 0 0 no-repeat;
|
|
322
|
+
mask: url('${closeIconData}') 0 0 no-repeat;
|
|
317
323
|
-webkit-mask-size: 100%;
|
|
318
324
|
mask-size: 100%;
|
|
319
325
|
background: #fff;
|
|
@@ -376,20 +382,8 @@ export class IABookSearchResults extends LitElement {
|
|
|
376
382
|
height: 40px;
|
|
377
383
|
margin: 0 auto;
|
|
378
384
|
}
|
|
379
|
-
|
|
380
|
-
.sr-only {
|
|
381
|
-
position: absolute !important;
|
|
382
|
-
width: 1px !important;
|
|
383
|
-
height: 1px !important;
|
|
384
|
-
padding: 0 !important;
|
|
385
|
-
margin: -1px !important;
|
|
386
|
-
overflow: hidden !important;
|
|
387
|
-
clip: rect(0 0 0 0) !important;
|
|
388
|
-
white-space: nowrap !important;
|
|
389
|
-
border: 0 !important;
|
|
390
|
-
}
|
|
391
385
|
`;
|
|
392
|
-
return [buttonCSS, mainCSS];
|
|
386
|
+
return [sharedStyles, buttonCSS, mainCSS];
|
|
393
387
|
}
|
|
394
388
|
}
|
|
395
389
|
customElements.define('ia-book-search-results', IABookSearchResults);
|
package/src/util/lit.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Convert an SVG string to a data URL usable in CSS
|
|
5
|
+
* @param {import('lit').TemplateResult} svgTemplate - The SVG template to convert
|
|
6
|
+
* @returns {import('lit').CSSResult}
|
|
7
|
+
*/
|
|
8
|
+
export function svgToDataUrl(svgTemplate) {
|
|
9
|
+
const svgString = (
|
|
10
|
+
// No clue why, on prod the template from the close icon comes in as a class instead of a TemplateResult.
|
|
11
|
+
// Might be a discrepancy with lit versions.
|
|
12
|
+
svgTemplate.prototype?.render() ||
|
|
13
|
+
// Otherwise it's a normal TemplateResult.
|
|
14
|
+
svgTemplate.strings[0]
|
|
15
|
+
);
|
|
16
|
+
return css([`data:image/svg+xml;base64,${btoa(svgString.replace(/\n/g, ' '))}`]);
|
|
17
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { svg } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default svg`
|
|
4
|
-
<svg class="ia-logo" width="27" height="30" viewBox="0 0 27 30" xmlns="http://www.w3.org/2000/svg" aria-labelledby="logoTitleID logoDescID">
|
|
5
|
-
<title id="logoTitleID">Internet Archive logo</title>
|
|
6
|
-
<desc id="logoDescID">A line drawing of the Internet Archive headquarters building façade.</desc>
|
|
7
|
-
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8
|
-
<mask id="mask-2" fill="white">
|
|
9
|
-
<path d="M26.6666667,28.6046512 L26.6666667,30 L0,30 L0.000283687943,28.6046512 L26.6666667,28.6046512 Z M25.6140351,26.5116279 L25.6140351,28.255814 L1.05263158,28.255814 L1.05263158,26.5116279 L25.6140351,26.5116279 Z M3.62469203,7.6744186 L3.91746909,7.82153285 L4.0639977,10.1739544 L4.21052632,13.9963932 L4.21052632,17.6725617 L4.0639977,22.255044 L4.03962296,25.3421929 L3.62469203,25.4651163 L2.16024641,25.4651163 L1.72094074,25.3421929 L1.55031755,22.255044 L1.40350877,17.6970339 L1.40350877,14.0211467 L1.55031755,10.1739544 L1.68423854,7.80887484 L1.98962322,7.6744186 L3.62469203,7.6744186 Z M24.6774869,7.6744186 L24.9706026,7.82153285 L25.1168803,10.1739544 L25.2631579,13.9963932 L25.2631579,17.6725617 L25.1168803,22.255044 L25.0927809,25.3421929 L24.6774869,25.4651163 L23.2130291,25.4651163 L22.7736357,25.3421929 L22.602418,22.255044 L22.4561404,17.6970339 L22.4561404,14.0211467 L22.602418,10.1739544 L22.7369262,7.80887484 L23.0420916,7.6744186 L24.6774869,7.6744186 Z M9.94042303,7.6744186 L10.2332293,7.82153285 L10.3797725,10.1739544 L10.5263158,13.9963932 L10.5263158,17.6725617 L10.3797725,22.255044 L10.3556756,25.3421929 L9.94042303,25.4651163 L8.47583122,25.4651163 L8.0362015,25.3421929 L7.86556129,22.255044 L7.71929825,17.6970339 L7.71929825,14.0211467 L7.86556129,10.1739544 L8.00005604,7.80887484 L8.30491081,7.6744186 L9.94042303,7.6744186 Z M18.0105985,7.6744186 L18.3034047,7.82153285 L18.449948,10.1739544 L18.5964912,13.9963932 L18.5964912,17.6725617 L18.449948,22.255044 L18.425851,25.3421929 L18.0105985,25.4651163 L16.5460067,25.4651163 L16.1066571,25.3421929 L15.9357367,22.255044 L15.7894737,17.6970339 L15.7894737,14.0211467 L15.9357367,10.1739544 L16.0702315,7.80887484 L16.3753664,7.6744186 L18.0105985,7.6744186 Z M25.6140351,4.53488372 L25.6140351,6.97674419 L1.05263158,6.97674419 L1.05263158,4.53488372 L25.6140351,4.53488372 Z M13.0806755,0 L25.9649123,2.93331338 L25.4484139,3.8372093 L0.771925248,3.8372093 L0,3.1041615 L13.0806755,0 Z" id="path-1"></path>
|
|
10
|
-
</mask>
|
|
11
|
-
<use fill="#FFFFFF" xlink:href="#path-1"></use>
|
|
12
|
-
<g mask="url(#mask-2)" fill="#FFFFFF">
|
|
13
|
-
<path d="M0,0 L26.6666667,0 L26.6666667,30 L0,30 L0,0 Z" id="swatch"></path>
|
|
14
|
-
</g>
|
|
15
|
-
</g>
|
|
16
|
-
</svg>
|
|
17
|
-
`;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
// Original SVG object for reference
|
|
4
|
-
// <svg height="10" viewBox="0 0 13 10" width="13" xmlns="http://www.w3.org/2000/svg"><path d="m4.33333333 10-4.33333333-4.16666667 1.73333333-1.66666666 2.6 2.5 6.93333337-6.66666667 1.7333333 1.66666667z" fill="#fff" fill-rule="evenodd"/></svg>
|
|
5
|
-
|
|
6
|
-
export default css`data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEwIiB2aWV3Qm94PSIwIDAgMTMgMTAiIHdpZHRoPSIxMyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtNC4zMzMzMzMzMyAxMC00LjMzMzMzMzMzLTQuMTY2NjY2NjcgMS43MzMzMzMzMy0xLjY2NjY2NjY2IDIuNiAyLjUgNi45MzMzMzMzNy02LjY2NjY2NjY3IDEuNzMzMzMzMyAxLjY2NjY2NjY3eiIgZmlsbD0iI2ZmZiIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+`;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default css`data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDAgNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJjbG9zZVRpdGxlSUQgY2xvc2VEZXNjSUQiPjxwYXRoIGQ9Ik0yOS4xOTIgMTAuODA4YTEuNSAxLjUgMCAwMTAgMi4xMkwyMi4xMjIgMjBsNy4wNyA3LjA3MmExLjUgMS41IDAgMDEtMi4xMiAyLjEyMWwtNy4wNzMtNy4wNy03LjA3IDcuMDdhMS41IDEuNSAwIDAxLTIuMTIxLTIuMTJsNy4wNy03LjA3My03LjA3LTcuMDdhMS41IDEuNSAwIDAxMi4xMi0yLjEyMUwyMCAxNy44NzhsNy4wNzItNy4wN2ExLjUgMS41IDAgMDEyLjEyMSAweiIgY2xhc3M9ImZpbGwtY29sb3IiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==`;
|