:root { --fg: #15141a; --fg-dim: #38383d; --bg: #ffffff; --border: #8f8f9d; --field-bg: #ffffff; --accent: #0060df; /* Backdrop for the drawings and inline code. */ --surface: #f0f0f4; --tooltip-bg: #15141a; --tooltip-fg: #fbfbfe; --danger: #d70022; } @media (prefers-color-scheme: dark) { :root { --fg: #fbfbfe; --fg-dim: #e0e0e6; --bg: #23222b; --border: #8f8f9d; --field-bg: #2b2a33; --accent: #0df; --surface: #1c1b22; --tooltip-bg: #52525e; --tooltip-fg: #fbfbfe; --danger: #ff848b; } } body { margin: 0; padding: 0.5rem 0; color: var(--fg); background: var(--bg); font: message-box; font-size: 1rem; line-height: 1.4; max-width: 42rem; } .intro { margin: 0 0 0.75rem; } .ways { margin: 0 0 0.75rem; padding: 0; list-style: none; } .ways > li { margin-bottom: 0.9rem; } .inline-icon { width: 16px; height: 16px; vertical-align: -3px; } /* Simplified drawings of Firefox's address bar and right-click menu. They are not screenshots, so they follow the theme and never go out of date. */ .drawing { max-width: 24rem; margin: 0.45rem auto 0; padding: 0.75rem; border-radius: 8px; background: var(--surface); font-size: 0.85rem; user-select: none; } .drawing img { width: 16px; height: 16px; } .drawing-urlbar { display: flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.5rem; border-radius: 6px; background: var(--field-bg); outline: 2px solid var(--accent); } .drawing-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.45rem; border-radius: 4px; background: color-mix(in srgb, var(--fg) 10%, var(--field-bg)); font-weight: 600; white-space: nowrap; } .drawing-typed { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } /* The text cursor. */ .drawing-typed::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-inline-start: 1px; background: currentColor; vertical-align: text-bottom; } .drawing-page { margin: 0 0 0.3rem; } .drawing mark { color: inherit; background: color-mix(in srgb, var(--accent) 30%, transparent); } .drawing-toolbar { position: relative; display: flex; align-items: center; gap: 0.35rem; } .drawing-address { flex: 1; min-width: 0; padding: 0.3rem 0.6rem; border-radius: 6px; background: var(--field-bg); color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .drawing-button { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; } .drawing-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; } .drawing-button-hover { background: color-mix(in srgb, var(--fg) 14%, transparent); } /* The mouse pointer resting on the hovered button. */ .drawing-button svg.drawing-pointer { position: absolute; top: 16px; left: 17px; width: 12px; height: 18px; fill: #fff; stroke: #000; stroke-width: 1; } .drawing-tooltip { position: absolute; top: calc(100% + 0.65rem); right: 0; padding: 0.2rem 0.5rem; border-radius: 4px; background: var(--tooltip-bg); color: var(--tooltip-fg); white-space: nowrap; box-shadow: 0 1px 4px rgb(0 0 0 / 0.3); } /* Top padding keeps the heading clear of the tooltip at narrow widths. */ .drawing-content { margin: 0.6rem 0 0; padding: 1.9rem 0.75rem 1rem; border-radius: 6px; background: var(--field-bg); font-size: 1.05rem; font-weight: 700; } .drawing-menu { width: 11rem; /* Opens at the pointer, just under the selection. */ margin-inline-start: 3.5rem; padding: 0.25rem 0; border: 1px solid color-mix(in srgb, var(--border) 60%, transparent); border-radius: 6px; background: var(--field-bg); box-shadow: 0 2px 8px rgb(0 0 0 / 0.2); } .drawing-menu > div { display: flex; align-items: center; gap: 0.45rem; /* Line the plain items up with the text of the item that has an icon. */ padding: 0.2rem 0.75rem 0.2rem calc(0.75rem + 16px + 0.45rem); } .drawing-menu > .drawing-menu-active { padding-inline-start: 0.75rem; background: color-mix(in srgb, var(--accent) 20%, var(--field-bg)); } .drawing-menu hr { margin: 0.25rem 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent); } /* The Advanced submenu, open beside the highlighted Ask ChatGPT item. */ .drawing-advanced { margin-bottom: 1.15rem; } .drawing-menus { display: flex; align-items: flex-start; justify-content: center; } .drawing-menus > .drawing-menu { flex: none; width: 10rem; margin-inline-start: 0; } .drawing-menus > .drawing-submenu { width: 8.5rem; /* Lines its first item up with Ask ChatGPT, overlapping the menu edge. */ margin-top: 3.75rem; margin-inline-start: -0.3rem; } /* Submenu items have no icon, so the highlighted one keeps the icon gap. */ .drawing-submenu > .drawing-menu-active { padding-inline-start: calc(0.75rem + 16px + 0.45rem); } .drawing-submenu-arrow { margin-inline-start: auto; font-size: 1.2em; line-height: 1; } /* The shortcut's keys, held down. shortcut.js fills these in. */ .drawing-keycaps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.3rem 0; color: var(--fg-dim); font-size: 1rem; } .drawing-key { min-width: 1.4rem; padding: 0.35rem 0.65rem; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border)); border-bottom-width: 3px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 12%, var(--field-bg)); color: var(--fg); text-align: center; transform: translateY(1px); } .hint.intro-hint { margin: 0; } .usage, .settings { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); } .hint.settings-scope { margin: 0 0 1rem; } .field { margin-bottom: 1.15rem; } label { display: block; font-weight: 600; margin-bottom: 0.3rem; } .checkbox label { font-weight: 400; display: flex; align-items: baseline; gap: 0.45rem; } input[type="text"], select { width: 100%; max-width: 100%; box-sizing: border-box; padding: 0.4rem 0.5rem; color: var(--fg); background: var(--field-bg); border: 1px solid var(--border); border-radius: 4px; font: inherit; } input[type="text"]:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } .hint { margin: 0.3rem 0 0; color: var(--fg-dim); font-size: 0.85rem; } summary { cursor: pointer; font-weight: 600; color: var(--fg); } details[open] > summary { margin-bottom: 0.75rem; } .more-options { margin-bottom: 1.15rem; } .summary-detail { font-weight: 400; color: var(--fg-dim); } /* Reversed so the button stays at the right edge and "Saved" appears beside it without moving it. */ .actions { display: flex; flex-direction: row-reverse; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; } button { padding: 0.35rem 0.8rem; color: var(--fg); background: var(--field-bg); border: 1px solid var(--border); border-radius: 4px; font: inherit; cursor: pointer; } /* Restore defaults discards every customised setting at once. */ button.danger { color: var(--danger); border-color: var(--danger); } button.danger:hover { color: var(--bg); background: var(--danger); } #status { color: var(--fg-dim); font-size: 0.85rem; } .note { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--fg-dim); font-size: 0.85rem; } .note summary { font-size: 1rem; } code { padding: 0 0.25em; border-radius: 3px; background: var(--surface); font-family: monospace; font-size: 0.9em; } /* Written as +L, so the keys read as words rather than code. */ kbd { font: inherit; font-weight: 600; white-space: nowrap; } .usage h2, .settings h2 { margin: 0 0 0.5rem; color: var(--fg); font-size: 1rem; } .note p, .note ol { margin: 0 0 0.75rem; } .note ol { padding-inline-start: 1.25rem; } .note li { margin-bottom: 0.3rem; } .note code { overflow-wrap: anywhere; } .project-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.65rem; margin-top: 1.5rem; } .project-link { display: inline-flex; align-items: baseline; gap: 0.65rem; } .link-separator { color: var(--fg-dim); } a { color: var(--accent); text-decoration: underline; } a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* The inline about:addons surface can be very narrow. */ @media (max-width: 26rem) { .actions { align-items: flex-end; flex-direction: column; } .drawing-menu { margin-inline-start: 1rem; } /* Stack the links rather than wrap one onto a line that starts with "|". */ .project-links { flex-direction: column; align-items: center; } .link-separator { display: none; } } [hidden] { display: none !important; } .dependent-settings { border-inline-start: 2px solid var(--border); padding-inline-start: 1rem; margin-bottom: 1.15rem; }