styling nav

This commit is contained in:
ADRN 2021-10-18 01:12:49 +02:00
parent 88f618e51e
commit ad495df529
2 changed files with 39 additions and 38 deletions

View file

@ -4,12 +4,12 @@
@import url("../fonts/firasans-regular.css"); @import url("../fonts/firasans-regular.css");
html, body { html, body {
background-color: white; background-color: white;
font-family: "Space Mono", Monaco, monospace !important; font-family: "Space Mono", Monaco, monospace !important;
} }
p { p {
font-family: "Fira Sans"; font-family: "Fira Sans";
} }
header { header {
@ -26,28 +26,29 @@ header {
} }
header > p { header > p {
width: 40%; width: 40%;
position: relative; position: relative;
left: 55%; left: 55%;
bottom: -75%; bottom: -75%;
text-align: right;
color: white;
/* color | offset-x | offset-y | blur-radius */
text-shadow: black 0px 0px 4px;
text-align: right;
} }
nav { header > nav {
position: fixed; background: none;
position: fixed;
width: 100vw;
} }
header > p, header > nav.nav a {
color: white;
/* color | offset-x | offset-y | blur-radius */
text-shadow: black 0px 0px 4px;
}
footer { footer {
border-top: black solid 2px; border-top: black solid 2px;
margin-top: 3rem; margin-top: 3rem;
padding-top: 2rem; padding-top: 2rem;
} }

View file

@ -14,26 +14,26 @@
</head> </head>
<body> <body>
<nav>
<a href="#" class="home"><h1>Deuxfleurs</h1></a>
<ul>
<li>
<a href="#">Documentation</a>
</li>
<li>
<a href="#">Blog</a>
</li>
<li>
<a href="#">Mon compte</a>
</li>
</ul>
</nav>
<header> <header>
<!-- <img <nav class="nav">
src="assets/images/illustration-ronce_1200x765px.png" <div class="nav-left">
alt="Un blaireau fait découvrir la cabane dans les arbres à son amie la souris"> --> <a href="#" class="home"><h1>Deuxfleurs</h1></a>
</div>
<div class="nav-right">
<ul>
<li>
<a href="#">Documentation</a>
</li>
<li>
<a href="#">Blog</a>
</li>
<li>
<a href="#">Mon compte</a>
</li>
</ul>
</div>
</nav>
<p> <p>
Nous sommes un hébergeur associatif expérimental.<br> Nous sommes un hébergeur associatif expérimental.<br>