mirror of
https://github.com/SoPat712/videospeed.git
synced 2026-04-21 04:42:35 -04:00
1063 lines
18 KiB
CSS
1063 lines
18 KiB
CSS
:root {
|
|
--bg: #f4f5f7;
|
|
--panel: #ffffff;
|
|
--panel-subtle: #fafbfc;
|
|
--border: #e2e5e9;
|
|
--border-strong: #d4d9e0;
|
|
--text: #17191c;
|
|
--muted: #626b76;
|
|
--accent: #111827;
|
|
--danger: #b42318;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
/* Avoid coupling to the browser viewport: embedded options (e.g. Add-ons
|
|
* Manager iframe) must size to content, not 100vh, or a large empty band
|
|
* appears below the page. */
|
|
height: auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 0;
|
|
padding: 24px 16px 40px;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font: 14px/1.45 "Avenir Next", "SF Pro Text", "Segoe UI", sans-serif;
|
|
}
|
|
|
|
.page-shell {
|
|
width: min(880px, 100%);
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.page-header {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.title-row {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.title-block {
|
|
max-width: 560px;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
margin: 0;
|
|
font-family: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
|
|
font-weight: 600;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 28px;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 16px;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 15px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.page-subtitle,
|
|
.section-intro {
|
|
margin: 6px 0 0;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.version {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 26px;
|
|
padding: 0 9px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
background: var(--panel);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.settings-stack {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.settings-card {
|
|
padding: 18px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
background: var(--panel);
|
|
}
|
|
|
|
.control-bars-group {
|
|
padding: 20px;
|
|
}
|
|
|
|
.control-bars-inner {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.settings-card-nested {
|
|
background: var(--panel-subtle);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.section-heading-major {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.section-heading-major h2 {
|
|
margin: 0 0 6px;
|
|
font-size: 18px;
|
|
font-weight: 650;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.section-heading-major .section-intro {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.section-heading {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.defaults-divider {
|
|
height: 1px;
|
|
background: var(--border);
|
|
margin: 14px 0 10px;
|
|
}
|
|
|
|
.defaults-sub-heading {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
p {
|
|
margin: 0.75em 0;
|
|
}
|
|
|
|
a,
|
|
a:visited {
|
|
color: var(--text);
|
|
text-decoration-color: #c6ccd5;
|
|
text-underline-offset: 0.14em;
|
|
}
|
|
|
|
a:hover,
|
|
a:focus {
|
|
color: #000;
|
|
}
|
|
|
|
code {
|
|
padding: 0.08em 0.38em;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--panel-subtle);
|
|
font-family: "SFMono-Regular", Menlo, Consolas, monospace;
|
|
font-size: 0.92em;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select,
|
|
textarea {
|
|
font: inherit;
|
|
}
|
|
|
|
button {
|
|
appearance: none;
|
|
min-height: 36px;
|
|
padding: 0 14px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 10px;
|
|
background: var(--panel);
|
|
color: var(--text);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background-color 120ms ease, border-color 120ms ease;
|
|
}
|
|
|
|
button:hover {
|
|
background: #f8f9fb;
|
|
border-color: #c5ccd5;
|
|
}
|
|
|
|
button:active {
|
|
background: #f1f3f5;
|
|
}
|
|
|
|
button:focus-visible,
|
|
input[type="text"]:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
outline: 2px solid rgba(17, 24, 39, 0.14);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
#save {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
#save:hover {
|
|
background: #1f2937;
|
|
border-color: #1f2937;
|
|
}
|
|
|
|
input[type="text"],
|
|
select,
|
|
textarea {
|
|
width: 100%;
|
|
min-height: 36px;
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 10px;
|
|
background: var(--panel);
|
|
color: var(--text);
|
|
}
|
|
|
|
input[type="text"]:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
border-color: #9ca3af;
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin: 2px 0 0;
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
}
|
|
|
|
label em {
|
|
display: block;
|
|
margin-top: 4px;
|
|
color: var(--muted);
|
|
font-style: normal;
|
|
}
|
|
|
|
.shortcuts-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.shortcut-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 120px 120px;
|
|
gap: 12px;
|
|
align-items: center;
|
|
padding: 10px 0;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.shortcuts-grid .shortcut-row:first-child {
|
|
padding-top: 0;
|
|
border-top: 0;
|
|
}
|
|
|
|
.shortcut-row.customs {
|
|
grid-template-columns: minmax(0, 1fr) 120px 120px 38px;
|
|
}
|
|
|
|
.shortcut-label {
|
|
color: var(--text);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.customKey,
|
|
.customValue {
|
|
text-align: center;
|
|
}
|
|
|
|
#addShortcutSelector {
|
|
width: min(220px, 100%);
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.removeParent,
|
|
.toggle-site-rule {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
min-width: 36px;
|
|
height: 36px;
|
|
padding: 0;
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.removeParent {
|
|
color: var(--danger);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.toggle-site-rule {
|
|
font-weight: 400;
|
|
}
|
|
|
|
.row {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 160px;
|
|
gap: 16px;
|
|
align-items: start;
|
|
padding: 10px 0;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.row input[type="text"],
|
|
.row select {
|
|
justify-self: end;
|
|
}
|
|
|
|
.row.row-checkbox {
|
|
grid-template-columns: minmax(0, 1fr) 24px;
|
|
}
|
|
|
|
.row.row-checkbox input[type="checkbox"] {
|
|
justify-self: end;
|
|
}
|
|
|
|
.settings-card .row:first-of-type {
|
|
padding-top: 0;
|
|
border-top: 0;
|
|
}
|
|
|
|
.row.row-controller-margin {
|
|
grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
|
|
}
|
|
|
|
.controller-margin-inputs {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 116px));
|
|
gap: 8px;
|
|
width: max-content;
|
|
justify-self: end;
|
|
}
|
|
|
|
.margin-pad-cell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 116px;
|
|
}
|
|
|
|
.margin-pad-mini {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.controller-margin-inputs input[type="text"] {
|
|
width: 100%;
|
|
min-width: 116px;
|
|
box-sizing: border-box;
|
|
text-align: right;
|
|
}
|
|
|
|
.site-rule-option.site-rule-margin-option {
|
|
grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
|
|
}
|
|
|
|
.site-rule-override-section {
|
|
margin-top: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.site-rule-content > .site-rule-override-section:first-of-type {
|
|
margin-top: 0;
|
|
padding-top: 0;
|
|
border-top: 0;
|
|
}
|
|
|
|
.site-override-lead {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 24px;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
}
|
|
|
|
.site-override-lead input[type="checkbox"] {
|
|
justify-self: end;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.site-override-lead span {
|
|
margin: 0;
|
|
}
|
|
|
|
.site-rule-override-section .site-override-fields,
|
|
.site-rule-override-section .site-placement-container,
|
|
.site-rule-override-section .site-visibility-container,
|
|
.site-rule-override-section .site-autohide-container,
|
|
.site-rule-override-section .site-playback-container,
|
|
.site-rule-override-section .site-opacity-container,
|
|
.site-rule-override-section .site-subtitleNudge-container {
|
|
padding-left: 4px;
|
|
}
|
|
|
|
.cb-editor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.cb-editor-disabled {
|
|
opacity: 0.4;
|
|
pointer-events: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.cb-zone-label {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.cb-dropzone {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
min-height: 52px;
|
|
padding: 10px;
|
|
border: 2px dashed var(--border);
|
|
border-radius: 10px;
|
|
background: var(--panel-subtle);
|
|
transition: border-color 150ms ease, background 150ms ease;
|
|
}
|
|
|
|
.cb-dropzone.cb-over {
|
|
border-color: var(--accent);
|
|
background: rgba(17, 24, 39, 0.03);
|
|
}
|
|
|
|
.cb-active-zone:empty::after {
|
|
content: "Drag buttons here";
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
justify-content: center;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
font-style: italic;
|
|
}
|
|
|
|
.cb-available-zone:empty::after {
|
|
content: "All buttons active";
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
justify-content: center;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
font-style: italic;
|
|
}
|
|
|
|
.cb-block {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 7px 12px 7px 8px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 8px;
|
|
background: var(--panel);
|
|
cursor: grab;
|
|
user-select: none;
|
|
transition: box-shadow 150ms ease, opacity 150ms ease;
|
|
}
|
|
|
|
.cb-block:hover {
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.cb-block:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.cb-block.cb-dragging {
|
|
opacity: 0.35;
|
|
}
|
|
|
|
.cb-grip {
|
|
width: 6px;
|
|
min-width: 6px;
|
|
height: 14px;
|
|
background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
|
|
background-size: 3px 3px;
|
|
opacity: 0.35;
|
|
}
|
|
|
|
.cb-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 4px;
|
|
background: var(--panel-subtle);
|
|
border: 1px solid var(--border);
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
color: var(--text);
|
|
}
|
|
|
|
.cb-icon svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cb-icon.cb-icon-nudge-pair {
|
|
width: auto;
|
|
min-width: 0;
|
|
padding: 0 4px;
|
|
gap: 4px;
|
|
background: transparent;
|
|
border: none;
|
|
}
|
|
|
|
.cb-nudge-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 6px;
|
|
flex-shrink: 0;
|
|
color: #fff;
|
|
}
|
|
|
|
.cb-nudge-chip[data-nudge-state="on"] {
|
|
background: #4b9135;
|
|
border: 1px solid #6ec754;
|
|
}
|
|
|
|
.cb-nudge-chip[data-nudge-state="off"] {
|
|
background: #943e3e;
|
|
border: 1px solid #c06060;
|
|
}
|
|
|
|
.cb-nudge-chip .vsc-btn-icon svg,
|
|
.cb-nudge-chip svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cb-nudge-sep {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
opacity: 0.45;
|
|
color: var(--text);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.row-lucide-pair select {
|
|
justify-self: end;
|
|
}
|
|
|
|
.row-lucide-search-row {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 8px;
|
|
padding: 12px 0;
|
|
}
|
|
|
|
.row-lucide-search-row .lucide-search-label {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.lucide-search-field {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
min-height: 44px;
|
|
padding: 0 14px 0 12px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 12px;
|
|
background: var(--panel);
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
transition: border-color 150ms ease, box-shadow 150ms ease;
|
|
}
|
|
|
|
.lucide-search-field:focus-within {
|
|
border-color: #9ca3af;
|
|
box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
|
|
}
|
|
|
|
.lucide-search-icon {
|
|
display: flex;
|
|
color: var(--muted);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.lucide-search-input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 40px;
|
|
padding: 8px 0;
|
|
border: 0 !important;
|
|
border-radius: 0 !important;
|
|
background: transparent !important;
|
|
box-shadow: none !important;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.lucide-search-input::placeholder {
|
|
color: var(--muted);
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.lucide-search-input:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.lucide-icon-results {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
max-height: 220px;
|
|
overflow-y: auto;
|
|
padding: 12px 0;
|
|
border-top: 1px solid var(--border);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
button.lucide-result-tile {
|
|
width: 44px;
|
|
height: 44px;
|
|
min-height: 44px;
|
|
padding: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 10px;
|
|
background: var(--panel-subtle);
|
|
border: 1px solid var(--border-strong);
|
|
cursor: pointer;
|
|
}
|
|
|
|
button.lucide-result-tile:hover {
|
|
background: var(--panel);
|
|
border-color: #9ca3af;
|
|
}
|
|
|
|
button.lucide-result-tile .lucide-result-thumb {
|
|
width: 22px;
|
|
height: 22px;
|
|
object-fit: contain;
|
|
pointer-events: none;
|
|
}
|
|
|
|
button.lucide-result-tile.lucide-picked {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.12);
|
|
background: var(--panel);
|
|
}
|
|
|
|
.lucide-icon-status {
|
|
margin: 8px 0 0;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
min-height: 1.2em;
|
|
}
|
|
|
|
.lucide-icon-preview-row {
|
|
display: grid;
|
|
grid-template-columns: 72px 1fr;
|
|
gap: 16px;
|
|
align-items: start;
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.lucide-icon-preview {
|
|
width: 56px;
|
|
height: 56px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 10px;
|
|
background: var(--panel-subtle);
|
|
color: var(--text);
|
|
}
|
|
|
|
.lucide-icon-preview svg {
|
|
width: 36px;
|
|
height: 36px;
|
|
}
|
|
|
|
.lucide-icon-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.lucide-icon-actions .lucide-apply {
|
|
background: #ffffff !important;
|
|
color: #111827 !important;
|
|
border: 1px solid var(--border-strong) !important;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.lucide-icon-actions .lucide-apply:hover {
|
|
background: #f3f4f6 !important;
|
|
border-color: #9ca3af !important;
|
|
}
|
|
|
|
.lucide-icon-actions .secondary {
|
|
background: var(--panel-subtle);
|
|
color: var(--text);
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.cb-label {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#siteRulesContainer {
|
|
display: grid;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.site-rule {
|
|
padding: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
background: var(--panel-subtle);
|
|
}
|
|
|
|
.site-rule-header {
|
|
display: grid;
|
|
grid-template-columns: 36px minmax(0, 1fr) auto;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.site-pattern {
|
|
min-width: 0;
|
|
font-family: "SFMono-Regular", Menlo, Consolas, monospace;
|
|
}
|
|
|
|
.site-rule-body {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.site-rule-content.disabled-rule {
|
|
opacity: 0.55;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.site-rule-option {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 160px;
|
|
gap: 16px;
|
|
align-items: start;
|
|
padding: 8px 0;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.site-rule-option-checkbox {
|
|
grid-template-columns: minmax(0, 1fr) 24px;
|
|
}
|
|
|
|
.site-rule-option-checkbox > input[type="checkbox"] {
|
|
justify-self: end;
|
|
}
|
|
|
|
.site-rule-option > input[type="text"],
|
|
.site-rule-option > select {
|
|
justify-self: end;
|
|
text-align: right;
|
|
}
|
|
|
|
.site-rule-option.site-rule-margin-option .controller-margin-inputs {
|
|
justify-self: end;
|
|
}
|
|
|
|
.site-rule-body > .site-rule-option:first-child,
|
|
.site-rule-content > .site-rule-option:first-child {
|
|
padding-top: 0;
|
|
border-top: 0;
|
|
}
|
|
|
|
.site-rule-option > label:not(.site-rule-split-label) {
|
|
display: block;
|
|
margin: 0;
|
|
}
|
|
|
|
.site-rule-split-label {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 24px;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
width: 100%;
|
|
margin: 0;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
}
|
|
|
|
.site-rule-split-label input[type="checkbox"] {
|
|
justify-self: end;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.site-rule-option-checkbox > .site-rule-split-label {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.site-rule-controlbar,
|
|
.site-rule-shortcuts {
|
|
margin-top: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.site-rule-controlbar > label.site-override-lead,
|
|
.site-rule-shortcuts > label.site-override-lead {
|
|
margin: 0;
|
|
}
|
|
|
|
.site-controlbar-container,
|
|
.site-popup-controlbar-container {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.site-shortcuts-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.site-shortcuts-container .shortcut-row {
|
|
grid-template-columns: minmax(0, 1fr) 110px 110px minmax(0, 1fr);
|
|
padding: 8px 0;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.site-shortcuts-container .shortcut-row:first-child {
|
|
padding-top: 0;
|
|
border-top: 0;
|
|
}
|
|
|
|
.force-label {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
width: auto;
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.force-label input {
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.action-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
#status {
|
|
min-height: 1.3em;
|
|
margin-top: 10px;
|
|
color: var(--muted);
|
|
font-weight: 500;
|
|
}
|
|
|
|
#status:empty {
|
|
display: none;
|
|
}
|
|
|
|
.support-footer {
|
|
padding: 16px 20px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.support-footer p {
|
|
margin: 0;
|
|
}
|
|
|
|
.support-footer a {
|
|
font-weight: 600;
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.lucide-icon-preview-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.shortcut-row,
|
|
.shortcut-row.customs,
|
|
.row,
|
|
.row.row-checkbox,
|
|
.site-rule-option,
|
|
.site-shortcuts-container .shortcut-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.row input[type="text"],
|
|
.row select {
|
|
justify-self: stretch;
|
|
}
|
|
|
|
.site-rule-option > input[type="text"],
|
|
.site-rule-option > select {
|
|
justify-self: stretch;
|
|
}
|
|
|
|
.site-override-lead {
|
|
grid-template-columns: minmax(0, 1fr) 24px;
|
|
}
|
|
|
|
.action-row button,
|
|
#addShortcutSelector {
|
|
width: 100%;
|
|
}
|
|
|
|
.site-rule-header {
|
|
grid-template-columns: 36px minmax(0, 1fr);
|
|
}
|
|
|
|
.remove-site-rule {
|
|
grid-column: 1 / -1;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 520px) {
|
|
body {
|
|
padding: 16px 12px 28px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.settings-card {
|
|
padding: 16px;
|
|
}
|
|
|
|
.control-bars-group {
|
|
padding: 16px;
|
|
}
|
|
|
|
.site-rule-header {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #111315;
|
|
--panel: #171a1d;
|
|
--panel-subtle: #1b1f23;
|
|
--border: #2b3138;
|
|
--border-strong: #3a414a;
|
|
--text: #f2f4f6;
|
|
--muted: #a0a8b2;
|
|
--accent: #f2f4f6;
|
|
--danger: #ff8a80;
|
|
}
|
|
|
|
body {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
a,
|
|
a:visited {
|
|
color: #f2f4f6;
|
|
text-decoration-color: #4b5563;
|
|
}
|
|
|
|
#save {
|
|
background: #f2f4f6;
|
|
border-color: #f2f4f6;
|
|
color: #111315;
|
|
}
|
|
|
|
#save:hover {
|
|
background: #dfe3e8;
|
|
border-color: #dfe3e8;
|
|
}
|
|
|
|
.cb-dropzone.cb-over {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
input[type="text"]:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
border-color: #6b7280;
|
|
}
|
|
|
|
.lucide-search-field:focus-within {
|
|
border-color: #6b7280;
|
|
box-shadow: 0 0 0 3px rgba(242, 244, 246, 0.12);
|
|
}
|
|
|
|
.lucide-icon-actions .lucide-apply {
|
|
background: #ffffff !important;
|
|
color: #111315 !important;
|
|
border-color: #e5e7eb !important;
|
|
}
|
|
|
|
.lucide-icon-actions .lucide-apply:hover {
|
|
background: #f3f4f6 !important;
|
|
border-color: #d1d5db !important;
|
|
}
|
|
|
|
button.lucide-result-tile .lucide-result-thumb {
|
|
filter: brightness(0) invert(1);
|
|
opacity: 0.92;
|
|
}
|
|
}
|