Fix last menu item tip overflowing out of document

This commit is contained in:
Alice Gaudon 2020-07-06 12:49:28 +02:00
parent 19224d592a
commit 8aad521014

View File

@ -150,7 +150,8 @@ header {
}
@media (min-width: $menuLayoutSwitchTreshold) {
nav ul li a .tip {
nav ul li {
a .tip {
visibility: hidden;
position: absolute;
display: block;
@ -171,6 +172,13 @@ header {
background-color: #000;
border-radius: 5px;
}
&:last-child a .tip {
left: unset;
right: 4px;
transform: none;
}
}
}
}