* support ToolIcon className and fix label padding * factor some ExportDialog classes out to Modal * initial RoomDialog prototype * change label for another-session button * remove unused css * add color comments * Move the collaboration button to the main menu, add support for mobile * remove button for creating another session * add locks * Fix alignment issue * Reorder button * reuse current scene for collab session * keep collaboration state on restore Co-authored-by: Jed Fox <git@twopointzero.us>
53 lines
879 B
CSS
53 lines
879 B
CSS
.Modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: auto;
|
|
padding: calc(var(--space-factor) * 10);
|
|
}
|
|
|
|
.Modal__background {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 1;
|
|
background-color: rgba(0, 0, 0, 0.3);
|
|
backdrop-filter: blur(2px);
|
|
}
|
|
|
|
.Modal__content {
|
|
position: relative;
|
|
z-index: 2;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
animation: Modal__content_fade-in 0.1s ease-out 0.05s forwards;
|
|
position: relative;
|
|
}
|
|
|
|
@keyframes Modal__content_fade-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.Modal__close {
|
|
position: absolute;
|
|
right: calc(var(--space-factor) * 5);
|
|
top: calc(var(--space-factor) * 5);
|
|
}
|