Fix header link hitbox

This commit is contained in:
Miraty 2019-08-30 19:37:43 +02:00
parent 18f1fcdfb2
commit 98f2dd4bcc
2 changed files with 19 additions and 18 deletions

View File

@ -30,11 +30,11 @@ function head($adresse) {
</head> </head>
<body lang="fr"> <body lang="fr">
<a href="."> <header>
<header> <a id="header" href=".">
<div class="logo"><img src="img/antopie.png" width="100%" alt="Logo Ant" /></div> <div class="logo"><img src="img/antopie.png" width="100%" alt="Logo Ant" /></div>
</header> </a>
</a> </header>
<main> <main>

View File

@ -314,18 +314,7 @@ footer {
/* ----------------------- HEADER ------------------------ */ /* ----------------------- HEADER ------------------------ */
a[href="."] { #header {
display: flex;
justify-content: center;
}
#pres {
display: flex;
justify-content: center;
text-align: center;
}
header {
margin: 0px; margin: 0px;
width: 50%; width: 50%;
border: 3px white solid; border: 3px white solid;
@ -336,16 +325,28 @@ header {
display: flex; display: flex;
justify-content: center; justify-content: center;
padding: 30px; padding: 30px;
}
#pres {
display: flex;
justify-content: center;
text-align: center;
}
header {
display: flex;
justify-content: center;
} }
header:active { #header:active {
box-shadow: 2px 2px 3px white inset; box-shadow: 2px 2px 3px white inset;
} }
header:hover { #header:hover {
background-color: @fond-option-hover; background-color: @fond-option-hover;
transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;
color: @couleur-lien !important; color: @couleur-lien !important;