feat: expand utility widgets
This commit is contained in:
1 parent
a2219b72f6
commit
56c2c4dcc0
82 files changed
+7520
-740
No files matched your search
@@ -1,5 +1,85 @@
|
||||
.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 {
|
||||
.forecastButton,
|
||||
.dailyCardButton {
|
||||
color: inherit;
|
||||
border-radius: var(--mantine-radius-sm);
|
||||
}
|
||||
@@ -12,20 +92,48 @@
|
||||
min-height: 24px;
|
||||
}
|
||||
|
||||
.forecastButton {
|
||||
.forecastButton,
|
||||
.dailyCardButton {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dailyCardButton,
|
||||
.dailyCard {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.detailsButton:focus-visible,
|
||||
.forecastButton: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 {
|
||||
.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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user