mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-19 18:43:53 +08:00
64 lines
1.5 KiB
CSS
64 lines
1.5 KiB
CSS
.screen {
|
|
min-width: 32rem;
|
|
max-width: min(calc(100dvw - 2rem), 48rem);
|
|
position: relative;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
> * { width: 100%; }
|
|
|
|
> .section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: calc(0.5rem * var(--ratio));
|
|
width: 100%;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
> .title {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-weight: bold;
|
|
width: 100%;
|
|
height: calc(2rem * var(--ratio));
|
|
color: var(--base-text-color);
|
|
border: 0.0625rem solid var(--base-text-color);
|
|
border-bottom: 0.1875rem solid var(--color-primary);
|
|
box-sizing: border-box;
|
|
user-select: none;
|
|
}
|
|
}
|
|
> .controls {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
width: 100%;
|
|
> button { flex: 1 0; }
|
|
}
|
|
&.loading {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
> * { width: auto; }
|
|
animation: pulse 1.8s ease-in-out infinite;
|
|
}
|
|
}
|
|
.saving {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
opacity: 0;
|
|
user-select: none;
|
|
&.active {
|
|
animation: pulse 1.8s ease-in-out infinite;
|
|
}
|
|
}
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 0.5; }
|
|
50% { opacity: 1; }
|
|
} |