Added more styles to the site.
This commit is contained in:
parent
56f9683d0a
commit
10e4305e62
@ -6,15 +6,39 @@ body {
|
||||
box-sizing: border-box;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
header {
|
||||
float: left;
|
||||
padding: 0.25em 1em;
|
||||
}
|
||||
header h1 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
nav {
|
||||
float: right;
|
||||
padding: 0.25em 1em;
|
||||
}
|
||||
nav ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
nav ul li {
|
||||
display: inline;
|
||||
}
|
||||
nav ul li:last-child {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
main {
|
||||
clear: both;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ccc;
|
||||
padding: 1em;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
footer {
|
||||
|
@ -11,13 +11,12 @@
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<h1>Slovocast</h1>
|
||||
<h1><a href="/home">Slovocast</a></h1>
|
||||
{% block header %}{% endblock %}
|
||||
</header>
|
||||
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="/home">Home</a></li>
|
||||
{% if logged_in %}
|
||||
<li><a href="/dashboard">Dashboard</a></li>
|
||||
{% else %}
|
||||
|
Loading…
Reference in New Issue
Block a user