mirror of
https://github.com/ConjureETS/Site.git
synced 2026-03-24 01:30:58 +00:00
Amélioration de la navigation (ajout de text en hover)
This commit is contained in:
parent
c535420311
commit
6b780bc1dc
2
public/css/main.min.css
vendored
2
public/css/main.min.css
vendored
File diff suppressed because one or more lines are too long
@ -9,26 +9,26 @@ $open-distance: 105px;
|
|||||||
$opening-angle: $pi*2;
|
$opening-angle: $pi*2;
|
||||||
$hamburger-spacing: 10px;
|
$hamburger-spacing: 10px;
|
||||||
$default-opacity: 0.70;
|
$default-opacity: 0.70;
|
||||||
$ball-spacing: 90px;
|
$ball-spacing: 72px;
|
||||||
|
|
||||||
%ball {
|
%ball {
|
||||||
background: $fg;
|
background: $fg;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
width: 70px;
|
width: 60px;
|
||||||
height: 70px;
|
height: 60px;
|
||||||
margin-left: -35px;
|
margin-left: -20px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 20px;
|
top: 20px;
|
||||||
color: white;
|
color: white;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 70px;
|
line-height: 60px;
|
||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
transition: transform ease-out 200ms;
|
transition: transform ease-out 200ms;
|
||||||
opacity: $default-opacity;
|
opacity: $default-opacity;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 52px;
|
width: 42px;
|
||||||
height: 52px;
|
height: 42px;
|
||||||
margin: 9px;
|
margin: 9px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -163,10 +163,33 @@ $ball-spacing: 90px;
|
|||||||
|
|
||||||
.language-icon {
|
.language-icon {
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
font-size: 1.9rem;
|
font-size: 1.6rem;
|
||||||
color: white;
|
color: white;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu-item.has-tooltip-text {
|
||||||
|
span {
|
||||||
|
display: none;
|
||||||
|
background: $fg;
|
||||||
|
border-top-left-radius: 60px;
|
||||||
|
border-bottom-left-radius: 60px;
|
||||||
|
height: 60px;
|
||||||
|
position: absolute;
|
||||||
|
right: 30px;
|
||||||
|
padding: 0 35px 0 25px;
|
||||||
|
text-align: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
line-height: 60px;
|
||||||
|
z-index:-1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
span {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,13 +23,16 @@
|
|||||||
<span class="hamburger"></span>
|
<span class="hamburger"></span>
|
||||||
<span class="hamburger"></span>
|
<span class="hamburger"></span>
|
||||||
</label>
|
</label>
|
||||||
<a href="#apropos" class="menu-item">
|
<a href="#apropos" class="menu-item has-tooltip-text">
|
||||||
|
<span>À propos</span>
|
||||||
<img src="../../public/img/icons/profile.png" alt="À Propos"/>
|
<img src="../../public/img/icons/profile.png" alt="À Propos"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="#activites" class="menu-item">
|
<a href="#activites" class="menu-item has-tooltip-text">
|
||||||
|
<span>Activitiés</span>
|
||||||
<img src="../../public/img/icons/medal.png" alt="Activitiés / Compétitions"/>
|
<img src="../../public/img/icons/medal.png" alt="Activitiés / Compétitions"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="#partenaires" class="menu-item">
|
<a href="#partenaires" class="menu-item has-tooltip-text">
|
||||||
|
<span>Partenaires</span>
|
||||||
<img src="../../public/img/icons/sponsor.png" alt="Partenaires"/>
|
<img src="../../public/img/icons/sponsor.png" alt="Partenaires"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="../en" class="menu-item-always-open language-icon">
|
<a href="../en" class="menu-item-always-open language-icon">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user