cleanup mobile:

This commit is contained in:
Tyrel Souza 2023-07-20 22:37:13 -04:00
parent f3670813f6
commit 0636c94472
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E
4 changed files with 42 additions and 37 deletions

View File

@ -1,4 +1,5 @@
dd { margin-left: 23px } dd { margin-left: 23px }
.archives-mobile { display: none }
/* *** General Styles *** */ /* *** General Styles *** */
body { body {
@ -24,10 +25,6 @@ a:hover {
text-decoration: none; text-decoration: none;
} }
p {
line-height: 1.5em;
padding: 5px 0;
}
h1, h1,
h2, h2,
@ -53,7 +50,7 @@ ol {
list-style: none; list-style: none;
} }
#topmenu ul li { #topMenu ul li {
list-style: none; list-style: none;
} }
@ -64,6 +61,10 @@ div.figure img {
@media screen and (min-width: 900px) { @media screen and (min-width: 900px) {
* { margin: 0; padding: 0; } * { margin: 0; padding: 0; }
p {
line-height: 1.5em;
padding: 5px 0;
}
body { body {
text-align: center; text-align: center;
} }
@ -242,6 +243,7 @@ div.figure img {
body { body {
padding:1rem; padding:1rem;
} }
.archives { display: none; }
h2 { h2 {
background: url(../images/hr.gif) top center no-repeat; background: url(../images/hr.gif) top center no-repeat;
@ -252,11 +254,31 @@ div.figure img {
display:none; display:none;
} }
#mainContent dl { .blogItem h2 {
margin-bottom:0.25rem;
}
.blogItem h3 {
font-size: 12px;
margin:0;
padding: 0;
text-align:right;
} }
#mainContent dt { #header h2 {
font-size: 75%; display: none
}
#topMenu ul {
background: url(../images/hr.gif) top center no-repeat;
padding-top:1rem;
margin-left:0px;
text-align: center;
}
#topMenu ul li {
display:inline;
font-size: 16pt;
text-transform: uppercase;
} }
#sidebar-mobile { #sidebar-mobile {

View File

@ -1,24 +1,13 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}Archives of {{ SITENAME }}{% endblock %} {% block title %}Archives of {{ SITENAME }}{% endblock %}
{% block content %} {% block content %}
<div class="blogItem .archives">
<div class="blogItem"> <dl>
<dl> <h2>Archives of {{ SITENAME }}</h2>
<h2>Archives of {{ SITENAME }}</h2> {% for article in dates %}
{% for article in dates %} <dt>{{ article.locale_date }}</dt>
<dt>{{ article.locale_date }}</dt> <dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
<dd><a href='{{ article.url }}'>{{ article.title }}</a></dd> {% endfor %}
{% endfor %} </dl>
</dl> </div>
</div>
{% endblock %} {% endblock %}

View File

@ -35,7 +35,7 @@
{% for item in BEFORE_MENU %} {% for item in BEFORE_MENU %}
<li><a href="{{ item.url }}">{{ item.name }}</li> <li><a href="{{ item.url }}">{{ item.name }}</li>
{% endfor %} {% endfor %}
<li><a href="{{ SITEURL }}/index.html">Home</a></li> <li><a href="{{ SITEURL }}/index.html">Home</a></li>
<li><a href="{{ SITEURL }}/archives.html">Archives</a></li> <li><a href="{{ SITEURL }}/archives.html">Archives</a></li>
{% for item in AFTER_MENU %} {% for item in AFTER_MENU %}
<li><a href="{{ item.url }}">{{ item.name }}</li> <li><a href="{{ item.url }}">{{ item.name }}</li>
@ -115,10 +115,6 @@
<div class="clearfloat"></div> <div class="clearfloat"></div>
<div id="footer">
<p>Proudly powered by <a href="http://getpelican.com">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
</div><!-- end #footer -->
<div id="sidebar-mobile"> <div id="sidebar-mobile">
<ul> <ul>
@ -181,8 +177,6 @@
</ul> </ul>
</div><!-- end #sidebar --> </div><!-- end #sidebar -->
</div><!-- end #container --> </div><!-- end #container -->
{% include 'analytics.html' %} {% include 'analytics.html' %}
</body> </body>

View File

@ -13,7 +13,7 @@
{% endfor %} {% endfor %}
<dl> <div class="archives">
<h2>Archives of {{ SITENAME }}</h2> <h2>Archives of {{ SITENAME }}</h2>
{% for article in dates %} {% for article in dates %}
{% if loop.index > 3 %} {% if loop.index > 3 %}
@ -21,7 +21,7 @@
<dd><a href='{{ article.url }}'>{{ article.title }}</a></dd> <dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</dl> </div>
{% endif %} {% endif %}
{% endblock content %} {% endblock content %}