mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-06 18:15:17 +00:00
Fixes & améliorations du nouveau CSS (#616)
This commit is contained in:
parent
7379a44b8c
commit
79a8fb0654
@ -130,5 +130,67 @@ nav.navbar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> .menu > .head,
|
||||||
|
> .link {
|
||||||
|
color: white;
|
||||||
|
padding: 10px 20px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
@media (max-width: 500px) {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.link:hover,
|
||||||
|
.menu:hover {
|
||||||
|
background-color: rgba(0, 0, 0, .2);
|
||||||
|
}
|
||||||
|
|
||||||
|
> .menu:hover > .content,
|
||||||
|
> .menu > .head:hover + .content,
|
||||||
|
> .menu > .content:hover {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .menu {
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
> .content {
|
||||||
|
z-index: 10;
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
background-color: white;
|
||||||
|
margin: 0;
|
||||||
|
list-style-type: none;
|
||||||
|
width: 130px;
|
||||||
|
box-shadow: 3px 3px 3px 0 #dfdfdf;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
@media (max-width: 500px) {
|
||||||
|
position: absolute;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
width: 100%;
|
||||||
|
box-shadow: inset 3px 3px 3px 0 #dfdfdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
> li > a {
|
||||||
|
display: flex;
|
||||||
|
padding: 15px 20px;
|
||||||
|
|
||||||
|
@media (max-width: 500px) {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: hsl(203, 75%, 40%);
|
||||||
|
background-color: rgba(0, 0, 0, .05);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user