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,26 +1,25 @@
#header { #header {
max-height: 51px; max-height: 83px;
height: 51px; height: 83px;
align-items: center; align-items: center;
background-color: $color-0-0-100; background-color: $color-0-0-100;
color: $color-216-4-22; color: $color-216-4-22;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.09); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.09);
display: flex; display: flex;
flex-shrink: 0; flex-shrink: 0;
padding: 1.6rem 0.64rem; // padding: 1.6rem 0.64rem;
position: relative; position: relative;
z-index: 1; z-index: 1;
> *:not(sib-widget) { > *:not(sib-widget) {
padding: 0 2.5rem; padding: 0 2.5rem;
} }
}
#logo { #logo {
flex: 1 1 0; flex: 1 1 0;
} }
#search-bar { #search-bar {
position: relative; position: relative;
#search-input { #search-input {
@ -58,10 +57,10 @@
} }
} }
} }
} }
details { details {
// cursor: pointer; margin-right: 2.5rem;
summary { summary {
@ -73,9 +72,9 @@ details {
display: none; display: none;
} }
} }
} }
details { details {
position: relative; position: relative;
.sib-notifications__button { .sib-notifications__button {
@ -102,15 +101,25 @@ details {
right: 0; right: 0;
top: 5.6rem; top: 5.6rem;
} }
} }
details#user-controls { 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; background-color: $color-233-18-29;
color: $color-0-0-100; color: $color-0-0-100;
outline: none; outline: none;
} }
}
#user-controls__profile { #user-controls__profile {
div { div {
@ -150,6 +159,8 @@ details#user-controls {
position: absolute; position: absolute;
right: 0; right: 0;
z-index: 1; z-index: 1;
width: 100%;
top: 83px;
> nav { > nav {
background-color: $color-0-0-100; background-color: $color-0-0-100;
@ -157,7 +168,7 @@ details#user-controls {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
width: 208px; width: 100%;
ul { ul {
list-style: none; list-style: none;
@ -165,13 +176,16 @@ details#user-controls {
padding: 0; padding: 0;
li { li {
border-bottom: 1px solid $color-213-20-91;
margin-right: 0;
padding: 1.6rem 1.3rem;
sib-link { sib-link {
color: $color-213-4-50; color: $color-213-4-50;
display: block; display: block;
border-bottom: 1px solid $color-213-20-91;
margin-right: 0;
padding: 1.6rem 1.3rem;
&:hover {
color: $color-244-73-62;
}
} }
} }
} }
@ -203,5 +217,6 @@ details#user-controls {
} }
} }
} }
} }
}