feature: Header dropdown & css

This commit is contained in:
Jean-Baptiste Pasquier 2019-06-26 12:42:34 +02:00 committed by Gaëlle Morin
parent ba01623195
commit 0b0314dc3c

View File

@ -1,20 +1,19 @@
#header {
max-height: 51px;
height: 51px;
max-height: 83px;
height: 83px;
align-items: center;
background-color: $color-0-0-100;
color: $color-216-4-22;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.09);
display: flex;
flex-shrink: 0;
padding: 1.6rem 0.64rem;
// padding: 1.6rem 0.64rem;
position: relative;
z-index: 1;
> *:not(sib-widget) {
padding: 0 2.5rem;
}
}
#logo {
flex: 1 1 0;
@ -61,7 +60,7 @@
}
details {
// cursor: pointer;
margin-right: 2.5rem;
summary {
@ -105,12 +104,22 @@ details {
}
details#user-controls {
padding: 0;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
summary:focus {
summary {
padding: 16px;
cursor: pointer;
&:focus {
background-color: $color-233-18-29;
color: $color-0-0-100;
outline: none;
}
}
#user-controls__profile {
div {
@ -150,6 +159,8 @@ details#user-controls {
position: absolute;
right: 0;
z-index: 1;
width: 100%;
top: 83px;
> nav {
background-color: $color-0-0-100;
@ -157,7 +168,7 @@ details#user-controls {
position: absolute;
right: 0;
top: 0;
width: 208px;
width: 100%;
ul {
list-style: none;
@ -165,13 +176,16 @@ details#user-controls {
padding: 0;
li {
border-bottom: 1px solid $color-213-20-91;
margin-right: 0;
padding: 1.6rem 1.3rem;
sib-link {
color: $color-213-4-50;
display: block;
border-bottom: 1px solid $color-213-20-91;
margin-right: 0;
padding: 1.6rem 1.3rem;
&:hover {
color: $color-244-73-62;
}
}
}
}
@ -205,3 +219,4 @@ details#user-controls {
}
}
}