bleed bar

master
km0 2 years ago
parent 0ef9b51cd2
commit 11c9fb283c

BIN
.DS_Store vendored

Binary file not shown.

BIN
postit/.DS_Store vendored

Binary file not shown.

File diff suppressed because one or more lines are too long

@ -70,9 +70,6 @@ def dump(order=None):
for position in content: for position in content:
postit[position] = content[position] postit[position] = content[position]
print(postit)
elif "word" in content and content['category'] != 'Loot Box': elif "word" in content and content['category'] != 'Loot Box':
continue continue
elif "word" in content: elif "word" in content:
@ -122,7 +119,7 @@ def dump(order=None):
"slug": folder, "slug": folder,
} }
contribution.append(postit) contribution.append(postit)
amount = len(metadata["contents"]) amount = len(contribution)
print(f"{amount:03} - {folder}") print(f"{amount:03} - {folder}")
total = total + amount total = total + amount
contents[folder] = contribution contents[folder] = contribution

Binary file not shown.

@ -1 +1 @@
Subproject commit a35f4032d07df18b854679408d83928f495d5e6c Subproject commit 5e692787e3e2150ffbd2e58f2a9e062b503cba86

@ -121,12 +121,12 @@
} }
.xquisite img, .xquisite img,
.connect-less img { .connect-less img,
.nim img {
padding: 4mm; padding: 4mm;
} }
.nw { .nw {
white-space: initial; white-space: initial;
} }

@ -35,8 +35,8 @@ body {
margin: 0; margin: 0;
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
line-height: 1.4; line-height: 1.4;
overflow: hidden; /* overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis; */
display: inline-flex; display: inline-flex;
justify-content: end; justify-content: end;
flex-direction: column; flex-direction: column;
@ -48,6 +48,7 @@ footer {
/* position: absolute; */ /* position: absolute; */
/* bottom: 0; */ /* bottom: 0; */
border-top: 1px solid var(--background); border-top: 1px solid var(--background);
overflow:visible;
} }
img { img {
@ -96,6 +97,7 @@ figcaption {
bottom: 4mm; bottom: 4mm;
transform: translate(-50%, 0); transform: translate(-50%, 0);
z-index: 100; z-index: 100;
white-space: nowrap;
} }
a { a {
@ -115,7 +117,7 @@ a {
} }
.progress-bar { .progress-bar {
height: 100%; height: calc(100%);
background-color: var(--background); background-color: var(--background);
z-index: 0; z-index: 0;
position: absolute; position: absolute;

@ -7,6 +7,9 @@ class BleedHandler extends Paged.Handler {
let img = pageFragment.querySelector("img"); let img = pageFragment.querySelector("img");
if (img) { if (img) {
moveImage(img); moveImage(img);
} else {
let bar = pageFragment.querySelector('.progress-bar')
progressBar(bar)
} }
} }
@ -21,3 +24,20 @@ function moveImage(img) {
let parent = img.closest(".pagedjs_sheet"); let parent = img.closest(".pagedjs_sheet");
parent.prepend(img); parent.prepend(img);
} }
function progressBar(bar){
let width = bar.clientWidth
let height = bar.clientHeight
console.log(bar, width, height)
let parent = bar.closest(".pagedjs_sheet");
parent.prepend(bar);
bar.style.height = `calc(2mm + ${height}px)`
bar.style.width = `calc(4mm + ${width}px)`
bar.style.bottom = '0'
bar.style.top = 'initial'
}
Loading…
Cancel
Save