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");
html, body {
background-color: white;
font-family: "Space Mono", Monaco, monospace !important;
background-color: white;
font-family: "Space Mono", Monaco, monospace !important;
}
p {
font-family: "Fira Sans";
font-family: "Fira Sans";
}
header {
@ -26,28 +26,29 @@ header {
}
header > p {
width: 40%;
position: relative;
left: 55%;
bottom: -75%;
color: white;
/* color | offset-x | offset-y | blur-radius */
text-shadow: black 0px 0px 4px;
text-align: right;
width: 40%;
position: relative;
left: 55%;
bottom: -75%;
text-align: right;
}
nav {
position: fixed;
header > nav {
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 {
border-top: black solid 2px;
margin-top: 3rem;
padding-top: 2rem;
border-top: black solid 2px;
margin-top: 3rem;
padding-top: 2rem;
}

View file

@ -14,26 +14,26 @@
</head>
<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>
<!-- <img
src="assets/images/illustration-ronce_1200x765px.png"
alt="Un blaireau fait découvrir la cabane dans les arbres à son amie la souris"> -->
<nav class="nav">
<div class="nav-left">
<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>
Nous sommes un hébergeur associatif expérimental.<br>