fixed listmanager styling

This commit is contained in:
2026-02-05 14:29:43 +03:00
parent 90b9ea5134
commit 22bc39cf6a
11 changed files with 793 additions and 471 deletions

View File

@@ -1,32 +1,10 @@
:root {
--bg-color: #12100e;
--text-color: #f4ede6;
--input-bg: #1a1714;
--input-border: #3a2e26;
--button-bg: #2b211b;
--button-hover: #3a2c24;
--button-text: #f7efe9;
--accent: #f2a865;
--accent-hover: #f7c38a;
--accent-text: #1b120b;
--highlight-tag: #231a14;
--highlight-tag-border: #46372c;
--danger: #f87171;
--success: #4ade80;
--shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
--shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.4);
--border-radius: 12px;
--section-bg: #17130f;
--switch-bg: #4b3a2f;
--checkbox-accent: #f2a865;
--checkbox-border: #5a483b;
--focus-ring: 0 0 0 3px rgba(242, 168, 101, 0.2);
}
@import url('../shared/colors.css');
@import url('../shared/ui-components.css');
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: radial-gradient(120% 120% at 10% 0%, rgba(242, 168, 101, 0.08) 0%, transparent 45%),
linear-gradient(180deg, var(--bg-color) 0%, #0f0d0b 100%);
background: radial-gradient(120% 120% at 12% 0%, rgba(204, 106, 42, 0.08) 0%, transparent 45%),
linear-gradient(180deg, var(--bg-color) 0%, #f4e9df 100%);
color: var(--text-color);
margin: 0;
padding: 0;
@@ -39,6 +17,12 @@ body {
flex-direction: column;
}
html.dark body,
body.dark {
background: radial-gradient(120% 120% at 10% 0%, rgba(242, 168, 101, 0.08) 0%, transparent 45%),
linear-gradient(180deg, var(--bg-color) 0%, #0f0d0b 100%);
}
/* Loading Overlay */
.loading-overlay {
position: fixed;
@@ -74,35 +58,6 @@ body {
}
}
body.light {
--bg-color: #fbf6f1;
--text-color: #3b2a21;
--input-bg: #ffffff;
--input-border: #e6d7cc;
--button-bg: #f6eee7;
--button-hover: #efe3d9;
--button-text: #3b2a21;
--accent: #cc6a2a;
--accent-text: #ffffff;
--accent-hover: #e07b36;
--highlight-tag: #f2e7dd;
--highlight-tag-border: #e7d2c1;
--danger: #ef4444;
--success: #10b981;
--shadow: 0 10px 22px rgba(59, 42, 33, 0.12);
--shadow-sm: 0 4px 10px rgba(59, 42, 33, 0.08);
--section-bg: #fffaf6;
--switch-bg: #e1d5cb;
--checkbox-accent: #cc6a2a;
--checkbox-border: #d8c8bb;
--focus-ring: 0 0 0 3px rgba(204, 106, 42, 0.2);
}
body.light {
background: radial-gradient(120% 120% at 12% 0%, rgba(204, 106, 42, 0.08) 0%, transparent 45%),
linear-gradient(180deg, var(--bg-color) 0%, #f4e9df 100%);
}
.container {
padding: 14px;
display: flex;
@@ -208,27 +163,6 @@ body.light {
gap: 4px;
}
.icon-toggle {
cursor: pointer;
font-size: 16px;
color: var(--accent);
display: flex;
align-items: center;
padding: 4px;
border-radius: 8px;
border: 1px solid transparent;
}
.icon-toggle:hover {
color: var(--accent-hover);
background: var(--highlight-tag);
border-color: var(--highlight-tag-border);
}
.hidden-toggle {
display: none;
}
/* GLOBAL HIGHLIGHT ICON: toggle-on/off */
.global-icon::before {
content: "\f204";
@@ -238,20 +172,6 @@ body.light {
content: "\f205";
}
/* THEME ICON: sun/moon - NO CHECKMARKS */
.theme-icon::before {
content: "\f185";
}
#themeToggle:checked+.theme-icon::before {
content: "\f186";
}
.toggle-icon {
font-family: "Font Awesome 6 Free";
font-weight: 900;
}
/* Sections */
.section {
background: var(--section-bg);
@@ -300,79 +220,23 @@ body.light {
opacity: 0.9;
}
/* Form Elements */
input[type="text"],
textarea,
select {
width: 100%;
padding: 8px 10px;
border-radius: 8px;
border: 1px solid var(--input-border);
background-color: var(--input-bg);
color: var(--text-color);
font-size: 0.85em;
box-sizing: border-box;
margin-top: 4px;
margin-bottom: 6px;
font-family: inherit;
}
input[type="text"]:focus,
textarea:focus,
select:focus {
outline: none;
border-color: var(--accent);
box-shadow: var(--focus-ring);
}
textarea {
resize: none;
height: 60px;
font-size: 0.85em;
line-height: 1.4;
font-family: inherit;
}
/* Color Inputs */
input[type="color"] {
background: none;
border: 1.5px solid var(--input-border);
border-radius: 8px;
box-shadow: var(--shadow-sm);
width: 24px;
height: 24px;
margin-left: 6px;
cursor: pointer;
padding: 0;
appearance: none;
-webkit-appearance: none;
overflow: hidden;
}
input[type="color"]:hover {
border-color: var(--accent);
}
input[type="color"]::-webkit-color-swatch-wrapper {
padding: 0;
border-radius: 0;
}
input[type="color"]::-webkit-color-swatch {
border-radius: 0;
border: none;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
input[type="color"]::-moz-color-swatch {
border-radius: 0;
border: none;
padding: 0;
width: 100%;
height: 100%;
}
.color-row {
@@ -391,132 +255,11 @@ input[type="color"]::-moz-color-swatch {
font-weight: 500;
}
/* Checkboxes */
input[type="checkbox"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: var(--input-bg);
border: 1.5px solid var(--checkbox-border);
border-radius: 4px;
width: 16px;
height: 16px;
cursor: pointer;
position: relative;
flex-shrink: 0;
}
input[type="checkbox"]:hover {
border-color: var(--accent);
}
input[type="checkbox"]:checked {
background-color: var(--accent);
border-color: var(--accent);
}
input[type="checkbox"]:checked::before {
content: "✓";
position: absolute;
top: -3px;
left: 2px;
color: white;
font-size: 12px;
font-weight: bold;
}
/* Switch Toggle */
input[type="checkbox"].switch {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 36px;
height: 20px;
background: var(--switch-bg);
border: none;
border-radius: 20px;
position: relative;
outline: none;
cursor: pointer;
transition: background 0.2s;
}
input[type="checkbox"].switch::before {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
background: white;
border-radius: 50%;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
transition: left 0.2s;
}
input[type="checkbox"].switch:checked {
background: var(--accent);
}
input[type="checkbox"].switch:checked::before {
left: 18px;
}
input[type="checkbox"].switch:hover {
opacity: 0.9;
}
input[type="checkbox"].switch::after {
content: none !important;
}
label:has(input.switch) {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
padding: 4px 0;
}
/* Buttons */
button {
background: var(--button-bg);
color: var(--button-text);
border: 1px solid var(--input-border);
padding: 8px 12px;
border-radius: 10px;
font-weight: 500;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
font-size: 0.8em;
font-family: inherit;
white-space: nowrap;
line-height: 1.2;
}
button i {
display: flex;
align-items: center;
font-size: 0.95em;
}
button:hover {
background: var(--button-hover);
border-color: var(--highlight-tag-border);
}
button.danger {
background: var(--danger);
color: white !important;
border-color: var(--danger);
}
button.danger:hover {
background: #dc2626;
border-color: #dc2626;
}
.button-row {
@@ -875,47 +618,7 @@ input[type="file"] {
border-color: var(--highlight-tag-border);
}
/* Scrollbars */
html,
body,
#wordList,
.exceptions-list {
scrollbar-width: thin;
scrollbar-color: var(--accent) var(--section-bg);
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
#wordList::-webkit-scrollbar,
.exceptions-list::-webkit-scrollbar {
width: 8px;
background: var(--section-bg);
border-radius: 8px;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
#wordList::-webkit-scrollbar-thumb,
.exceptions-list::-webkit-scrollbar-thumb {
background: var(--accent);
border-radius: 8px;
min-height: 24px;
border: 2px solid var(--section-bg);
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
#wordList::-webkit-scrollbar-thumb:hover,
.exceptions-list::-webkit-scrollbar-thumb:hover {
background: var(--accent-hover);
}
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
#wordList::-webkit-scrollbar-corner,
.exceptions-list::-webkit-scrollbar-corner {
background: var(--section-bg);
}
/* Page Highlights Section */
.section[data-section="page-highlights"] {

View File

@@ -10,7 +10,7 @@
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
</head>
<body class="dark">
<body>
<div class="loading-overlay">
<div class="loading-spinner"></div>
</div>