hubl/src/styles/base/header.scss

241 lines
4.6 KiB
SCSS
Raw Normal View History

#header {
2019-06-26 10:42:34 +00:00
max-height: 83px;
height: 83px;
align-items: center;
2019-05-13 16:50:34 +00:00
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;
2019-06-26 10:42:34 +00:00
// padding: 1.6rem 0.64rem;
2018-12-07 16:25:05 +00:00
position: relative;
z-index: 1;
> *:not(sib-widget) {
padding: 0 2.5rem;
}
2019-06-26 10:42:34 +00:00
#logo {
flex: 1 1 0;
}
2019-06-26 10:42:34 +00:00
#search-bar {
position: relative;
#search-input {
border-radius: 10em;
padding: 0.64rem 1.28rem;
border: 1px solid $color-215-9-73;
height: 3.8rem;
width: 28rem;
-webkit-appearance: textfield;
& ~ #close-search-icon,
& ~ #search-icon {
color: $color-215-9-73;
display: block;
font-size: 1.7rem;
margin: auto;
position: absolute;
right: 3.7rem;
top: 50%;
transform: translateY(-50%);
-webkit-text-stroke: 1px $color-215-9-73;
}
& ~ #close-search-icon {
opacity: 0;
}
&:focus {
& ~ #close-search-icon {
opacity: 1;
}
& ~ #search-icon {
visibility: hidden;
}
}
}
2019-06-26 10:42:34 +00:00
}
2019-06-26 10:42:34 +00:00
details {
margin-right: 2.5rem;
2019-06-26 10:42:34 +00:00
summary {
&::-moz-list-bullet {
list-style-type: none; /* To remove the disclosure triangle on Firefox v.<69 */
}
2019-06-26 10:42:34 +00:00
&::-webkit-details-marker {
display: none;
}
}
2018-12-06 18:47:32 +00:00
}
2019-06-26 10:42:34 +00:00
details {
position: relative;
.sib-notifications__button {
@include icon('bell');
font-size: 3rem;
&::before {
margin-left: 0;
}
img {
display: none;
}
.sib-notifications__counter {
left: 2.1rem;
position: absolute;
top: -3px;
}
}
2019-06-26 10:42:34 +00:00
.sib-notifications__list {
position: absolute;
2019-06-26 10:42:34 +00:00
right: 0;
top: 5.6rem;
}
}
2019-06-26 10:42:34 +00:00
#user-controls {
2019-06-26 10:42:34 +00:00
padding: 0;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
summary {
padding: 18px;
2019-06-26 10:42:34 +00:00
cursor: pointer;
display: block; /* To remove the disclosure triangle on Firefox v.>=69 */
2019-06-26 10:42:34 +00:00
&:focus {
background-color: $color-233-18-29;
color: $color-0-0-100;
outline: none;
}
2019-06-26 10:42:34 +00:00
}
#user-controls__profile {
div {
display: flex;
flex-direction: row-reverse;
2019-06-26 10:42:34 +00:00
> * {
vertical-align: middle;
}
hd-user-avatar {
align-items: center;
background-color: $color-213-20-91;
border-radius: 50%;
display: flex;
2019-06-26 10:42:34 +00:00
height: 4.8rem;
justify-content: center;
2019-06-26 10:42:34 +00:00
margin-right: 2rem;
overflow: hidden;
width: 4.8rem;
}
img {
background-color: white;
height: 100%;
2019-06-26 10:42:34 +00:00
object-fit: cover;
object-position: center;
width: 100%;
}
object {
height: 45%;
width: 45%;
2019-06-26 10:42:34 +00:00
}
2019-10-16 11:21:23 +00:00
sib-display-value[name='firstName'] {
2019-06-26 10:42:34 +00:00
@include icon('arrow-down');
align-items: center;
display: flex;
flex-direction: row-reverse;
font-size: 1.8rem;
font-weight: 600;
&::before {
margin-left: 1.5rem;
}
}
}
2018-12-16 00:28:51 +00:00
}
2019-06-26 10:42:34 +00:00
#user-controls__panel {
height: 0;
position: absolute;
right: 0;
2019-06-26 10:42:34 +00:00
z-index: 1;
width: 100%;
top: 83px;
2019-06-26 10:42:34 +00:00
> nav {
background-color: $color-0-0-100;
box-shadow: 0 7px 8px 0 rgba(0, 0, 0, 0.16);
position: absolute;
right: 0;
top: 0;
width: 100%;
2019-06-26 10:42:34 +00:00
ul {
list-style: none;
margin: 0;
padding: 0;
li {
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;
}
}
}
}
2019-06-26 10:42:34 +00:00
button {
color: $color-213-4-50;
padding: 1.6rem 1.3rem;
text-align: left;
width: 100%;
}
}
2018-12-16 00:28:51 +00:00
}
2019-06-26 10:42:34 +00:00
&[open] {
background-color: $color-233-18-29;
color: $color-0-0-100;
#user-controls__profile {
div {
2019-10-16 11:21:23 +00:00
sib-display-value[name='firstName'] {
2019-06-26 10:42:34 +00:00
@include icon('close');
&::before {
margin-left: 1.5rem;
}
}
}
}
}
}
}