updated styling and translations

This commit is contained in:
2026-02-06 02:49:31 +03:00
parent 01963218ab
commit f756c665fe
26 changed files with 3059 additions and 749 deletions

View File

@@ -1,52 +1,73 @@
/* Shared Color Scheme */
/* Typography + Light theme */
:root {
--bg-color: #fbf6f1;
--text-color: #3b2a21;
--font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-mono: 'DM Sans', ui-monospace, monospace;
--text-xs: 11px;
--text-sm: 12px;
--text-base: 13px;
--text-md: 14px;
--text-lg: 16px;
--leading-tight: 1.25;
--leading-normal: 1.4;
--leading-relaxed: 1.5;
--tracking-tight: -0.01em;
--tracking-wide: 0.05em;
--bg-color: #f5f5f5;
--text-color: #2d2d2d;
--input-bg: #ffffff;
--input-border: #e6d7cc;
--button-bg: #f6eee7;
--button-hover: #efe3d9;
--button-text: #3b2a21;
--accent: #cc6a2a;
--input-border: #e0e0e0;
--button-bg: #ffffff;
--button-hover: #eeeeee;
--button-text: #2d2d2d;
--accent: #ff8c00;
--accent-text: #ffffff;
--accent-hover: #e07b36;
--highlight-tag: #f2e7dd;
--highlight-tag-border: #e7d2c1;
--accent-hover: #ff9f1a;
--highlight-tag: #fff3e6;
--highlight-tag-border: #ffe4cc;
--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);
--success: #22c55e;
--shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
--shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.06);
--border-radius: 12px;
--section-bg: #fffaf6;
--panel-bg: #fffaf6;
--switch-bg: #e1d5cb;
--checkbox-accent: #cc6a2a;
--checkbox-border: #d8c8bb;
--focus-ring: 0 0 0 3px rgba(204, 106, 42, 0.2);
--section-bg: #ffffff;
--panel-bg: #ffffff;
--switch-bg: #e0e0e0;
--checkbox-accent: #ff8c00;
--checkbox-border: #d0d0d0;
--focus-ring: 0 0 0 3px rgba(255, 140, 0, 0.25);
--footer-text: #6b6b6b;
--tab-active-bg: #e8e8e8;
--tab-inactive-color: #6b6b6b;
}
/* Dark theme */
html.dark,
body.dark {
--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;
--bg-color: #0d0d0d;
--text-color: #f0f0f0;
--input-bg: #171717;
--input-border: #2a2a2a;
--button-bg: #171717;
--button-hover: #222222;
--button-text: #f0f0f0;
--accent: #ff8c00;
--accent-text: #ffffff;
--accent-hover: #ff9f1a;
--highlight-tag: #171717;
--highlight-tag-border: #2a2a2a;
--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);
--section-bg: #17130f;
--panel-bg: #17130f;
--switch-bg: #4b3a2f;
--checkbox-accent: #f2a865;
--checkbox-border: #5a483b;
--focus-ring: 0 0 0 3px rgba(242, 168, 101, 0.2);
--success: #22c55e;
--shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
--shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.5);
--section-bg: #121212;
--panel-bg: #121212;
--switch-bg: #2a2a2a;
--checkbox-accent: #ff8c00;
--checkbox-border: #333333;
--focus-ring: 0 0 0 3px rgba(255, 140, 0, 0.3);
--footer-text: #8a8a8a;
--tab-active-bg: #2b2b2b;
--tab-inactive-color: #adadad;
}

24
shared/fonts.css Normal file
View File

@@ -0,0 +1,24 @@
/* DM Sans https://fontsource.org/fonts/dm-sans */
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-display: swap;
font-weight: 400;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/dm-sans@latest/latin-400-normal.woff2) format('woff2');
}
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-display: swap;
font-weight: 500;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/dm-sans@latest/latin-500-normal.woff2) format('woff2');
}
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-display: swap;
font-weight: 600;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/dm-sans@latest/latin-600-normal.woff2) format('woff2');
}

