fix img size

master
grgr 3 years ago
commit 0acdaa142d

@ -7,7 +7,7 @@ pagedjs.src = "https://unpkg.com/pagedjs/dist/paged.polyfill.js";
window.addEventListener("load", () => { window.addEventListener("load", () => {
fetchContents(); fetchContents();
atlasLink(); atlasLink();
document.getElementsByTagName("head")[0].appendChild(pagedjs); //document.getElementsByTagName("head")[0].appendChild(pagedjs);
}); });
function fetchContents() { function fetchContents() {

@ -17,9 +17,11 @@
width: auto; width: auto;
height: auto; height: auto;
} }
.libretto{
overflow: hidden;
.atlas {
border: none;
} }
.contributions, .contributions,
@ -59,4 +61,16 @@
display: block; display: block;
} }
.contribution .title {
font-size: 28px;
}
.contribution {
border-bottom: none;
overflow: auto;
}
} }

@ -49,10 +49,11 @@ body, html{
border-top: solid 1px var(--wireframe); border-top: solid 1px var(--wireframe);
} }
.libretto{ .libretto{
overflow-y: scroll; overflow-y: scroll;
} }
.libretto > * { .libretto > * {
border-bottom: solid 1px var(--wireframe); border-bottom: solid 1px var(--wireframe);
} }
@ -140,7 +141,12 @@ dd {
.contribution .content h3, .contribution .content h3,
.contribution .content h2 { .contribution .content h2 {
font-size: 1rem; font-size: 1rem;
}
.contribution img {
width: 100%;
height: auto;
object-fit: contain;
} }
@namespace svg url(http://www.w3.org/2000/svg); @namespace svg url(http://www.w3.org/2000/svg);

Loading…
Cancel
Save