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 590a31f133
commit d3909c0371

View File

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