160 lines
3.2 KiB
CSS
160 lines
3.2 KiB
CSS
.water-controls {
|
|
margin: 8px 0 16px;
|
|
padding: 18px;
|
|
border: 1px solid #c4d3b6;
|
|
border-radius: 16px;
|
|
background: #fafbf2;
|
|
color: #315d4e;
|
|
}
|
|
.water-controls-heading,
|
|
.water-playback {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.water-controls h2 {
|
|
margin: 0;
|
|
font-size: 21px;
|
|
}
|
|
.water-controls p {
|
|
margin: 4px 0 0;
|
|
font-size: 13px;
|
|
color: #657a5e;
|
|
}
|
|
.water-playback label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.water-playback select,
|
|
.water-playback button {
|
|
padding: 8px 10px;
|
|
border: 1px solid #bdcdb2;
|
|
background: #fffef6;
|
|
color: #315d4e;
|
|
border-radius: 8px;
|
|
font: inherit;
|
|
}
|
|
.water-playback button {
|
|
min-width: 128px;
|
|
}
|
|
.water-options {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 10px;
|
|
margin-top: 16px;
|
|
}
|
|
.water-options button {
|
|
display: flex;
|
|
align-items: start;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
border: 1px solid #c8d6bd;
|
|
border-radius: 10px;
|
|
text-align: left;
|
|
background: #fffef6;
|
|
color: #315d4e;
|
|
font: inherit;
|
|
}
|
|
.water-options button[aria-pressed="true"] {
|
|
background: #e9f1dd;
|
|
border-color: #678853;
|
|
box-shadow: inset 0 0 0 1px #678853;
|
|
}
|
|
.water-options button:focus-visible,
|
|
.water-playback :focus-visible {
|
|
outline: 2px solid #52753c;
|
|
outline-offset: 3px;
|
|
}
|
|
.water-option-number {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
background: #e2ecd7;
|
|
flex: none;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
.water-options strong,
|
|
.water-options small {
|
|
display: block;
|
|
}
|
|
.water-options small {
|
|
margin-top: 4px;
|
|
line-height: 1.4;
|
|
font-size: 12px;
|
|
color: #657a5e;
|
|
}
|
|
.water-study .pond-flow,
|
|
.water-study .players,
|
|
.water-study .turnbar,
|
|
.water-study .activity-slot,
|
|
.water-study .pond-tools,
|
|
.water-controls .water-reduced-note {
|
|
display: none;
|
|
}
|
|
.water-study[data-water-style="ripples"] .water-ripple,
|
|
.water-study[data-water-style="light"] .water-light,
|
|
.water-study[data-water-style="trails"] .water-trail {
|
|
display: inline;
|
|
}
|
|
.water-study .water-light {
|
|
--flow-opacity: 0.42;
|
|
}
|
|
.water-study .water-trail {
|
|
--flow-opacity: 0.55;
|
|
}
|
|
.water-study .water-ripple {
|
|
--flow-opacity: 0.3;
|
|
}
|
|
.water-study .board {
|
|
--water-orientation-angle: 0deg;
|
|
}
|
|
.water-study[data-water-orientation="perpendicular"]
|
|
.board:is([data-current="west"], [data-current="east"]) {
|
|
--water-orientation-angle: 90deg;
|
|
}
|
|
.soup.water-study .pond-ripple {
|
|
transform: rotate(var(--water-orientation-angle));
|
|
transform-box: fill-box;
|
|
transform-origin: center;
|
|
}
|
|
.water-study[data-motion="paused"] .board * {
|
|
animation-play-state: paused !important;
|
|
}
|
|
@media (min-width: 761px) {
|
|
.water-study .board {
|
|
height: clamp(360px, calc(100dvh - 390px), 660px);
|
|
}
|
|
}
|
|
@media (max-width: 900px) {
|
|
.water-options {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
@media (max-width: 500px) {
|
|
.water-controls {
|
|
padding: 12px;
|
|
}
|
|
.water-options button {
|
|
padding: 10px 8px;
|
|
gap: 6px;
|
|
}
|
|
.water-playback {
|
|
gap: 10px;
|
|
font-size: 13px;
|
|
}
|
|
.water-options small {
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.water-controls .water-reduced-note {
|
|
display: block;
|
|
margin-top: 12px;
|
|
}
|
|
}
|