diff --git a/options.css b/options.css index cdebc85..e906aae 100644 --- a/options.css +++ b/options.css @@ -1,12 +1,206 @@ +*, +*::before, +*::after { + box-sizing: border-box; + margin: 0; + padding: 0; +} + html, body { - color: white; - background-color: #1b262c; + color: #e0e0e0; + background-color: #181c20; + font-family: system-ui, -apple-system, "Segoe UI", sans-serif; + font-size: 14px; + line-height: 1.5; min-height: 10rem; - max-width: 50rem; - overflow-y: hidden; + max-width: 42rem; + padding: 16px; +} + +header { + margin-bottom: 16px; +} + +header h1 { + font-size: 20px; + font-weight: 700; + color: #ffffff; + letter-spacing: -0.01em; +} + +header .subtitle { + font-size: 13px; + color: #888; + margin-top: 2px; +} + +.card { + background: #22272b; + border: 1px solid #2e3439; + border-radius: 10px; + padding: 16px; + margin-bottom: 12px; +} + +.card h2 { + font-size: 14px; + font-weight: 600; + color: #ffffff; + margin-bottom: 12px; + padding-bottom: 8px; + border-bottom: 1px solid #2e3439; +} + +.hint { + font-size: 12px; + color: #888; + margin-bottom: 12px; + line-height: 1.4; +} + +.card > label { + display: block; + font-size: 12px; + font-weight: 500; + color: #aaa; + margin-bottom: 4px; + margin-top: 10px; +} + +.card > label:first-of-type { + margin-top: 0; +} + +input[type="text"] { + width: 100%; + padding: 8px 10px; + background: #181c20; + border: 1px solid #2e3439; + border-radius: 6px; + color: #e0e0e0; + font-size: 13px; + font-family: inherit; + outline: none; + transition: border-color 0.15s; +} + +input[type="text"]:focus { + border-color: #4a9eff; +} + +input[type="text"]::placeholder { + color: #555; } #userinput:invalid { - border-color: red; + border-color: #e05555; +} + +button { + display: inline-block; + margin-top: 12px; + padding: 7px 18px; + background: #4a9eff; + color: #fff; + border: none; + border-radius: 6px; + font-size: 13px; + font-weight: 500; + font-family: inherit; + cursor: pointer; + transition: background 0.15s; +} + +button:hover { + background: #3a8eef; +} + +button:active { + background: #2a7edf; +} + +.option { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + padding: 8px 0; + border-bottom: 1px solid #2a2f33; +} + +.option:last-child { + border-bottom: none; + padding-bottom: 0; +} + +.option:first-child { + padding-top: 0; +} + +.option label { + flex: 1; + font-size: 13px; + color: #ccc; + cursor: pointer; +} + +/* Toggle switch */ +input[type="checkbox"] { + -webkit-appearance: none; + appearance: none; + position: relative; + width: 36px; + min-width: 36px; + height: 20px; + background: #3a3f44; + border-radius: 10px; + cursor: pointer; + transition: background 0.2s; + outline: none; +} + +input[type="checkbox"]::after { + content: ""; + position: absolute; + top: 3px; + left: 3px; + width: 14px; + height: 14px; + background: #888; + border-radius: 50%; + transition: transform 0.2s, background 0.2s; +} + +input[type="checkbox"]:checked { + background: #4a9eff; +} + +input[type="checkbox"]:checked::after { + transform: translateX(16px); + background: #fff; +} + +#shortcuts { + display: flex; + flex-direction: column; + gap: 8px; +} + +#shortcuts label { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + font-size: 13px; + color: #ccc; +} + +#shortcuts input[type="text"] { + width: 140px; + flex-shrink: 0; +} + +#shortcuts br { + display: none; } diff --git a/options.html b/options.html index 14b4212..b627c95 100644 --- a/options.html +++ b/options.html @@ -2,98 +2,130 @@
-- This permission is needed to pause, resume and fast forward media its not - needed to detect audio (You can opt-out of detecting media from other tabs - below) -
-