nesw layout

master
km0 3 years ago
parent 6bbfae1a59
commit 0ef9b51cd2

File diff suppressed because one or more lines are too long

@ -61,6 +61,18 @@ def dump(order=None):
"positivity": content["positivity"], "positivity": content["positivity"],
"slug": folder, "slug": folder,
} }
elif any(position in ['nw','ne','sw','se'] for position in content):
postit = {
"title": metadata["title"],
"slug": folder,
}
for position in content:
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:

@ -1 +1 @@
Subproject commit d741154e912a6d1255066363aa5301c1c93bc516 Subproject commit a35f4032d07df18b854679408d83928f495d5e6c

@ -124,3 +124,24 @@
.connect-less img { .connect-less img {
padding: 4mm; padding: 4mm;
} }
.nw {
white-space: initial;
}
.ne {
text-align: right;
white-space: initial;
}
.se {
margin-top: auto;
text-align: right;
white-space: initial;
}
.sw {
margin-top: auto;
}

@ -83,8 +83,37 @@
style="width: {{ 100 / contents|length * loop.index}}%" style="width: {{ 100 / contents|length * loop.index}}%"
></span> ></span>
</footer> </footer>
{%elif 'nw' in content or 'ne' in content or 'se' in content or 'sw' in content%}
<p class="description dialogue
{%if content['nw']%}nw{%endif%}
{%if content['ne']%}ne{%endif%}
">
{%if content['ne']%}{{content['ne']}}{%endif%}
{%if content['nw']%}{{content['nw']}}{%endif%}
</p>
<p class="description dialogue
{%if content['sw']%}sw{%endif%}
{%if content['se']%}se{%endif%}
">
{%if content['se']%}{{content['se']}}{%endif%}
{%if content['sw']%}{{content['sw']}}{%endif%}
</p>
<footer>
<h2 class="title">{{content['title']}}</h2>
<span
class="progress-bar"
style="width: {{ 100 / contents|length * loop.index}}%"
></span>
</footer>
{%else%} {%else%}
<p class="description {% if content['description']|length > 200 %} long-text {%endif%}"> <p class="description {% if content['description']|length > 200 %} long-text {%endif%}">
{{content['description']}} {{content['description']}}
</p> </p>

Loading…
Cancel
Save