aligns top bar with content
This commit is contained in:
parent
a272e2c40d
commit
4007ed8827
|
@ -19,15 +19,25 @@ h2 {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main {
|
#main, header > div {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
max-width: 75rem;
|
max-width: 75rem;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#branding, #actions {
|
||||||
|
margin: 0 1rem;
|
||||||
|
}
|
||||||
|
#branding {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
#actions {
|
||||||
|
flex-grow: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#top-bar {
|
#top-bar {
|
||||||
height: 4rem;
|
|
||||||
background-color: #B2DBBF;
|
background-color: #B2DBBF;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
|
@ -42,14 +52,6 @@ h2 {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
header > div:first-child {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
header > div:last-child {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
#sidebar {
|
#sidebar {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
|
@ -21,8 +21,9 @@
|
||||||
|
|
||||||
<div id="top-bar">
|
<div id="top-bar">
|
||||||
<header>
|
<header>
|
||||||
<div id="branding"><a href="/">📚FediReads</a></div>
|
|
||||||
<div>
|
<div>
|
||||||
|
<div id="branding"><a href="/">📚FediReads</a></div>
|
||||||
|
<div id="actions">
|
||||||
<div id="account">
|
<div id="account">
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<form name="logout" action="/logout/" method="post">
|
<form name="logout" action="/logout/" method="post">
|
||||||
|
@ -44,6 +45,7 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue