Mobile style and make logo clickable
This commit is contained in:
parent
d6ddbbd95f
commit
e0edb98571
|
@ -95,12 +95,18 @@ header {
|
|||
width: 100vw;
|
||||
}
|
||||
|
||||
header a:first-of-type {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
header img {
|
||||
display: block;
|
||||
margin: 0.5em 1em 0.5em 5em;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
margin: auto 0;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
header a,
|
||||
|
@ -138,17 +144,123 @@ footer ul {
|
|||
justify-content: center;
|
||||
}
|
||||
|
||||
@media (max-width: 920px) {
|
||||
header h1 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
header img {
|
||||
margin: 0.5em;;
|
||||
}
|
||||
|
||||
header nav {
|
||||
display: block;
|
||||
height: 4em;
|
||||
margin-right: 0;
|
||||
overflow: hidden;
|
||||
transition-delay: 0.5s;
|
||||
transition-property: z-index;
|
||||
width: 3em;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
header::before,
|
||||
header nav::before {
|
||||
align-items: center;
|
||||
background: var(--white);
|
||||
color: var(--black);
|
||||
display: flex;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
header::before {
|
||||
content: "⨯";
|
||||
height: 1rem;
|
||||
padding: 1rem;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 1rem;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
header nav::before {
|
||||
content: "☰";
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
header nav:hover {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
header nav:hover ul {
|
||||
background: var(--white);
|
||||
border-left: 1px solid var(--grey);
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
header nav:hover li:last-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
header nav:hover li {
|
||||
margin: 0.75em 0;
|
||||
}
|
||||
|
||||
header nav:hover a {
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
header nav:hover ~ * {
|
||||
display: block !important;
|
||||
height: 0 !important;
|
||||
margin: 0 !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
header nav:hover::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
footer ul {
|
||||
display: initial;
|
||||
}
|
||||
|
||||
footer ul li {
|
||||
margin: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
/* Main */
|
||||
|
||||
main {
|
||||
flex-grow: 1;
|
||||
margin: 4em auto 4em auto;
|
||||
margin: 4em auto;
|
||||
}
|
||||
|
||||
main > section {
|
||||
padding: 2rem 25rem;
|
||||
}
|
||||
|
||||
@media (max-width: 920px) {
|
||||
main {
|
||||
margin: 2em auto 0.5em auto;
|
||||
}
|
||||
|
||||
main > section {
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Page Index */
|
||||
|
||||
#page-index h2 {
|
||||
|
@ -173,6 +285,16 @@ main > section {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
@media (max-width: 920px) {
|
||||
#introduction section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#introduction section article {
|
||||
margin: 1em auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* News and Jobs */
|
||||
|
||||
.news-jobs > article {
|
||||
|
|
|
@ -15,8 +15,10 @@
|
|||
{% set name = output_file.split('/')[-1].split('.')[0] %}
|
||||
<body id="page-{{ name }}">
|
||||
<header>
|
||||
<img src="/static/img/logo.svg" alt="AFPy logo">
|
||||
<h1><a href="/">AFPy</a></h1>
|
||||
<a href="/">
|
||||
<img src="/static/img/logo.svg" alt="AFPy logo">
|
||||
<h1>AFPy</h1>
|
||||
</a>
|
||||
|
||||
<nav>
|
||||
<ul>
|
||||
|
|
Loading…
Reference in New Issue