Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
/* ==========================================================================
LibreGet extension: options and pairing page
Bitwarden-style layout: 12px control radius, stacked labels,
full-width primary button, outlined secondary buttons.
Neutral gray surfaces, one blue accent. Two modes: light and dark.
No green, no tinted banners, no mono, no glow, no gradients.
========================================================================== */
:root,
html[data-theme="dark"] {
color-scheme: dark;
--font-sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--bg-page: #141415;
--bg-primary: #1c1c1e;
--bg-secondary: #242427;
--bg-quaternary: #323236;
--bg-hover: rgba(255, 255, 255, 0.06);
--fg-heading: #f2f2f3;
--fg-body: #c6c6cc;
--fg-subtle: #8e8e96;
--fg-brand: #6baefa;
--border-light: #2a2a2d;
--border-base: #3a3a3e;
--border-strong: #5a5a60;
--border-brand: #6baefa;
--btn-bg: #2a70f4;
--btn-bg-hover: #4182f6;
--btn-ink: #ffffff;
--dot-found: #6baefa;
--danger-fg: #f0827c;
--danger-bg: #2e1c1c;
--danger-border: #6b3434;
}
html[data-theme="light"] {
color-scheme: light;
--bg-page: #f4f5f7;
--bg-primary: #ffffff;
--bg-secondary: #f7f8fa;
--bg-quaternary: #e8eaee;
--bg-hover: rgba(0, 0, 0, 0.05);
--fg-heading: #16181d;
--fg-body: #4a4f59;
--fg-subtle: #6b7280;
--fg-brand: #175ddc;
--border-light: #e8eaee;
--border-base: #d6d9df;
--border-strong: #8b919c;
--border-brand: #175ddc;
--btn-bg: #175ddc;
--btn-bg-hover: #0d43af;
--btn-ink: #ffffff;
--dot-found: #175ddc;
--danger-fg: #b42318;
--danger-bg: #fdf0ee;
--danger-border: #f0c4bf;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
background: var(--bg-page);
}
body {
margin: 0;
min-height: 100vh;
background: var(--bg-page);
color: var(--fg-body);
font-family: var(--font-sans);
font-size: 14px;
line-height: 20px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.shell {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: flex-start;
padding: 40px 16px 64px;
}
/* Main panel */
.card {
width: 100%;
max-width: 480px;
padding: 24px;
background: var(--bg-primary);
border: 1px solid var(--border-base);
border-radius: 16px;
transition: max-width 0.2s ease;
}
.card:has(#capture-rules[open]) {
max-width: 760px;
}
/* Header */
.brand-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding-bottom: 16px;
margin-bottom: 20px;
border-bottom: 1px solid var(--border-light);
}
.brand-main {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.brand-logo {
width: 32px;
height: 32px;
border-radius: 8px;
flex-shrink: 0;
}
.brand-name {
font-size: 16px;
line-height: 24px;
font-weight: 600;
color: var(--fg-heading);
}
.theme-toggle {
width: 36px;
height: 36px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
border: 0;
border-radius: 10px;
background: transparent;
color: var(--fg-brand);
cursor: pointer;
transition: background-color 0.12s ease;
}
.theme-toggle:hover {
background: var(--bg-hover);
}
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }
/* Heading and intro */
.card-title {
margin: 0 0 8px;
font-size: 20px;
line-height: 28px;
font-weight: 600;
color: var(--fg-heading);
}
.body {
margin: 0 0 16px;
font-size: 14px;
line-height: 20px;
color: var(--fg-body);
}
.body strong {
font-weight: 600;
color: var(--fg-heading);
}
/* Removed from view. Elements stay in the DOM so options.js keeps working. */
.card-title,
.default-desc {
display: none !important;
}
#endpoint-hint:not(.error) {
display: none;
}
/* Discovery banner: hidden until connected, then fades out on its own */
.discovery {
display: none;
align-items: center;
gap: 10px;
overflow: hidden;
padding: 12px 14px;
border: 1px solid var(--border-base);
border-radius: 12px;
background: var(--bg-secondary);
font-size: 14px;
line-height: 20px;
color: var(--fg-body);
}
.discovery.connected,
.discovery.found {
display: flex;
margin-bottom: 20px;
animation: banner-life 6s ease forwards;
pointer-events: none;
}
@keyframes banner-life {
0% {
opacity: 0;
max-height: 0;
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0;
border-width: 0;
}
5%, 80% {
opacity: 1;
max-height: 64px;
margin-bottom: 20px;
padding-top: 12px;
padding-bottom: 12px;
border-width: 1px;
}
100% {
opacity: 0;
max-height: 0;
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0;
border-width: 0;
}
}
.spinner {
width: 16px;
height: 16px;
flex-shrink: 0;
border-radius: 50%;
border: 2px solid var(--border-base);
border-top-color: var(--border-brand);
animation: spin 0.8s linear infinite;
}
.discovery.connected .spinner,
.discovery.found .spinner {
width: 10px;
height: 10px;
margin: 3px;
border: 0;
background: var(--dot-found);
animation: none;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Form: label above control, 8px gap, 16px between fields */
form {
display: block;
}
.field {
display: grid;
gap: 8px;
margin-bottom: 16px;
}
.label {
font-size: 14px;
line-height: 20px;
font-weight: 500;
color: var(--fg-heading);
}
input[type="url"],
input[type="text"],
input[type="password"] {
width: 100%;
min-height: 40px;
padding: 0 12px;
border-radius: 12px;
background: var(--bg-primary);
color: var(--fg-heading);
border: 1px solid var(--border-strong);
font: inherit;
font-size: 14px;
outline: none;
transition: border-color 0.12s ease;
}
input::placeholder {
color: var(--fg-subtle);
}
input:hover {
border-color: var(--border-brand);
}
input:focus {
border-color: var(--border-brand);
outline: 1px solid var(--border-brand);
outline-offset: 0;
}
.hint {
font-size: 12px;
line-height: 16px;
color: var(--fg-subtle);
}
.hint code {
font-family: inherit;
font-weight: 600;
color: var(--fg-body);
}
/* Token field with Show button inside */
.token-wrap {
position: relative;
display: flex;
align-items: center;
}
.token-wrap input {
padding-right: 64px;
}
.reveal {
position: absolute;
right: 6px;
top: 50%;
transform: translateY(-50%);
padding: 4px 10px;
border: 0;
border-radius: 8px;
background: transparent;
color: var(--fg-brand);
font: inherit;
font-size: 14px;
font-weight: 500;
cursor: pointer;
}
.reveal:hover {
background: var(--bg-hover);
}
/* Checkbox row */
.checkbox-field {
display: flex;
}
.checkbox-label {
display: inline-flex;
align-items: center;
gap: 10px;
font-weight: 400;
color: var(--fg-body);
cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
width: 16px;
height: 16px;
margin: 0;
accent-color: var(--btn-bg);
cursor: pointer;
}
/* Buttons: primary full width, secondaries outlined and side by side */
.actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 4px;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 40px;
padding: 0 16px;
border: 1px solid var(--border-brand);
border-radius: 12px;
appearance: none;
background: transparent;
color: var(--fg-brand);
font: inherit;
font-size: 14px;
line-height: 20px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.12s ease, border-color 0.12s ease;
}
.button:hover {
background: var(--bg-hover);
}
.actions > .button {
flex: 1 1 0;
}
.actions > .button.primary {
flex: 1 1 100%;
}
.button.primary {
background: var(--btn-bg);
border-color: var(--btn-bg);
color: var(--btn-ink);
}
.button.primary:hover {
background: var(--btn-bg-hover);
border-color: var(--btn-bg-hover);
}
.button:disabled {
opacity: 0.5;
cursor: default;
}
.button:focus-visible,
.reveal:focus-visible,
.theme-toggle:focus-visible,
.install-help summary:focus-visible {
outline: 2px solid var(--border-brand);
outline-offset: 2px;
}
.status {
margin: 12px 0 0;
min-height: 20px;
font-size: 14px;
line-height: 20px;
color: var(--fg-body);
}
.status.ok {
color: var(--fg-heading);
}
.status.error {
color: var(--danger-fg);
}
/* Capture rules: a bordered section like Bitwarden's settings groups */
.install-help {
margin-top: 20px;
border: 1px solid var(--border-base);
border-radius: 12px;
background: var(--bg-primary);
}
.install-help summary {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
list-style: none;
cursor: pointer;
user-select: none;
border-radius: 12px;
font-size: 14px;
line-height: 20px;
font-weight: 600;
color: var(--fg-heading);
}
.install-help summary:hover {
background: var(--bg-hover);
}
.install-help summary::-webkit-details-marker {
display: none;
}
.install-help summary::before {
content: "";
width: 6px;
height: 6px;
border-right: 2px solid var(--fg-brand);
border-bottom: 2px solid var(--fg-brand);
transform: rotate(-45deg);
transition: transform 0.15s ease;
}
.install-help[open] summary::before {
transform: rotate(45deg);
}
.install-help[open] summary {
border-bottom: 1px solid var(--border-light);
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.install-help > p,
.install-help > .rules-block,
.install-help > .actions,
.install-help > .status {
margin-left: 16px;
margin-right: 16px;
}
.install-help > p {
margin-top: 12px;
margin-bottom: 0;
font-size: 14px;
line-height: 20px;
color: var(--fg-body);
}
#capture-rules h2 {
margin: 0;
font-size: 14px;
line-height: 20px;
font-weight: 600;
color: var(--fg-heading);
}
.rules-block {
margin-top: 20px;
}
.rules-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 8px;
}
.rules-scroll {
overflow-x: auto;
border: 1px solid var(--border-base);
border-radius: 12px;
}
.rules-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
.rules-table th {
padding: 8px 10px;
text-align: left;
font-size: 12px;
line-height: 16px;
font-weight: 600;
color: var(--fg-subtle);
white-space: nowrap;
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-base);
}
.rules-table td {
padding: 8px 10px;
vertical-align: top;
border-bottom: 1px solid var(--border-light);
}
.rules-table tbody tr:last-child td {
border-bottom: 0;
}
.rules-table .col-on { width: 44px; }
.rules-table .col-flags { width: 68px; }
.rules-table .col-action { width: 104px; }
.rules-table .col-ext { width: 88px; }
.rules-table .col-remove { width: 88px; }
.rule-stack {
display: grid;
gap: 4px;
}
.rule-stack .hint {
font-size: 12px;
line-height: 16px;
}
.rules-table input[type="text"],
.rules-table input[type="number"],
.rules-table select {
width: 100%;
min-height: 32px;
padding: 0 8px;
border-radius: 8px;
background: var(--bg-primary);
color: var(--fg-heading);
border: 1px solid var(--border-strong);
font: inherit;
font-size: 14px;
outline: none;
}
.rules-table input:focus,
.rules-table select:focus {
border-color: var(--border-brand);
outline: 1px solid var(--border-brand);
outline-offset: 0;
}
.rules-table input.invalid {
border-color: var(--danger-fg);
background: var(--danger-bg);
}
.rule-toggle {
margin: 8px 0 0;
accent-color: var(--btn-bg);
}
.field.rules-test {
margin: 16px 0 0;
}
.hint.error { color: var(--danger-fg); }
.hint.ok { color: var(--fg-body); }
.button.small {
min-height: 32px;
padding: 0 12px;
font-size: 12px;
line-height: 16px;
border-radius: 10px;
}
.button.ghost {
background: transparent;
border-color: transparent;
color: var(--fg-subtle);
}
.button.ghost:hover {
background: var(--danger-bg);
color: var(--danger-fg);
}
#capture-rules .actions {
margin-top: 20px;
}
#capture-rules .actions > .button {
flex: 0 0 auto;
}
#capture-rules .status {
margin-top: 8px;
margin-bottom: 12px;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
@media (max-width: 560px) {
.shell {
padding: 0 0 32px;
}
.card {
padding: 16px;
border-radius: 0;
border-left: 0;
border-right: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.spinner {
animation-duration: 2.4s;
}
.discovery.connected,
.discovery.found {
animation-duration: 4s;
}
.card,
.install-help summary::before {
transition: none;
}
}