1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00

Merge pull request #828 from Zankaria/catalog-styling

Adjust the catalog styling
This commit is contained in:
Lorenzo Yario 2024-10-31 13:52:34 -07:00 committed by GitHub
commit eb2ac9c75a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 30 additions and 16 deletions

View File

@ -620,6 +620,10 @@ pre {
margin: 0;
}
.theme-catalog .controls > span {
margin-right: 1em;
}
.theme-catalog div.thread img {
float: none!important;
margin: auto;
@ -629,13 +633,20 @@ pre {
border: 2px solid rgba(153,153,153,0);
}
/* Still for the catalog theme */
#Grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-content: center;
gap: 0.2em;
}
.theme-catalog div.thread {
display: inline-block;
vertical-align: top;
text-align: center;
font-weight: normal;
margin-top: 2px;
margin-bottom: 2px;
padding: 2px;
height: 300px;
width: 205px;
@ -653,7 +664,6 @@ pre {
.theme-catalog div.threads {
text-align: center;
margin-left: -20px;
}
.theme-catalog div.thread:hover {

View File

@ -19,20 +19,24 @@
</div>
</header>
<span>{% trans 'Sort by' %}: </span>
<select id="sort_by" style="display: inline-block">
<option selected value="bump:desc">{% trans 'Bump order' %}</option>
<option value="time:desc">{% trans 'Creation date' %}</option>
<option value="reply:desc">{% trans 'Reply count' %}</option>
<option value="random:desc">{% trans 'Random' %}</option>
</select>
<span>
<span>{% trans 'Sort by' %}: </span>
<select id="sort_by" style="display: inline-block">
<option selected value="bump:desc">{% trans 'Bump order' %}</option>
<option value="time:desc">{% trans 'Creation date' %}</option>
<option value="reply:desc">{% trans 'Reply count' %}</option>
<option value="random:desc">{% trans 'Random' %}</option>
</select>
</span>
<span>{% trans 'Image size' %}: </span>
<select id="image_size" style="display: inline-block">
<option value="vsmall">{% trans 'Very small' %}</option>
<option selected value="small">{% trans 'Small' %}</option>
<option value="large">{% trans 'Large' %}</option>
</select>
<span>
<span>{% trans 'Image size' %}: </span>
<select id="image_size" style="display: inline-block">
<option value="vsmall">{% trans 'Very small' %}</option>
<option selected value="small">{% trans 'Small' %}</option>
<option value="large">{% trans 'Large' %}</option>
</select>
</span>
<div class="threads">
<div id="Grid">
{% for post in recent_posts %}