owltide/app/page.module.css

169 lines
2.5 KiB
CSS
Raw Normal View History

2025-02-26 11:53:10 +01:00
.page {
2025-02-26 12:05:12 +01:00
--gray-rgb: 0, 0, 0;
--gray-alpha-200: rgba(var(--gray-rgb), 0.08);
--gray-alpha-100: rgba(var(--gray-rgb), 0.05);
2025-02-26 11:53:10 +01:00
2025-02-26 12:05:12 +01:00
--button-primary-hover: #383838;
--button-secondary-hover: #f2f2f2;
2025-02-26 11:53:10 +01:00
2025-02-26 12:05:12 +01:00
display: grid;
grid-template-rows: 20px 1fr 20px;
align-items: center;
justify-items: center;
min-height: 100svh;
padding: 80px;
gap: 64px;
font-family: var(--font-geist-sans);
2025-02-26 11:53:10 +01:00
}
@media (prefers-color-scheme: dark) {
2025-02-26 12:05:12 +01:00
.page {
--gray-rgb: 255, 255, 255;
--gray-alpha-200: rgba(var(--gray-rgb), 0.145);
--gray-alpha-100: rgba(var(--gray-rgb), 0.06);
2025-02-26 11:53:10 +01:00
2025-02-26 12:05:12 +01:00
--button-primary-hover: #ccc;
--button-secondary-hover: #1a1a1a;
}
2025-02-26 11:53:10 +01:00
}
.main {
2025-02-26 12:05:12 +01:00
display: flex;
flex-direction: column;
gap: 32px;
grid-row-start: 2;
2025-02-26 11:53:10 +01:00
}
.main ol {
2025-02-26 12:05:12 +01:00
font-family: var(--font-geist-mono);
padding-left: 0;
margin: 0;
font-size: 14px;
line-height: 24px;
letter-spacing: -0.01em;
list-style-position: inside;
2025-02-26 11:53:10 +01:00
}
.main li:not(:last-of-type) {
2025-02-26 12:05:12 +01:00
margin-bottom: 8px;
2025-02-26 11:53:10 +01:00
}
.main code {
2025-02-26 12:05:12 +01:00
font-family: inherit;
background: var(--gray-alpha-100);
padding: 2px 4px;
border-radius: 4px;
font-weight: 600;
2025-02-26 11:53:10 +01:00
}
.ctas {
2025-02-26 12:05:12 +01:00
display: flex;
gap: 16px;
2025-02-26 11:53:10 +01:00
}
.ctas a {
2025-02-26 12:05:12 +01:00
appearance: none;
border-radius: 128px;
height: 48px;
padding: 0 20px;
border: none;
border: 1px solid transparent;
transition:
background 0.2s,
color 0.2s,
border-color 0.2s;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
line-height: 20px;
font-weight: 500;
2025-02-26 11:53:10 +01:00
}
a.primary {
2025-02-26 12:05:12 +01:00
background: var(--foreground);
color: var(--background);
gap: 8px;
2025-02-26 11:53:10 +01:00
}
a.secondary {
2025-02-26 12:05:12 +01:00
border-color: var(--gray-alpha-200);
min-width: 180px;
2025-02-26 11:53:10 +01:00
}
.footer {
2025-02-26 12:05:12 +01:00
grid-row-start: 3;
display: flex;
gap: 24px;
2025-02-26 11:53:10 +01:00
}
.footer a {
2025-02-26 12:05:12 +01:00
display: flex;
align-items: center;
gap: 8px;
2025-02-26 11:53:10 +01:00
}
.footer img {
2025-02-26 12:05:12 +01:00
flex-shrink: 0;
2025-02-26 11:53:10 +01:00
}
/* Enable hover only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
2025-02-26 12:05:12 +01:00
a.primary:hover {
background: var(--button-primary-hover);
border-color: transparent;
}
2025-02-26 11:53:10 +01:00
2025-02-26 12:05:12 +01:00
a.secondary:hover {
background: var(--button-secondary-hover);
border-color: transparent;
}
2025-02-26 11:53:10 +01:00
2025-02-26 12:05:12 +01:00
.footer a:hover {
text-decoration: underline;
text-underline-offset: 4px;
}
2025-02-26 11:53:10 +01:00
}
@media (max-width: 600px) {
2025-02-26 12:05:12 +01:00
.page {
padding: 32px;
padding-bottom: 80px;
}
2025-02-26 11:53:10 +01:00
2025-02-26 12:05:12 +01:00
.main {
align-items: center;
}
2025-02-26 11:53:10 +01:00
2025-02-26 12:05:12 +01:00
.main ol {
text-align: center;
}
2025-02-26 11:53:10 +01:00
2025-02-26 12:05:12 +01:00
.ctas {
flex-direction: column;
}
2025-02-26 11:53:10 +01:00
2025-02-26 12:05:12 +01:00
.ctas a {
font-size: 14px;
height: 40px;
padding: 0 16px;
}
2025-02-26 11:53:10 +01:00
2025-02-26 12:05:12 +01:00
a.secondary {
min-width: auto;
}
2025-02-26 11:53:10 +01:00
2025-02-26 12:05:12 +01:00
.footer {
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
2025-02-26 11:53:10 +01:00
}
@media (prefers-color-scheme: dark) {
2025-02-26 12:05:12 +01:00
.logo {
filter: invert();
}
2025-02-26 11:53:10 +01:00
}