major: use @startinblox/hubl-styling-framework
This commit is contained in:
296
src/styles/header/_index.scss
Normal file
296
src/styles/header/_index.scss
Normal file
@ -0,0 +1,296 @@
|
||||
header {
|
||||
height: 72px;
|
||||
position: fixed;
|
||||
z-index: 999;
|
||||
|
||||
.logo {
|
||||
img {
|
||||
max-width: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove the disclosure triangle */
|
||||
details {
|
||||
|
||||
summary {
|
||||
|
||||
/* on Firefox v.<69 */
|
||||
&::-moz-list-bullet {
|
||||
list-style-type: none;
|
||||
}
|
||||
/* on Chrome */
|
||||
&::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* End */
|
||||
|
||||
solid-notifications {
|
||||
color: var(--color-primary);
|
||||
|
||||
@media(min-width: 640px) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.solid-notifications__container {
|
||||
position: relative;
|
||||
|
||||
.solid-notifications__button {
|
||||
font-size: 2.5rem;
|
||||
|
||||
@media(min-width: 1024px) {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
&::before {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.solid-notifications__counter {
|
||||
left: 2rem;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
|
||||
@media(min-width: 1024px) {
|
||||
left: 2.1rem;
|
||||
top: -3px;
|
||||
}
|
||||
|
||||
span {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.solid-notifications__triangle-back {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.solid-notifications__triangle-shadow {
|
||||
display: none;
|
||||
|
||||
@media(min-width: 1024px) {
|
||||
background: white;
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: auto;
|
||||
right: -2.1em;
|
||||
top: 5em;
|
||||
transform: initial;
|
||||
width: 0;
|
||||
z-index: 4;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
margin-left: -5em;
|
||||
top: 0px;
|
||||
left: 50%;
|
||||
border: 1em solid black;
|
||||
border-color: #fff #fff transparent transparent;
|
||||
transform-origin: 0 0;
|
||||
transform: rotate(-45deg);
|
||||
box-shadow: 6px -6px 10px -3px rgba(92, 97, 104, 0.14);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.solid-notifications__list {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
box-shadow: 0 0 7px 0 rgba(92, 97, 104, 0.24);
|
||||
max-height: calc(100vh - 50px);
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 2.5em;
|
||||
width: 100vw;
|
||||
|
||||
@media(min-width: 1024px) {
|
||||
max-height: calc(100vh - 93px);
|
||||
position: absolute;
|
||||
left: auto;
|
||||
right: -2.3em;
|
||||
top: 3.95em;
|
||||
width: 347px;
|
||||
}
|
||||
|
||||
/* Custom scrollbar */
|
||||
overflow: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
-ms-overflow-style: none;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #C9C8C8 #F1F1F1;
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background: #F1F1F1;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background-color: #C9C8C8;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
/* End of custom scrollbar */
|
||||
|
||||
.solid-notifications__item {
|
||||
border-bottom: none;
|
||||
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
|
||||
& solid-notification__title,
|
||||
& solid-notification__summary {
|
||||
color: var(--color-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
.solid-notification {
|
||||
padding: 1.2rem 0 1.5rem;
|
||||
|
||||
&[data-read] {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.solid-notification__avatar {
|
||||
align-items: center;
|
||||
background: var(--color-grey);
|
||||
display: flex;
|
||||
height: 35px;
|
||||
justify-content: center;
|
||||
margin-left: 1.6rem;
|
||||
margin-right: 1.4rem;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
width: 35px;
|
||||
|
||||
img {
|
||||
background-color: var(--color-grey);
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
object {
|
||||
height: 45%;
|
||||
width: 45%;
|
||||
}
|
||||
}
|
||||
|
||||
.solid-notification__content {
|
||||
font-family: Open Sans, sans-serif;
|
||||
|
||||
.solid-notification__title {
|
||||
color: var(--color-heading);
|
||||
font-size: 1.3rem;
|
||||
font-weight: 600;
|
||||
|
||||
.solid-notification__title__side {
|
||||
font-weight: normal;
|
||||
|
||||
>span:first-child {
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.solid-notification__title__icon {
|
||||
display: inline-block;
|
||||
font-family: simple-line-icons;
|
||||
}
|
||||
}
|
||||
|
||||
.solid-notification__summary {
|
||||
color: var(--color-grey);
|
||||
font-size: 1.2rem;
|
||||
line-height: 1.7rem;
|
||||
margin: 1.1rem 0 0;
|
||||
|
||||
@media(min-width: 640px) {
|
||||
max-width: 226px;
|
||||
}
|
||||
|
||||
@media(min-width: 1024px) {
|
||||
max-width: 256px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.solid-notification__read {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#user-controls {
|
||||
padding: 0;
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
|
||||
summary {
|
||||
cursor: pointer;
|
||||
display: block; /* To remove the disclosure triangle on Firefox v.>=69 */
|
||||
|
||||
&:focus {
|
||||
background-color: transparent;
|
||||
color: white;
|
||||
outline: none;
|
||||
|
||||
@media(min-width: 1024px) {
|
||||
background-color: var(--color-heading);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#user-controls__panel {
|
||||
height: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
/* Quick fix for mobile version */
|
||||
width: 215px;
|
||||
top: 42px;
|
||||
|
||||
@media(min-width: 1024px) {
|
||||
width: 100%;
|
||||
top: 72px;
|
||||
}
|
||||
|
||||
>nav {
|
||||
box-shadow: 0 7px 8px 0 rgba(0, 0, 0, 0.16);
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: auto;
|
||||
width: 100%;
|
||||
|
||||
solid-link,
|
||||
button {
|
||||
display: block;
|
||||
}
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user