Make index.html ibles scroll for better mobile support
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
563d3599f2
commit
b6ac3e8b5c
|
@ -14,127 +14,141 @@
|
|||
|
||||
<b><a href="/circuits/">Circuits</a></b>
|
||||
<br>
|
||||
{% for ible in data[1] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:19vw;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:19vw;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
<div class="ible-list">
|
||||
{% for ible in data[1] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:250px;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:250px;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<b><a href="/workshop/">Workshop</a></b>
|
||||
<br>
|
||||
{% for ible in data[2] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:19vw;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:19vw;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
<div class="ible-list">
|
||||
{% for ible in data[2] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:250px;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:250px;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<b><a href="/craft/">Craft</a></b>
|
||||
<br>
|
||||
{% for ible in data[3] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:19vw;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:19vw;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
<div class="ible-list">
|
||||
{% for ible in data[3] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:250px;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:250px;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<b><a href="/cooking/">Cooking</a></b>
|
||||
<br>
|
||||
{% for ible in data[4] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:19vw;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:19vw;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
<div class="ible-list">
|
||||
{% for ible in data[4] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:250px;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:250px;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<b><a href="/living/">Living</a></b>
|
||||
<br>
|
||||
{% for ible in data[5] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:19vw;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:19vw;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
<div class="ible-list">
|
||||
{% for ible in data[5] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:250px;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:250px;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<b><a href="/outside/">Outside</a></b>
|
||||
<br>
|
||||
{% for ible in data[6] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:19vw;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:19vw;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
<div class="ible-list">
|
||||
{% for ible in data[6] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:250px;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:250px;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<b><a href="/teachers/">Teachers</a></b>
|
||||
<br>
|
||||
{% for ible in data[7] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:19vw;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:19vw;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
<div class="ible-list">
|
||||
{% for ible in data[7] %}
|
||||
<div class="ibles">
|
||||
<a href="{{ ible[0] }}">
|
||||
<img style="max-width:250px;" src="{{ ible[1] }}" alt="{{ ible[2] }}">
|
||||
<h3 style="max-width:250px;">{{ ible[3] }}</h3>
|
||||
</a>
|
||||
<div class="ible-small">
|
||||
<p>by <a href="{{ ible[5] }}">{{ ible[4] }}</a></p>
|
||||
<p>in <a href="{{ ible[7] }}">{{ ible[6] }}</a></p>
|
||||
<p>{{ ible[8] }} Favorites, {{ ible[9] }} Views</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
</center>
|
||||
{% include "footer.html" %}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<span><a href="{{ subn("([&?])sort=[^&]*", '\\1sort=I+Made+Its', data[2])[0] }}{{ "&sort=I+Made+Its" if subn("([&?])sort=[^&]*", '\\1sort=I+Made+Its', data[2])[1] == 0 else '' }}">I Made Its</a></span>
|
||||
<br>
|
||||
|
||||
<div style="max-width:90%;">
|
||||
<div class="ibles" style="max-width:90%;">
|
||||
{% for ible in data[1] %}
|
||||
<div class="ible-list-item">
|
||||
<a href="{{ ible[0] }}" style="color:#bbc2cf;">
|
||||
|
|
|
@ -1,35 +1,34 @@
|
|||
<style>
|
||||
body {
|
||||
font-family: Fira Sans, Liberation Sans, sans-serif;
|
||||
margin:20px auto;
|
||||
line-height:1.5em;
|
||||
font-size:1.1em;
|
||||
background-color:#282c34;
|
||||
max-width:100vw;
|
||||
color:#bbc2cf;
|
||||
padding:0 10px;
|
||||
hyphens:auto;
|
||||
margin: 20px auto;
|
||||
line-height: 1.5em;
|
||||
font-size: 1.1em;
|
||||
background-color: #282c34;
|
||||
max-width: 100vw;
|
||||
color: #bbc2cf;
|
||||
padding: 0 10px;
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
|
||||
a { color:#ff6c6b; text-decoration:none; }
|
||||
a:hover { color:#ff6c6b; text-decoration:underline; }
|
||||
a { color: #ff6c6b; text-decoration:none; }
|
||||
a: hover { color:#ff6c6b; text-decoration:underline; }
|
||||
|
||||
h1,h2,h3,.fact_check_info_title {
|
||||
line-height:1.2;
|
||||
color:#51afef;
|
||||
font-size:1.3em;
|
||||
line-height: 1.2;
|
||||
color: #51afef;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
h2 { font-size:1.2em; }
|
||||
h3,.fact_check_info_title { font-size:1.1em; }
|
||||
h2 { font-size: 1.2em; }
|
||||
h3,.fact_check_info_title { font-size: 1.1em; }
|
||||
|
||||
pre,code {
|
||||
tab-size:8;
|
||||
background: #20232a;
|
||||
color: #969ba6;
|
||||
border: 1px solid lightgrey;
|
||||
padding: 5px;
|
||||
tab-size:4;
|
||||
tab-size: 4;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
|
@ -38,129 +37,142 @@
|
|||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.ibles {
|
||||
display:inline-block;
|
||||
vertical-align:top;
|
||||
.ible-list {
|
||||
width: 95vw;
|
||||
display: inline-block;
|
||||
float: none;
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
overflow-y: hidden;
|
||||
overflow-x: scroll;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.ibles {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
|
||||
.ible-small {
|
||||
font-size:0.7em;
|
||||
font-weight:thin;
|
||||
line-height:1em;
|
||||
font-size: 0.7em;
|
||||
font-weight: thin;
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
.step-imgs {
|
||||
display:flex;
|
||||
align-items:center;
|
||||
justify-content:center;
|
||||
flex-wrap:wrap;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.step-imgs img {
|
||||
max-width:300px;
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
.reply-button,.replies {
|
||||
display:none;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.reply-button + label {
|
||||
position:relative;
|
||||
display:block;
|
||||
cursor:pointer;
|
||||
position: relative;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
input.reply-button:checked + label + .replies {
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
gap:1rem;
|
||||
margin-top:1rem;
|
||||
input.reply-button: checked + label + .replies {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.member-list {
|
||||
display:inline-block;
|
||||
max-width:200px;
|
||||
vertical-align:top;
|
||||
display: inline-block;
|
||||
max-width: 200px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.ible-list-item {
|
||||
display:inline-block;
|
||||
max-width:350px;
|
||||
vertical-align:top;
|
||||
margin-bottom:2rem;
|
||||
display: inline-block;
|
||||
max-width: 350px;
|
||||
vertical-align: top;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.contest-list-item {
|
||||
display:inline-block;
|
||||
max-width:500px;
|
||||
vertical-align:top;
|
||||
margin-bottom:2rem;
|
||||
display: inline-block;
|
||||
max-width: 500px;
|
||||
vertical-align: top;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.archive-month-wrapper {
|
||||
display:inline-block;
|
||||
width:30vw;
|
||||
vertical-align:top;
|
||||
display: inline-block;
|
||||
width: 30vw;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.archive-month {
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
gap:-10px;
|
||||
margin-bottom:1rem;
|
||||
justify-content:space-between;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: -10px;
|
||||
margin-bottom: 1rem;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.archive {
|
||||
margin-bottom:-20px;
|
||||
margin-bottom: -20px;
|
||||
}
|
||||
|
||||
ul.pagination {
|
||||
display:flex;
|
||||
justify-content:space-around;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 0 33vw;
|
||||
list-style-type:none;
|
||||
align-items:center;
|
||||
list-style-type: none;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
ul.pagination li.active a,
|
||||
ul.pagination li.disabled a,
|
||||
ul.pagination li.active a:hover,
|
||||
ul.pagination li.disabled a:hover {
|
||||
color:#bbc2cf;
|
||||
text-decoration:none;
|
||||
ul.pagination li.active a: hover,
|
||||
ul.pagination li.disabled a: hover {
|
||||
color: #bbc2cf;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.closed-contest-contest {
|
||||
object-fit:cover;
|
||||
width:33vw;
|
||||
height:15vw;
|
||||
display:inline-block;
|
||||
vertical-align:top;
|
||||
padding:0 10px;
|
||||
object-fit: cover;
|
||||
width: 33vw;
|
||||
height: 15vw;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.closed-contest-winner,
|
||||
.closed-contest-winner-img {
|
||||
width:15vw;
|
||||
display:inline-block;
|
||||
vertical-align:top;
|
||||
padding:0 10px;
|
||||
font-size:0.8em;
|
||||
text-overflow:ellipsis;
|
||||
white-space:nowrap;
|
||||
overflow:hidden;
|
||||
width: 15vw;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
padding: 0 10px;
|
||||
font-size: 0.8em;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sitemap-group {
|
||||
margin-top:2em;
|
||||
display:inline-block;
|
||||
width:30vw;
|
||||
text-align:left;
|
||||
vertical-align:top;
|
||||
margin-top: 2em;
|
||||
display: inline-block;
|
||||
width: 30vw;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.sitemap-group h2 {
|
||||
text-align:center;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue