Files
outdoor-tour-pwa/src/app/page.module.css
T
2026-09-17 20:54:13 +02:00

83 lines
1.5 KiB
CSS

.page {
--background: #fafafa;
--foreground: #fff;
--text-primary: #000;
--text-secondary: #666;
--button-primary-hover: #383838;
--button-secondary-hover: #f2f2f2;
--button-secondary-border: #ebebeb;
display: flex;
flex: 1;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: var(--background);
&.pad {
padding: 48px 24px;
}
}
.main {
display: flex;
flex: 1;
width: 100%;
/*max-width: 800px; TODO: rm */
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
background-color: var(--foreground);
}
a.primary {
background: var(--text-primary);
color: var(--background);
gap: 8px;
}
a.secondary {
border-color: var(--button-secondary-border);
}
/* Enable hover only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
a.primary:hover {
background: var(--button-primary-hover);
border-color: transparent;
}
a.secondary:hover {
background: var(--button-secondary-hover);
border-color: transparent;
}
}
@media (prefers-color-scheme: dark) {
.logo {
filter: invert();
}
.page {
--background: #000;
--foreground: #000;
--text-primary: #ededed;
--text-secondary: #999;
--button-primary-hover: #ccc;
--button-secondary-hover: #1a1a1a;
--button-secondary-border: #1a1a1a;
}
}
.code {
font-family: var(--font-geist-mono);
font-size: 0.9em;
background: color-mix(in srgb, currentColor 8%, transparent);
padding: 0.1em 0.4em;
border-radius: 6px;
}