04a6031c5d
- custos-browser: fill_allowed (a frame gets a login only when its page would too), public suffixes match exactly only (psl), ports digits only, caller (which extension started the host); spoof tests. - custos-native: answers not_allowed to anything but the Custos extension, browser_totp and browser_save, the frame's and the page's origins, a random session per connection (its match code on Custos's cards). - extension/: manifest.firefox.json (gecko id custos@marek-novak.cz) and manifest.chromium.json, one set of scripts; the popup shows 2FA codes, the save offer and the connection's code; tools/extension.mjs builds each browser and reproducible zips; tools/extension-test.mjs runs the background against a fake browser.
131 lines
2.1 KiB
CSS
131 lines
2.1 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--bg: #101216;
|
|
--panel: #15181d;
|
|
--hover: #262b33;
|
|
--line: #2b3038;
|
|
--fg: #e8ebf0;
|
|
--muted: #9aa3b1;
|
|
--accent: #c9d1dc;
|
|
}
|
|
body {
|
|
width: 320px;
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font: 13px/1.45 "Segoe UI", system-ui, sans-serif;
|
|
}
|
|
header {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 10px;
|
|
padding: 12px 14px 10px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: var(--panel);
|
|
}
|
|
.wordmark {
|
|
color: var(--accent);
|
|
font-size: 12px;
|
|
letter-spacing: 0.3em;
|
|
}
|
|
.site {
|
|
overflow: hidden;
|
|
color: var(--muted);
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
main {
|
|
padding: 8px;
|
|
}
|
|
.note {
|
|
margin: 6px 6px 10px;
|
|
}
|
|
.logins {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
.logins button {
|
|
display: grid;
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
border: 0;
|
|
border-radius: 8px;
|
|
background: none;
|
|
color: inherit;
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.logins button:hover,
|
|
.logins button:focus-visible {
|
|
background: var(--hover);
|
|
outline: none;
|
|
}
|
|
.title {
|
|
font-weight: 600;
|
|
}
|
|
.user {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
.logins li {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.logins button.login {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.logins button.code {
|
|
display: block;
|
|
width: auto;
|
|
flex: none;
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--line);
|
|
color: var(--accent);
|
|
font-variant-numeric: tabular-nums;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
.offer {
|
|
margin: 4px 4px 10px;
|
|
padding: 10px;
|
|
border: 1px solid #c9a96e;
|
|
border-radius: 8px;
|
|
}
|
|
.offer p {
|
|
margin: 0 0 8px;
|
|
}
|
|
.buttons {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
.buttons button {
|
|
padding: 5px 12px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 7px;
|
|
background: var(--panel);
|
|
color: inherit;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.buttons button.primary {
|
|
border-color: #c9a96e;
|
|
}
|
|
footer {
|
|
display: grid;
|
|
gap: 2px;
|
|
padding: 8px 14px 12px;
|
|
border-top: 1px solid var(--line);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
.code-line {
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
[hidden] {
|
|
display: none !important;
|
|
}
|