1
0
Fork 0

Make some basic style tweaks

… using advanced CSS syntax :-)
pub/python-goto
LEdoian 3 years ago
parent 4240ef0461
commit 7172853982

@ -2,7 +2,10 @@ body {
background-color: #003; background-color: #003;
color: #5bf; color: #5bf;
margin:auto; margin:auto;
max-width: 500px; /*max-width: 500px;
*/
padding-left: 20px;
padding-right: 20px;
} }
a { a {
@ -19,20 +22,32 @@ main {
border-top: 1px solid; border-top: 1px solid;
border-right: 1px solid; border-right: 1px solid;
order: 1; order: 1;
/* Four times wider than <nav>, at least 300px*/ /* Four times wider than <nav>, at base-size 300px*/
flex: 4 300px; flex: 4 300px;
} }
main > * {
margin: auto;
max-width: 700px;
}
nav { nav {
order: 2; order: 2;
float: right; float: right;
flex: 1; flex: 1 75px;
}
nav > * {
padding: 8px; padding: 8px;
margin: 6px; margin: 6px;
background-color: rgb(31, 18, 81); background-color: rgb(31, 18, 81);
border-radius: 12pt; border-radius: 12pt;
} }
nav h2 {
font-size: 14pt;
}
#main { #main {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;

@ -43,9 +43,11 @@
</nav> </nav>
<main> <main>
<div>
{% block content %} {% block content %}
<p>No content here...</p> <p>No content here...</p>
{% endblock content %} {% endblock content %}
</div>
</main> </main>
</div> <!-- #main --> </div> <!-- #main -->

@ -1,5 +1,25 @@
<p>Here will be menu, and tag list some day.</p> <div>
<ul> <!-- Main navigation -->
<li>First <!-- TODO! -->
<li>Second </div>
</ul> <div>
<h2>Categories</h2>
<ul>
{% for category, _art in categories %}
<li><a href="{{ category.url }}">{{ category }}</a></li>
{% endfor %}
</ul>
<h2>Tags</h2>
<ul>
{% for tag, _art in tags %}
<li><a href="{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</div>
<div>
<h2>Stalk me also at</h2>
TODO!
<h2>I stalk</h2>
TODO!

Loading…
Cancel
Save