feat: add dedicated class to hide contents on small-width screens
This commit is contained in:
parent
91224e634a
commit
98e062611e
4 changed files with 17 additions and 15 deletions
|
@ -31,6 +31,13 @@ body {
|
||||||
padding-bottom: 4rem;
|
padding-bottom: 4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 600px) {
|
||||||
|
.hsmol_hide {
|
||||||
|
display: none !important;
|
||||||
|
visibility: hidden !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
:link {
|
:link {
|
||||||
color: var(--highlight_1);
|
color: var(--highlight_1);
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
@ -158,6 +165,11 @@ a:hover {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
|
|
||||||
|
overflow-x: scroll;
|
||||||
|
overflow-y: hidden;
|
||||||
|
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
#post_file_path a {
|
#post_file_path a {
|
||||||
color: var(--text_1);
|
color: var(--text_1);
|
||||||
|
|
|
@ -34,10 +34,3 @@ table.directory .entry_update_time {
|
||||||
display: block;
|
display: block;
|
||||||
width: 12rem;
|
width: 12rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 600px) {
|
|
||||||
table.directory .entry_update_time {
|
|
||||||
visibility: hidden;
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -8,12 +8,9 @@
|
||||||
{% set split_post = post.post_path |split('/') %}
|
{% set split_post = post.post_path |split('/') %}
|
||||||
{% for i in range(0, split_post|length - 1) %}
|
{% for i in range(0, split_post|length - 1) %}
|
||||||
<li>
|
<li>
|
||||||
{% if i != 0 %}
|
|
||||||
>
|
|
||||||
{% endif %}
|
|
||||||
{% if i != 0 %}
|
{% if i != 0 %}
|
||||||
<a href="{{split_post|slice(0,i+1)|join('/')}}">
|
<a href="{{split_post|slice(0,i+1)|join('/')}}">
|
||||||
{{ split_post[i] }}
|
> {{ split_post[i] }}
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="/">root</a>
|
<a href="/">root</a>
|
||||||
|
@ -22,11 +19,11 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
<li style="margin-left: auto;">
|
<li class="hsmol_hide" style="margin-left: auto;">
|
||||||
<a href="/raw{{post.post_path}}">raw</a>
|
<a href="/raw{{post.post_path}}">raw</a>
|
||||||
<a href="/api/posts{{post.post_path}}">api</a>
|
<a href="/api/posts{{post.post_path}}">api</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li class="hsmol_hide">
|
||||||
<a rel="alternate" type="application/rss+xml" target="_blank"
|
<a rel="alternate" type="application/rss+xml" target="_blank"
|
||||||
style="padding-left: 0.3rem;" href="/feed/rss{{post.post_path}}">
|
style="padding-left: 0.3rem;" href="/feed/rss{{post.post_path}}">
|
||||||
{{ fa['rss']|raw }}
|
{{ fa['rss']|raw }}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<th></th>
|
<th></th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Title</th>
|
<th>Title</th>
|
||||||
<th class="entry_update_time">Modified</th>
|
<th class="entry_update_time hsmol_hide">Modified</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for subpost in subposts %}
|
{% for subpost in subposts %}
|
||||||
<tr class="entry">
|
<tr class="entry">
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
<td class="entry_title">
|
<td class="entry_title">
|
||||||
{{ subpost.post_metadata.title }}
|
{{ subpost.post_metadata.title }}
|
||||||
</td>
|
</td>
|
||||||
<td class="entry_update_time">
|
<td class="entry_update_time hsmol_hide">
|
||||||
{{ subpost.post_update_time }}
|
{{ subpost.post_update_time }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue