| 1 |
<!DOCTYPE html> |
| 2 |
<meta charset="utf-8"> |
| 3 |
<meta name="color-scheme" content="light dark"> |
| 4 |
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src foliate-opds:; style-src 'unsafe-inline'; img-src *; connect-src *; frame-src 'self';"> |
| 5 |
<style> |
| 6 |
:not(:defined) > * { |
| 7 |
display: none; |
| 8 |
} |
| 9 |
:root { |
| 10 |
overflow-wrap: anywhere; |
| 11 |
font: menu; |
| 12 |
font-size: 11pt; |
| 13 |
--shade: rgba(0, 0, 0, .07); |
| 14 |
--raised: rgba(0, 0, 0, .1); |
| 15 |
--pressed: rgba(0, 0, 0, .2); |
| 16 |
} |
| 17 |
@media (prefers-color-scheme: dark) { |
| 18 |
:root { |
| 19 |
--shade: rgba(255, 255, 255, .15); |
| 20 |
--raised: rgba(255, 255, 255, .2); |
| 21 |
--pressed: rgba(255, 255, 255, .25); |
| 22 |
} |
| 23 |
} |
| 24 |
a:any-link { |
| 25 |
color: inherit; |
| 26 |
text-decoration: none; |
| 27 |
text-underline-offset: .2em; |
| 28 |
padding-block-end: .2em; |
| 29 |
margin-block-end: -.2em; |
| 30 |
} |
| 31 |
a:any-link:hover { |
| 32 |
text-decoration: underline; |
| 33 |
} |
| 34 |
hr { |
| 35 |
background: none; |
| 36 |
border: 0; |
| 37 |
border-top: 1px solid color-mix(in hsl, currentColor, transparent 85%); |
| 38 |
} |
| 39 |
h1 { |
| 40 |
font-size: 1.75em; |
| 41 |
font-weight: 900; |
| 42 |
} |
| 43 |
h2 { |
| 44 |
font-size: 1.25em; |
| 45 |
} |
| 46 |
code { |
| 47 |
font-size: smaller; |
| 48 |
} |
| 49 |
button { |
| 50 |
display: inline-flex; |
| 51 |
justify-content: center; |
| 52 |
align-items: center; |
| 53 |
padding: 9px; |
| 54 |
font: inherit; |
| 55 |
font-weight: 700; |
| 56 |
border-radius: 6px; |
| 57 |
border: 0; |
| 58 |
background: none; |
| 59 |
} |
| 60 |
button:hover { |
| 61 |
background: var(--shade); |
| 62 |
} |
| 63 |
button:active, button[aria-expanded="true"] { |
| 64 |
background: var(--raised); |
| 65 |
} |
| 66 |
button.raised { |
| 67 |
background: var(--shade); |
| 68 |
} |
| 69 |
button.raised:hover { |
| 70 |
background: var(--raised); |
| 71 |
} |
| 72 |
button.raised:active, button.raised[aria-expanded="true"] { |
| 73 |
background: var(--pressed); |
| 74 |
} |
| 75 |
.pill { |
| 76 |
border-radius: 9999px; |
| 77 |
padding: 12px 24px; |
| 78 |
} |
| 79 |
.split-button { |
| 80 |
display: flex; |
| 81 |
} |
| 82 |
.split-button > button { |
| 83 |
flex: 1; |
| 84 |
border-start-end-radius: 0; |
| 85 |
border-end-end-radius: 0; |
| 86 |
} |
| 87 |
.split-button foliate-menubutton > button { |
| 88 |
padding: 9px; |
| 89 |
border-start-start-radius: 0; |
| 90 |
border-end-start-radius: 0; |
| 91 |
border-inline-start: 1px solid color-mix(in hsl, currentColor, transparent 75%); |
| 92 |
} |
| 93 |
foliate-menubutton { |
| 94 |
display: flex; |
| 95 |
} |
| 96 |
foliate-menu { |
| 97 |
position: absolute; |
| 98 |
inset-block-start: 100%; |
| 99 |
inset-inline-end: 0; |
| 100 |
display: flex; |
| 101 |
flex-direction: column; |
| 102 |
width: max-content; |
| 103 |
background: canvas; |
| 104 |
border-radius: 9px; |
| 105 |
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), |
| 106 |
0 1px 3px 1px rgba(0, 0, 0, 0.07), |
| 107 |
0 2px 6px 2px rgba(0, 0, 0, 0.03); |
| 108 |
visibility: hidden; |
| 109 |
padding: 6px; |
| 110 |
} |
| 111 |
foliate-menu:not([hidden]) { |
| 112 |
visibility: visible; |
| 113 |
} |
| 114 |
button[role="menuitem"] { |
| 115 |
border: 0; |
| 116 |
text-align: start; |
| 117 |
justify-content: start; |
| 118 |
font: menu; |
| 119 |
border-radius: 6px; |
| 120 |
padding: 9px; |
| 121 |
} |
| 122 |
|
| 123 |
/* main stack |
| 124 |
------------------------------------------------------------------------------*/ |
| 125 |
#stack > * { |
| 126 |
position: absolute; |
| 127 |
inset: 0; |
| 128 |
overflow: auto; |
| 129 |
padding: 18px 24px; |
| 130 |
} |
| 131 |
#stack > [hidden] { |
| 132 |
display: block; |
| 133 |
} |
| 134 |
#stack > *:before { |
| 135 |
content: ""; |
| 136 |
display: block; |
| 137 |
position: fixed; |
| 138 |
inset: 0; |
| 139 |
z-index: 1; |
| 140 |
bottom: auto; |
| 141 |
height: 4px; |
| 142 |
box-shadow: inset 0 1px rgba(0, 0, 0, .07); |
| 143 |
background: linear-gradient(rgba(0, 0, 0, .07), transparent); |
| 144 |
pointer-events: none; |
| 145 |
opacity: 1; |
| 146 |
} |
| 147 |
@media (prefers-color-scheme: dark) { |
| 148 |
#stack > *:before { |
| 149 |
box-shadow: inset 0 1px rgba(0, 0, 0, .2); |
| 150 |
background: linear-gradient(rgba(0, 0, 0, .2), transparent); |
| 151 |
} |
| 152 |
} |
| 153 |
#stack > *[data-scrolled-to-top]:before { |
| 154 |
opacity: 0; |
| 155 |
} |
| 156 |
#loading { |
| 157 |
opacity: 0; |
| 158 |
animation: .2s ease 1s 1 normal forwards fade-in; |
| 159 |
} |
| 160 |
@keyframes fade-in { |
| 161 |
from { opacity: 0; } |
| 162 |
to { opacity: 1; } |
| 163 |
} |
| 164 |
#loading:not([hidden]) svg path { |
| 165 |
animation: .6s linear infinite rotate; |
| 166 |
transform-origin: center; |
| 167 |
} |
| 168 |
@keyframes rotate { |
| 169 |
from { transform: rotate(0deg); } |
| 170 |
100% { transform: rotate(360deg); } |
| 171 |
} |
| 172 |
|
| 173 |
/* feed |
| 174 |
------------------------------------------------------------------------------*/ |
| 175 |
#feed hgroup { |
| 176 |
margin-bottom: 24px; |
| 177 |
} |
| 178 |
#feed hgroup h1 { |
| 179 |
margin: 0; |
| 180 |
margin-bottom: .5rem; |
| 181 |
} |
| 182 |
#feed main > nav { |
| 183 |
display: grid; |
| 184 |
grid-template-columns: repeat(4, 1fr); |
| 185 |
text-align: center; |
| 186 |
margin: 1em auto; |
| 187 |
width: fit-content; |
| 188 |
background: #fff; |
| 189 |
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), |
| 190 |
0 1px 3px 1px rgba(0, 0, 0, 0.07), |
| 191 |
0 2px 6px 2px rgba(0, 0, 0, 0.03); |
| 192 |
border-radius: 6px; |
| 193 |
font: menu; |
| 194 |
} |
| 195 |
@media (prefers-color-scheme: dark) { |
| 196 |
#feed main > nav { |
| 197 |
background: #ffffff11; |
| 198 |
} |
| 199 |
} |
| 200 |
#feed main > nav > * { |
| 201 |
padding: 6px 9px; |
| 202 |
} |
| 203 |
#feed main > nav > * + * { |
| 204 |
border-inline-start: 1px solid rgba(0, 0, 0, 0.07); |
| 205 |
} |
| 206 |
#feed main > nav a:not(:any-link) { |
| 207 |
color: grayText; |
| 208 |
cursor: default; |
| 209 |
} |
| 210 |
#nav:not(:empty) { |
| 211 |
position: fixed; |
| 212 |
inset: 0; |
| 213 |
box-sizing: border-box; |
| 214 |
} |
| 215 |
#feed a[href="#nav"] { |
| 216 |
display: none; |
| 217 |
position: fixed; |
| 218 |
z-index: 1; |
| 219 |
inset-block-end: 0; |
| 220 |
inset-inline-end: 0; |
| 221 |
margin: 18px; |
| 222 |
background: highlight; |
| 223 |
color: highlightText; |
| 224 |
border-radius: 100%; |
| 225 |
height: min-content; |
| 226 |
width: min-content; |
| 227 |
padding: 9px; |
| 228 |
} |
| 229 |
@media (max-width: 800px) { |
| 230 |
#nav { |
| 231 |
display: none; |
| 232 |
} |
| 233 |
#nav:not(:empty):target { |
| 234 |
display: block; |
| 235 |
} |
| 236 |
#feed[data-scrolled-to-top] { |
| 237 |
box-shadow: none; |
| 238 |
} |
| 239 |
#nav:not(:empty) { |
| 240 |
padding: 18px; |
| 241 |
background: canvas; |
| 242 |
color: canvasText; |
| 243 |
box-shadow: inset 0 1px rgba(0, 0, 0, .1); |
| 244 |
} |
| 245 |
#feed:has(#nav:not(:empty)):not(:has(#nav:target)) { |
| 246 |
padding-block-end: calc(16px + 18px + 9px * 2); |
| 247 |
} |
| 248 |
#feed:has(#nav:not(:empty)):not(:has(#nav:target)) a[href="#nav"] { |
| 249 |
display: flex; |
| 250 |
} |
| 251 |
} |
| 252 |
@media (width > 800px) { |
| 253 |
#feed:has(#nav:not(:empty)) { |
| 254 |
margin-inline-end: 200px; |
| 255 |
} |
| 256 |
#nav:not(:empty) { |
| 257 |
display: block; |
| 258 |
padding: 12px 9px; |
| 259 |
width: 200px; |
| 260 |
inset-inline-start: auto; |
| 261 |
} |
| 262 |
#feed[data-scrolled-to-top] #nav:not([data-scrolled-to-top]) { |
| 263 |
-webkit-mask-image: linear-gradient(transparent, #000 4em, #000); |
| 264 |
} |
| 265 |
#feed:has(#nav:not(:empty)) .carousel:has(opds-pub) { |
| 266 |
-webkit-mask-image: linear-gradient(to left, transparent, #000 24px, #000); |
| 267 |
} |
| 268 |
#feed:has(#nav:not(:empty)):dir(rtl) .carousel:has(opds-pub) { |
| 269 |
-webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000); |
| 270 |
} |
| 271 |
} |
| 272 |
#nav section + section { |
| 273 |
margin-top: 2em; |
| 274 |
} |
| 275 |
#nav h3 { |
| 276 |
font-size: smaller; |
| 277 |
margin: 0; |
| 278 |
margin-bottom: 6px; |
| 279 |
color: graytext; |
| 280 |
} |
| 281 |
#nav ul { |
| 282 |
margin: 0; |
| 283 |
padding: 0; |
| 284 |
} |
| 285 |
#nav a { |
| 286 |
overflow: hidden; |
| 287 |
white-space: nowrap; |
| 288 |
text-overflow: ellipsis; |
| 289 |
flex: 1; |
| 290 |
} |
| 291 |
#nav span { |
| 292 |
color: graytext; |
| 293 |
font-size: .75em; |
| 294 |
font-weight: 700; |
| 295 |
} |
| 296 |
#nav li { |
| 297 |
border-radius: 6px; |
| 298 |
padding: 6px 12px; |
| 299 |
display: flex; |
| 300 |
align-items: center; |
| 301 |
gap: 9px; |
| 302 |
} |
| 303 |
#nav [aria-current] { |
| 304 |
background: var(--shade); |
| 305 |
} |
| 306 |
.container { |
| 307 |
display: grid; |
| 308 |
gap: 18px; |
| 309 |
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); |
| 310 |
margin-bottom: 24px; |
| 311 |
} |
| 312 |
.container:has(opds-pub) { |
| 313 |
gap: 24px; |
| 314 |
row-gap: 0; |
| 315 |
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); |
| 316 |
margin-bottom: 0; |
| 317 |
} |
| 318 |
.carousel:has(opds-pub) { |
| 319 |
gap: 18px; |
| 320 |
row-gap: 0; |
| 321 |
grid-template-columns: repeat(auto-fill, 120px); |
| 322 |
grid-auto-flow: column; |
| 323 |
grid-auto-columns: 120px; |
| 324 |
margin-inline: -24px; |
| 325 |
padding-inline: 24px; |
| 326 |
overflow: auto; |
| 327 |
scroll-snap-type: inline proximity; |
| 328 |
scroll-padding: 24px; |
| 329 |
} |
| 330 |
.carousel:has(opds-pub) > * { |
| 331 |
scroll-snap-align: start; |
| 332 |
} |
| 333 |
.carousel-header { |
| 334 |
display: flex; |
| 335 |
align-items: center; |
| 336 |
gap: 24px; |
| 337 |
} |
| 338 |
.carousel-header h2 { |
| 339 |
flex: 1; |
| 340 |
} |
| 341 |
|
| 342 |
/* navigation |
| 343 |
------------------------------------------------------------------------------*/ |
| 344 |
opds-nav { |
| 345 |
padding: 15px; |
| 346 |
border-radius: 9px; |
| 347 |
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), |
| 348 |
0 1px 3px 1px rgba(0, 0, 0, 0.07), |
| 349 |
0 2px 6px 2px rgba(0, 0, 0, 0.03); |
| 350 |
background: #fff; |
| 351 |
transition: background .2s; |
| 352 |
} |
| 353 |
opds-nav:hover { |
| 354 |
background: none; |
| 355 |
} |
| 356 |
@media (prefers-color-scheme: dark) { |
| 357 |
opds-nav { |
| 358 |
background: #ffffff11; |
| 359 |
} |
| 360 |
opds-nav:hover { |
| 361 |
background: #ffffff17; |
| 362 |
} |
| 363 |
} |
| 364 |
|
| 365 |
/* publication */ |
| 366 |
:is(opds-pub, opds-pub-full) > [slot="image"] { |
| 367 |
border-radius: 9px; |
| 368 |
box-shadow: 0 6px 12px rgba(0, 0, 0, .15); |
| 369 |
border: 1px solid color-mix(in hsl, currentColor, transparent 85%); |
| 370 |
} |
| 371 |
opds-pub-full { |
| 372 |
display: block; |
| 373 |
max-width: 640px; |
| 374 |
} |
| 375 |
opds-pub-full a:any-link { |
| 376 |
text-decoration: underline; |
| 377 |
text-decoration-color: color-mix(in hsl, currentcolor, transparent 75%); |
| 378 |
} |
| 379 |
opds-pub-full a:any-link:hover { |
| 380 |
text-decoration-color: currentcolor; |
| 381 |
} |
| 382 |
opds-pub-full > [slot="heading"] { |
| 383 |
display: flex; |
| 384 |
flex-direction: column; |
| 385 |
gap: 9px; |
| 386 |
margin-bottom: 9px; |
| 387 |
} |
| 388 |
opds-pub-full > [slot="heading"] { |
| 389 |
font-size: max(1em, min(3vw, 1.15em)); |
| 390 |
} |
| 391 |
opds-pub-full > [slot="heading"] p:first-child { |
| 392 |
font-size: 1rem; |
| 393 |
} |
| 394 |
opds-pub-full > [slot="heading"] h1 { |
| 395 |
font-size: 1.5em; |
| 396 |
} |
| 397 |
opds-pub-full > [slot="heading"] h1 + p { |
| 398 |
font-size: 1.2em; |
| 399 |
font-weight: 700; |
| 400 |
} |
| 401 |
opds-pub-full :is(h1, p) { |
| 402 |
margin: 0; |
| 403 |
} |
| 404 |
opds-pub-full hgroup p:empty { |
| 405 |
display: none; |
| 406 |
} |
| 407 |
opds-pub-full > [slot="details"] table { |
| 408 |
display: grid; |
| 409 |
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); |
| 410 |
column-gap: 12px; |
| 411 |
row-gap: 3px; |
| 412 |
margin-top: 24px; |
| 413 |
margin-bottom: 6px; |
| 414 |
} |
| 415 |
opds-pub-full > [slot="details"] th { |
| 416 |
text-align: start; |
| 417 |
font-size: smaller; |
| 418 |
} |
| 419 |
opds-pub-full > [slot="details"] tr { |
| 420 |
display: grid; |
| 421 |
grid-row: auto / span 2; |
| 422 |
grid-template-rows: subgrid; |
| 423 |
margin-bottom: 18px; |
| 424 |
} |
| 425 |
opds-pub-full > [slot="details"] tr.long { |
| 426 |
grid-column: span 2; |
| 427 |
} |
| 428 |
opds-pub-full > [slot="details"] [role="listitem"] { |
| 429 |
display: inline-flex; |
| 430 |
gap: 1ex; |
| 431 |
margin-inline-end: 2em; |
| 432 |
font-size: smaller; |
| 433 |
} |
| 434 |
opds-pub-full > [slot="details"] [role="listitem"] + [role="listitem"] { |
| 435 |
margin-block-start: 1em; |
| 436 |
} |
| 437 |
opds-pub-full > [slot="actions"] { |
| 438 |
display: flex; |
| 439 |
flex-wrap: wrap; |
| 440 |
gap: 9px; |
| 441 |
width: 100%; |
| 442 |
margin-top: 24px; |
| 443 |
} |
| 444 |
opds-pub-full > [slot="actions"] > * { |
| 445 |
min-width: min(100%, 8em); |
| 446 |
} |
| 447 |
/* if first button is "sample", highlight last button */ |
| 448 |
opds-pub-full > [slot="actions"]:has([data-rel$="sample"]:first-child) > button:not([data-rel$="sample"]):not(:has(~ :not([data-rel$="sample"]))), |
| 449 |
opds-pub-full > [slot="actions"]:has([data-rel$="sample"]:first-child) > :not([data-rel$="sample"]):not(:has(~ :not([data-rel$="sample"]))) > button, |
| 450 |
opds-pub-full > [slot="actions"]:has([data-rel$="sample"]:first-child) > :not([data-rel$="sample"]):not(:has(~ :not([data-rel$="sample"]))) > foliate-menubutton > button, |
| 451 |
/* otherwise, highlight first button */ |
| 452 |
opds-pub-full > [slot="actions"]:not(:has([data-rel$="sample"]:first-child)) > button:first-child, |
| 453 |
opds-pub-full > [slot="actions"]:not(:has([data-rel$="sample"]:first-child)) > *:first-child > button, |
| 454 |
opds-pub-full > [slot="actions"]:not(:has([data-rel$="sample"]:first-child)) > *:first-child > foliate-menubutton > button { |
| 455 |
color: highlighttext; |
| 456 |
--shade: highlight; |
| 457 |
--raised: color-mix(in srgb, var(--shade), highlighttext 10%); |
| 458 |
--pressed: color-mix(in srgb, var(--shade), transparent 20%); |
| 459 |
} |
| 460 |
|
| 461 |
/* search |
| 462 |
------------------------------------------------------------------------------*/ |
| 463 |
#search form p { |
| 464 |
text-align: start; |
| 465 |
} |
| 466 |
#search label > span { |
| 467 |
font-size: smaller; |
| 468 |
color: graytext; |
| 469 |
} |
| 470 |
#search input[type="search"] { |
| 471 |
display: block; |
| 472 |
width: 100%; |
| 473 |
box-sizing: border-box; |
| 474 |
padding: 9px; |
| 475 |
margin: 6px 0; |
| 476 |
font: inherit; |
| 477 |
} |
| 478 |
</style> |
| 479 |
<template id="opds-nav"> |
| 480 |
<style> |
| 481 |
:host { |
| 482 |
position: relative; |
| 483 |
display: grid; |
| 484 |
grid-template-columns: 1fr max-content min-content; |
| 485 |
column-gap: 12px; |
| 486 |
row-gap: 6px; |
| 487 |
align-items: center; |
| 488 |
} |
| 489 |
a { |
| 490 |
color: inherit; |
| 491 |
text-decoration: none; |
| 492 |
} |
| 493 |
h1 a:before { |
| 494 |
content: ""; |
| 495 |
display: block; |
| 496 |
position: absolute; |
| 497 |
inset: 0; |
| 498 |
} |
| 499 |
h1 { |
| 500 |
font-size: inherit; |
| 501 |
margin: 0; |
| 502 |
align-self: end; |
| 503 |
} |
| 504 |
h1:has(+ #description:empty) { |
| 505 |
align-self: center; |
| 506 |
} |
| 507 |
p { |
| 508 |
margin: 0; |
| 509 |
} |
| 510 |
#description { |
| 511 |
grid-row-start: 2; |
| 512 |
margin: 0; |
| 513 |
font-size: smaller; |
| 514 |
align-self: start; |
| 515 |
} |
| 516 |
#description:empty { |
| 517 |
display: none; |
| 518 |
} |
| 519 |
#description:not(:empty) ~ :is(#count, span) { |
| 520 |
grid-row: span 2; |
| 521 |
} |
| 522 |
#count { |
| 523 |
font-variant-numeric: tabular-nums; |
| 524 |
font-size: smaller; |
| 525 |
color: graytext; |
| 526 |
} |
| 527 |
span { |
| 528 |
color: graytext; |
| 529 |
} |
| 530 |
</style> |
| 531 |
<h1><a></a></h1> |
| 532 |
<p id="description"></p> |
| 533 |
<p id="count"></p> |
| 534 |
<span aria-hidden="true">❯</span> |
| 535 |
</template> |
| 536 |
<template id="opds-pub"> |
| 537 |
<style> |
| 538 |
:host { |
| 539 |
position: relative; |
| 540 |
display: grid; |
| 541 |
grid-row: auto / span 2; |
| 542 |
grid-template-rows: subgrid; |
| 543 |
margin-bottom: 18px; |
| 544 |
font-size: .9em; |
| 545 |
} |
| 546 |
::slotted(img) { |
| 547 |
width: 100%; |
| 548 |
height: auto; |
| 549 |
align-self: end; |
| 550 |
} |
| 551 |
div { |
| 552 |
display: flex; |
| 553 |
flex-direction: column; |
| 554 |
gap: .3em; |
| 555 |
margin-top: 12px; |
| 556 |
min-width: 0; |
| 557 |
} |
| 558 |
div > * { |
| 559 |
margin: 0; |
| 560 |
} |
| 561 |
h1 { |
| 562 |
font-size: 1em; |
| 563 |
overflow: hidden; |
| 564 |
text-overflow: ellipsis; |
| 565 |
display: -webkit-box; |
| 566 |
-webkit-box-orient: vertical; |
| 567 |
-webkit-line-clamp: 2; |
| 568 |
padding-block-end: .2em; |
| 569 |
margin-block-end: -.2em; |
| 570 |
} |
| 571 |
#author { |
| 572 |
font-size: smaller; |
| 573 |
overflow: hidden; |
| 574 |
white-space: nowrap; |
| 575 |
text-overflow: ellipsis; |
| 576 |
} |
| 577 |
a { |
| 578 |
color: inherit; |
| 579 |
text-decoration: none; |
| 580 |
text-underline-offset: .2em; |
| 581 |
} |
| 582 |
a:hover { |
| 583 |
text-decoration: underline; |
| 584 |
} |
| 585 |
h1 a:before { |
| 586 |
content: ""; |
| 587 |
display: block; |
| 588 |
position: absolute; |
| 589 |
inset: 0; |
| 590 |
border-radius: 4px; |
| 591 |
} |
| 592 |
h1 a:focus-visible:before { |
| 593 |
outline: 2px solid highlight; |
| 594 |
} |
| 595 |
</style> |
| 596 |
<slot name="image"></slot> |
| 597 |
<div> |
| 598 |
<h1><a></a></h1> |
| 599 |
<p id="author"></p> |
| 600 |
<p id="price"></p> |
| 601 |
</div> |
| 602 |
</template> |
| 603 |
<template id="opds-pub-full"> |
| 604 |
<style> |
| 605 |
#header { |
| 606 |
display: grid; |
| 607 |
grid-template-columns: min(40%, 180px) 1fr; |
| 608 |
grid-template-rows: min-content min-content 1fr; |
| 609 |
column-gap: 24px; |
| 610 |
} |
| 611 |
::slotted(img) { |
| 612 |
width: 100%; |
| 613 |
height: auto; |
| 614 |
grid-row: span 3; |
| 615 |
} |
| 616 |
iframe { |
| 617 |
border: 0; |
| 618 |
width: 100%; |
| 619 |
margin-top: 24px; |
| 620 |
} |
| 621 |
:host(:not([description])) iframe { |
| 622 |
display: none; |
| 623 |
} |
| 624 |
#actions, #actions > * { |
| 625 |
display: flex; |
| 626 |
align-items: end; |
| 627 |
flex: 1; |
| 628 |
} |
| 629 |
#downloading { |
| 630 |
gap: 6px; |
| 631 |
} |
| 632 |
#downloading progress { |
| 633 |
align-self: center; |
| 634 |
flex: 1; |
| 635 |
width: auto; |
| 636 |
} |
| 637 |
:host(:not([downloading])) #actions > :not(slot) { display: none } |
| 638 |
:host([downloading]) #actions > :not(#downloading) { display: none } |
| 639 |
</style> |
| 640 |
<div id="header"> |
| 641 |
<slot name="image"></slot> |
| 642 |
<slot name="heading"></slot> |
| 643 |
<slot name="authors"></slot> |
| 644 |
<div id="actions"> |
| 645 |
<div id="downloading"> |
| 646 |
<progress></progress> |
| 647 |
<slot name="cancel"></slot> |
| 648 |
</div> |
| 649 |
<slot name="actions"></slot> |
| 650 |
</div> |
| 651 |
</div> |
| 652 |
<iframe sandbox></iframe> |
| 653 |
<slot name="details"></slot> |
| 654 |
</template> |
| 655 |
<foliate-stack id="stack"> |
| 656 |
<foliate-scrolled id="loading"> |
| 657 |
<foliate-center> |
| 658 |
<svg width="48" height="48" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2"> |
| 659 |
<path d="M24 8A 16 16 0 0 0 24 40"></path> |
| 660 |
</svg> |
| 661 |
<h1></h1> |
| 662 |
</foliate-center> |
| 663 |
</foliate-scrolled> |
| 664 |
<foliate-scrolled id="error"> |
| 665 |
<foliate-center> |
| 666 |
<h1></h1> |
| 667 |
<p></p> |
| 668 |
<hr style="visibility: hidden"> |
| 669 |
<button class="raised pill"></button> |
| 670 |
</foliate-center> |
| 671 |
</foliate-scrolled> |
| 672 |
<foliate-scrolled id="feed"> |
| 673 |
<article> |
| 674 |
<hgroup> |
| 675 |
<h1></h1> |
| 676 |
<p></p> |
| 677 |
</hgroup> |
| 678 |
<a href="#nav"><foliate-symbolic src="/icons/hicolor/scalable/actions/funnel-symbolic.svg"></foliate-symbolic></a> |
| 679 |
<main></main> |
| 680 |
<foliate-scrolled id="nav" role="navigation"></foliate-scrolled> |
| 681 |
</article> |
| 682 |
</foliate-scrolled> |
| 683 |
<foliate-scrolled id="entry"></foliate-scrolled> |
| 684 |
<foliate-scrolled id="search"> |
| 685 |
<foliate-center> |
| 686 |
<h1></h1> |
| 687 |
<p></p> |
| 688 |
<form> |
| 689 |
<div id="search-params"></div> |
| 690 |
<button class="raised pill"></button> |
| 691 |
</form> |
| 692 |
</foliate-center> |
| 693 |
</foliate-scrolled> |
| 694 |
</foliate-stack> |