cursor easter egg

master
km0 2 years ago
parent e90a5dc28f
commit 727f9b8efb

File diff suppressed because one or more lines are too long

@ -93,6 +93,17 @@ a {
left: 0;
}
img.cursor {
position: absolute;
/* bottom: 0; */
top: 0;
transform: translate(10%,8%);
width: 20px;
height: 20px;
z-index: 1000;
object-fit: contain;
}
@media screen {
.post-it {
border: 1px solid #ddd;

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 522 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 448 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

@ -7,7 +7,7 @@ class BleedHandler extends Paged.Handler {
let img = pageFragment.querySelector("img");
let bar = pageFragment.querySelector('.progress-bar')
if (img) {
if (img && !img.hasAttribute("data-nobleed")) {
moveImage(img);
}

@ -154,6 +154,26 @@
></span>
</footer>
<!-- progress bar easter egg -->
{%elif content['cursor']%}
<p class="description {% if content['cursor']|length > 200 %} long-text {%endif%}">
{{content['cursor']}}
</p>
<footer>
<h2 class="title">{{content['title']}}</h2>
{% if content['cursor']%}
<img class="cursor" src="{{url_for('static', filename='img/cursor.svg')}}" style="left: {{ 100 / contents|length * loop.index}}%" data-nobleed />
{% endif%}
<span
class="progress-bar"
style="width: {{ 100 / contents|length * loop.index}}%"
></span>
</footer>
<!-- standard text postit -->
{%else%}
@ -173,6 +193,7 @@
<!-- Regular progress bar, using the length of each contribution to calculate the percentage -->
<footer>
<h2 class="title">{{content['title']}}</h2>
<span
class="progress-bar"
style="width: {{ 100 / contents|length * loop.index}}%"

Loading…
Cancel
Save