#9: Menu clean up

This commit is contained in:
imohkay 2021-10-14 13:22:51 +05:30
parent 797902e90a
commit ac8ef860fa
3 changed files with 29 additions and 9 deletions

View file

@ -2,23 +2,28 @@
.topnav { .topnav {
background-color: #333; background-color: #333;
position: relative; position: relative;
height: 72px; height: 68px;
padding-left: var(--spacing-2); padding: var(--spacing-2);
padding-top: var(--spacing-2); box-sizing: border-box;
@media screen and (max-width: 799px) { @media screen and (max-width: 799px) {
padding-left: 0; padding-top: calc(var(--spacing) * 1.6);
padding-right: 0; }
@media screen and (min-width: 800px) {
display: flex;
align-items: flex-end;
} }
nav { nav {
display: block; display: block;
text-align: right; text-align: right;
margin-right: var(--spacing-2);
@media screen and (max-width: 799px) { @media screen and (max-width: 799px) {
text-align: center; text-align: center;
width: 100%; width: 100%;
margin-right: 0; margin-top: var(--spacing);
margin-top: var(--spacing-2); }
@media screen and (min-width: 800px) {
margin-left: auto;
} }
} }
@ -26,6 +31,7 @@
color: white; color: white;
text-decoration: none; text-decoration: none;
font-size: 17px; font-size: 17px;
margin-left: var(--spacing);
&:hover { &:hover {
background-color: #ddd; background-color: #ddd;
@ -45,3 +51,10 @@
} }
.title-text {
@media screen and (min-width: 800px) {
font-weight: 700;
padding-bottom: calc(var(--spacing) / 2);
}
}

View file

@ -32,6 +32,13 @@
font-style: italic; font-style: italic;
} }
// Text: Global Classes
.font-bold {
font-weight: 700;
}
main > .texts { main > .texts {
box-sizing: border-box; box-sizing: border-box;

View file

@ -14,7 +14,7 @@
<body> <body>
<div class="topnav"> <div class="topnav">
<a href="/polis" class="title"> <a href="/polis" class="title">
<div> <div class="title-text">
Phantas.ma/polis<span class="hide-mobile">: Looking Back to the Future</span> Phantas.ma/polis<span class="hide-mobile">: Looking Back to the Future</span>
</div> </div>
<div> <div>