homeio
PublikFork dari doctor-io/homeio
styles.css
:root {
--bg: #0b0d12;
--surface: #151922;
--surface-2: #1d2330;
--border: #2a3140;
--text: #e7ebf2;
--muted: #9aa6b8;
--accent: #4f8cff;
--accent-press: #3d72d6;
--danger: #ff6b6b;
--radius: 14px;
color-scheme: dark;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
}
.screen {
max-width: 560px;
margin: 0 auto;
padding: calc(env(safe-area-inset-top) + 32px) 20px
calc(env(safe-area-inset-bottom) + 32px);
display: flex;
flex-direction: column;
gap: 22px;
min-height: 100dvh;
}
.brand h1 {
margin: 0;
font-size: 30px;
letter-spacing: -0.02em;
}
.subtitle {
margin: 4px 0 0;
color: var(--muted);
font-size: 15px;
}
.error {
margin: 0;
padding: 12px 14px;
background: rgba(255, 107, 107, 0.12);
border: 1px solid rgba(255, 107, 107, 0.4);
border-radius: var(--radius);
color: var(--danger);
font-size: 14px;
}
.empty {
margin: 0;
color: var(--muted);
font-size: 14px;
}
.servers {
display: flex;
flex-direction: column;
gap: 10px;
}
.server-card {
display: flex;
align-items: stretch;
gap: 8px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.server-main {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
align-items: flex-start;
padding: 16px;
background: transparent;
border: 0;
color: inherit;
text-align: left;
cursor: pointer;
}
.server-main:active {
background: var(--surface-2);
}
.server-main:disabled {
opacity: 0.6;
}
.server-label {
font-size: 17px;
font-weight: 600;
}
.server-meta {
font-size: 13px;
color: var(--muted);
word-break: break-all;
}
.server-remove {
width: 48px;
background: transparent;
border: 0;
border-left: 1px solid var(--border);
color: var(--muted);
font-size: 16px;
cursor: pointer;
}
.server-remove:active {
background: var(--surface-2);
color: var(--danger);
}
.add-form {
display: flex;
flex-direction: column;
gap: 14px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
}
.add-form h2 {
margin: 0;
font-size: 17px;
}
.add-form label {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 13px;
color: var(--muted);
}
.add-form label em {
font-style: normal;
opacity: 0.7;
}
.add-form input {
width: 100%;
padding: 13px 14px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 10px;
color: var(--text);
font-size: 16px;
}
.add-form input:focus {
outline: none;
border-color: var(--accent);
}
.add-form button {
margin-top: 4px;
padding: 14px;
background: var(--accent);
border: 0;
border-radius: 10px;
color: #fff;
font-size: 16px;
font-weight: 600;
cursor: pointer;
}
.add-form button:active {
background: var(--accent-press);
}
.add-form button:disabled {
opacity: 0.7;
}
.hint {
margin: 0;
font-size: 12px;
color: var(--muted);
line-height: 1.5;
}