YRobot / yrobot /static /style.css
thomas-yanxin's picture
Publish YRobot 3.2.0 for Reachy Mini
ad1a7fb verified
Raw
History Blame Contribute Delete
5.98 kB
:root {
--ink: #11231d;
--muted: #66756f;
--line: rgba(17, 35, 29, 0.12);
--paper: #f3f3ec;
--lime: #caff61;
--mint: #5ee3b6;
--blue: #316cff;
--danger: #a86600;
}
* { box-sizing: border-box; }
body {
margin: 0;
color: var(--ink);
background:
radial-gradient(circle at 90% 0, rgba(94, 227, 182, 0.23), transparent 28rem),
var(--paper);
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 80px; }
header { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand span { width: 32px; height: 32px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 10px 10px 10px 3px; }
.connection { padding: 8px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.52); font-size: 11px; font-weight: 700; }
.connection i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #2bb47b; box-shadow: 0 0 0 3px rgba(43, 180, 123, 0.12); }
.intro { padding: 64px 0 38px; }
.eyebrow, .step { margin: 0 0 12px; color: #337861; font-size: 10px; font-weight: 850; letter-spacing: 0.16em; }
.intro h1 { max-width: 640px; margin: 0 0 16px; font-size: clamp(40px, 8vw, 64px); line-height: 0.98; letter-spacing: -0.055em; }
.intro > p:last-child { max-width: 580px; margin: 0; color: var(--muted); line-height: 1.65; }
.panel { margin-top: 16px; padding: 30px; border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 24px; background: rgba(255, 255, 255, 0.67); box-shadow: 0 18px 50px rgba(31, 70, 56, 0.06); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.panel-heading h2, .privacy-card h2 { margin: 0; font-size: 24px; letter-spacing: -0.035em; }
.pill { padding: 7px 10px; color: var(--blue); border: 1px solid rgba(49, 108, 255, 0.18); border-radius: 999px; background: rgba(49, 108, 255, 0.06); font-size: 10px; font-weight: 800; }
.pill.mint { color: #23795b; border-color: rgba(35, 121, 91, 0.16); background: rgba(94, 227, 182, 0.13); }
label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 750; }
input[type="text"], textarea { width: 100%; padding: 14px 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; outline: 0; background: rgba(248, 250, 247, 0.9); font: inherit; transition: border-color 140ms ease, box-shadow 140ms ease; }
textarea { resize: vertical; line-height: 1.55; }
input[type="text"]:focus, textarea:focus { border-color: rgba(49, 108, 255, 0.7); box-shadow: 0 0 0 4px rgba(49, 108, 255, 0.09); }
.hint, small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.hint { margin: 9px 0 22px; }
.toggle-row { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); }
.toggle-row b { display: block; margin-bottom: 4px; font-size: 13px; }
.switch { position: relative; flex: 0 0 auto; width: 46px; height: 27px; margin: 0; }
.switch input { width: 0; height: 0; opacity: 0; }
.switch span { position: absolute; inset: 0; cursor: pointer; border-radius: 999px; background: #c9d0cc; transition: 160ms ease; }
.switch span::before { content: ""; position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(17, 35, 29, 0.2); transition: 160ms ease; }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::before { transform: translateX(19px); background: var(--lime); }
.switch input:disabled + span { cursor: not-allowed; opacity: 0.4; }
.counter { margin-top: 7px; color: var(--muted); text-align: right; font-size: 10px; }
.privacy-card { margin-top: 16px; padding: 28px 30px; display: grid; grid-template-columns: auto 1fr; gap: 20px; color: #eafff5; border-radius: 24px; background: var(--ink); }
.privacy-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--lime); border: 1px solid rgba(202, 255, 97, 0.33); border-radius: 13px; }
.privacy-card p { margin: 12px 0 18px; color: #b8cec5; font-size: 12px; line-height: 1.7; }
.consent { display: flex; align-items: center; gap: 9px; margin: 0; color: white; }
.consent input { accent-color: var(--lime); }
.notice { margin: 14px 0; padding: 15px 17px; color: var(--muted); border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.6); font-size: 12px; line-height: 1.5; }
.notice.success { color: #1a664d; border-color: rgba(26, 102, 77, 0.2); background: rgba(94, 227, 182, 0.16); }
.notice.warning { color: var(--danger); border-color: rgba(168, 102, 0, 0.2); background: rgba(255, 190, 83, 0.13); }
.form-footer { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.form-footer b { display: block; margin-bottom: 4px; font-size: 12px; }
.form-footer small { max-width: 470px; overflow-wrap: anywhere; }
button { padding: 14px 22px; color: white; border: 0; border-radius: 13px; cursor: pointer; background: var(--ink); font-weight: 800; box-shadow: 0 12px 28px rgba(17, 35, 29, 0.17); transition: transform 140ms ease, opacity 140ms ease; }
button:hover { transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: 0.55; transform: none; }
.hidden { display: none !important; }
@media (max-width: 560px) {
.connection { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intro { padding-top: 48px; }
.panel { padding: 24px 20px; border-radius: 19px; }
.privacy-card { padding: 24px 20px; grid-template-columns: 1fr; }
.form-footer { align-items: stretch; flex-direction: column; }
button { width: 100%; }
}