Files
brainman-data-generator/src/app/components/app/app.component.scss

119 lines
2.2 KiB
SCSS

.settings-button {
position: fixed;
top: 10px;
right: 10px;
z-index: 11;
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
color: white;
cursor: pointer;
box-shadow: 0 4px 16px 0 rgba(0, 38, 135, 0.2);
transition: background-color 0.3s, transform 0.3s, opacity 0.5s ease-in-out;
padding: 0;
opacity: 0;
&.initial-visible, &:hover, &.controls-open {
opacity: 1;
}
&:hover {
background-color: rgba(255, 255, 255, 0.3);
transform: rotate(30deg);
}
mat-icon {
font-size: 24px;
width: 24px;
height: 24px;
}
}
.controls {
display: flex;
flex-direction: column;
align-items: flex-end;
padding: 0;
position: fixed;
top: 60px;
right: 10px;
z-index: 10;
animation: slideIn 300ms ease-out forwards;
pointer-events: none;
& > * {
pointer-events: auto;
}
mat-button-toggle-group {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
box-shadow: 0 4px 16px 0 rgba(0, 38, 135, 0.2);
overflow: hidden;
flex-direction: column;
}
mat-button-toggle {
color: white;
font-family: 'Comfortaa', sans-serif;
border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
border-left: none !important;
background-color: rgba(51, 98, 188, 0.4);
width: 100%;
&:last-child {
border-bottom: none !important;
}
&.mat-button-toggle-checked {
background-color: rgba(255, 255, 255, 0.3);
color: white;
}
&:hover {
background-color: rgba(255, 255, 255, 0.1);
}
}
}
.generators {
padding-top: 10px;
& > * {
display: block;
animation: fadeScaleIn 300ms ease-out forwards;
}
}
@keyframes slideIn {
from {
transform: translateY(-20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes fadeScaleIn {
from {
opacity: 0;
transform: scale(0.9);
height: 0;
}
to {
opacity: 1;
transform: scale(1);
height: auto;
}
}