:root {
--white: #FFF;
--gray: #F3F3F3;
--gray-mid: #d6d6d6;
--gray-dark: #3e3e3e;
--button-hover: #ECE8F9;
--body-background: #f3f1f9;
}
body {
font-family: 'Poppins', sans-serif;
margin: 0px;
display: flex;
height: 100vh;
padding: 16px;
background-color: var(
--body-background
);
}
* {
box-sizing: border-box;
}
button {
all: unset;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
button:focus { outline: revert }
header {
height: 80px;
padding: 0 16px;
border-radius: 8px;
margin: auto;
background-color: var(--white);
width: 100%;
min-width: 280px;
max-width: 480px;
display: flex;
align-items: center;
box-shadow: rgba(100, 100, 111, 0.2)
0px 7px 29px 0px;
}
.navigation__group {
display: flex;
gap: 8px;
align-items: center;
width: 100%;
}
.navigation__group .icon {
width: 48px;
height: 48px;
padding: 6px;
transition: all 0.2s ease-in-out;
border-radius: 50%;
}
.apps__button {
display: flex;
justify-content: center;
align-items: center;
}
.navigation__group > button:nth-child(1) {
margin-right: auto;
}
.navigation__group button:hover,
.navigation__group button:focus {
background-color: var(--button-hover);
border-radius: 50%;
}
.profile {
display: block;
width: 42px;
height: 42px;
cursor: pointer;
border-radius: 50%;
}
.dropdown__wrapper {
min-width: 206px;
padding: 12px;
top: 80px;
right: -15px;
position: absolute;
border-radius: 8px;
display: flex;
flex-direction: column;
background-color: white;
gap: 4px;
animation: fadeOutAnimation ease-in-out
0.2s forwards;
box-shadow: rgba(100, 100, 111, 0.2)
0px 7px 29px 0px;
}
.dropdown__wrapper h3 {
margin: 0;
font-size: 14px;
font-weight: 700;
margin-bottom: 4px;
text-align: left;
color: var(--gray-dark);
}
.dropdown__wrapper svg {
stroke: var(--gray-dark);
}
.apps__button--wrapper {
position: relative;
}
.apps-container {
display: flex;
flex-direction: row;
gap: 8px;
flex-wrap: wrap;
overflow-y: scroll;
max-height: 160px;
}
.dropdown__wrapper--fade-in {
animation: fadeInAnimation ease-in-out
0.2s forwards;
}
.none {
display: none;
}
.hide {
opacity: 0;
visibility: hidden;
animation: fadeOutAnimation ease-in-out
0.2s forwards;
}
.app svg {
padding: 6px;
width: 48px;
height: 48px;
}
@keyframes fadeInAnimation {
0% {
opacity: 0;
visibility: hidden;
height: 120px;
}
100% {
opacity: 1;
visibility: visible;
height: 200px;
}
}
@keyframes fadeOutAnimation {
0% {
opacity: 1;
height: 200px;
visibility: visible;
}
100% {
opacity: 0;
height: 120px;
visibility: hidden;
}
}