View File

@@ -7,7 +7,7 @@ button {
color: var(--button-text);
cursor: pointer;
transition: all 0.2s ease;
font-size: 0.85rem;
font-size: var(--text-base, 13px);
font-family: inherit;
font-weight: 500;
display: inline-flex;
@@ -15,7 +15,7 @@ button {
justify-content: center;
gap: 5px;
white-space: nowrap;
line-height: 1.2;
line-height: var(--leading-tight, 1.25);
}
button:hover {
@@ -81,7 +81,7 @@ button:disabled {
.icon-btn:hover {
opacity: 1;
background: rgba(242, 168, 101, 0.15);
background: rgba(255, 140, 0, 0.15);
color: var(--accent);
}
@@ -89,42 +89,56 @@ button:disabled {
pointer-events: none;
}
/* Toggle Switches */
.toggle-btn {
/* Shared Switch (label + input + span) used in popup and list manager */
.switch-wrapper {
position: relative;
display: inline-block;
width: 40px;
height: 22px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid var(--input-border);
border-radius: 11px;
position: relative;
cursor: pointer;
transition: all 0.2s ease;
padding: 0;
flex-shrink: 0;
}
.toggle-btn::after {
content: '';
.switch-input {
opacity: 0;
width: 0;
height: 0;
position: absolute;
width: 16px;
}
.switch-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--input-border);
transition: 0.3s;
border-radius: 11px;
}
.switch-slider:before {
position: absolute;
content: "";
height: 16px;
background: var(--text-color);
border-radius: 50%;
top: 2px;
width: 16px;
left: 2px;
transition: all 0.2s ease;
bottom: 2px;
background-color: white;
transition: 0.3s;
border-radius: 50%;
}
.toggle-btn.active {
background: var(--accent);
border-color: var(--accent);
.switch-input:checked + .switch-slider {
background-color: var(--accent);
}
.toggle-btn.active::after {
left: 20px;
background: var(--accent-text);
.switch-input:checked + .switch-slider:before {
transform: translateX(18px);
}
/* Switch Toggle (Checkbox Style) */
input[type="checkbox"].switch {
-webkit-appearance: none;
@@ -254,9 +268,10 @@ select {
border: 1px solid var(--input-border);
background-color: var(--input-bg);
color: var(--text-color);
font-size: 0.85em;
font-size: var(--text-base, 13px);
box-sizing: border-box;
font-family: inherit;
line-height: var(--leading-normal, 1.4);
}
input[type="text"]:focus,
@@ -352,3 +367,79 @@ input[type="color"]::-moz-color-swatch {
#themeToggle:checked + .theme-icon::before {
content: "\f186"; /* moon icon */
}
/* Word list eye toggle (active/disabled) replaces switch in word items */
.word-item-eye-toggle {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
min-width: 28px;
margin-right: 6px;
border: none;
border-radius: 4px;
cursor: pointer;
background: transparent;
color: var(--text-color);
opacity: 0.7;
flex-shrink: 0;
transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.word-item-eye-toggle:hover {
opacity: 1;
background: var(--highlight-tag);
color: var(--accent);
}
.word-item-eye-input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
pointer-events: none;
}
.word-item-eye-icon {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 14px;
height: 14px;
pointer-events: none;
}
.word-item-eye-icon i {
position: absolute;
font-size: 14px;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.2s ease;
}
/* Active state: show eye, hide eye-slash */
.word-item-eye-input:checked ~ .word-item-eye-icon .eye-active {
opacity: 1;
color: var(--accent);
}
.word-item-eye-input:checked ~ .word-item-eye-icon .eye-disabled {
opacity: 0;
pointer-events: none;
}
/* Disabled state: show eye-slash, hide eye */
.word-item-eye-input:not(:checked) ~ .word-item-eye-icon .eye-active {
opacity: 0;
pointer-events: none;
}
.word-item-eye-input:not(:checked) ~ .word-item-eye-icon .eye-disabled {
opacity: 1;
color: var(--text-color);
}