| 1 | /* The settings window, in the launcher's colours (launcher.css): rows of |
| 2 | settings under small headings, each with its switch on the right. */ |
| 3 | :root { |
| 4 | --bg: #0f0f11; |
| 5 | --fg: #ededf0; |
| 6 | --muted: #9a9aa6; |
| 7 | --line: #26262c; |
| 8 | --surface: #17171b; |
| 9 | --accent: #b6a8ff; |
| 10 | --accent-ink: #15112e; |
| 11 | --error: #ff8a8a; |
| 12 | color-scheme: dark; |
| 13 | } |
| 14 | * { |
| 15 | box-sizing: border-box; |
| 16 | } |
| 17 | html, |
| 18 | body { |
| 19 | margin: 0; |
| 20 | } |
| 21 | body { |
| 22 | background: var(--bg); |
| 23 | color: var(--fg); |
| 24 | font: 14px/1.45 system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; |
| 25 | -webkit-font-smoothing: antialiased; |
| 26 | user-select: none; |
| 27 | cursor: default; |
| 28 | } |
| 29 | main { |
| 30 | max-width: 36rem; |
| 31 | margin: 0 auto; |
| 32 | padding: 1.5rem 1.25rem 1.25rem; |
| 33 | } |
| 34 | h1 { |
| 35 | font-size: 1.25rem; |
| 36 | font-weight: 600; |
| 37 | margin: 0 0 0.25rem; |
| 38 | } |
| 39 | h2 { |
| 40 | font-size: 0.75rem; |
| 41 | font-weight: 600; |
| 42 | letter-spacing: 0.06em; |
| 43 | text-transform: uppercase; |
| 44 | color: var(--muted); |
| 45 | margin: 0 0 0.25rem; |
| 46 | } |
| 47 | p { |
| 48 | margin: 0; |
| 49 | } |
| 50 | .lede { |
| 51 | margin-bottom: 1.5rem; |
| 52 | } |
| 53 | .muted { |
| 54 | color: var(--muted); |
| 55 | } |
| 56 | .small { |
| 57 | font-size: 0.8125rem; |
| 58 | } |
| 59 | section { |
| 60 | margin-bottom: 1.5rem; |
| 61 | } |
| 62 | .setting { |
| 63 | display: flex; |
| 64 | align-items: center; |
| 65 | justify-content: space-between; |
| 66 | gap: 1rem; |
| 67 | padding: 0.75rem 0; |
| 68 | border-bottom: 1px solid var(--line); |
| 69 | } |
| 70 | section .setting:last-child { |
| 71 | border-bottom: 0; |
| 72 | } |
| 73 | .setting > span { |
| 74 | display: flex; |
| 75 | flex-direction: column; |
| 76 | gap: 0.125rem; |
| 77 | min-width: 0; |
| 78 | } |
| 79 | .setting strong { |
| 80 | font-weight: 500; |
| 81 | overflow-wrap: anywhere; |
| 82 | } |
| 83 | .setting .muted { |
| 84 | font-size: 0.8125rem; |
| 85 | } |
| 86 | .setting.off { |
| 87 | opacity: 0.5; |
| 88 | } |
| 89 | input[type="checkbox"][role="switch"] { |
| 90 | appearance: none; |
| 91 | flex: none; |
| 92 | width: 36px; |
| 93 | height: 20px; |
| 94 | margin: 0; |
| 95 | border-radius: 999px; |
| 96 | background: var(--line); |
| 97 | position: relative; |
| 98 | transition: background 0.15s; |
| 99 | } |
| 100 | input[type="checkbox"][role="switch"]::after { |
| 101 | content: ""; |
| 102 | position: absolute; |
| 103 | top: 2px; |
| 104 | left: 2px; |
| 105 | width: 16px; |
| 106 | height: 16px; |
| 107 | border-radius: 50%; |
| 108 | background: var(--fg); |
| 109 | transition: transform 0.15s; |
| 110 | } |
| 111 | input[type="checkbox"][role="switch"]:checked { |
| 112 | background: var(--accent); |
| 113 | } |
| 114 | input[type="checkbox"][role="switch"]:checked::after { |
| 115 | transform: translateX(16px); |
| 116 | background: var(--accent-ink); |
| 117 | } |
| 118 | input:disabled { |
| 119 | opacity: 0.5; |
| 120 | } |
| 121 | @media (prefers-reduced-motion: reduce) { |
| 122 | input[type="checkbox"][role="switch"], |
| 123 | input[type="checkbox"][role="switch"]::after { |
| 124 | transition: none; |
| 125 | } |
| 126 | } |
| 127 | button, |
| 128 | select { |
| 129 | flex: none; |
| 130 | font: inherit; |
| 131 | font-size: 0.8125rem; |
| 132 | font-weight: 500; |
| 133 | padding: 0.375rem 0.75rem; |
| 134 | border-radius: 8px; |
| 135 | border: 1px solid var(--line); |
| 136 | background: var(--surface); |
| 137 | color: var(--fg); |
| 138 | cursor: default; |
| 139 | } |
| 140 | button:hover, |
| 141 | select:hover { |
| 142 | border-color: #3a3a44; |
| 143 | } |
| 144 | button:disabled { |
| 145 | opacity: 0.6; |
| 146 | } |
| 147 | button:focus-visible, |
| 148 | select:focus-visible, |
| 149 | input:focus-visible, |
| 150 | a:focus-visible { |
| 151 | outline: 2px solid var(--accent); |
| 152 | outline-offset: 2px; |
| 153 | } |
| 154 | a { |
| 155 | color: var(--muted); |
| 156 | text-decoration: underline; |
| 157 | text-underline-offset: 3px; |
| 158 | } |
| 159 | a:hover { |
| 160 | color: var(--fg); |
| 161 | } |
| 162 | .error { |
| 163 | color: var(--error); |
| 164 | font-size: 0.875rem; |
| 165 | margin-bottom: 1rem; |
| 166 | } |
| 167 | .foot { |
| 168 | text-align: center; |
| 169 | } |