140 lines
2.3 KiB
CSS
140 lines
2.3 KiB
CSS
.weatherSurface {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.weatherContent {
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
.compactRoot {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.compactRoot[data-tier="micro"] {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.compactMetrics {
|
|
min-width: 0;
|
|
}
|
|
|
|
.advancedRoot {
|
|
min-width: 0;
|
|
}
|
|
|
|
.locationSummary {
|
|
max-width: min(100%, 320px);
|
|
}
|
|
|
|
.metricCard,
|
|
.dailyCard,
|
|
.detailMetric,
|
|
.solarDetails {
|
|
background: color-mix(in srgb, var(--mantine-color-body) 72%, transparent);
|
|
border: 1px solid color-mix(in srgb, var(--mantine-color-default-border) 72%, transparent);
|
|
}
|
|
|
|
.dailyCard {
|
|
transition:
|
|
background-color 120ms ease,
|
|
border-color 120ms ease;
|
|
}
|
|
|
|
.dailyCardButton:hover .dailyCard,
|
|
.dailyCardButton:focus-visible .dailyCard {
|
|
background: color-mix(in srgb, var(--mantine-primary-color-light) 30%, var(--mantine-color-body));
|
|
border-color: color-mix(in srgb, var(--mantine-primary-color-filled) 45%, var(--mantine-color-default-border));
|
|
}
|
|
|
|
.dailyDetailsDropdown {
|
|
width: min(390px, calc(100vw - 32px));
|
|
padding: var(--mantine-spacing-sm);
|
|
}
|
|
|
|
.dailyDetails {
|
|
min-width: 0;
|
|
}
|
|
|
|
.dailyDetailsTemperature {
|
|
flex-shrink: 0;
|
|
max-width: 132px;
|
|
}
|
|
|
|
.dailyCardFacts {
|
|
min-width: 0;
|
|
}
|
|
|
|
.dailyCardFact {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.detailMetric {
|
|
min-width: 0;
|
|
}
|
|
|
|
.solarDetails {
|
|
background: color-mix(in srgb, var(--mantine-color-yellow-light) 24%, var(--mantine-color-body));
|
|
}
|
|
|
|
.detailsButton,
|
|
.forecastButton,
|
|
.dailyCardButton {
|
|
color: inherit;
|
|
border-radius: var(--mantine-radius-sm);
|
|
}
|
|
|
|
.detailsButton {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 24px;
|
|
min-height: 24px;
|
|
}
|
|
|
|
.forecastButton,
|
|
.dailyCardButton {
|
|
display: block;
|
|
}
|
|
|
|
.dailyCardButton,
|
|
.dailyCard {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.detailsButton:focus-visible,
|
|
.forecastButton:focus-visible,
|
|
.dailyCardButton:focus-visible {
|
|
outline: 2px solid var(--mantine-primary-color-filled);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.errorIndicator {
|
|
z-index: 2;
|
|
}
|
|
|
|
@media (any-pointer: coarse) {
|
|
.detailsButton,
|
|
.forecastButton,
|
|
.dailyCardButton {
|
|
min-width: 44px;
|
|
min-height: 44px;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.dailyCard {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.metricCard,
|
|
.dailyCard,
|
|
.detailMetric,
|
|
.solarDetails {
|
|
border: 1px solid CanvasText;
|
|
}
|
|
}
|