@net7/components 4.4.2 → 4.5.0
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/esm2022/lib/components/parallel-text-viewer/parallel-text-viewer.mjs +49 -0
- package/esm2022/lib/components/parallel-text-viewer/parallel-text-viewer.mock.mjs +94 -0
- package/esm2022/lib/components/text-viewer/text-viewer.mock.mjs +4 -4
- package/esm2022/lib/dv-components-lib.module.mjs +7 -3
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/net7-components.mjs +149 -6
- package/fesm2022/net7-components.mjs.map +1 -1
- package/lib/components/parallel-text-viewer/parallel-text-viewer.d.ts +124 -0
- package/lib/components/parallel-text-viewer/parallel-text-viewer.mock.d.ts +2 -0
- package/lib/dv-components-lib.module.d.ts +4 -3
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/lib/styles/_imports.scss +1 -0
- package/src/lib/styles/components/_parallel-text-viewer.scss +816 -0
|
@@ -0,0 +1,816 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* PARALLEL-TEXT-VIEWER
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* ------------------------------------ *\
|
|
8
|
+
#WEB COMPONENTS STYLING
|
|
9
|
+
\* ------------------------------------ */
|
|
10
|
+
.n7-parallel-text-viewer {
|
|
11
|
+
pb-page {
|
|
12
|
+
--pb-base-font-family: 'Roboto', 'Noto', sans-serif;
|
|
13
|
+
--pb-base-font-size: 16px;
|
|
14
|
+
--pb-base-line-height: 1.42857143;
|
|
15
|
+
--pb-base-font-weight: 300;
|
|
16
|
+
--pb-base-font: var(--pb-base-font-weight) var(--pb-base-font-size) /
|
|
17
|
+
var(--pb-base-line-height) var(--pb-base-font-family);
|
|
18
|
+
--pb-serif-font-family: 'Junicode', georgia, 'Times New Roman', serif;
|
|
19
|
+
--pb-content-font-family: var(--pb-serif-font-family);
|
|
20
|
+
--pb-content-font-size: 20px;
|
|
21
|
+
--pb-heading-font-family: 'Oswald', verdana, 'Helvetica', sans-serif;
|
|
22
|
+
--pb-heading-font-weight: 400 !important;
|
|
23
|
+
--pb-heading-line-height: 1.2;
|
|
24
|
+
--pb-breadcrumbs-font-size: 18px;
|
|
25
|
+
--pb-color-primary: #303030;
|
|
26
|
+
--pb-color-inverse: #f0f0f0;
|
|
27
|
+
--pb-color-lighter: #35424b;
|
|
28
|
+
--pb-color-focus: #f6a623;
|
|
29
|
+
--pb-header-background-image: none;
|
|
30
|
+
--pb-drawer-background-color: var(--pb-color-inverse);
|
|
31
|
+
--pb-menubar-background-color: #35424b;
|
|
32
|
+
--pb-menubar-background-image: none;
|
|
33
|
+
--pb-menubar-color: var(--pb-color-inverse);
|
|
34
|
+
--pb-toolbar-background-color: #d1dae0;
|
|
35
|
+
--pb-toolbar-background-image: none;
|
|
36
|
+
--pb-toolbar-color: var(--pb-color-primary);
|
|
37
|
+
--paper-tooltip-delay-in: 200;
|
|
38
|
+
--pb-footnote-font-size: 13px;
|
|
39
|
+
--pb-footnote-font-family: var(--pb-content-font-family);
|
|
40
|
+
--pb-footnote-font-weight: var(--pb-content-font-weight);
|
|
41
|
+
--pb-footnote-color: #303030;
|
|
42
|
+
--pb-footnote-padding: 0 0 0 0.25em;
|
|
43
|
+
--pb-popover-theme: 'light-border';
|
|
44
|
+
--pb-popover-max-width: 480px;
|
|
45
|
+
--pb-popover-font-size: 16px;
|
|
46
|
+
--pb-popover-line-height: 1.2;
|
|
47
|
+
--pb-popover-placement: 'bottom';
|
|
48
|
+
--pb-popover-fallback-placement: 'top right left';
|
|
49
|
+
--pb-lang-input-color: var(--pb-color-inverse);
|
|
50
|
+
--pb-lang-label-color: var(--pb-color-inverse);
|
|
51
|
+
--pb-link-color: black;
|
|
52
|
+
--pb-link-font-family: var(--pb-serif-font-family);
|
|
53
|
+
--pb-highlight-color: #f9e976;
|
|
54
|
+
--paper-input-container-focus-color: var(--pb-color-focus);
|
|
55
|
+
--pb-view-max-width: 920px;
|
|
56
|
+
|
|
57
|
+
font: var(--pb-base-font);
|
|
58
|
+
color: var(--pb-color-primary);
|
|
59
|
+
margin: 0;
|
|
60
|
+
main {
|
|
61
|
+
pb-view {
|
|
62
|
+
font-size: 16px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
*:focus {
|
|
67
|
+
outline: none;
|
|
68
|
+
}
|
|
69
|
+
.splash {
|
|
70
|
+
position: fixed;
|
|
71
|
+
inset: 0;
|
|
72
|
+
visibility: hidden;
|
|
73
|
+
opacity: 0;
|
|
74
|
+
background-image: var(--pb-splash-image);
|
|
75
|
+
background-color: #ffffff;
|
|
76
|
+
background-position: center center;
|
|
77
|
+
background-size: var(--pb-splash-image-size);
|
|
78
|
+
background-repeat: no-repeat;
|
|
79
|
+
transition: visibility 0s linear 300ms, opacity 300ms;
|
|
80
|
+
}
|
|
81
|
+
pb-page[unresolved] ~ .splash {
|
|
82
|
+
visibility: visible;
|
|
83
|
+
opacity: 1;
|
|
84
|
+
transition: visibility 0s linear 0s, opacity 300ms;
|
|
85
|
+
}
|
|
86
|
+
app-header {
|
|
87
|
+
background-image: var(--pb-header-background-image);
|
|
88
|
+
}
|
|
89
|
+
app-toolbar {
|
|
90
|
+
--app-toolbar-font-size: 16px;
|
|
91
|
+
|
|
92
|
+
display: flex;
|
|
93
|
+
}
|
|
94
|
+
app-toolbar pb-search {
|
|
95
|
+
--pb-search-label-color: var(--pb-color-inverse);
|
|
96
|
+
--pb-search-input-color: var(--pb-color-inverse);
|
|
97
|
+
--pb-search-focus-color: var(--paper-orange-500);
|
|
98
|
+
|
|
99
|
+
padding-left: 20px;
|
|
100
|
+
}
|
|
101
|
+
app-drawer {
|
|
102
|
+
--pb-lang-item-color: black;
|
|
103
|
+
--pb-lang-input-color: black;
|
|
104
|
+
--pb-lang-label-color: var(--paper-grey-600);
|
|
105
|
+
}
|
|
106
|
+
.drawer-content {
|
|
107
|
+
overflow: auto;
|
|
108
|
+
height: 100%;
|
|
109
|
+
padding: 8px 10px;
|
|
110
|
+
text-align: left;
|
|
111
|
+
}
|
|
112
|
+
.drawer-content pb-collapse h3 {
|
|
113
|
+
margin-bottom: 0;
|
|
114
|
+
margin-top: 0;
|
|
115
|
+
}
|
|
116
|
+
.drawer-content paper-listbox {
|
|
117
|
+
margin: 0;
|
|
118
|
+
}
|
|
119
|
+
app-drawer .settings,
|
|
120
|
+
app-drawer pb-collapse {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
}
|
|
124
|
+
app-drawer paper-listbox {
|
|
125
|
+
width: 100%;
|
|
126
|
+
}
|
|
127
|
+
app-drawer a,
|
|
128
|
+
app-drawer a:link {
|
|
129
|
+
text-decoration: none;
|
|
130
|
+
color: inherit;
|
|
131
|
+
}
|
|
132
|
+
.toggle {
|
|
133
|
+
color: inherit;
|
|
134
|
+
font-weight: inherit;
|
|
135
|
+
}
|
|
136
|
+
app-drawer-layout:not([narrow]) [drawer-toggle] {
|
|
137
|
+
display: none;
|
|
138
|
+
}
|
|
139
|
+
.caveat-content {
|
|
140
|
+
overflow: auto;
|
|
141
|
+
height: 100%;
|
|
142
|
+
padding: 8px 10px;
|
|
143
|
+
text-align: left;
|
|
144
|
+
font-size: smaller;
|
|
145
|
+
}
|
|
146
|
+
.toolbar {
|
|
147
|
+
display: flex;
|
|
148
|
+
position: relative;
|
|
149
|
+
|
|
150
|
+
// flex-flow: row wrap;
|
|
151
|
+
justify-content: space-between; //center
|
|
152
|
+
background-image: var(--pb-toolbar-background-image);
|
|
153
|
+
background-color: var(--pb-toolbar-background-color);
|
|
154
|
+
color: var(--pb-toolbar-color);
|
|
155
|
+
.n7-text-viewer__toolbar-container-flex:nth-child(1),
|
|
156
|
+
.n7-parallel-text-viewer__toolbar-container-flex:nth-child(1) {
|
|
157
|
+
flex: 0 0 10%;
|
|
158
|
+
}
|
|
159
|
+
.n7-text-viewer__toolbar-container-flex:nth-child(2),
|
|
160
|
+
.n7-parallel-text-viewer__toolbar-container-flex:nth-child(2) {
|
|
161
|
+
flex: 0 0 10%;
|
|
162
|
+
}
|
|
163
|
+
.n7-text-viewer__toolbar-container-flex:nth-child(3),
|
|
164
|
+
.n7-parallel-text-viewer__toolbar-container-flex:nth-child(3) {
|
|
165
|
+
flex: 0 0 10%;
|
|
166
|
+
}
|
|
167
|
+
.n7-text-viewer__toolbar-container-flex:nth-child(4),
|
|
168
|
+
.n7-parallel-text-viewer__toolbar-container-flex:nth-child(4) {
|
|
169
|
+
text-align: center;
|
|
170
|
+
padding: 0 2.3vw;
|
|
171
|
+
flex: 0 0 33.3%;
|
|
172
|
+
}
|
|
173
|
+
.n7-text-viewer__toolbar-container-flex:nth-child(5),
|
|
174
|
+
.n7-parallel-text-viewer__toolbar-container-flex:nth-child(5) {
|
|
175
|
+
flex: 0 0 11.1%;
|
|
176
|
+
}
|
|
177
|
+
.n7-text-viewer__toolbar-container-flex:nth-child(6),
|
|
178
|
+
.n7-parallel-text-viewer__toolbar-container-flex:nth-child(6) {
|
|
179
|
+
flex: 0 0 11.1%;
|
|
180
|
+
text-align: center;
|
|
181
|
+
}
|
|
182
|
+
.n7-text-viewer__toolbar-container-flex:nth-child(7),
|
|
183
|
+
.n7-parallel-text-viewer__toolbar-container-flex:nth-child(7) {
|
|
184
|
+
flex: 0 0 11.1%;
|
|
185
|
+
text-align: left;
|
|
186
|
+
}
|
|
187
|
+
paper-button {
|
|
188
|
+
font-size: 14px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* Add Panel Button Styling */
|
|
192
|
+
pb-grid-action.grid-add {
|
|
193
|
+
margin-left: 16px;
|
|
194
|
+
|
|
195
|
+
paper-button {
|
|
196
|
+
background: #f8f9fa;
|
|
197
|
+
color: #495057;
|
|
198
|
+
border: 1px solid #dee2e6;
|
|
199
|
+
border-radius: 4px;
|
|
200
|
+
padding: 8px 12px;
|
|
201
|
+
font-size: 13px;
|
|
202
|
+
font-weight: 500;
|
|
203
|
+
text-transform: none;
|
|
204
|
+
transition: all 0.2s ease;
|
|
205
|
+
|
|
206
|
+
&:hover {
|
|
207
|
+
background: #e9ecef;
|
|
208
|
+
border-color: #adb5bd;
|
|
209
|
+
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&:active {
|
|
213
|
+
background: #dee2e6;
|
|
214
|
+
transform: translateY(1px);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
iron-icon {
|
|
218
|
+
width: 16px;
|
|
219
|
+
height: 16px;
|
|
220
|
+
margin-right: 6px;
|
|
221
|
+
color: #6c757d;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
[drawer-toggle] {
|
|
227
|
+
padding-right: 0;
|
|
228
|
+
}
|
|
229
|
+
.menubar {
|
|
230
|
+
justify-content: space-between;
|
|
231
|
+
background-image: var(--pb-menubar-background-image);
|
|
232
|
+
background-color: var(--pb-menubar-background-color);
|
|
233
|
+
color: var(--pb-menubar-color);
|
|
234
|
+
|
|
235
|
+
--pb-search-suggestions-color: var(--pb-color-primary);
|
|
236
|
+
--pb-search-suggestions-background: white;
|
|
237
|
+
}
|
|
238
|
+
.menubar pb-media-query {
|
|
239
|
+
flex: 1 0;
|
|
240
|
+
}
|
|
241
|
+
.menubar a,
|
|
242
|
+
.menubar paper-menu-button {
|
|
243
|
+
margin: auto 8px;
|
|
244
|
+
display: block;
|
|
245
|
+
color: white;
|
|
246
|
+
text-decoration: none;
|
|
247
|
+
}
|
|
248
|
+
.menubar .logo {
|
|
249
|
+
margin: 0 16px 0 0;
|
|
250
|
+
}
|
|
251
|
+
.menubar .gitlab {
|
|
252
|
+
margin-left: 16px;
|
|
253
|
+
margin-right: 16px;
|
|
254
|
+
}
|
|
255
|
+
.menubar .gitlab img {
|
|
256
|
+
height: 32px;
|
|
257
|
+
}
|
|
258
|
+
.hidden {
|
|
259
|
+
display: none;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// .menubar pb-login {}
|
|
263
|
+
.menubar pb-lang {
|
|
264
|
+
text-align: right;
|
|
265
|
+
flex: 1 0;
|
|
266
|
+
|
|
267
|
+
--pb-lang-item-color: white;
|
|
268
|
+
}
|
|
269
|
+
.menubar paper-item a {
|
|
270
|
+
color: black;
|
|
271
|
+
margin: 0;
|
|
272
|
+
}
|
|
273
|
+
[main-title] {
|
|
274
|
+
display: inline-block;
|
|
275
|
+
}
|
|
276
|
+
.logo img {
|
|
277
|
+
width: 140px;
|
|
278
|
+
height: 60px;
|
|
279
|
+
background-size: 100% 100%;
|
|
280
|
+
cursor: pointer;
|
|
281
|
+
}
|
|
282
|
+
pb-progress {
|
|
283
|
+
width: 100%;
|
|
284
|
+
}
|
|
285
|
+
pb-view-type {
|
|
286
|
+
font-size: 0.75em;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
@media (width <=768px) {
|
|
290
|
+
#downloadDialog {
|
|
291
|
+
width: 100%;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
@media (width >=769px) {
|
|
296
|
+
#downloadDialog {
|
|
297
|
+
width: 50%;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
.breadcrumbs {
|
|
301
|
+
margin: 10px 0 0 20px;
|
|
302
|
+
}
|
|
303
|
+
pb-view {
|
|
304
|
+
font-family: var(--pb-content-font-family);
|
|
305
|
+
font-size: var(--pb-content-font-size);
|
|
306
|
+
margin: 0 16px;
|
|
307
|
+
}
|
|
308
|
+
.breadcrumbs pb-view {
|
|
309
|
+
font-weight: 400;
|
|
310
|
+
font-size: var(--pb-breadcrumbs-font-size);
|
|
311
|
+
max-width: none;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@media (width >=769px) {
|
|
315
|
+
pb-view {
|
|
316
|
+
max-width: var(--pb-view-max-width);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
pb-popover {
|
|
320
|
+
text-align: left !important;
|
|
321
|
+
}
|
|
322
|
+
h1,
|
|
323
|
+
h2,
|
|
324
|
+
h3,
|
|
325
|
+
h4,
|
|
326
|
+
h5,
|
|
327
|
+
h6 {
|
|
328
|
+
font-family: var(--pb-heading-font-family);
|
|
329
|
+
font-weight: var(--pb-heading-font-weight);
|
|
330
|
+
line-height: var(--pb-heading-line-height);
|
|
331
|
+
}
|
|
332
|
+
pb-drawer {
|
|
333
|
+
// top: 231px;
|
|
334
|
+
background-color: var(--pb-drawer-background-color);
|
|
335
|
+
overflow: auto;
|
|
336
|
+
height: calc(100vh - 217px);
|
|
337
|
+
}
|
|
338
|
+
pb-drawer a {
|
|
339
|
+
color: var(--pb-link-color);
|
|
340
|
+
text-decoration: var(--pb-link-text-decoration);
|
|
341
|
+
}
|
|
342
|
+
.toc ul {
|
|
343
|
+
list-style-type: none;
|
|
344
|
+
margin: 0;
|
|
345
|
+
padding: 0;
|
|
346
|
+
}
|
|
347
|
+
.toc ul ul {
|
|
348
|
+
margin-left: 28px;
|
|
349
|
+
}
|
|
350
|
+
.toc li {
|
|
351
|
+
margin-bottom: 0.5em;
|
|
352
|
+
}
|
|
353
|
+
.toc li:first-child {
|
|
354
|
+
margin-top: 0.5em;
|
|
355
|
+
}
|
|
356
|
+
.toc pb-link {
|
|
357
|
+
display: block;
|
|
358
|
+
}
|
|
359
|
+
.toc li > pb-link {
|
|
360
|
+
margin-left: 28px;
|
|
361
|
+
}
|
|
362
|
+
.toc pb-link {
|
|
363
|
+
font-family: var(--pb-link-font-family);
|
|
364
|
+
padding: 4px 8px;
|
|
365
|
+
}
|
|
366
|
+
.toc pb-link a {
|
|
367
|
+
color: var(--pb-link-color);
|
|
368
|
+
text-decoration: var(--pb-link-text-decoration);
|
|
369
|
+
}
|
|
370
|
+
.toc h1,
|
|
371
|
+
.toc h2,
|
|
372
|
+
.toc h3,
|
|
373
|
+
.toc h4,
|
|
374
|
+
.toc h5 {
|
|
375
|
+
font-family: var(--pb-link-font-family);
|
|
376
|
+
}
|
|
377
|
+
.toc [slot='collapse-trigger'] pb-link {
|
|
378
|
+
margin-left: 0;
|
|
379
|
+
}
|
|
380
|
+
.version {
|
|
381
|
+
text-align: right;
|
|
382
|
+
font-size: 0.85em;
|
|
383
|
+
padding: 1em;
|
|
384
|
+
color: var(--pb-color-lighter);
|
|
385
|
+
}
|
|
386
|
+
.version span {
|
|
387
|
+
font-weight: 700;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
//
|
|
391
|
+
|
|
392
|
+
@import 'https://fonts.googleapis.com/css?family=Oswald|Roboto&display=swap';
|
|
393
|
+
pb-page {
|
|
394
|
+
// margin: 10px 20px;
|
|
395
|
+
font-size: 16px;
|
|
396
|
+
font-family: Roboto, Noto, 'sans - serif';
|
|
397
|
+
line-height: 1.42857;
|
|
398
|
+
font-weight: 300;
|
|
399
|
+
color: #333333;
|
|
400
|
+
|
|
401
|
+
--paper-tooltip-delay-in: 200;
|
|
402
|
+
}
|
|
403
|
+
main {
|
|
404
|
+
position: relative;
|
|
405
|
+
display: flex;
|
|
406
|
+
justify-content: center;
|
|
407
|
+
padding: 0 20px;
|
|
408
|
+
margin-bottom: 200px;
|
|
409
|
+
}
|
|
410
|
+
pb-view {
|
|
411
|
+
flex: 1 0;
|
|
412
|
+
}
|
|
413
|
+
pb-facsimile {
|
|
414
|
+
flex: auto;
|
|
415
|
+
max-width: 50vw;
|
|
416
|
+
|
|
417
|
+
--pb-facsimile-height: 100%;
|
|
418
|
+
|
|
419
|
+
margin-right: 20px;
|
|
420
|
+
background-color: #333333;
|
|
421
|
+
|
|
422
|
+
// position: static;
|
|
423
|
+
}
|
|
424
|
+
pb-navigation[disabled] {
|
|
425
|
+
display: block;
|
|
426
|
+
visibility: hidden;
|
|
427
|
+
}
|
|
428
|
+
pb-navigation[direction='forward'] {
|
|
429
|
+
float: right;
|
|
430
|
+
}
|
|
431
|
+
pb-view {
|
|
432
|
+
flex: 1 1;
|
|
433
|
+
max-width: 60vw;
|
|
434
|
+
margin: 0 16px;
|
|
435
|
+
max-height: var(--pb-view-height);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
@media (width <=769px) {
|
|
441
|
+
.content-body pb-navigation {
|
|
442
|
+
display: none;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/* ------------------------------------ *\
|
|
447
|
+
#PARALLEL TEXT VIEWER SPECIFIC STYLES
|
|
448
|
+
\* ------------------------------------ */
|
|
449
|
+
|
|
450
|
+
/* Main content area with flex layout */
|
|
451
|
+
main.content-body {
|
|
452
|
+
display: flex;
|
|
453
|
+
flex-direction: row;
|
|
454
|
+
gap: 0;
|
|
455
|
+
padding: 0;
|
|
456
|
+
margin: 0;
|
|
457
|
+
min-height: calc(100vh - 200px);
|
|
458
|
+
|
|
459
|
+
/* Remove any existing styling that conflicts */
|
|
460
|
+
justify-content: stretch;
|
|
461
|
+
align-items: stretch;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/* pb-grid - flexible layout for equal columns */
|
|
465
|
+
pb-grid {
|
|
466
|
+
display: flex;
|
|
467
|
+
flex: 1;
|
|
468
|
+
gap: 0;
|
|
469
|
+
width: 100%;
|
|
470
|
+
min-height: 600px;
|
|
471
|
+
border-top: 1px solid #e0e0e0;
|
|
472
|
+
|
|
473
|
+
/* Each direct child gets equal space */
|
|
474
|
+
> * {
|
|
475
|
+
flex: 1;
|
|
476
|
+
min-width: 0; /* Allows flex items to shrink below content size */
|
|
477
|
+
border-right: 1px solid #e0e0e0;
|
|
478
|
+
|
|
479
|
+
&:last-child {
|
|
480
|
+
border-right: none;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/* Responsive behavior */
|
|
485
|
+
@media (max-width: 1024px) {
|
|
486
|
+
flex-direction: column;
|
|
487
|
+
|
|
488
|
+
> * {
|
|
489
|
+
border-right: none;
|
|
490
|
+
border-bottom: 1px solid #e0e0e0;
|
|
491
|
+
|
|
492
|
+
&:last-child {
|
|
493
|
+
border-bottom: none;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
@media (max-width: 768px) {
|
|
499
|
+
gap: 8px;
|
|
500
|
+
|
|
501
|
+
> * {
|
|
502
|
+
border: 1px solid #e0e0e0;
|
|
503
|
+
border-radius: 4px;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/* pb-panel - individual column styling */
|
|
509
|
+
pb-panel {
|
|
510
|
+
display: flex;
|
|
511
|
+
flex-direction: column;
|
|
512
|
+
background: white;
|
|
513
|
+
position: relative;
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
/* Custom header styling for dropdown */
|
|
517
|
+
.panel-header {
|
|
518
|
+
position: absolute;
|
|
519
|
+
top: 0;
|
|
520
|
+
left: 0;
|
|
521
|
+
right: 0;
|
|
522
|
+
height: 40px;
|
|
523
|
+
background: #f8f9fa;
|
|
524
|
+
border-bottom: 1px solid #e0e0e0;
|
|
525
|
+
display: flex;
|
|
526
|
+
align-items: center;
|
|
527
|
+
padding: 0 12px;
|
|
528
|
+
z-index: 10;
|
|
529
|
+
|
|
530
|
+
/* View label */
|
|
531
|
+
.view-label {
|
|
532
|
+
font-size: 12px;
|
|
533
|
+
color: #666;
|
|
534
|
+
margin-right: 8px;
|
|
535
|
+
font-weight: 500;
|
|
536
|
+
text-transform: uppercase;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/* Dropdown select */
|
|
540
|
+
select, paper-dropdown-menu {
|
|
541
|
+
flex: 1;
|
|
542
|
+
border: none;
|
|
543
|
+
background: transparent;
|
|
544
|
+
font-size: 14px;
|
|
545
|
+
font-weight: 500;
|
|
546
|
+
color: #333;
|
|
547
|
+
|
|
548
|
+
&:focus {
|
|
549
|
+
outline: none;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/* Panel content */
|
|
555
|
+
.panel-content {
|
|
556
|
+
flex: 1;
|
|
557
|
+
padding: 16px;
|
|
558
|
+
margin-top: 40px; /* Account for header */
|
|
559
|
+
overflow-y: auto;
|
|
560
|
+
font-family: var(--pb-serif-font-family);
|
|
561
|
+
line-height: 1.6;
|
|
562
|
+
|
|
563
|
+
/* Scrollbar styling */
|
|
564
|
+
&::-webkit-scrollbar {
|
|
565
|
+
width: 6px;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
&::-webkit-scrollbar-track {
|
|
569
|
+
background: #f1f1f1;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
&::-webkit-scrollbar-thumb {
|
|
573
|
+
background: #c1c1c1;
|
|
574
|
+
border-radius: 3px;
|
|
575
|
+
|
|
576
|
+
&:hover {
|
|
577
|
+
background: #a1a1a1;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/* pb-grid-action - close button styling */
|
|
584
|
+
pb-grid-action {
|
|
585
|
+
top: 8px;
|
|
586
|
+
right: 8px;
|
|
587
|
+
z-index: 20;
|
|
588
|
+
|
|
589
|
+
paper-icon-button {
|
|
590
|
+
width: 24px;
|
|
591
|
+
height: 24px;
|
|
592
|
+
padding: 4px;
|
|
593
|
+
background: rgba(255, 255, 255, 0.9);
|
|
594
|
+
border-radius: 50%;
|
|
595
|
+
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
|
|
596
|
+
transition: all 0.2s ease;
|
|
597
|
+
|
|
598
|
+
&:hover {
|
|
599
|
+
background: white;
|
|
600
|
+
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
|
|
601
|
+
transform: scale(1.1);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
iron-icon {
|
|
605
|
+
width: 16px;
|
|
606
|
+
height: 16px;
|
|
607
|
+
color: #666;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/* Metadata view - left sidebar style */
|
|
613
|
+
pb-view.metadata {
|
|
614
|
+
background: #f8f9fa;
|
|
615
|
+
padding: 20px;
|
|
616
|
+
font-size: 13px;
|
|
617
|
+
line-height: 1.4;
|
|
618
|
+
border-right: 1px solid #e0e0e0;
|
|
619
|
+
|
|
620
|
+
/* Metadata sections */
|
|
621
|
+
h3, h4 {
|
|
622
|
+
font-size: 14px;
|
|
623
|
+
font-weight: 600;
|
|
624
|
+
color: #333;
|
|
625
|
+
margin: 0 0 8px 0;
|
|
626
|
+
border-bottom: 1px solid #e0e0e0;
|
|
627
|
+
padding-bottom: 4px;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
p, div {
|
|
631
|
+
margin: 0 0 16px 0;
|
|
632
|
+
color: #555;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/* Special styling for specific metadata fields */
|
|
636
|
+
.source-status, .location, .date, .additional {
|
|
637
|
+
margin-bottom: 20px;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
/* Links in metadata */
|
|
641
|
+
a {
|
|
642
|
+
color: #0066cc;
|
|
643
|
+
text-decoration: none;
|
|
644
|
+
|
|
645
|
+
&:hover {
|
|
646
|
+
text-decoration: underline;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/* Transcription views */
|
|
652
|
+
pb-view.transcription {
|
|
653
|
+
font-family: var(--pb-serif-font-family);
|
|
654
|
+
font-size: 16px;
|
|
655
|
+
line-height: 1.6;
|
|
656
|
+
color: #333;
|
|
657
|
+
|
|
658
|
+
/* Paragraph spacing */
|
|
659
|
+
p {
|
|
660
|
+
margin: 0 0 1.2em 0;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/* TEI elements styling */
|
|
664
|
+
tei-app {
|
|
665
|
+
color: #0066cc;
|
|
666
|
+
cursor: pointer;
|
|
667
|
+
text-decoration: underline;
|
|
668
|
+
text-decoration-style: dotted;
|
|
669
|
+
|
|
670
|
+
&:hover {
|
|
671
|
+
background: rgba(246, 166, 35, 0.2);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
pb-highlight {
|
|
676
|
+
background: #fff3cd;
|
|
677
|
+
padding: 0 2px;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.quote {
|
|
681
|
+
font-style: italic;
|
|
682
|
+
color: #666;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
/* Links and references */
|
|
686
|
+
a {
|
|
687
|
+
color: #d9534f;
|
|
688
|
+
text-decoration: none;
|
|
689
|
+
|
|
690
|
+
&:hover {
|
|
691
|
+
text-decoration: underline;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/* Numbers and annotations */
|
|
696
|
+
.annotation-number {
|
|
697
|
+
font-size: 12px;
|
|
698
|
+
vertical-align: super;
|
|
699
|
+
color: #0066cc;
|
|
700
|
+
cursor: pointer;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/* Notes view specific styling */
|
|
705
|
+
pb-view[src*="notes"] {
|
|
706
|
+
font-size: 14px;
|
|
707
|
+
|
|
708
|
+
.note-item {
|
|
709
|
+
margin-bottom: 16px;
|
|
710
|
+
padding-bottom: 12px;
|
|
711
|
+
border-bottom: 1px solid #f0f0f0;
|
|
712
|
+
|
|
713
|
+
&:last-child {
|
|
714
|
+
border-bottom: none;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.note-number {
|
|
719
|
+
font-weight: 600;
|
|
720
|
+
color: #0066cc;
|
|
721
|
+
margin-right: 8px;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/* Facsimile specific styles */
|
|
726
|
+
pb-facsimile {
|
|
727
|
+
background: #333;
|
|
728
|
+
display: flex;
|
|
729
|
+
flex-direction: column;
|
|
730
|
+
|
|
731
|
+
.facscaption {
|
|
732
|
+
padding: 8px 12px;
|
|
733
|
+
background: #2c3e50;
|
|
734
|
+
color: white;
|
|
735
|
+
font-size: 11px;
|
|
736
|
+
text-align: center;
|
|
737
|
+
|
|
738
|
+
a {
|
|
739
|
+
color: #3498db;
|
|
740
|
+
text-decoration: none;
|
|
741
|
+
|
|
742
|
+
&:hover {
|
|
743
|
+
text-decoration: underline;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/* Progress bar */
|
|
750
|
+
pb-progress {
|
|
751
|
+
position: fixed;
|
|
752
|
+
top: 0;
|
|
753
|
+
left: 0;
|
|
754
|
+
right: 0;
|
|
755
|
+
z-index: 1000;
|
|
756
|
+
height: 3px;
|
|
757
|
+
|
|
758
|
+
&[hidden] {
|
|
759
|
+
display: none !important;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/* Add column template - should be hidden by default */
|
|
764
|
+
pb-grid > template {
|
|
765
|
+
display: none;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
/* Responsive adjustments */
|
|
769
|
+
@media (max-width: 1200px) {
|
|
770
|
+
pb-view.metadata {
|
|
771
|
+
padding: 16px;
|
|
772
|
+
font-size: 12px;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
pb-panel .panel-content {
|
|
776
|
+
font-size: 15px;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
@media (max-width: 768px) {
|
|
781
|
+
main.content-body {
|
|
782
|
+
padding: 8px;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
pb-grid {
|
|
786
|
+
min-height: 400px;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
pb-panel .panel-content {
|
|
790
|
+
padding: 12px;
|
|
791
|
+
font-size: 14px;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
pb-view.metadata {
|
|
795
|
+
padding: 12px;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
/* ------------------------------------ *\
|
|
803
|
+
#MEDIA-QUERIES
|
|
804
|
+
\* ------------------------------------ */
|
|
805
|
+
@media all and (max-width: $breakpoint-laptop) {
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
@media all and (max-width: $breakpoint-ipad-portrait) {
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
@media all and (max-width: $breakpoint-smartphone-landscape) {
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
/* Retina */
|
|
815
|
+
@media (resolution >= 2), (resolution >=192dpi) {
|
|
816
|
+
}
|