mirror of
https://github.com/imjasonh/quit.social
synced 2026-07-06 19:02:18 +00:00
- 12 preset apps in a 3x4 home-screen-style grid (icons/*.png) - App Store search and custom PNG upload paths - config-driven fake.html replaces per-app pages - dark mode via OS preference, platform-specific install hint - drop v1 per-app html/manifests, app engine deploy, old service worker Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
257 lines
3.8 KiB
CSS
257 lines
3.8 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
--bg: #f4f8f2;
|
|
--card: #ffffff;
|
|
--input-bg: #fcfffb;
|
|
--result-bg: #fbfffa;
|
|
--result-active-bg: #edf6ea;
|
|
--text: #1f3524;
|
|
--subtle: #56705d;
|
|
--line: #d6e4d4;
|
|
--accent: #5f8b5a;
|
|
--accent-strong: #3f6a41;
|
|
--shadow: rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #0f1714;
|
|
--card: #18221d;
|
|
--input-bg: #1d2a23;
|
|
--result-bg: #1d2a23;
|
|
--result-active-bg: #243429;
|
|
--text: #e6efe5;
|
|
--subtle: #a0b3a4;
|
|
--line: #2c3a32;
|
|
--accent: #82b27c;
|
|
--accent-strong: #a8d2a2;
|
|
--shadow: rgba(0, 0, 0, 0.4);
|
|
}
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
.layout {
|
|
max-width: 760px;
|
|
margin: 0 auto;
|
|
padding: 20px 16px 28px;
|
|
}
|
|
|
|
.hero h1 {
|
|
margin: 0 0 8px;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.lede {
|
|
margin: 0;
|
|
color: var(--subtle);
|
|
}
|
|
|
|
.card {
|
|
margin-top: 16px;
|
|
padding: 16px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
background: var(--card);
|
|
}
|
|
|
|
.card h2 {
|
|
margin: 0 0 12px;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
ol,
|
|
ul {
|
|
margin: 0;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
li + li {
|
|
margin-top: 6px;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="search"],
|
|
input[type="file"] {
|
|
width: 100%;
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
padding: 10px 12px;
|
|
background: var(--input-bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
label.spaced {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.preset-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 14px 10px;
|
|
}
|
|
|
|
.preset {
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 4px 2px;
|
|
text-align: center;
|
|
color: var(--text);
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.preset img {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 14px;
|
|
display: block;
|
|
margin: 0 auto 6px;
|
|
box-shadow: 0 1px 2px var(--shadow);
|
|
}
|
|
|
|
.preset div {
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.preset.active img {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.preset.active div {
|
|
color: var(--accent-strong);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.results {
|
|
margin-top: 10px;
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.result {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
background: var(--result-bg);
|
|
color: var(--text);
|
|
text-align: left;
|
|
padding: 8px;
|
|
}
|
|
|
|
.result img {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.result.active {
|
|
border-color: var(--accent);
|
|
background: var(--result-active-bg);
|
|
}
|
|
|
|
.hint {
|
|
margin: 8px 0 0;
|
|
color: var(--subtle);
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.button {
|
|
margin-top: 12px;
|
|
display: inline-block;
|
|
border: 0;
|
|
border-radius: 10px;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
padding: 10px 14px;
|
|
font: inherit;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button:hover:not(:disabled) {
|
|
background: var(--accent-strong);
|
|
}
|
|
|
|
.button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.footer {
|
|
margin-top: 18px;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer a {
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.bump-page {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 16px;
|
|
}
|
|
|
|
.bump-card {
|
|
width: min(680px, 100%);
|
|
}
|
|
|
|
.centered {
|
|
text-align: center;
|
|
}
|
|
|
|
.bump-icon {
|
|
font-size: clamp(84px, 20vw, 150px);
|
|
line-height: 1;
|
|
}
|
|
|
|
.bump-footer {
|
|
margin-top: auto;
|
|
padding-top: 18px;
|
|
text-align: center;
|
|
}
|
|
|
|
.install-hint {
|
|
margin: 0 0 10px;
|
|
}
|
|
|
|
.subtle-link {
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--subtle);
|
|
padding: 0;
|
|
font-size: 0.9rem;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.subtle-link:hover {
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.subtle-link.smaller {
|
|
font-size: 0.76rem;
|
|
opacity: 0.9;
|
|
}
|