material3
All checks were successful
Release / release (push) Successful in 2m28s

This commit is contained in:
d.a.kolesov 2026-07-30 08:20:06 +07:00
parent d46c6562ee
commit b3f521c20c
38 changed files with 3475 additions and 491 deletions

View file

@ -104,3 +104,41 @@ see the updated count and skip the second notification.
`notifications.store.ts` stores muted folders in `localStorage` (`muted-folders` key).
Mute is per `accountId:folderId`, supports duration (ms) or permanent (`null`).
Mute check walks up the folder parent chain — muting a parent silences all children.
## Design system (Liquid Glass / Material 3) — `:global()` scoped-CSS gotcha
`settings.store.ts` has `designSystem: 'liquid-glass' | 'material3'`, toggled in Settings
("Дизайн"). It sets `document.documentElement.dataset.design`, and `material3-theme.ts`
generates the full M3 color-role set (`--md-sys-color-*`) from a seed color via
`@material/material-color-utilities` (HCT/dynamic color, dark scheme only).
`material3-tokens.css` holds the static tokens (typescale/shape/elevation/motion) and remaps
the app's shared aliases (`--accent`, `--text-*`, `--radius-*`, `--glass-*`, `--shadow-*`) to
M3 roles, plus force-kills every `backdrop-filter` under `html[data-design='material3']`.
Per-component M3 overrides live at the bottom of each component's own `<style scoped>` block,
selector shape: `html[data-design='material3'] .some-existing-class { ... }`.
**Do not wrap that selector in `:global()`.** `:global(html[data-design='material3']) .foo { }`
compiles (Vue 3.5 `@vue/compiler-sfc`, confirmed via `compileStyle`) to a **bare**
`html[data-design='material3'] { }` — the `.foo` part is silently dropped, and the declared
properties end up applied directly to `<html>` instead of the intended element. With enough
such rules piled onto one file (as happened in `SettingsView.vue`) this can visibly break
rendering (blank screen), and everywhere else it's just a silent no-op — the M3 look you see
elsewhere in the app comes only from the global alias remap in `material3-tokens.css`, not
from the broken per-component rule.
The correct pattern needs **no `:global()` at all** — Vue's scoped-CSS transform already
leaves ancestor combinators alone and only appends the `[data-v-hash]` scoping attribute to
the last compound selector in the chain:
```css
/* CORRECT — compiles to: html[data-design='material3'] .foo[data-v-xxxx] { ... } */
html[data-design='material3'] .foo { color: var(--md-sys-color-on-surface); }
/* BROKEN — compiles to: html[data-design='material3'] { ... }, .foo silently dropped */
:global(html[data-design='material3']) .foo { color: var(--md-sys-color-on-surface); }
```
If you ever get a suspiciously blank/broken screen after adding `html[data-design=...]`
overrides, first check `document.styleSheets` (or the injected `<style data-vite-dev-id=...>`
tag) for the actual compiled selector — don't trust the source file at a glance.

497
package-lock.json generated
View file

@ -9,6 +9,7 @@
"version": "0.2.2",
"hasInstallScript": true,
"dependencies": {
"@material/material-color-utilities": "^0.4.0",
"@tanstack/vue-virtual": "^3.13.6",
"@types/mailparser": "^3.4.6",
"@types/sanitize-html": "^2.16.1",
@ -16,8 +17,6 @@
"dompurify": "^3.2.4",
"dotenv": "^17.3.1",
"electron-store": "^8.2.0",
"ews-javascript-api": "^0.11.0",
"googleapis": "^144.0.0",
"imapflow": "^1.0.171",
"jsdom": "^29.0.1",
"mailparser": "^3.9.6",
@ -1585,6 +1584,12 @@
"node": ">= 10.0.0"
}
},
"node_modules/@material/material-color-utilities": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/@material/material-color-utilities/-/material-color-utilities-0.4.0.tgz",
"integrity": "sha512-dlq6VExJReb8dhjj3a/yTigr3ncNwoFmL5Iy2ENtbDX03EmNeOEdZ+vsaGrj7RTuO+mB7L58II4LCsl4NpM8uw==",
"license": "Apache-2.0"
},
"node_modules/@npmcli/fs": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.1.2.tgz",
@ -2479,6 +2484,7 @@
"version": "0.8.12",
"resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.12.tgz",
"integrity": "sha512-9k/gHF6n/pAi/9tqr3m3aqkuiNosYTurLLUtc7xQ9sxB/wm7WPygCv8GYa6mS0fLJEHhqMC1ATYhz++U/lRHqg==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=10.0.0"
@ -2513,6 +2519,7 @@
"version": "7.1.4",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
"integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">= 14"
@ -2959,6 +2966,7 @@
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
"dev": true,
"funding": [
{
"type": "github",
@ -2997,15 +3005,6 @@
"require-from-string": "^2.0.2"
}
},
"node_modules/bignumber.js": {
"version": "9.3.1",
"resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz",
"integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==",
"license": "MIT",
"engines": {
"node": "*"
}
},
"node_modules/birpc": {
"version": "2.9.0",
"resolved": "https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz",
@ -3015,19 +3014,6 @@
"url": "https://github.com/sponsors/antfu"
}
},
"node_modules/biskviit": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/biskviit/-/biskviit-1.0.1.tgz",
"integrity": "sha512-VGCXdHbdbpEkFgtjkeoBN8vRlbj1ZRX2/mxhE8asCCRalUx2nBzOomLJv8Aw/nRt5+ccDb+tPKidg4XxcfGW4w==",
"license": "MIT",
"optional": true,
"dependencies": {
"psl": "^1.1.7"
},
"engines": {
"node": ">=1.0.0"
}
},
"node_modules/bl": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
@ -3044,7 +3030,7 @@
"version": "3.7.2",
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
"integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==",
"devOptional": true,
"dev": true,
"license": "MIT"
},
"node_modules/bluebird-lst": {
@ -3148,12 +3134,6 @@
"node": "*"
}
},
"node_modules/buffer-equal-constant-time": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
"integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",
"license": "BSD-3-Clause"
},
"node_modules/buffer-from": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
@ -3372,6 +3352,7 @@
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
@ -3381,22 +3362,6 @@
"node": ">= 0.4"
}
},
"node_modules/call-bound": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
"integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
"license": "MIT",
"dependencies": {
"call-bind-apply-helpers": "^1.0.2",
"get-intrinsic": "^1.3.0"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001782",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001782.tgz",
@ -3984,6 +3949,7 @@
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
"dev": true,
"license": "MIT",
"dependencies": {
"ms": "^2.1.3"
@ -4398,6 +4364,7 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
"dev": true,
"license": "MIT",
"dependencies": {
"call-bind-apply-helpers": "^1.0.1",
@ -4415,15 +4382,6 @@
"dev": true,
"license": "MIT"
},
"node_modules/ecdsa-sig-formatter": {
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
"integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
"license": "Apache-2.0",
"dependencies": {
"safe-buffer": "^5.0.1"
}
},
"node_modules/ejs": {
"version": "3.1.10",
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
@ -4689,16 +4647,6 @@
"dev": true,
"license": "MIT"
},
"node_modules/encoding": {
"version": "0.1.12",
"resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz",
"integrity": "sha512-bl1LAgiQc4ZWr++pNYUdRe/alecaHFeHxIJ/pNciqGdKXghaTCOwKkbKp6ye7pKZGu/GcaSXFk8PBVhgs+dJdA==",
"license": "MIT",
"optional": true,
"dependencies": {
"iconv-lite": "~0.4.13"
}
},
"node_modules/encoding-japanese": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-2.2.0.tgz",
@ -4708,19 +4656,6 @@
"node": ">=8.10.0"
}
},
"node_modules/encoding/node_modules/iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
"license": "MIT",
"optional": true,
"dependencies": {
"safer-buffer": ">= 2.1.2 < 3"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/end-of-stream": {
"version": "1.4.5",
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",
@ -4763,6 +4698,7 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@ -4772,6 +4708,7 @@
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@ -4781,6 +4718,7 @@
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
"dev": true,
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0"
@ -4883,23 +4821,6 @@
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
"license": "MIT"
},
"node_modules/ews-javascript-api": {
"version": "0.11.0",
"resolved": "https://registry.npmjs.org/ews-javascript-api/-/ews-javascript-api-0.11.0.tgz",
"integrity": "sha512-qSPYhR0cVeBuYsQGPwVUlv80KrcWtqqR5Li7oms1eZ2+EXa7nKsDdeiM/dcUysRxnZOB0g/n7jFoIlldtK4zKw==",
"license": "MIT",
"dependencies": {
"@xmldom/xmldom": "^0.8.1",
"base64-js": "^1.5.1",
"moment": "^2.29.1",
"moment-timezone": "^0.5.34",
"uuid": "^8.3.2"
},
"optionalDependencies": {
"bluebird": "^3.7.2",
"fetch": "^1.1.0"
}
},
"node_modules/exponential-backoff": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.3.tgz",
@ -4907,12 +4828,6 @@
"dev": true,
"license": "Apache-2.0"
},
"node_modules/extend": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
"license": "MIT"
},
"node_modules/extract-zip": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
@ -5002,17 +4917,6 @@
}
}
},
"node_modules/fetch": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/fetch/-/fetch-1.1.0.tgz",
"integrity": "sha512-5O8TwrGzoNblBG/jtK4NFuZwNCkZX6s5GfRNOaGtm+QGJEuNakSC/i2RW0R93KX6E0jVjNXm6O3CRN4Ql3K+yA==",
"license": "MIT",
"optional": true,
"dependencies": {
"biskviit": "1.0.1",
"encoding": "0.1.12"
}
},
"node_modules/filelist": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.6.tgz",
@ -5174,6 +5078,7 @@
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
"dev": true,
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/ljharb"
@ -5200,49 +5105,6 @@
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
}
},
"node_modules/gaxios": {
"version": "6.7.1",
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz",
"integrity": "sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==",
"license": "Apache-2.0",
"dependencies": {
"extend": "^3.0.2",
"https-proxy-agent": "^7.0.1",
"is-stream": "^2.0.0",
"node-fetch": "^2.6.9",
"uuid": "^9.0.1"
},
"engines": {
"node": ">=14"
}
},
"node_modules/gaxios/node_modules/uuid": {
"version": "9.0.1",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
"integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
"funding": [
"https://github.com/sponsors/broofa",
"https://github.com/sponsors/ctavan"
],
"license": "MIT",
"bin": {
"uuid": "dist/bin/uuid"
}
},
"node_modules/gcp-metadata": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.1.1.tgz",
"integrity": "sha512-a4tiq7E0/5fTjxPAaH4jpjkSv/uCaU2p5KC6HVGrvl0cDjA8iBZv4vv1gyzlmK0ZUKqwpOyQMKzZQe3lTit77A==",
"license": "Apache-2.0",
"dependencies": {
"gaxios": "^6.1.1",
"google-logging-utils": "^0.0.2",
"json-bigint": "^1.0.0"
},
"engines": {
"node": ">=14"
}
},
"node_modules/gensync": {
"version": "1.0.0-beta.2",
"resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
@ -5267,6 +5129,7 @@
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"call-bind-apply-helpers": "^1.0.2",
@ -5291,6 +5154,7 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
"dev": true,
"license": "MIT",
"dependencies": {
"dunder-proto": "^1.0.1",
@ -5420,79 +5284,11 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/google-auth-library": {
"version": "9.15.1",
"resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.15.1.tgz",
"integrity": "sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng==",
"license": "Apache-2.0",
"dependencies": {
"base64-js": "^1.3.0",
"ecdsa-sig-formatter": "^1.0.11",
"gaxios": "^6.1.1",
"gcp-metadata": "^6.1.0",
"gtoken": "^7.0.0",
"jws": "^4.0.0"
},
"engines": {
"node": ">=14"
}
},
"node_modules/google-logging-utils": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-0.0.2.tgz",
"integrity": "sha512-NEgUnEcBiP5HrPzufUkBzJOD/Sxsco3rLNo1F1TNf7ieU8ryUzBhqba8r756CjLX7rn3fHl6iLEwPYuqpoKgQQ==",
"license": "Apache-2.0",
"engines": {
"node": ">=14"
}
},
"node_modules/googleapis": {
"version": "144.0.0",
"resolved": "https://registry.npmjs.org/googleapis/-/googleapis-144.0.0.tgz",
"integrity": "sha512-ELcWOXtJxjPX4vsKMh+7V+jZvgPwYMlEhQFiu2sa9Qmt5veX8nwXPksOWGGN6Zk4xCiLygUyaz7xGtcMO+Onxw==",
"license": "Apache-2.0",
"dependencies": {
"google-auth-library": "^9.0.0",
"googleapis-common": "^7.0.0"
},
"engines": {
"node": ">=14.0.0"
}
},
"node_modules/googleapis-common": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/googleapis-common/-/googleapis-common-7.2.0.tgz",
"integrity": "sha512-/fhDZEJZvOV3X5jmD+fKxMqma5q2Q9nZNSF3kn1F18tpxmA86BcTxAGBQdM0N89Z3bEaIs+HVznSmFJEAmMTjA==",
"license": "Apache-2.0",
"dependencies": {
"extend": "^3.0.2",
"gaxios": "^6.0.3",
"google-auth-library": "^9.7.0",
"qs": "^6.7.0",
"url-template": "^2.0.8",
"uuid": "^9.0.0"
},
"engines": {
"node": ">=14.0.0"
}
},
"node_modules/googleapis-common/node_modules/uuid": {
"version": "9.0.1",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
"integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
"funding": [
"https://github.com/sponsors/broofa",
"https://github.com/sponsors/ctavan"
],
"license": "MIT",
"bin": {
"uuid": "dist/bin/uuid"
}
},
"node_modules/gopd": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@ -5534,19 +5330,6 @@
"dev": true,
"license": "ISC"
},
"node_modules/gtoken": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/gtoken/-/gtoken-7.1.0.tgz",
"integrity": "sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==",
"license": "MIT",
"dependencies": {
"gaxios": "^6.0.0",
"jws": "^4.0.0"
},
"engines": {
"node": ">=14.0.0"
}
},
"node_modules/has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
@ -5575,6 +5358,7 @@
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@ -5610,6 +5394,7 @@
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"function-bind": "^1.1.2"
@ -5783,6 +5568,7 @@
"version": "7.0.6",
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
"integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
"dev": true,
"license": "MIT",
"dependencies": {
"agent-base": "^7.1.2",
@ -6005,18 +5791,6 @@
"integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",
"license": "MIT"
},
"node_modules/is-stream": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
"integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
"license": "MIT",
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/is-unicode-supported": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
@ -6221,15 +5995,6 @@
"node": ">=6"
}
},
"node_modules/json-bigint": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz",
"integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==",
"license": "MIT",
"dependencies": {
"bignumber.js": "^9.0.0"
}
},
"node_modules/json-buffer": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
@ -6281,27 +6046,6 @@
"graceful-fs": "^4.1.6"
}
},
"node_modules/jwa": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz",
"integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==",
"license": "MIT",
"dependencies": {
"buffer-equal-constant-time": "^1.0.1",
"ecdsa-sig-formatter": "1.0.11",
"safe-buffer": "^5.0.1"
}
},
"node_modules/jws": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz",
"integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==",
"license": "MIT",
"dependencies": {
"jwa": "^2.0.1",
"safe-buffer": "^5.0.1"
}
},
"node_modules/keyv": {
"version": "4.5.4",
"resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
@ -6649,6 +6393,7 @@
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@ -6882,31 +6627,11 @@
"node": ">=10"
}
},
"node_modules/moment": {
"version": "2.30.1",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
"integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
"license": "MIT",
"engines": {
"node": "*"
}
},
"node_modules/moment-timezone": {
"version": "0.5.48",
"resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.48.tgz",
"integrity": "sha512-f22b8LV1gbTO2ms2j2z13MuPogNoh5UzxL3nzNAYKGraILnbGc9NEE6dyiiiLv46DGRb8A4kg8UKWLjPthxBHw==",
"license": "MIT",
"dependencies": {
"moment": "^2.29.4"
},
"engines": {
"node": "*"
}
},
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
"dev": true,
"license": "MIT"
},
"node_modules/muggle-string": {
@ -7001,26 +6726,6 @@
"node": ">=10"
}
},
"node_modules/node-fetch": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
"integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
"license": "MIT",
"dependencies": {
"whatwg-url": "^5.0.0"
},
"engines": {
"node": "4.x || >=6.0.0"
},
"peerDependencies": {
"encoding": "^0.1.0"
},
"peerDependenciesMeta": {
"encoding": {
"optional": true
}
}
},
"node_modules/node-gyp": {
"version": "9.4.1",
"resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-9.4.1.tgz",
@ -7133,18 +6838,6 @@
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
}
},
"node_modules/object-inspect": {
"version": "1.13.4",
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
"integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/object-keys": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
@ -7636,19 +7329,6 @@
"node": ">=10"
}
},
"node_modules/psl": {
"version": "1.15.0",
"resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz",
"integrity": "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==",
"license": "MIT",
"optional": true,
"dependencies": {
"punycode": "^2.3.1"
},
"funding": {
"url": "https://github.com/sponsors/lupomontero"
}
},
"node_modules/pump": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz",
@ -7678,21 +7358,6 @@
"node": ">=6"
}
},
"node_modules/qs": {
"version": "6.15.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.15.0.tgz",
"integrity": "sha512-mAZTtNCeetKMH+pSjrb76NAM8V9a05I9aBZOHztWy/UqcJdQYNsf59vrRKWnojAT9Y+GbIvoTBC++CPHqpDBhQ==",
"license": "BSD-3-Clause",
"dependencies": {
"side-channel": "^1.1.0"
},
"engines": {
"node": ">=0.6"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/quick-format-unescaped": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz",
@ -7965,6 +7630,7 @@
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
"dev": true,
"funding": [
{
"type": "github",
@ -8133,78 +7799,6 @@
"node": ">=8"
}
},
"node_modules/side-channel": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
"object-inspect": "^1.13.3",
"side-channel-list": "^1.0.0",
"side-channel-map": "^1.0.1",
"side-channel-weakmap": "^1.0.2"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/side-channel-list": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
"integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
"object-inspect": "^1.13.3"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/side-channel-map": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
"license": "MIT",
"dependencies": {
"call-bound": "^1.0.2",
"es-errors": "^1.3.0",
"get-intrinsic": "^1.2.5",
"object-inspect": "^1.13.3"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/side-channel-weakmap": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
"license": "MIT",
"dependencies": {
"call-bound": "^1.0.2",
"es-errors": "^1.3.0",
"get-intrinsic": "^1.2.5",
"object-inspect": "^1.13.3",
"side-channel-map": "^1.0.1"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/signal-exit": {
"version": "3.0.7",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
@ -8697,12 +8291,6 @@
"node": ">=16"
}
},
"node_modules/tr46": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
"license": "MIT"
},
"node_modules/truncate-utf8-bytes": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",
@ -8837,12 +8425,6 @@
"punycode": "^2.1.0"
}
},
"node_modules/url-template": {
"version": "2.0.8",
"resolved": "https://registry.npmjs.org/url-template/-/url-template-2.0.8.tgz",
"integrity": "sha512-XdVKMF4SJ0nP/O7XIPB0JwAEuT9lDIYnNsK8yGVe43y0AWoKeJNdv3ZNWh7ksJ6KqQFjOO6ox/VEitLnaVNufw==",
"license": "BSD"
},
"node_modules/utf8-byte-length": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz",
@ -8857,15 +8439,6 @@
"dev": true,
"license": "MIT"
},
"node_modules/uuid": {
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
"license": "MIT",
"bin": {
"uuid": "dist/bin/uuid"
}
},
"node_modules/verror": {
"version": "1.10.1",
"resolved": "https://registry.npmjs.org/verror/-/verror-1.10.1.tgz",
@ -9045,12 +8618,6 @@
"defaults": "^1.0.3"
}
},
"node_modules/webidl-conversions": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
"license": "BSD-2-Clause"
},
"node_modules/whatwg-mimetype": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz",
@ -9060,16 +8627,6 @@
"node": ">=20"
}
},
"node_modules/whatwg-url": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
"license": "MIT",
"dependencies": {
"tr46": "~0.0.3",
"webidl-conversions": "^3.0.0"
}
},
"node_modules/which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",

View file

@ -21,6 +21,7 @@
"typecheck": "npm run typecheck:node && npm run typecheck:web"
},
"dependencies": {
"@material/material-color-utilities": "^0.4.0",
"@tanstack/vue-virtual": "^3.13.6",
"@types/mailparser": "^3.4.6",
"@types/sanitize-html": "^2.16.1",

View file

@ -184,3 +184,56 @@ textarea:focus {
clip: rect(0, 0, 0, 0);
border: 0;
}
/* ══════════════════════════════════════════════════════════
Material 3 — глобальные оверрайды input/select/textarea,
скроллбара и tooltip (activно только при html[data-design="material3"])
══════════════════════════════════════════════════════════ */
html[data-design='material3'] input,
html[data-design='material3'] select,
html[data-design='material3'] textarea {
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline);
border-radius: var(--md-sys-shape-corner-small);
box-shadow: none;
font-size: var(--md-sys-typescale-body-large-size);
line-height: var(--md-sys-typescale-body-large-line);
}
html[data-design='material3'] input:hover:not(:focus),
html[data-design='material3'] select:hover:not(:focus),
html[data-design='material3'] textarea:hover:not(:focus) {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 4%, var(--md-sys-color-surface-container-highest));
border-color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] input:focus,
html[data-design='material3'] select:focus,
html[data-design='material3'] textarea:focus {
background: var(--md-sys-color-surface-container-highest);
border-color: var(--md-sys-color-primary);
box-shadow: inset 0 0 0 1px var(--md-sys-color-primary);
}
/* ── Scrollbar ─────────────────────────────────────────── */
html[data-design='material3'] ::-webkit-scrollbar-thumb {
background: var(--md-sys-color-outline);
border-radius: var(--md-sys-shape-corner-full);
}
html[data-design='material3'] ::-webkit-scrollbar-thumb:hover {
background: var(--md-sys-color-on-surface-variant);
}
/* ── Tooltip (M3 plain tooltip: inverse-surface/inverse-on-surface) ── */
html[data-design='material3'] .app-tooltip {
background: var(--md-sys-color-inverse-surface);
color: var(--md-sys-color-inverse-on-surface);
border: none;
border-radius: var(--md-sys-shape-corner-extra-small);
box-shadow: var(--md-sys-elevation-2);
font-size: var(--md-sys-typescale-body-small-size);
font-weight: var(--md-sys-typescale-body-small-weight);
line-height: var(--md-sys-typescale-body-small-line);
}

View file

@ -0,0 +1,208 @@
/*
* Material Design 3 — статические токены (не зависят от seed-цвета).
* Цветовые роли (--md-sys-color-*) генерируются динамически в material3-theme.ts.
* Активны только при html[data-design="material3"] — в liquid-glass режиме не используются.
*/
html[data-design='material3'] {
/* ── Типографика: 15 стилей M3 (Display/Headline/Title/Body/Label × L/M/S) ── */
--md-sys-typescale-display-large-size: 3.5625rem;
--md-sys-typescale-display-large-line: 4rem;
--md-sys-typescale-display-large-weight: 400;
--md-sys-typescale-display-large-tracking: -0.015625rem;
--md-sys-typescale-display-medium-size: 2.8125rem;
--md-sys-typescale-display-medium-line: 3.25rem;
--md-sys-typescale-display-medium-weight: 400;
--md-sys-typescale-display-medium-tracking: 0;
--md-sys-typescale-display-small-size: 2.25rem;
--md-sys-typescale-display-small-line: 2.75rem;
--md-sys-typescale-display-small-weight: 400;
--md-sys-typescale-display-small-tracking: 0;
--md-sys-typescale-headline-large-size: 2rem;
--md-sys-typescale-headline-large-line: 2.5rem;
--md-sys-typescale-headline-large-weight: 400;
--md-sys-typescale-headline-large-tracking: 0;
--md-sys-typescale-headline-medium-size: 1.75rem;
--md-sys-typescale-headline-medium-line: 2.25rem;
--md-sys-typescale-headline-medium-weight: 400;
--md-sys-typescale-headline-medium-tracking: 0;
--md-sys-typescale-headline-small-size: 1.5rem;
--md-sys-typescale-headline-small-line: 2rem;
--md-sys-typescale-headline-small-weight: 400;
--md-sys-typescale-headline-small-tracking: 0;
--md-sys-typescale-title-large-size: 1.375rem;
--md-sys-typescale-title-large-line: 1.75rem;
--md-sys-typescale-title-large-weight: 400;
--md-sys-typescale-title-large-tracking: 0;
--md-sys-typescale-title-medium-size: 1rem;
--md-sys-typescale-title-medium-line: 1.5rem;
--md-sys-typescale-title-medium-weight: 500;
--md-sys-typescale-title-medium-tracking: 0.009375rem;
--md-sys-typescale-title-small-size: 0.875rem;
--md-sys-typescale-title-small-line: 1.25rem;
--md-sys-typescale-title-small-weight: 500;
--md-sys-typescale-title-small-tracking: 0.00625rem;
--md-sys-typescale-body-large-size: 1rem;
--md-sys-typescale-body-large-line: 1.5rem;
--md-sys-typescale-body-large-weight: 400;
--md-sys-typescale-body-large-tracking: 0.03125rem;
--md-sys-typescale-body-medium-size: 0.875rem;
--md-sys-typescale-body-medium-line: 1.25rem;
--md-sys-typescale-body-medium-weight: 400;
--md-sys-typescale-body-medium-tracking: 0.015625rem;
--md-sys-typescale-body-small-size: 0.75rem;
--md-sys-typescale-body-small-line: 1rem;
--md-sys-typescale-body-small-weight: 400;
--md-sys-typescale-body-small-tracking: 0.025rem;
--md-sys-typescale-label-large-size: 0.875rem;
--md-sys-typescale-label-large-line: 1.25rem;
--md-sys-typescale-label-large-weight: 500;
--md-sys-typescale-label-large-tracking: 0.00625rem;
--md-sys-typescale-label-medium-size: 0.75rem;
--md-sys-typescale-label-medium-line: 1rem;
--md-sys-typescale-label-medium-weight: 500;
--md-sys-typescale-label-medium-tracking: 0.03125rem;
--md-sys-typescale-label-small-size: 0.6875rem;
--md-sys-typescale-label-small-line: 1rem;
--md-sys-typescale-label-small-weight: 500;
--md-sys-typescale-label-small-tracking: 0.03125rem;
/* ── Shape scale (7 уровней) ── */
--md-sys-shape-corner-none: 0px;
--md-sys-shape-corner-extra-small: 4px;
--md-sys-shape-corner-small: 8px;
--md-sys-shape-corner-medium: 12px;
--md-sys-shape-corner-large: 16px;
--md-sys-shape-corner-large-increased: 20px;
--md-sys-shape-corner-extra-large: 28px;
--md-sys-shape-corner-extra-large-increased: 32px;
--md-sys-shape-corner-full: 9999px;
/* ── Elevation (тени применяются точечно — MD3 в основном использует tonal surfaces) ── */
--md-sys-elevation-0: none;
--md-sys-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
--md-sys-elevation-2: 0 1px 2px rgba(0, 0, 0, 0.30), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
--md-sys-elevation-3: 0 4px 8px 3px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.30);
--md-sys-elevation-4: 0 6px 10px 4px rgba(0, 0, 0, 0.15), 0 2px 3px rgba(0, 0, 0, 0.30);
--md-sys-elevation-5: 0 8px 12px 6px rgba(0, 0, 0, 0.15), 0 4px 4px rgba(0, 0, 0, 0.30);
/* ── State layer opacity (hover/focus/pressed/dragged поверх on-* цвета) ── */
--md-sys-state-hover-opacity: 0.08;
--md-sys-state-focus-opacity: 0.10;
--md-sys-state-pressed-opacity: 0.10;
--md-sys-state-dragged-opacity: 0.16;
/* ── Motion ── */
--md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
--md-sys-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
--md-sys-motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
--md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
--md-sys-motion-easing-standard-decelerate: cubic-bezier(0, 0, 0, 1);
--md-sys-motion-easing-standard-accelerate: cubic-bezier(0.3, 0, 1, 1);
--md-sys-motion-duration-short1: 50ms;
--md-sys-motion-duration-short2: 100ms;
--md-sys-motion-duration-short3: 150ms;
--md-sys-motion-duration-short4: 200ms;
--md-sys-motion-duration-medium1: 250ms;
--md-sys-motion-duration-medium2: 300ms;
--md-sys-motion-duration-medium3: 350ms;
--md-sys-motion-duration-medium4: 400ms;
--md-sys-motion-duration-long1: 450ms;
--md-sys-motion-duration-long2: 500ms;
/* ── Typeface ── */
--md-ref-typeface-plain: var(--font-sans);
--md-ref-typeface-brand: var(--font-sans);
/*
* ── Ремаппинг существующих алиасов проекта на M3-роли ──
* Даёт базовый эффект темы сразу везде, где компоненты уже используют
* --accent/--text-*/--border/--radius-*/--bg-* — до точечных M3-переопределений
* конкретных компонентов (см. html[data-design='material3'] .foo {} в *.vue —
* БЕЗ :global(), см. готчу в CLAUDE.md).
*/
--base-bg: var(--md-sys-color-surface);
--glass-bg-subtle: var(--md-sys-color-surface-container-lowest);
--glass-bg: var(--md-sys-color-surface-container-low);
--glass-bg-raised: var(--md-sys-color-surface-container);
--glass-bg-hover: var(--md-sys-color-surface-container-high);
--glass-bg-active: var(--md-sys-color-surface-container-highest);
--glass-border: var(--md-sys-color-outline-variant);
--glass-border-strong: var(--md-sys-color-outline);
--glass-specular: none;
--glass-prismatic: none;
--glass-card-bg: var(--md-sys-color-surface-container);
--glass-card-blur: none;
--blur-sm: none;
--blur-md: none;
--blur-lg: none;
--blur-xl: none;
--bg-primary: var(--md-sys-color-surface);
--bg-secondary: var(--md-sys-color-surface-container-low);
--bg-tertiary: var(--md-sys-color-surface-container);
--bg-hover: var(--md-sys-color-surface-container-high);
--bg-selected: var(--md-sys-color-secondary-container);
--bg-input: var(--md-sys-color-surface-container-highest);
--bg-elevated: var(--md-sys-color-surface-container-high);
--border: var(--md-sys-color-outline-variant);
--border-light: var(--md-sys-color-outline);
--text-primary: var(--md-sys-color-on-surface);
--text-secondary: var(--md-sys-color-on-surface-variant);
--text-muted: color-mix(in srgb, var(--md-sys-color-on-surface-variant) 65%, transparent);
--accent: var(--md-sys-color-primary);
--accent-hover: var(--md-sys-color-inverse-primary);
--accent-muted: var(--md-sys-color-primary-container);
--accent-text: var(--md-sys-color-on-primary);
--danger: var(--md-sys-color-error);
--warning: #f0a500;
--success: #4ade80;
--radius-xs: var(--md-sys-shape-corner-extra-small);
--radius-sm: var(--md-sys-shape-corner-small);
--radius-md: var(--md-sys-shape-corner-medium);
--radius-lg: var(--md-sys-shape-corner-large);
--radius-xl: var(--md-sys-shape-corner-extra-large);
--radius-full: var(--md-sys-shape-corner-full);
--shadow-sm: var(--md-sys-elevation-1);
--shadow-md: var(--md-sys-elevation-2);
--shadow-lg: var(--md-sys-elevation-3);
--shadow-xl: var(--md-sys-elevation-4);
--transition-fast: var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
--transition-normal: var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard);
}
/* Плоские M3-поверхности — глушим все backdrop-filter вместо тонны точечных переопределений */
html[data-design='material3'] * {
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
}
/* Базовый градиентный фон liquid-glass заменяем плоской M3 surface */
html[data-design='material3'] body {
background: var(--md-sys-color-surface) !important;
}

View file

@ -260,6 +260,38 @@ onUnmounted(() => document.removeEventListener('mousedown', onDocClick))
transition: transform var(--transition-fast);
}
.cp-chevron.rotated { transform: rotate(180deg); }
/* ── Material 3 ── */
html[data-design='material3'] .cp-trigger {
border-radius: var(--md-sys-shape-corner-small);
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .cp-trigger:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-highest));
border-color: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .cp-trigger.open {
border-color: var(--md-sys-color-primary);
box-shadow: 0 0 0 1px var(--md-sys-color-primary);
}
html[data-design='material3'] .cp-swatch {
border: 1.5px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .cp-hex-label {
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .cp-chevron {
color: var(--md-sys-color-on-surface-variant);
}
</style>
<!-- Panel телепортируется в body — нужны глобальные стили -->
@ -381,4 +413,40 @@ onUnmounted(() => document.removeEventListener('mousedown', onDocClick))
inset 0 1px 0 rgba(255, 255, 255, 0.08),
0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
/* ── Material 3 ── */
html[data-design='material3'] .cp-panel {
background: var(--md-sys-color-surface-container-high);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-shape-corner-medium);
box-shadow: var(--md-sys-elevation-2);
}
html[data-design='material3'] .cp-sb {
box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-shape-corner-extra-small);
}
html[data-design='material3'] .cp-hue {
border-radius: var(--md-sys-shape-corner-full);
box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .cp-preview {
border: 1.5px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .cp-hex-input {
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline);
border-radius: var(--md-sys-shape-corner-small);
color: var(--md-sys-color-on-surface);
box-shadow: none;
}
html[data-design='material3'] .cp-hex-input:focus {
border-color: var(--md-sys-color-primary);
box-shadow: 0 0 0 1px var(--md-sys-color-primary);
}
</style>

View file

@ -157,6 +157,30 @@ onUnmounted(() => document.removeEventListener('mousedown', onDocClick))
.select-arrow.rotated {
transform: rotate(180deg);
}
/* ── Material 3 (Text field trigger) ── */
html[data-design='material3'] .select-trigger {
border-radius: var(--md-sys-shape-corner-small);
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline);
box-shadow: none;
font-size: var(--md-sys-typescale-body-large-size);
}
html[data-design='material3'] .select-trigger:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-highest));
border-color: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .open .select-trigger {
border-color: var(--md-sys-color-primary);
box-shadow: 0 0 0 1px var(--md-sys-color-primary);
}
html[data-design='material3'] .select-arrow {
color: var(--md-sys-color-on-surface-variant);
}
</style>
<!-- Dropdown телепортируется в body — scoped не работает, нужны глобальные стили -->
@ -208,4 +232,31 @@ onUnmounted(() => document.removeEventListener('mousedown', onDocClick))
justify-content: center;
color: var(--accent);
}
/* ── Material 3 (Menu) ── */
html[data-design='material3'] .select-dropdown {
background: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-shape-corner-small);
box-shadow: var(--md-sys-elevation-2);
}
html[data-design='material3'] .select-option {
border-radius: var(--md-sys-shape-corner-extra-small);
font-size: var(--md-sys-typescale-body-medium-size);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .select-option:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .select-option.active {
color: var(--md-sys-color-primary);
}
html[data-design='material3'] .option-check {
color: var(--md-sys-color-primary);
}
</style>

View file

@ -0,0 +1,97 @@
<script setup lang="ts">
const props = defineProps<{
modelValue: boolean
}>()
const emit = defineEmits<{
'update:modelValue': [value: boolean]
}>()
function toggle(): void {
emit('update:modelValue', !props.modelValue)
}
</script>
<template>
<button
type="button"
role="switch"
:aria-checked="modelValue"
class="switch"
:class="{ checked: modelValue }"
@click="toggle"
>
<span class="switch-track">
<span class="switch-thumb" />
</span>
</button>
</template>
<style scoped>
.switch {
display: inline-flex;
align-items: center;
flex-shrink: 0;
}
.switch-track {
position: relative;
width: 40px;
height: 24px;
border-radius: var(--radius-full);
background: var(--bg-input);
border: 1px solid var(--border-light);
transition: background var(--transition-fast), border-color var(--transition-fast);
}
.switch.checked .switch-track {
background: var(--accent);
border-color: var(--accent);
}
.switch-thumb {
position: absolute;
top: 2px;
left: 2px;
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--text-primary);
box-shadow: var(--shadow-sm);
transition: transform var(--transition-fast), background var(--transition-fast);
}
.switch.checked .switch-thumb {
transform: translateX(16px);
background: var(--accent-text);
}
/* ── Material 3 ── */
html[data-design='material3'] .switch-track {
background: var(--md-sys-color-surface-container-highest);
border: 2px solid var(--md-sys-color-outline);
}
html[data-design='material3'] .switch.checked .switch-track {
background: var(--md-sys-color-primary);
border-color: var(--md-sys-color-primary);
}
html[data-design='material3'] .switch-thumb {
top: 6px;
left: 5px;
width: 10px;
height: 10px;
background: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .switch.checked .switch-thumb {
top: 3px;
left: 3px;
width: 16px;
height: 16px;
transform: translateX(15px);
background: var(--md-sys-color-on-primary);
}
</style>

View file

@ -176,4 +176,54 @@ const updater = useUpdaterStore()
opacity: 0;
transform: translateX(-50%) translateY(12px);
}
/* ── Material 3 ── */
html[data-design='material3'] .banner-body {
background: var(--md-sys-color-primary-container);
border: none;
border-radius: var(--md-sys-shape-corner-extra-small);
box-shadow: var(--md-sys-elevation-2);
}
html[data-design='material3'] .banner-icon {
color: var(--md-sys-color-on-primary-container);
}
html[data-design='material3'] .banner-title {
color: var(--md-sys-color-on-primary-container);
font-size: var(--md-sys-typescale-title-small-size);
font-weight: var(--md-sys-typescale-title-small-weight);
}
html[data-design='material3'] .banner-sub {
color: color-mix(in srgb, var(--md-sys-color-on-primary-container) 75%, transparent);
font-size: var(--md-sys-typescale-body-small-size);
}
html[data-design='material3'] .banner-progress-wrap {
background: color-mix(in srgb, var(--md-sys-color-on-primary-container) 20%, transparent);
border-radius: 0 0 var(--md-sys-shape-corner-extra-small) var(--md-sys-shape-corner-extra-small);
}
html[data-design='material3'] .banner-progress-bar {
background: var(--md-sys-color-primary);
border-radius: 0 0 var(--md-sys-shape-corner-extra-small) var(--md-sys-shape-corner-extra-small);
}
html[data-design='material3'] .btn-primary {
background: var(--md-sys-color-primary);
color: var(--md-sys-color-on-primary);
border-radius: var(--md-sys-shape-corner-full);
font-size: var(--md-sys-typescale-label-large-size);
font-weight: var(--md-sys-typescale-label-large-weight);
}
html[data-design='material3'] .btn-dismiss {
color: var(--md-sys-color-on-primary-container);
}
html[data-design='material3'] .btn-dismiss:hover {
background: color-mix(in srgb, var(--md-sys-color-on-primary-container) 12%, transparent);
color: var(--md-sys-color-on-primary-container);
}
</style>

View file

@ -888,4 +888,244 @@ const providerName = computed(() => detectedPreset.value?.name ?? 'IMAP')
color: var(--text-muted);
margin: 0;
}
/* ══════════════════════════════════════════════════════════════════════════
Material Design 3 — переопределения (активны только под data-design=material3)
══════════════════════════════════════════════════════════════════════════ */
/* Overlay — скрим вместо стеклянного затемнения */
html[data-design='material3'] .dialog-overlay {
background: color-mix(in srgb, var(--md-sys-color-scrim) 32%, transparent);
}
/* Модальный диалог — elevation-3, extra-large shape, surface-container-high */
html[data-design='material3'] .dialog {
background: var(--md-sys-color-surface-container-high);
border-radius: var(--md-sys-shape-corner-extra-large);
box-shadow: var(--md-sys-elevation-3);
}
html[data-design='material3'] .dialog::before {
display: none;
}
html[data-design='material3'] .dialog-header {
background: transparent;
border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .header-avatar {
background: var(--md-sys-color-primary-container);
border: none;
box-shadow: none;
color: var(--md-sys-color-on-primary-container);
}
/* Заголовок диалога — headline-small согласно контракту */
html[data-design='material3'] .header-text h2 {
font-size: var(--md-sys-typescale-headline-small-size);
line-height: var(--md-sys-typescale-headline-small-line);
font-weight: var(--md-sys-typescale-headline-small-weight);
letter-spacing: var(--md-sys-typescale-headline-small-tracking);
}
html[data-design='material3'] .close-btn {
background: transparent;
border: none;
box-shadow: none;
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .close-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .dialog-body {
scrollbar-color: var(--md-sys-color-outline-variant) transparent;
}
/* Предупреждение о keychain — тонированный tertiary (у M3 нет отдельной warning-роли) */
html[data-design='material3'] .warn-msg {
background: var(--md-sys-color-tertiary-container);
border: 1px solid transparent;
color: var(--md-sys-color-on-tertiary-container);
}
html[data-design='material3'] .error-msg {
background: var(--md-sys-color-error-container);
border: 1px solid transparent;
color: var(--md-sys-color-on-error-container);
}
/* Подписи полей формы — body-small согласно контракту */
html[data-design='material3'] .form-group label:not(.checkbox-label):not(.toggle-switch) {
color: var(--md-sys-color-on-surface-variant);
font-size: var(--md-sys-typescale-body-small-size);
line-height: var(--md-sys-typescale-body-small-line);
font-weight: var(--md-sys-typescale-body-small-weight);
letter-spacing: var(--md-sys-typescale-body-small-tracking);
text-transform: none;
}
/* Текстовые поля — Outlined text field, shape small */
html[data-design='material3'] .form-group input[type="text"],
html[data-design='material3'] .form-group input[type="password"],
html[data-design='material3'] .form-group input[type="number"] {
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline);
border-top-color: var(--md-sys-color-outline);
color: var(--md-sys-color-on-surface);
box-shadow: none;
border-radius: var(--md-sys-shape-corner-small);
}
html[data-design='material3'] .form-group input:focus {
background: var(--md-sys-color-surface-container-highest);
border-color: var(--md-sys-color-primary);
border-top-color: var(--md-sys-color-primary);
box-shadow: 0 0 0 1px var(--md-sys-color-primary);
}
html[data-design='material3'] .section-sep::before,
html[data-design='material3'] .section-sep::after {
background: var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .section-label-text {
font-size: var(--md-sys-typescale-label-small-size);
line-height: var(--md-sys-typescale-label-small-line);
font-weight: var(--md-sys-typescale-label-small-weight);
letter-spacing: var(--md-sys-typescale-label-small-tracking);
color: var(--md-sys-color-on-surface-variant);
text-transform: none;
}
/* Переключатель SSL/TLS */
html[data-design='material3'] .toggle-track {
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .toggle-track::after {
background: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .toggle-switch input:checked + .toggle-track {
background: var(--md-sys-color-primary);
border-color: var(--md-sys-color-primary);
box-shadow: none;
}
html[data-design='material3'] .toggle-switch input:checked + .toggle-track::after {
background: var(--md-sys-color-on-primary);
}
/* Чекбокс "самоподписанные сертификаты" */
html[data-design='material3'] .checkbox-label {
font-size: var(--md-sys-typescale-body-small-size);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .checkbox-label input[type="checkbox"] {
background: transparent;
border: 2px solid var(--md-sys-color-outline);
border-top-color: var(--md-sys-color-outline);
box-shadow: none;
border-radius: var(--md-sys-shape-corner-extra-small);
}
html[data-design='material3'] .checkbox-label input[type="checkbox"]:checked {
background: var(--md-sys-color-primary);
border-color: var(--md-sys-color-primary);
}
html[data-design='material3'] .checkbox-label input[type="checkbox"]:checked::after {
border-color: var(--md-sys-color-on-primary);
border-top: none;
border-left: none;
}
/* Кнопка отправки формы — Filled button, полная форма, label-large */
html[data-design='material3'] .submit-btn {
border-radius: var(--md-sys-shape-corner-full);
font-size: var(--md-sys-typescale-label-large-size);
font-weight: var(--md-sys-typescale-label-large-weight);
letter-spacing: var(--md-sys-typescale-label-large-tracking);
box-shadow: none;
}
html[data-design='material3'] .submit-btn:hover:not(:disabled) {
box-shadow: var(--md-sys-elevation-1);
}
/* Проверка подключения — строки статусов через контейнерные роли */
html[data-design='material3'] .check-row {
background: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-shape-corner-medium);
}
html[data-design='material3'] .check-row.ok {
background: var(--md-sys-color-tertiary-container);
border-color: transparent;
}
html[data-design='material3'] .check-row.ok .check-label,
html[data-design='material3'] .check-row.ok .check-detail {
color: var(--md-sys-color-on-tertiary-container);
}
html[data-design='material3'] .check-row.error {
background: var(--md-sys-color-error-container);
border-color: transparent;
}
html[data-design='material3'] .check-row.error .check-label,
html[data-design='material3'] .check-row.error .check-detail {
color: var(--md-sys-color-on-error-container);
}
html[data-design='material3'] .check-icon {
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .check-spinner {
border: 2px solid var(--md-sys-color-outline-variant);
border-top-color: var(--md-sys-color-primary);
}
html[data-design='material3'] .check-idle {
background: var(--md-sys-color-outline-variant);
}
/* Экран успеха */
html[data-design='material3'] .success-check {
background: var(--md-sys-color-primary-container);
border: none;
box-shadow: none;
color: var(--md-sys-color-on-primary-container);
}
html[data-design='material3'] .success-title {
font-size: var(--md-sys-typescale-title-medium-size);
line-height: var(--md-sys-typescale-title-medium-line);
font-weight: var(--md-sys-typescale-title-medium-weight);
letter-spacing: var(--md-sys-typescale-title-medium-tracking);
}
html[data-design='material3'] .success-account {
background: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-shape-corner-medium);
}
html[data-design='material3'] .success-avatar {
background: var(--md-sys-color-primary-container);
border: none;
color: var(--md-sys-color-on-primary-container);
}
</style>

View file

@ -693,4 +693,219 @@ const isFormValid = computed(() => email.value.trim() && imapHost.value && smtpH
.check-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.check-detail { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
/* ══════════════════════════════════════════════════════════════════════════
Material Design 3 — переопределения (активны только под data-design=material3)
══════════════════════════════════════════════════════════════════════════ */
/* Overlay — скрим вместо стеклянного затемнения */
html[data-design='material3'] .dialog-overlay {
background: color-mix(in srgb, var(--md-sys-color-scrim) 32%, transparent);
}
/* Модальный диалог — elevation-3, extra-large shape, surface-container-high */
html[data-design='material3'] .dialog {
background: var(--md-sys-color-surface-container-high);
border-radius: var(--md-sys-shape-corner-extra-large);
box-shadow: var(--md-sys-elevation-3);
}
html[data-design='material3'] .dialog::before {
display: none;
}
html[data-design='material3'] .dialog-header {
background: transparent;
border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .header-avatar {
background: var(--md-sys-color-primary-container);
border: none;
box-shadow: none;
color: var(--md-sys-color-on-primary-container);
}
/* Заголовок диалога — headline-small согласно контракту */
html[data-design='material3'] .header-text h2 {
font-size: var(--md-sys-typescale-headline-small-size);
line-height: var(--md-sys-typescale-headline-small-line);
font-weight: var(--md-sys-typescale-headline-small-weight);
letter-spacing: var(--md-sys-typescale-headline-small-tracking);
}
html[data-design='material3'] .header-sub {
font-size: var(--md-sys-typescale-body-small-size);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .close-btn {
background: transparent;
border: none;
box-shadow: none;
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .close-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .dialog-body {
scrollbar-color: var(--md-sys-color-outline-variant) transparent;
}
html[data-design='material3'] .error-msg {
background: var(--md-sys-color-error-container);
border: 1px solid transparent;
color: var(--md-sys-color-on-error-container);
}
/* Подписи полей формы — body-small согласно контракту */
html[data-design='material3'] .form-group label:not(.checkbox-label):not(.toggle-switch) {
color: var(--md-sys-color-on-surface-variant);
font-size: var(--md-sys-typescale-body-small-size);
line-height: var(--md-sys-typescale-body-small-line);
font-weight: var(--md-sys-typescale-body-small-weight);
letter-spacing: var(--md-sys-typescale-body-small-tracking);
text-transform: none;
}
html[data-design='material3'] .field-hint {
color: var(--md-sys-color-on-surface-variant);
}
/* Текстовые поля — Outlined text field, shape small */
html[data-design='material3'] .form-group input[type="text"],
html[data-design='material3'] .form-group input[type="password"],
html[data-design='material3'] .form-group input[type="number"] {
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline);
border-top-color: var(--md-sys-color-outline);
color: var(--md-sys-color-on-surface);
box-shadow: none;
border-radius: var(--md-sys-shape-corner-small);
}
html[data-design='material3'] .form-group input:focus {
background: var(--md-sys-color-surface-container-highest);
border-color: var(--md-sys-color-primary);
border-top-color: var(--md-sys-color-primary);
box-shadow: 0 0 0 1px var(--md-sys-color-primary);
}
html[data-design='material3'] .section-sep::before,
html[data-design='material3'] .section-sep::after {
background: var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .section-label-text {
font-size: var(--md-sys-typescale-label-small-size);
line-height: var(--md-sys-typescale-label-small-line);
font-weight: var(--md-sys-typescale-label-small-weight);
letter-spacing: var(--md-sys-typescale-label-small-tracking);
color: var(--md-sys-color-on-surface-variant);
text-transform: none;
}
/* Переключатель SSL/TLS */
html[data-design='material3'] .toggle-track {
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .toggle-track::after {
background: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .toggle-switch input:checked + .toggle-track {
background: var(--md-sys-color-primary);
border-color: var(--md-sys-color-primary);
box-shadow: none;
}
html[data-design='material3'] .toggle-switch input:checked + .toggle-track::after {
background: var(--md-sys-color-on-primary);
}
/* Чекбокс "самоподписанные сертификаты" */
html[data-design='material3'] .checkbox-label {
font-size: var(--md-sys-typescale-body-small-size);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .checkbox-label input[type="checkbox"] {
background: transparent;
border: 2px solid var(--md-sys-color-outline);
border-top-color: var(--md-sys-color-outline);
box-shadow: none;
border-radius: var(--md-sys-shape-corner-extra-small);
}
html[data-design='material3'] .checkbox-label input[type="checkbox"]:checked {
background: var(--md-sys-color-primary);
border-color: var(--md-sys-color-primary);
}
html[data-design='material3'] .checkbox-label input[type="checkbox"]:checked::after {
border-color: var(--md-sys-color-on-primary);
border-top: none;
border-left: none;
}
/* Кнопка сохранения — Filled button, полная форма, label-large */
html[data-design='material3'] .submit-btn {
border-radius: var(--md-sys-shape-corner-full);
font-size: var(--md-sys-typescale-label-large-size);
font-weight: var(--md-sys-typescale-label-large-weight);
letter-spacing: var(--md-sys-typescale-label-large-tracking);
box-shadow: none;
}
html[data-design='material3'] .submit-btn:hover:not(:disabled) {
box-shadow: var(--md-sys-elevation-1);
}
/* Проверка подключения — строки статусов через контейнерные роли */
html[data-design='material3'] .check-row {
background: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-shape-corner-medium);
}
html[data-design='material3'] .check-row.ok {
background: var(--md-sys-color-tertiary-container);
border-color: transparent;
}
html[data-design='material3'] .check-row.ok .check-label,
html[data-design='material3'] .check-row.ok .check-detail {
color: var(--md-sys-color-on-tertiary-container);
}
html[data-design='material3'] .check-row.error {
background: var(--md-sys-color-error-container);
border-color: transparent;
}
html[data-design='material3'] .check-row.error .check-label,
html[data-design='material3'] .check-row.error .check-detail {
color: var(--md-sys-color-on-error-container);
}
html[data-design='material3'] .check-icon {
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .check-spinner {
border: 2px solid var(--md-sys-color-outline-variant);
border-top-color: var(--md-sys-color-primary);
}
html[data-design='material3'] .check-idle {
background: var(--md-sys-color-outline-variant);
}
</style>

View file

@ -198,4 +198,56 @@ const statusClass = computed(() => {
color: var(--ev-color);
opacity: 0.7;
}
/* ── Material 3 ── */
/* Компактные блоки (< 45 мин) — small shape, обычные — medium (M3: событие как маленькая карточка) */
html[data-design='material3'] .event-block {
border-radius: var(--md-sys-shape-corner-small);
background: color-mix(in srgb, var(--ev-color) 22%, var(--md-sys-color-surface-container-high));
border: 1px solid color-mix(in srgb, var(--ev-color) 40%, var(--md-sys-color-outline-variant));
border-top-color: color-mix(in srgb, var(--ev-color) 40%, var(--md-sys-color-outline-variant));
box-shadow: none;
}
html[data-design='material3'] .event-block:not(.event-short) {
border-radius: var(--md-sys-shape-corner-medium);
}
html[data-design='material3'] .event-block::before {
border-radius: var(--md-sys-shape-corner-small) 0 0 var(--md-sys-shape-corner-small);
}
html[data-design='material3'] .event-block:hover {
transform: none;
filter: none;
background: color-mix(in srgb, var(--ev-color) 30%, var(--md-sys-color-surface-container-high));
box-shadow: none;
}
html[data-design='material3'] .ev-specular {
display: none;
}
html[data-design='material3'] .ev-title {
font-size: var(--md-sys-typescale-label-medium-size);
line-height: var(--md-sys-typescale-label-medium-line);
font-weight: var(--md-sys-typescale-label-medium-weight);
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .event-short .ev-title {
font-size: var(--md-sys-typescale-label-small-size);
line-height: var(--md-sys-typescale-label-small-line);
}
html[data-design='material3'] .ev-time {
font-size: var(--md-sys-typescale-label-small-size);
line-height: var(--md-sys-typescale-label-small-line);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .ev-location {
color: var(--md-sys-color-on-surface-variant);
}
</style>

View file

@ -557,4 +557,193 @@ async function copyEmail(email: string) {
font-size:13px; color:rgba(255,255,255,0.52); white-space:pre-wrap;
line-height:1.7; margin:0; word-break:break-word;
}
/* ── Material 3 ── */
/* Центрированное модальное окно → dialog-паттерн, extra-large shape, elevation-3 */
html[data-design='material3'] .backdrop {
background: color-mix(in srgb, var(--md-sys-color-scrim) 46%, transparent);
}
html[data-design='material3'] .popup {
border-radius: var(--md-sys-shape-corner-extra-large);
background: var(--md-sys-color-surface-container-high);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: var(--md-sys-elevation-3);
scrollbar-color: var(--md-sys-color-outline-variant) transparent;
}
html[data-design='material3'] .popup::-webkit-scrollbar-thumb {
background: var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .specular {
display: none;
}
html[data-design='material3'] .hero-wash {
display: none;
}
html[data-design='material3'] .hero::after {
background: var(--md-sys-color-outline-variant);
height: 1px;
}
html[data-design='material3'] .close-btn {
border-radius: var(--md-sys-shape-corner-full);
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .close-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-highest));
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .evt-badge {
background: color-mix(in srgb, var(--sc) 18%, var(--md-sys-color-surface-container-high));
border: 1px solid color-mix(in srgb, var(--sc) 30%, var(--md-sys-color-outline-variant));
border-radius: var(--md-sys-shape-corner-full);
}
html[data-design='material3'] .hero-title {
color: var(--md-sys-color-on-surface);
font-size: var(--md-sys-typescale-headline-small-size);
line-height: var(--md-sys-typescale-headline-small-line);
font-weight: var(--md-sys-typescale-headline-small-weight);
letter-spacing: var(--md-sys-typescale-headline-small-tracking);
}
html[data-design='material3'] .hero-date,
html[data-design='material3'] .hero-dur {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
}
html[data-design='material3'] .hero-date {
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .hero-bull {
color: var(--md-sys-color-outline);
}
html[data-design='material3'] .hero-dur {
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .card {
background: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-shape-corner-large);
}
html[data-design='material3'] .row-icon {
border-radius: var(--md-sys-shape-corner-small);
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .row-label,
html[data-design='material3'] .pgroup-head {
font-size: var(--md-sys-typescale-label-small-size);
line-height: var(--md-sys-typescale-label-small-line);
font-weight: var(--md-sys-typescale-label-small-weight);
letter-spacing: var(--md-sys-typescale-label-small-tracking);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .row-value {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .loc-link {
color: var(--md-sys-color-primary);
text-decoration-color: color-mix(in srgb, var(--md-sys-color-primary) 45%, transparent);
}
html[data-design='material3'] .loc-link:hover {
color: var(--md-sys-color-primary);
text-decoration-color: var(--md-sys-color-primary);
}
html[data-design='material3'] .psep {
background: var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .chevron-btn {
border-radius: var(--md-sys-shape-corner-small);
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .chevron-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-highest));
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .ava {
background: color-mix(in srgb, var(--ac) 30%, var(--md-sys-color-surface-container-highest));
border: 1.5px solid color-mix(in srgb, var(--ac) 40%, var(--md-sys-color-outline-variant));
color: color-mix(in srgb, var(--ac) 85%, var(--md-sys-color-on-surface) 15%);
}
html[data-design='material3'] .ava-status-dot {
box-shadow: 0 0 0 1.5px var(--md-sys-color-surface-container);
}
html[data-design='material3'] .stack-ava {
box-shadow: 0 0 0 2px var(--md-sys-color-surface-container);
}
html[data-design='material3'] .stack-more {
background: var(--md-sys-color-surface-container-highest);
border-color: var(--md-sys-color-outline-variant);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .plist .prow:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 6%, transparent);
}
html[data-design='material3'] .pname {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .optional-tag {
font-size: var(--md-sys-typescale-label-small-size);
border-radius: var(--md-sys-shape-corner-extra-small);
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .pemail {
font-size: var(--md-sys-typescale-body-small-size);
line-height: var(--md-sys-typescale-body-small-line);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .copy-btn {
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .copy-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
border-color: var(--md-sys-color-outline-variant);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .copy-btn.ok {
color: var(--md-sys-color-primary);
background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
border-color: color-mix(in srgb, var(--md-sys-color-primary) 25%, transparent);
}
html[data-design='material3'] .desc-text {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
color: var(--md-sys-color-on-surface-variant);
}
</style>

View file

@ -365,4 +365,122 @@ function nextMonth(): void {
0 2px 14px rgba(168, 230, 0, 0.45),
0 0 0 1px rgba(168, 230, 0, 0.30);
}
/* ── Material 3 ── */
html[data-design='material3'] .mini-cal {
border-radius: var(--md-sys-shape-corner-medium);
background: var(--md-sys-color-surface-container-low);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .mini-month {
font-size: var(--md-sys-typescale-title-large-size);
line-height: var(--md-sys-typescale-title-large-line);
font-weight: var(--md-sys-typescale-title-large-weight);
letter-spacing: var(--md-sys-typescale-title-large-tracking);
color: var(--md-sys-color-on-surface);
text-shadow: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
html[data-design='material3'] .mini-nav {
border-radius: var(--md-sys-shape-corner-full);
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .mini-nav:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-highest));
border-color: var(--md-sys-color-outline);
box-shadow: none;
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .mini-nav:active {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 10%, var(--md-sys-color-surface-container-highest));
box-shadow: none;
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .dow-row {
border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .dow {
font-size: var(--md-sys-typescale-label-medium-size);
line-height: var(--md-sys-typescale-label-medium-line);
font-weight: var(--md-sys-typescale-label-medium-weight);
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .day-inner {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
font-weight: var(--md-sys-typescale-body-medium-weight);
color: var(--md-sys-color-on-surface-variant);
border-radius: var(--md-sys-shape-corner-full);
}
html[data-design='material3'] .day-cell:hover:not(.in-range) .day-inner {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
box-shadow: none;
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .day-cell.other-month .day-inner {
color: color-mix(in srgb, var(--md-sys-color-on-surface-variant) 45%, transparent);
}
/* Today (не в диапазоне) — тонированный контур, как в M3 date picker */
html[data-design='material3'] .day-cell.is-today:not(.in-range) .day-inner {
color: var(--md-sys-color-primary);
font-size: var(--md-sys-typescale-title-small-size);
line-height: var(--md-sys-typescale-title-small-line);
font-weight: var(--md-sys-typescale-title-small-weight);
background: transparent;
box-shadow: inset 0 0 0 1px var(--md-sys-color-primary);
}
/* Диапазон недели — плоская тональная полоса (secondary-container) */
html[data-design='material3'] .day-cell.in-range:not(.range-start):not(.range-end)::before,
html[data-design='material3'] .day-cell.range-start:not(.range-end)::before,
html[data-design='material3'] .day-cell.range-end:not(.range-start)::before {
background: var(--md-sys-color-secondary-container);
border-top: none;
border-bottom: none;
}
html[data-design='material3'] .day-cell.in-range:not(.range-start):not(.range-end) .day-inner {
color: var(--md-sys-color-on-secondary-container);
font-weight: var(--md-sys-typescale-body-medium-weight);
}
/* Начало/конец диапазона — заполненный primary-круг, эталонный M3-паттерн выбранного дня */
html[data-design='material3'] .day-cell.range-start .day-inner,
html[data-design='material3'] .day-cell.range-end .day-inner {
background: var(--md-sys-color-primary);
color: var(--md-sys-color-on-primary);
font-weight: var(--md-sys-typescale-title-small-weight);
box-shadow: none;
}
html[data-design='material3'] .day-cell.is-today.in-range:not(.range-start):not(.range-end) .day-inner {
color: var(--md-sys-color-on-secondary-container);
font-size: var(--md-sys-typescale-title-small-size);
line-height: var(--md-sys-typescale-title-small-line);
font-weight: var(--md-sys-typescale-title-small-weight);
background: var(--md-sys-color-secondary-container);
box-shadow: inset 0 0 0 1px var(--md-sys-color-primary);
}
html[data-design='material3'] .day-cell.is-today.range-start .day-inner,
html[data-design='material3'] .day-cell.is-today.range-end .day-inner {
box-shadow: inset 0 0 0 2px var(--md-sys-color-outline);
}
</style>

View file

@ -312,11 +312,11 @@ function calendarColor(calendarId: string): string {
/>
</div>
</div>
</div>
<!-- Loading overlay -->
<div v-if="loading" class="loading-overlay">
<div class="loading-ring" />
</div>
<!-- Loading overlay — вне grid-scroll, чтобы не уезжать за пределы видимости при прокрутке грида -->
<div v-if="loading" class="loading-overlay">
<div class="loading-ring" />
</div>
</div>
</template>
@ -327,6 +327,7 @@ function calendarColor(calendarId: string): string {
flex-direction: column;
height: 100%;
overflow: hidden;
position: relative;
}
/* ── Day headers ── */
@ -665,4 +666,145 @@ function calendarColor(calendarId: string): string {
@keyframes spin {
to { transform: rotate(360deg); }
}
/* ── Material 3 ── */
html[data-design='material3'] .day-headers {
border-bottom: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-low);
}
html[data-design='material3'] .corner-badge {
background: var(--md-sys-color-secondary-container);
border: none;
color: var(--md-sys-color-on-secondary-container);
box-shadow: none;
border-radius: var(--md-sys-shape-corner-full);
}
html[data-design='material3'] .day-header {
border-left: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .day-header.today {
background: color-mix(in srgb, var(--md-sys-color-primary) 6%, transparent);
}
html[data-design='material3'] .day-name {
font-size: var(--md-sys-typescale-label-medium-size);
line-height: var(--md-sys-typescale-label-medium-line);
font-weight: var(--md-sys-typescale-label-medium-weight);
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .day-header.today .day-name {
color: var(--md-sys-color-primary);
}
html[data-design='material3'] .day-num-wrap.today {
box-shadow: none;
}
html[data-design='material3'] .day-num {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
font-weight: var(--md-sys-typescale-body-medium-weight);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .day-num-wrap.today .day-num {
font-size: var(--md-sys-typescale-title-small-size);
line-height: var(--md-sys-typescale-title-small-line);
font-weight: var(--md-sys-typescale-title-small-weight);
}
html[data-design='material3'] .summary-dot {
box-shadow: none;
}
html[data-design='material3'] .summary-hrs {
font-size: var(--md-sys-typescale-label-small-size);
line-height: var(--md-sys-typescale-label-small-line);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .allday-row {
border-bottom: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-lowest);
}
html[data-design='material3'] .allday-label {
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .allday-col {
border-left: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .allday-event {
border-radius: var(--md-sys-shape-corner-small);
background: color-mix(in srgb, var(--event-color) 22%, var(--md-sys-color-surface-container-high));
border: 1px solid color-mix(in srgb, var(--event-color) 40%, var(--md-sys-color-outline-variant));
color: var(--md-sys-color-on-surface);
font-size: var(--md-sys-typescale-label-medium-size);
line-height: var(--md-sys-typescale-label-medium-line);
}
html[data-design='material3'] .allday-event:hover {
filter: none;
background: color-mix(in srgb, var(--event-color) 30%, var(--md-sys-color-surface-container-high));
}
html[data-design='material3'] .grid-scroll {
scrollbar-color: var(--md-sys-color-outline-variant) transparent;
}
html[data-design='material3'] .grid-scroll::-webkit-scrollbar-thumb {
background: var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .hour-label {
font-size: var(--md-sys-typescale-label-small-size);
line-height: var(--md-sys-typescale-label-small-line);
color: var(--md-sys-color-on-surface-variant);
opacity: 1;
}
html[data-design='material3'] .day-col {
border-left: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .day-col.today {
background: color-mix(in srgb, var(--md-sys-color-primary) 4%, transparent);
}
html[data-design='material3'] .hour-row {
border-top: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .half-hour-row {
border-top: 1px dashed color-mix(in srgb, var(--md-sys-color-outline-variant) 55%, transparent);
}
/* «Сейчас» — красная линия, как в эталонных M3-календарях (error-роль) */
html[data-design='material3'] .now-line {
background: var(--md-sys-color-error);
box-shadow: none;
}
html[data-design='material3'] .now-dot {
background: var(--md-sys-color-error);
box-shadow: none;
animation: none;
}
html[data-design='material3'] .loading-overlay {
background: color-mix(in srgb, var(--md-sys-color-scrim) 55%, transparent);
}
html[data-design='material3'] .loading-ring {
border: 2px solid var(--md-sys-color-outline-variant);
border-top-color: var(--md-sys-color-primary);
box-shadow: none;
}
</style>

View file

@ -334,4 +334,93 @@ onUnmounted(() => document.removeEventListener('keydown', onGlobalKeydown))
transform: translateY(0);
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.18);
}
/* ── Material 3 ── */
html[data-design='material3'] .app-shell {
background: var(--md-sys-color-surface);
}
html[data-design='material3'] .account-bar {
border-radius: var(--md-sys-shape-corner-large);
border: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-low);
box-shadow: none;
}
html[data-design='material3'] .folder-pane {
border-radius: var(--md-sys-shape-corner-large);
border: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-low);
box-shadow: none;
}
html[data-design='material3'] .message-pane {
border-radius: var(--md-sys-shape-corner-large);
border: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container);
box-shadow: none;
}
html[data-design='material3'] .preview-pane {
border-radius: var(--md-sys-shape-corner-large);
border: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface);
box-shadow: none;
}
html[data-design='material3'] .resize-handle:hover::after,
html[data-design='material3'] .resize-handle:active::after {
background: var(--md-sys-color-primary);
}
html[data-design='material3'] .empty-content {
background: var(--md-sys-color-surface-container-high);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-shape-corner-extra-large);
box-shadow: var(--md-sys-elevation-2);
}
html[data-design='material3'] .empty-content::before {
display: none;
}
html[data-design='material3'] .empty-icon {
opacity: 0.7;
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .empty-content h2 {
font-size: var(--md-sys-typescale-headline-small-size);
line-height: var(--md-sys-typescale-headline-small-line);
font-weight: var(--md-sys-typescale-headline-small-weight);
letter-spacing: var(--md-sys-typescale-headline-small-tracking);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .empty-content p {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .add-btn {
background: var(--md-sys-color-primary);
color: var(--md-sys-color-on-primary);
border-radius: var(--md-sys-shape-corner-full);
font-size: var(--md-sys-typescale-label-large-size);
font-weight: var(--md-sys-typescale-label-large-weight);
box-shadow: none;
}
html[data-design='material3'] .add-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-primary) 8%, var(--md-sys-color-primary));
box-shadow: none;
transform: none;
}
html[data-design='material3'] .add-btn:active {
background: color-mix(in srgb, var(--md-sys-color-on-primary) 10%, var(--md-sys-color-primary));
box-shadow: none;
transform: none;
}
</style>

View file

@ -72,4 +72,14 @@ const isConnected = computed(() => {
.status-dot.connected {
background: var(--success);
}
/* ── Material 3 ── */
html[data-design='material3'] .statusbar {
background: var(--md-sys-color-surface-container-low);
border-top: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
font-size: var(--md-sys-typescale-label-small-size);
line-height: var(--md-sys-typescale-label-small-line);
color: var(--md-sys-color-on-surface-variant);
}
</style>

View file

@ -78,4 +78,27 @@ function close(): void {
background: var(--danger);
color: white;
}
/* ── Material 3 ── */
html[data-design='material3'] .titlebar {
background: var(--md-sys-color-surface-container-low);
border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .app-title {
font-size: var(--md-sys-typescale-label-medium-size);
font-weight: var(--md-sys-typescale-label-medium-weight);
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .control-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .control-btn.close:hover {
background: var(--md-sys-color-error);
color: var(--md-sys-color-on-error);
}
</style>

View file

@ -1340,4 +1340,228 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
line-height: 16px;
backdrop-filter: blur(4px);
}
/* ══════════════════════════ Material 3 ══════════════════════════ */
html[data-design='material3'] .message-list-header {
background: var(--md-sys-color-surface-container-low);
border-bottom: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .folder-title {
font-size: var(--md-sys-typescale-title-large-size);
line-height: var(--md-sys-typescale-title-large-line);
font-weight: 500;
}
/* Счётчик непрочитанных — accent (primary), не error: error зарезервирован под danger */
html[data-design='material3'] .message-count {
font-size: var(--md-sys-typescale-label-small-size);
color: var(--md-sys-color-on-primary-container);
background: var(--md-sys-color-primary-container);
border: 1px solid transparent;
box-shadow: none;
}
html[data-design='material3'] .message-count:hover {
background: color-mix(in srgb, var(--md-sys-color-on-primary-container) 8%, var(--md-sys-color-primary-container));
border-color: transparent;
box-shadow: none;
}
html[data-design='material3'] .message-count.unread-active {
background: var(--md-sys-color-primary);
color: var(--md-sys-color-on-primary);
border-color: transparent;
box-shadow: none;
}
html[data-design='material3'] .icon-btn {
background: transparent;
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .icon-btn:hover:not(:disabled) {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
border-color: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .icon-btn:active:not(:disabled) {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 10%, transparent);
box-shadow: none;
}
html[data-design='material3'] .icon-btn.active {
color: var(--md-sys-color-on-primary-container);
background: var(--md-sys-color-primary-container);
border-color: transparent;
box-shadow: none;
}
html[data-design='material3'] .bulk-actions {
background: var(--md-sys-color-surface-container);
border-bottom: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .bulk-count {
font-size: var(--md-sys-typescale-body-small-size);
}
html[data-design='material3'] .bulk-count-num {
font-size: var(--md-sys-typescale-label-small-size);
color: var(--md-sys-color-on-primary-container);
background: var(--md-sys-color-primary-container);
border: 1px solid transparent;
}
html[data-design='material3'] .bulk-btn {
background: var(--md-sys-color-surface-container-high);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .bulk-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-high));
border-color: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .bulk-btn:active {
box-shadow: none;
}
html[data-design='material3'] .bulk-btn.danger {
color: var(--md-sys-color-error);
background: var(--md-sys-color-error-container);
border-color: transparent;
box-shadow: none;
}
html[data-design='material3'] .bulk-btn.danger:hover {
background: color-mix(in srgb, var(--md-sys-color-on-error-container) 10%, var(--md-sys-color-error-container));
border-color: transparent;
color: var(--md-sys-color-on-error-container);
box-shadow: none;
}
html[data-design='material3'] .bulk-cancel:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
}
html[data-design='material3'] .select-all-row {
border-bottom: 1px solid var(--md-sys-color-outline-variant);
background: transparent;
}
html[data-design='material3'] .select-all-row:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
}
html[data-design='material3'] .select-all-circle {
border-color: var(--md-sys-color-outline);
}
html[data-design='material3'] .select-all-circle.checked,
html[data-design='material3'] .select-all-circle.indeterminate {
background: var(--md-sys-color-primary);
border-color: var(--md-sys-color-primary);
}
html[data-design='material3'] .select-all-text {
font-size: var(--md-sys-typescale-body-small-size);
}
html[data-design='material3'] .pull-indicator {
background: var(--md-sys-color-surface-container-high);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .pull-indicator.ready,
html[data-design='material3'] .pull-indicator.refreshing {
border-color: var(--md-sys-color-primary);
box-shadow: none;
}
/* Открытый тред — плоская tonal-поверхность вместо радужного glass-градиента */
html[data-design='material3'] .thread-group--open {
border-radius: var(--md-sys-shape-corner-medium);
background: var(--md-sys-color-surface-container-high);
border: 1px solid var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .thread-group--open::before {
display: none;
}
html[data-design='material3'] .thread-group--open :deep(.thread-card),
html[data-design='material3'] .thread-group--open :deep(.thread-card.expanded) {
border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .thread-empty-filter {
border-top: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .thread-children :deep(.thread-child-item:not(:first-child) .message-item) {
border-top: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .search-pill {
background: var(--md-sys-color-surface-container-high);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .search-pill:hover:not(.search-pill--open) {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-high));
border-color: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .search-pill--open {
background: var(--md-sys-color-surface-container-highest);
border-color: var(--md-sys-color-primary);
box-shadow: none;
}
html[data-design='material3'] .search-pill-icon {
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .search-pill--open .search-pill-icon {
color: var(--md-sys-color-primary);
}
html[data-design='material3'] .search-pill-input {
font-size: var(--md-sys-typescale-body-medium-size);
}
html[data-design='material3'] .search-pill-input::placeholder {
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .search-pill-close {
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .search-pill-close:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 10%, transparent);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .search-results-count {
font-size: var(--md-sys-typescale-body-small-size);
}
html[data-design='material3'] .search-result-item {
border-radius: var(--md-sys-shape-corner-medium);
background: var(--md-sys-color-surface-container-low);
border: 1px solid transparent;
}
html[data-design='material3'] .search-result-item:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-low));
border-color: transparent;
box-shadow: none;
}
html[data-design='material3'] .search-result-item.selected {
background: var(--md-sys-color-secondary-container);
border-color: transparent;
box-shadow: none;
}
html[data-design='material3'] .search-result-item.selected .search-result-from,
html[data-design='material3'] .search-result-item.selected .search-result-subject,
html[data-design='material3'] .search-result-item.selected .search-result-date {
color: var(--md-sys-color-on-secondary-container);
}
html[data-design='material3'] .search-result-from {
font-size: var(--md-sys-typescale-title-medium-size);
font-weight: var(--md-sys-typescale-title-medium-weight);
}
html[data-design='material3'] .search-result-date {
font-size: var(--md-sys-typescale-label-medium-size);
}
html[data-design='material3'] .search-result-subject {
font-size: var(--md-sys-typescale-body-medium-size);
}
html[data-design='material3'] .search-result-folder {
font-size: var(--md-sys-typescale-label-small-size);
color: var(--md-sys-color-primary);
background: var(--md-sys-color-primary-container);
border: 1px solid transparent;
}
</style>

View file

@ -494,4 +494,92 @@ onUnmounted(() => {
}
.flag-icon { color: var(--warning); }
.attachment-icon { color: var(--text-muted); }
/* ── Material 3 ── */
html[data-design='material3'] .swipe-wrapper {
border-radius: var(--md-sys-shape-corner-medium);
background: var(--md-sys-color-surface-container-low);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .swipe-wrapper:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-low));
border-color: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .swipe-wrapper:has(.message-item.selected) {
border-color: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .message-item {
background: none;
}
html[data-design='material3'] .message-item.unread {
background: none;
}
html[data-design='material3'] .message-item:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
}
html[data-design='material3'] .message-item.selected {
background: var(--md-sys-color-secondary-container);
}
html[data-design='material3'] .message-item.selected::after {
box-shadow: none;
}
html[data-design='material3'] .message-item.selected:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-secondary-container));
}
html[data-design='material3'] .message-item.selected .sender,
html[data-design='material3'] .message-item.selected .subject,
html[data-design='material3'] .message-item.selected .snippet,
html[data-design='material3'] .message-item.selected .date {
color: var(--md-sys-color-on-secondary-container);
}
html[data-design='material3'] .message-item.checked {
background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
}
html[data-design='material3'] .message-item.checked:hover {
background: color-mix(in srgb, var(--md-sys-color-primary) 18%, transparent);
}
html[data-design='material3'] .unread-dot {
box-shadow: none;
}
html[data-design='material3'] .sender {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
}
html[data-design='material3'] .sender.font-bold {
font-size: var(--md-sys-typescale-title-medium-size);
line-height: var(--md-sys-typescale-title-medium-line);
font-weight: var(--md-sys-typescale-title-medium-weight);
}
html[data-design='material3'] .subject {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
}
html[data-design='material3'] .date {
font-size: var(--md-sys-typescale-label-medium-size);
line-height: var(--md-sys-typescale-label-medium-line);
}
html[data-design='material3'] .snippet {
font-size: var(--md-sys-typescale-body-small-size);
line-height: var(--md-sys-typescale-body-small-line);
}
</style>

View file

@ -115,4 +115,28 @@ onUnmounted(() => {
.menu-item:active {
background: rgba(255, 255, 255, 0.05);
}
/* ── Material 3 ── */
html[data-design='material3'] .context-menu {
background: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-shape-corner-small);
box-shadow: var(--md-sys-elevation-2);
animation: menu-in var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized-decelerate);
}
html[data-design='material3'] .menu-item {
border-radius: var(--md-sys-shape-corner-extra-small);
font-size: var(--md-sys-typescale-body-medium-size);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .menu-item:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .menu-item:active {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 10%, transparent);
}
</style>

View file

@ -403,4 +403,127 @@ const snippet = computed(() => props.thread.latest.snippet || '')
.thread-card.expanded .thread-item {
background: transparent;
}
/* ── Material 3 ── */
html[data-design='material3'] .thread-card {
border-radius: var(--md-sys-shape-corner-medium);
background: var(--md-sys-color-surface-container-low);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .thread-card:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-low));
border-color: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .thread-card.unread {
background: var(--md-sys-color-surface-container-low);
}
html[data-design='material3'] .thread-card.selected {
border-color: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .thread-item.selected {
background: var(--md-sys-color-secondary-container);
}
html[data-design='material3'] .thread-item.selected .thread-participants,
html[data-design='material3'] .thread-item.selected .thread-subject,
html[data-design='material3'] .thread-item.selected .thread-date,
html[data-design='material3'] .thread-item.selected .thread-snippet {
color: var(--md-sys-color-on-secondary-container);
}
html[data-design='material3'] .thread-item:not(.selected):hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
}
html[data-design='material3'] .thread-check-circle {
border-color: var(--md-sys-color-outline);
}
html[data-design='material3'] .thread-check-circle.checked,
html[data-design='material3'] .thread-check-circle.indeterminate {
background: var(--md-sys-color-primary);
border-color: var(--md-sys-color-primary);
}
html[data-design='material3'] .unread-dot {
box-shadow: none;
}
html[data-design='material3'] .thread-participants {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
}
html[data-design='material3'] .thread-participants.bold {
font-size: var(--md-sys-typescale-title-medium-size);
line-height: var(--md-sys-typescale-title-medium-line);
font-weight: var(--md-sys-typescale-title-medium-weight);
}
html[data-design='material3'] .thread-date {
font-size: var(--md-sys-typescale-label-medium-size);
line-height: var(--md-sys-typescale-label-medium-line);
}
html[data-design='material3'] .thread-subject {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
}
html[data-design='material3'] .thread-subject.bold {
font-weight: 500;
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .thread-snippet {
font-size: var(--md-sys-typescale-body-small-size);
line-height: var(--md-sys-typescale-body-small-line);
}
html[data-design='material3'] .thread-count {
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
font-size: var(--md-sys-typescale-label-small-size);
}
html[data-design='material3'] .thread-item.unread .thread-count {
color: var(--md-sys-color-primary);
background: var(--md-sys-color-primary-container);
border-color: transparent;
}
html[data-design='material3'] .thread-filter-btn {
border-radius: var(--md-sys-shape-corner-extra-small);
background: transparent;
border: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .thread-filter-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
border-color: var(--md-sys-color-outline);
}
html[data-design='material3'] .thread-filter-btn.active {
color: var(--md-sys-color-primary);
background: var(--md-sys-color-primary-container);
border-color: transparent;
}
html[data-design='material3'] .thread-chevron.open {
color: var(--md-sys-color-primary);
}
html[data-design='material3'] .thread-card.expanded {
border-color: var(--md-sys-color-outline);
background: var(--md-sys-color-surface-container);
box-shadow: none;
}
</style>

View file

@ -149,4 +149,46 @@ onMounted(() => {
background: rgba(255, 255, 255, 0.12);
color: var(--text-secondary);
}
/* ── Material 3 (Snackbar-like surface) ── */
html[data-design='material3'] .toast {
background: var(--md-sys-color-inverse-surface);
border: none;
border-radius: var(--md-sys-shape-corner-extra-small);
box-shadow: var(--md-sys-elevation-3);
}
html[data-design='material3'] .toast:hover {
background: color-mix(in srgb, var(--md-sys-color-inverse-on-surface) 6%, var(--md-sys-color-inverse-surface));
border: none;
}
html[data-design='material3'] .toast-icon {
color: var(--md-sys-color-inverse-primary);
background: color-mix(in srgb, var(--md-sys-color-inverse-primary) 16%, transparent);
border: none;
}
html[data-design='material3'] .toast-from {
color: var(--md-sys-color-inverse-on-surface);
font-size: var(--md-sys-typescale-title-small-size);
font-weight: var(--md-sys-typescale-title-small-weight);
}
html[data-design='material3'] .toast-subject,
html[data-design='material3'] .toast-account {
color: color-mix(in srgb, var(--md-sys-color-inverse-on-surface) 75%, transparent);
font-size: var(--md-sys-typescale-body-small-size);
}
html[data-design='material3'] .toast-close {
background: transparent;
border: none;
color: color-mix(in srgb, var(--md-sys-color-inverse-on-surface) 75%, transparent);
}
html[data-design='material3'] .toast-close:hover {
background: color-mix(in srgb, var(--md-sys-color-inverse-on-surface) 12%, transparent);
color: var(--md-sys-color-inverse-on-surface);
}
</style>

View file

@ -323,4 +323,67 @@ async function handleClick(att: Attachment): Promise<void> {
/* Спиннер */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-svg { animation: spin 0.8s linear infinite; }
/* ── Material 3 ── */
html[data-design='material3'] .attachment-strip {
border-radius: var(--md-sys-shape-corner-medium);
border: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-low);
box-shadow: none;
}
html[data-design='material3'] .strip-label {
font-size: var(--md-sys-typescale-label-small-size);
}
html[data-design='material3'] .att-chip {
border-radius: var(--md-sys-shape-corner-small);
background: var(--md-sys-color-surface-container-high);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .att-chip:hover:not(.is-busy) {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-high));
border-color: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .att-chip:active:not(.is-busy) {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 10%, var(--md-sys-color-surface-container-high));
}
html[data-design='material3'] .att-chip.is-done {
border-color: transparent;
background: color-mix(in srgb, var(--success) 20%, transparent);
box-shadow: none;
}
html[data-design='material3'] .att-chip.is-saved {
border-color: transparent;
background: color-mix(in srgb, var(--success) 12%, transparent);
}
html[data-design='material3'] .att-chip.is-saved:hover {
border-color: transparent;
background: color-mix(in srgb, var(--success) 18%, transparent);
box-shadow: none;
}
html[data-design='material3'] .att-chip.is-error {
border-color: transparent;
background: var(--md-sys-color-error-container);
}
html[data-design='material3'] .att-chip.is-error .att-icon {
color: var(--md-sys-color-on-error-container);
}
html[data-design='material3'] .att-name {
font-size: var(--md-sys-typescale-body-small-size);
}
html[data-design='material3'] .att-size {
font-size: var(--md-sys-typescale-label-small-size);
}
</style>

View file

@ -295,4 +295,12 @@ onUnmounted(() => {
color: var(--text-muted);
font-size: 13px;
}
/* ── Material 3 (только обёртка — содержимое письма не трогаем) ── */
html[data-design='material3'] .message-body {
border-radius: var(--md-sys-shape-corner-large);
border: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-low);
box-shadow: none;
}
</style>

View file

@ -626,4 +626,152 @@ onUnmounted(() => {
inset 0 1px 0 rgba(255, 100, 100, 0.12),
0 4px 12px rgba(180, 30, 30, 0.22);
}
/* ── Material 3 ── */
html[data-design='material3'] .message-header {
border-radius: var(--md-sys-shape-corner-extra-large);
border: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-low);
box-shadow: none;
}
html[data-design='material3'] .subject {
font-size: var(--md-sys-typescale-title-large-size);
line-height: var(--md-sys-typescale-title-large-line);
font-weight: 500;
letter-spacing: normal;
}
html[data-design='material3'] .header-details {
background: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-shape-corner-medium);
box-shadow: none;
}
html[data-design='material3'] .header-row {
border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .label {
font-size: var(--md-sys-typescale-label-small-size);
}
html[data-design='material3'] .value {
font-size: var(--md-sys-typescale-body-medium-size);
}
html[data-design='material3'] .addr-chip {
font-size: var(--md-sys-typescale-body-medium-size);
}
html[data-design='material3'] .addr-chip:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
border-color: transparent;
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .addr-chip--more {
background: var(--md-sys-color-surface-container-high);
border-color: transparent;
}
html[data-design='material3'] .addr-chip--more:hover {
color: var(--md-sys-color-primary);
background: var(--md-sys-color-primary-container);
border-color: transparent;
}
html[data-design='material3'] .contact-popup {
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-shape-corner-medium);
box-shadow: var(--md-sys-elevation-2);
}
html[data-design='material3'] .popup-name {
font-size: var(--md-sys-typescale-title-small-size);
font-weight: var(--md-sys-typescale-title-small-weight);
}
html[data-design='material3'] .popup-email {
font-size: var(--md-sys-typescale-body-small-size);
}
html[data-design='material3'] .popup-copy {
border-radius: var(--md-sys-shape-corner-full);
background: transparent;
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .popup-copy:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
border-color: var(--md-sys-color-outline);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .popup-copy.done {
color: var(--md-sys-color-primary);
background: var(--md-sys-color-primary-container);
border-color: transparent;
}
html[data-design='material3'] .action-btn {
font-size: var(--md-sys-typescale-label-large-size);
font-weight: var(--md-sys-typescale-label-large-weight);
background: transparent;
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .action-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
border-color: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .action-btn:active {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 10%, transparent);
box-shadow: none;
}
html[data-design='material3'] .action-btn.active {
background: var(--md-sys-color-secondary-container);
border-color: transparent;
color: var(--md-sys-color-on-secondary-container);
}
html[data-design='material3'] .action-btn.flag-active {
color: var(--warning);
background: color-mix(in srgb, var(--warning) 18%, transparent);
border-color: transparent;
box-shadow: none;
}
html[data-design='material3'] .action-btn.flag-active:hover {
background: color-mix(in srgb, var(--warning) 26%, transparent);
border-color: transparent;
}
html[data-design='material3'] .action-btn.primary {
background: var(--md-sys-color-primary);
color: var(--md-sys-color-on-primary);
border-color: transparent;
box-shadow: none;
}
html[data-design='material3'] .action-btn.primary:hover {
background: color-mix(in srgb, var(--md-sys-color-on-primary) 8%, var(--md-sys-color-primary));
color: var(--md-sys-color-on-primary);
border-color: transparent;
box-shadow: none;
}
html[data-design='material3'] .action-btn.danger:hover {
color: var(--md-sys-color-on-error-container);
background: var(--md-sys-color-error-container);
border-color: transparent;
box-shadow: none;
}
</style>

View file

@ -95,4 +95,16 @@ const selectedMessage = computed(() =>
@keyframes spin {
to { transform: rotate(360deg); }
}
/* ── Material 3 ── */
html[data-design='material3'] .loading-body {
border-radius: var(--md-sys-shape-corner-medium);
border: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-low);
}
html[data-design='material3'] .spinner {
border: 1.5px solid var(--md-sys-color-outline-variant);
border-top-color: var(--md-sys-color-primary);
}
</style>

View file

@ -177,4 +177,60 @@ function getAccountColor(index: number): string {
.nav-btn.nav-active .nav-icon {
color: var(--accent);
}
/* ── Material 3 (Navigation Rail) ── */
html[data-design='material3'] .account-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
}
html[data-design='material3'] .account-avatar {
box-shadow: none;
}
html[data-design='material3'] .account-btn.active .account-avatar {
box-shadow:
0 0 0 2px var(--md-sys-color-surface-container-low),
0 0 0 3.5px var(--md-sys-color-primary);
}
html[data-design='material3'] .add-btn,
html[data-design='material3'] .settings-btn {
background: var(--md-sys-color-surface-container-high);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .add-btn:hover,
html[data-design='material3'] .settings-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-high));
border-color: var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .add-btn:active,
html[data-design='material3'] .settings-btn:active {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 10%, var(--md-sys-color-surface-container-high));
box-shadow: none;
}
html[data-design='material3'] .add-icon,
html[data-design='material3'] .settings-icon,
html[data-design='material3'] .nav-icon {
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .add-btn:hover .add-icon,
html[data-design='material3'] .settings-btn:hover .settings-icon,
html[data-design='material3'] .nav-btn:hover .nav-icon {
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .nav-btn.nav-active {
background: var(--md-sys-color-secondary-container);
border-color: transparent;
}
html[data-design='material3'] .nav-btn.nav-active .nav-icon {
color: var(--md-sys-color-on-secondary-container);
}
</style>

View file

@ -197,4 +197,33 @@ onUnmounted(() => {
margin-left: 4px;
animation: menu-in 120ms cubic-bezier(0.34, 1.15, 0.64, 1);
}
/* ── Material 3 ── */
html[data-design='material3'] .context-menu,
html[data-design='material3'] .submenu {
background: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-shape-corner-small);
box-shadow: var(--md-sys-elevation-2);
animation: menu-in var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized-decelerate);
}
html[data-design='material3'] .menu-item {
border-radius: var(--md-sys-shape-corner-extra-small);
font-size: var(--md-sys-typescale-body-medium-size);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .menu-item:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .menu-item:active {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 10%, transparent);
}
html[data-design='material3'] .menu-divider {
background: var(--md-sys-color-outline-variant);
}
</style>

View file

@ -75,4 +75,21 @@ const accountsStore = useAccountsStore()
font-size: 12px;
text-align: center;
}
/* ── Material 3 ── */
html[data-design='material3'] .folder-header {
border-bottom: 1px solid var(--md-sys-color-outline-variant);
background: none;
box-shadow: none;
font-size: var(--md-sys-typescale-label-medium-size);
font-weight: var(--md-sys-typescale-label-medium-weight);
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .loading,
html[data-design='material3'] .empty {
font-size: var(--md-sys-typescale-body-medium-size);
color: var(--md-sys-color-on-surface-variant);
}
</style>

View file

@ -289,4 +289,94 @@ function handleMarkAllRead(): void {
color: var(--text-muted);
opacity: 0.65;
}
/* ── Material 3 (Navigation Drawer list item) ── */
html[data-design='material3'] .folder-item {
border-radius: var(--md-sys-shape-corner-full);
}
html[data-design='material3'] .folder-item:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
border-color: transparent;
box-shadow: none;
}
html[data-design='material3'] .folder-item.active {
background: var(--md-sys-color-secondary-container);
backdrop-filter: none;
border-color: transparent;
box-shadow: none;
}
html[data-design='material3'] .folder-item.active:hover {
background: color-mix(in srgb, var(--md-sys-color-on-secondary-container) 8%, var(--md-sys-color-secondary-container));
}
html[data-design='material3'] .folder-icon {
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .folder-item:hover .folder-icon {
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .folder-item.active .folder-icon {
color: var(--md-sys-color-on-secondary-container);
}
html[data-design='material3'] .folder-name {
font-size: var(--md-sys-typescale-label-large-size);
line-height: var(--md-sys-typescale-label-large-line);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .folder-item:hover .folder-name {
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .folder-item.active .folder-name {
color: var(--md-sys-color-on-secondary-container);
font-weight: var(--md-sys-typescale-label-large-weight);
}
html[data-design='material3'] .unread-badge {
color: var(--md-sys-color-on-error);
background: var(--md-sys-color-error);
border: none;
box-shadow: none;
backdrop-filter: none;
font-size: var(--md-sys-typescale-label-small-size);
line-height: var(--md-sys-typescale-label-small-line);
font-weight: var(--md-sys-typescale-label-small-weight);
}
html[data-design='material3'] .folder-item:hover .unread-badge {
background: var(--md-sys-color-error);
}
html[data-design='material3'] .folder-item.active .unread-badge {
background: var(--md-sys-color-error);
border: none;
}
html[data-design='material3'] .unread-badge.muted {
background: var(--md-sys-color-surface-container-highest);
border: none;
box-shadow: none;
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .folder-item:hover .unread-badge.muted {
background: var(--md-sys-color-surface-container-highest);
}
html[data-design='material3'] .folder-item.active .unread-badge.muted {
background: var(--md-sys-color-surface-container-highest);
border: none;
}
html[data-design='material3'] .muted-icon {
color: var(--md-sys-color-on-surface-variant);
opacity: 0.8;
}
</style>

View file

@ -4,6 +4,7 @@ import { createRouter, createWebHashHistory } from 'vue-router'
import App from './App.vue'
import { vTooltip } from './directives/tooltip'
import './assets/styles/variables.css'
import './assets/styles/material3-tokens.css'
import './assets/styles/base.css'
const router = createRouter({

View file

@ -1,5 +1,7 @@
import { ref, watch } from 'vue'
import { defineStore } from 'pinia'
import { applyMaterial3Theme } from '../utils/material3-theme'
import { hexToRgb, lightenHex, getLuminance } from '../utils/color'
export type SwipeAction = 'delete' | 'toggleRead' | 'toggleFlag' | 'none'
@ -28,21 +30,16 @@ export const ACCENT_QUICK_PICKS = [
'#f87171', // red
]
function hexToRgb(hex: string): [number, number, number] | null {
const m = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(hex)
if (!m) return null
return [parseInt(m[1], 16), parseInt(m[2], 16), parseInt(m[3], 16)]
// ─── Design system ───────────────────────────────────────
export type DesignSystem = 'liquid-glass' | 'material3'
export const DESIGN_SYSTEM_LABELS: Record<DesignSystem, string> = {
'liquid-glass': 'Liquid Glass',
material3: 'Material 3',
}
function lightenHex(hex: string, amount: number): string {
const rgb = hexToRgb(hex)
if (!rgb) return hex
return '#' + rgb.map(c => Math.min(255, c + amount).toString(16).padStart(2, '0')).join('')
}
function getLuminance(r: number, g: number, b: number): number {
return 0.2126 * (r / 255) + 0.7152 * (g / 255) + 0.0722 * (b / 255)
}
// Базовая M3-палитра Google первой, дальше — существующие акцентные цвета приложения
export const MATERIAL3_SEED_PRESETS = ['#6750A4', ...ACCENT_QUICK_PICKS]
function applyAccentColor(hex: string): void {
const rgb = hexToRgb(hex)
@ -67,6 +64,18 @@ function applyUiScale(scale: number): void {
window.api.invoke('app:setZoom', { factor: scale })
}
// ─── Design system ───────────────────────────────────────
// В Material 3 акцент — не отдельная настройка, а производная от M3-палитры (applyMaterial3Theme
// сама выставляет --accent из сгенерированной роли primary), поэтому applyAccentColor здесь не вызывается.
function applyDesignSystem(designSystem: DesignSystem, material3Seed: string, accentColor: string): void {
document.documentElement.dataset.design = designSystem
if (designSystem === 'material3') {
applyMaterial3Theme(material3Seed)
} else {
applyAccentColor(accentColor)
}
}
// ─── Auto-check intervals ────────────────────────────────
export const AUTO_CHECK_INTERVALS: { value: number; label: string }[] = [
{ value: 0, label: 'Выключено' },
@ -86,6 +95,8 @@ function load(): {
autoCheckInterval?: number
uiScale?: number
downloadFolder?: string
designSystem?: DesignSystem
material3Seed?: string
} {
try {
return JSON.parse(localStorage.getItem(STORAGE_KEY) ?? '{}')
@ -103,6 +114,8 @@ export const useSettingsStore = defineStore('settings', () => {
const autoCheckInterval = ref<number>(saved.autoCheckInterval ?? 1)
const uiScale = ref<number>(saved.uiScale ?? 1.0)
const downloadFolder = ref<string>(saved.downloadFolder ?? '')
const designSystem = ref<DesignSystem>(saved.designSystem ?? 'liquid-glass')
const material3Seed = ref<string>(saved.material3Seed ?? MATERIAL3_SEED_PRESETS[0])
// Если папка не сохранена — подтягиваем системный Downloads
if (!downloadFolder.value) {
@ -112,11 +125,12 @@ export const useSettingsStore = defineStore('settings', () => {
}
// Apply on init
applyAccentColor(accentColor.value)
applyUiScale(uiScale.value)
applyDesignSystem(designSystem.value, material3Seed.value, accentColor.value)
watch(accentColor, (hex) => {
applyAccentColor(hex)
// В Material 3 акцент производный от палитры — ручной цвет здесь не действует
if (designSystem.value === 'liquid-glass') applyAccentColor(hex)
persist()
})
@ -125,6 +139,11 @@ export const useSettingsStore = defineStore('settings', () => {
persist()
})
watch([designSystem, material3Seed], ([design, seed]) => {
applyDesignSystem(design, seed, accentColor.value)
persist()
})
watch([swipeLeftAction, swipeRightAction, autoCheckInterval, downloadFolder], persist)
function persist(): void {
@ -135,8 +154,19 @@ export const useSettingsStore = defineStore('settings', () => {
autoCheckInterval: autoCheckInterval.value,
uiScale: uiScale.value,
downloadFolder: downloadFolder.value,
designSystem: designSystem.value,
material3Seed: material3Seed.value,
}))
}
return { swipeLeftAction, swipeRightAction, accentColor, autoCheckInterval, uiScale, downloadFolder }
return {
swipeLeftAction,
swipeRightAction,
accentColor,
autoCheckInterval,
uiScale,
downloadFolder,
designSystem,
material3Seed,
}
})

View file

@ -0,0 +1,15 @@
export function hexToRgb(hex: string): [number, number, number] | null {
const m = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(hex)
if (!m) return null
return [parseInt(m[1], 16), parseInt(m[2], 16), parseInt(m[3], 16)]
}
export function lightenHex(hex: string, amount: number): string {
const rgb = hexToRgb(hex)
if (!rgb) return hex
return '#' + rgb.map(c => Math.min(255, c + amount).toString(16).padStart(2, '0')).join('')
}
export function getLuminance(r: number, g: number, b: number): number {
return 0.2126 * (r / 255) + 0.7152 * (g / 255) + 0.0722 * (b / 255)
}

View file

@ -0,0 +1,91 @@
import {
Hct,
SchemeTonalSpot,
MaterialDynamicColors,
hexFromArgb,
argbFromHex,
type DynamicScheme
} from '@material/material-color-utilities'
import { hexToRgb, lightenHex, getLuminance } from './color'
// Контраст по умолчанию для тёмной M3-схемы (0 = стандартный, см. references/color-system.md)
const STANDARD_CONTRAST = 0.0
const materialDynamicColors = new MaterialDynamicColors()
// Роли, которые реально нужны интерфейсу (полный список 29+ ролей MD3, tone-mapping — тёмная схема)
const ROLE_GETTERS: Record<string, (scheme: DynamicScheme) => number> = {
'primary': (s) => materialDynamicColors.primary().getArgb(s),
'on-primary': (s) => materialDynamicColors.onPrimary().getArgb(s),
'primary-container': (s) => materialDynamicColors.primaryContainer().getArgb(s),
'on-primary-container': (s) => materialDynamicColors.onPrimaryContainer().getArgb(s),
'secondary': (s) => materialDynamicColors.secondary().getArgb(s),
'on-secondary': (s) => materialDynamicColors.onSecondary().getArgb(s),
'secondary-container': (s) => materialDynamicColors.secondaryContainer().getArgb(s),
'on-secondary-container': (s) => materialDynamicColors.onSecondaryContainer().getArgb(s),
'tertiary': (s) => materialDynamicColors.tertiary().getArgb(s),
'on-tertiary': (s) => materialDynamicColors.onTertiary().getArgb(s),
'tertiary-container': (s) => materialDynamicColors.tertiaryContainer().getArgb(s),
'on-tertiary-container': (s) => materialDynamicColors.onTertiaryContainer().getArgb(s),
'error': (s) => materialDynamicColors.error().getArgb(s),
'on-error': (s) => materialDynamicColors.onError().getArgb(s),
'error-container': (s) => materialDynamicColors.errorContainer().getArgb(s),
'on-error-container': (s) => materialDynamicColors.onErrorContainer().getArgb(s),
'surface': (s) => materialDynamicColors.surface().getArgb(s),
'on-surface': (s) => materialDynamicColors.onSurface().getArgb(s),
'on-surface-variant': (s) => materialDynamicColors.onSurfaceVariant().getArgb(s),
'surface-container-lowest': (s) => materialDynamicColors.surfaceContainerLowest().getArgb(s),
'surface-container-low': (s) => materialDynamicColors.surfaceContainerLow().getArgb(s),
'surface-container': (s) => materialDynamicColors.surfaceContainer().getArgb(s),
'surface-container-high': (s) => materialDynamicColors.surfaceContainerHigh().getArgb(s),
'surface-container-highest': (s) => materialDynamicColors.surfaceContainerHighest().getArgb(s),
'surface-dim': (s) => materialDynamicColors.surfaceDim().getArgb(s),
'surface-bright': (s) => materialDynamicColors.surfaceBright().getArgb(s),
'outline': (s) => materialDynamicColors.outline().getArgb(s),
'outline-variant': (s) => materialDynamicColors.outlineVariant().getArgb(s),
'inverse-surface': (s) => materialDynamicColors.inverseSurface().getArgb(s),
'inverse-on-surface': (s) => materialDynamicColors.inverseOnSurface().getArgb(s),
'inverse-primary': (s) => materialDynamicColors.inversePrimary().getArgb(s),
'shadow': (s) => materialDynamicColors.shadow().getArgb(s),
'scrim': (s) => materialDynamicColors.scrim().getArgb(s)
}
export type Material3Tokens = Record<string, string>
// Генерирует полный набор тёмных M3 color-ролей из seed-цвета (HCT tonal-spot — та же схема, что Material You на Android)
export function generateMaterial3DarkTokens(seedHex: string): Material3Tokens {
const sourceHct = Hct.fromInt(argbFromHex(seedHex))
const scheme = new SchemeTonalSpot(sourceHct, true, STANDARD_CONTRAST)
const tokens: Material3Tokens = {}
for (const role in ROLE_GETTERS) {
tokens[role] = hexFromArgb(ROLE_GETTERS[role](scheme))
}
return tokens
}
// Применяет сгенерированные роли как CSS custom properties --md-sys-color-*,
// а также синхронизирует алиасы --accent-* (используются во всём приложении вне M3-специфичных
// стилей) с ролью primary — в Material 3 акцент не настраивается отдельно, а производится из палитры
export function applyMaterial3Theme(seedHex: string): void {
const tokens = generateMaterial3DarkTokens(seedHex)
const root = document.documentElement
for (const role in tokens) {
root.style.setProperty(`--md-sys-color-${role}`, tokens[role])
}
root.style.setProperty('--accent', tokens.primary)
root.style.setProperty('--accent-hover', lightenHex(tokens.primary, 24))
root.style.setProperty('--accent-muted', tokens['primary-container'])
root.style.setProperty('--accent-text', tokens['on-primary'])
root.style.setProperty('--bg-selected', tokens['secondary-container'])
const primaryRgb = hexToRgb(tokens.primary)
if (primaryRgb) {
const [r, g, b] = primaryRgb
root.style.setProperty('--accent-glow', `rgba(${r},${g},${b},0.08)`)
const lum = getLuminance(r, g, b)
const swipeAlpha = lum > 0.6 ? 0.45 : 0.72
root.style.setProperty('--accent-swipe-bg', `rgba(${r},${g},${b},${swipeAlpha})`)
}
}

View file

@ -726,4 +726,205 @@ function pickColor(color: string): void {
border-color: rgba(255, 255, 255, 0.70);
transform: scale(1.12);
}
/* ── Material 3 ── */
html[data-design='material3'] .account-bar {
border-radius: var(--md-sys-shape-corner-large);
background: var(--md-sys-color-surface-container-low);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .cal-sidebar {
border-radius: var(--md-sys-shape-corner-large);
background: var(--md-sys-color-surface-container-low);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .sidebar-divider {
background: var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .cal-list-header {
font-size: var(--md-sys-typescale-label-medium-size);
line-height: var(--md-sys-typescale-label-medium-line);
font-weight: var(--md-sys-typescale-label-medium-weight);
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .cal-list-icon {
color: var(--md-sys-color-primary);
}
html[data-design='material3'] .cal-item {
border-radius: var(--md-sys-shape-corner-full);
}
html[data-design='material3'] .cal-item:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
}
html[data-design='material3'] .cal-item.active {
background: var(--md-sys-color-secondary-container);
}
html[data-design='material3'] .cal-item.active .cal-name {
color: var(--md-sys-color-on-secondary-container);
}
html[data-design='material3'] .cal-name {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .no-calendars {
font-size: var(--md-sys-typescale-body-small-size);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .error-icon-wrap {
background: var(--md-sys-color-error-container);
border: none;
}
html[data-design='material3'] .error-icon {
color: var(--md-sys-color-on-error-container);
}
html[data-design='material3'] .error-title {
font-size: var(--md-sys-typescale-label-large-size);
color: var(--md-sys-color-error);
}
html[data-design='material3'] .error-detail {
font-size: var(--md-sys-typescale-body-small-size);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .retry-btn {
border-radius: var(--md-sys-shape-corner-full);
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .retry-btn:hover:not(:disabled) {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-highest));
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .calendar-main {
border-radius: var(--md-sys-shape-corner-large);
background: var(--md-sys-color-surface);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .toolbar {
border-bottom: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-low);
}
html[data-design='material3'] .nav-btn {
border-radius: var(--md-sys-shape-corner-full);
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .nav-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-highest));
border-color: var(--md-sys-color-outline);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .today-btn {
border-radius: var(--md-sys-shape-corner-full);
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
color: var(--md-sys-color-on-surface-variant);
font-size: var(--md-sys-typescale-label-large-size);
}
html[data-design='material3'] .today-btn:hover {
background: var(--md-sys-color-secondary-container);
border-color: var(--md-sys-color-secondary-container);
color: var(--md-sys-color-on-secondary-container);
box-shadow: none;
}
html[data-design='material3'] .week-label {
font-size: var(--md-sys-typescale-title-large-size);
line-height: var(--md-sys-typescale-title-large-line);
font-weight: var(--md-sys-typescale-title-large-weight);
letter-spacing: var(--md-sys-typescale-title-large-tracking);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .icon-btn {
border-radius: var(--md-sys-shape-corner-full);
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .icon-btn:hover:not(:disabled) {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-highest));
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .spinner {
border: 2px solid var(--md-sys-color-outline-variant);
border-top-color: var(--md-sys-color-primary);
}
html[data-design='material3'] .empty-state {
background: color-mix(in srgb, var(--md-sys-color-scrim) 40%, transparent);
}
html[data-design='material3'] .empty-content {
border-radius: var(--md-sys-shape-corner-extra-large);
background: var(--md-sys-color-surface-container-high);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: var(--md-sys-elevation-3);
}
html[data-design='material3'] .empty-icon {
color: var(--md-sys-color-on-surface-variant);
opacity: 1;
}
html[data-design='material3'] .empty-content h2 {
font-size: var(--md-sys-typescale-headline-small-size);
line-height: var(--md-sys-typescale-headline-small-line);
font-weight: var(--md-sys-typescale-headline-small-weight);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .empty-content p {
font-size: var(--md-sys-typescale-body-medium-size);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .add-btn {
background: var(--md-sys-color-primary);
color: var(--md-sys-color-on-primary);
border-radius: var(--md-sys-shape-corner-full);
font-size: var(--md-sys-typescale-label-large-size);
box-shadow: none;
}
html[data-design='material3'] .add-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-primary));
box-shadow: none;
}
html[data-design='material3'] .color-picker-popover {
border-radius: var(--md-sys-shape-corner-medium);
background: var(--md-sys-color-surface-container-high);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: var(--md-sys-elevation-3);
}
html[data-design='material3'] .color-swatch.selected {
border-color: var(--md-sys-color-on-surface);
}
</style>

View file

@ -1219,4 +1219,275 @@ const totalAttachSize = computed(() =>
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ══════════════════════════════════════════════════════════════════════════
Material Design 3 — переопределения (активны только под data-design=material3)
Примечание: разметка srcdoc iframe с оригинальным письмом (quoteSrcdoc в
<script>) генерируется JS и не входит в CSS-only зону ответственности —
там сохраняются жёстко заданные liquid-glass цвета независимо от темы.
══════════════════════════════════════════════════════════════════════════ */
html[data-design='material3'] .compose-page {
background: var(--md-sys-color-surface);
}
html[data-design='material3'] .compose-header {
background: var(--md-sys-color-surface-container-low);
border-bottom: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .header-mode {
font-size: var(--md-sys-typescale-title-medium-size);
line-height: var(--md-sys-typescale-title-medium-line);
font-weight: var(--md-sys-typescale-title-medium-weight);
letter-spacing: var(--md-sys-typescale-title-medium-tracking);
}
html[data-design='material3'] .from-dot {
box-shadow: none;
}
html[data-design='material3'] .from-label {
font-size: var(--md-sys-typescale-body-small-size);
line-height: var(--md-sys-typescale-body-small-line);
}
/* ── Карточка полей (Кому/Копия/Скрытая/Тема) ─────────────────────────── */
html[data-design='material3'] .fields-card {
border: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container);
box-shadow: none;
border-radius: var(--md-sys-shape-corner-medium);
}
html[data-design='material3'] .field-divider {
background: var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .field-label {
font-size: var(--md-sys-typescale-body-small-size);
line-height: var(--md-sys-typescale-body-small-line);
font-weight: var(--md-sys-typescale-body-small-weight);
letter-spacing: var(--md-sys-typescale-body-small-tracking);
text-transform: none;
color: var(--md-sys-color-on-surface-variant);
opacity: 1;
}
/* Адресные токены — Filled tonal chip */
html[data-design='material3'] .addr-token {
color: var(--md-sys-color-on-secondary-container);
background: var(--md-sys-color-secondary-container);
border: 1px solid transparent;
box-shadow: none;
}
html[data-design='material3'] .addr-token:hover {
background: color-mix(in srgb, var(--md-sys-color-secondary-container) 85%, var(--md-sys-color-on-secondary-container) 15%);
border-color: transparent;
}
html[data-design='material3'] .token-remove:hover {
background: color-mix(in srgb, var(--md-sys-color-error) 18%, transparent);
color: var(--md-sys-color-error);
}
html[data-design='material3'] .addr-input::placeholder {
color: color-mix(in srgb, var(--md-sys-color-on-surface-variant) 55%, transparent);
}
/* Тема письма — title-medium согласно контракту */
html[data-design='material3'] .subject-input {
font-size: var(--md-sys-typescale-title-medium-size);
line-height: var(--md-sys-typescale-title-medium-line);
font-weight: var(--md-sys-typescale-title-medium-weight);
letter-spacing: var(--md-sys-typescale-title-medium-tracking);
}
/* Text button tier — Копия/Скрытая */
html[data-design='material3'] .field-toggle {
font-size: var(--md-sys-typescale-label-medium-size);
font-weight: var(--md-sys-typescale-label-medium-weight);
color: var(--md-sys-color-primary);
opacity: 1;
}
html[data-design='material3'] .field-toggle:hover {
color: var(--md-sys-color-primary);
background: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
}
/* ── Тело письма — body-large согласно контракту ──────────────────────── */
html[data-design='material3'] .compose-body {
font-size: var(--md-sys-typescale-body-large-size);
line-height: var(--md-sys-typescale-body-large-line);
font-weight: var(--md-sys-typescale-body-large-weight);
letter-spacing: var(--md-sys-typescale-body-large-tracking);
}
html[data-design='material3'] .compose-body::placeholder {
color: color-mix(in srgb, var(--md-sys-color-on-surface-variant) 50%, transparent);
}
/* ── Цитата оригинального письма ──────────────────────────────────────── */
html[data-design='material3'] .quote-toggle-line {
background: var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .quote-toggle-label {
font-size: var(--md-sys-typescale-label-small-size);
font-weight: var(--md-sys-typescale-label-small-weight);
opacity: 1;
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .quote-toggle:hover .quote-toggle-label {
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .quote-frame-wrap {
border: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-low);
}
/* ── Drag & drop overlay ───────────────────────────────────────────────── */
html[data-design='material3'] .drag-overlay {
background: var(--md-sys-color-surface-container-high);
border: 2px dashed var(--md-sys-color-primary);
box-shadow: var(--md-sys-elevation-3);
}
html[data-design='material3'] .drag-icon {
filter: none;
}
html[data-design='material3'] .drag-title {
font-size: var(--md-sys-typescale-title-medium-size);
line-height: var(--md-sys-typescale-title-medium-line);
font-weight: var(--md-sys-typescale-title-medium-weight);
}
html[data-design='material3'] .drag-sub {
font-size: var(--md-sys-typescale-body-small-size);
line-height: var(--md-sys-typescale-body-small-line);
}
/* ── Вложения ──────────────────────────────────────────────────────────── */
html[data-design='material3'] .attachments-strip {
border-top: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-low);
}
html[data-design='material3'] .attach-chip {
background: var(--md-sys-color-surface-container-high);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
border-radius: var(--md-sys-shape-corner-small);
}
html[data-design='material3'] .attach-chip:hover {
background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 85%, var(--md-sys-color-on-surface) 15%);
border-color: var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .attach-chip-icon {
color: var(--md-sys-color-primary);
opacity: 1;
}
html[data-design='material3'] .attach-chip-name {
font-size: var(--md-sys-typescale-body-small-size);
}
html[data-design='material3'] .attach-chip-remove:hover {
background: color-mix(in srgb, var(--md-sys-color-error) 18%, transparent);
color: var(--md-sys-color-error);
}
/* ── Подвал ────────────────────────────────────────────────────────────── */
html[data-design='material3'] .compose-footer {
background: var(--md-sys-color-surface-container-low);
border-top: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
/* Standard icon button — прикрепить файл */
html[data-design='material3'] .footer-icon-btn {
background: transparent;
border: none;
box-shadow: none;
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .footer-icon-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
border: none;
color: var(--md-sys-color-on-surface);
box-shadow: none;
transform: none;
}
html[data-design='material3'] .footer-icon-btn:active {
box-shadow: none;
}
html[data-design='material3'] .attach-badge {
box-shadow: 0 0 0 2px var(--md-sys-color-surface-container-low);
}
html[data-design='material3'] .send-error {
background: var(--md-sys-color-error-container);
border: 1px solid transparent;
color: var(--md-sys-color-on-error-container);
}
html[data-design='material3'] .shortcut-hint {
font-size: var(--md-sys-typescale-label-small-size);
opacity: 0.7;
}
/* Outlined button — Отмена */
html[data-design='material3'] .btn-cancel {
border-radius: var(--md-sys-shape-corner-full);
font-size: var(--md-sys-typescale-label-large-size);
font-weight: var(--md-sys-typescale-label-large-weight);
letter-spacing: var(--md-sys-typescale-label-large-tracking);
background: transparent;
border: 1px solid var(--md-sys-color-outline);
box-shadow: none;
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .btn-cancel:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
border-color: var(--md-sys-color-outline);
color: var(--md-sys-color-on-surface);
transform: none;
}
/* Filled button — Отправить */
html[data-design='material3'] .btn-send {
border-radius: var(--md-sys-shape-corner-full);
font-size: var(--md-sys-typescale-label-large-size);
font-weight: var(--md-sys-typescale-label-large-weight);
letter-spacing: var(--md-sys-typescale-label-large-tracking);
background: var(--md-sys-color-primary);
box-shadow: none;
}
html[data-design='material3'] .btn-send:hover:not(:disabled) {
background: var(--md-sys-color-primary);
box-shadow: var(--md-sys-elevation-1);
transform: none;
}
html[data-design='material3'] .btn-send:active:not(:disabled) {
box-shadow: none;
}
html[data-design='material3'] .spinner-sm {
border-color: color-mix(in srgb, var(--md-sys-color-on-primary) 30%, transparent);
border-top-color: var(--md-sys-color-on-primary);
}
</style>

View file

@ -2,9 +2,17 @@
import { ref } from 'vue'
import { useRouter } from 'vue-router'
import { useAccountsStore } from '../stores/accounts.store'
import { useSettingsStore, SWIPE_ACTION_LABELS, ACCENT_QUICK_PICKS, AUTO_CHECK_INTERVALS, type SwipeAction } from '../stores/settings.store'
import {
useSettingsStore,
SWIPE_ACTION_LABELS,
ACCENT_QUICK_PICKS,
AUTO_CHECK_INTERVALS,
MATERIAL3_SEED_PRESETS,
type SwipeAction
} from '../stores/settings.store'
import CustomSelect from '../components/CustomSelect.vue'
import ColorPicker from '../components/ColorPicker.vue'
import Switch from '../components/Switch.vue'
import AppIcon from '../components/AppIcon.vue'
import EditAccountDialog from '../components/accounts/EditAccountDialog.vue'
import { useUpdaterStore } from '../stores/updater.store'
@ -88,6 +96,38 @@ function folderDisplayName(path: string): string {
<div class="section-label">Внешний вид</div>
<div class="section-body">
<div class="row">
<span class="col-label">Дизайн</span>
<div class="col-value design-row-content">
<span class="design-name">{{ settingsStore.designSystem === 'material3' ? 'Material 3' : 'Liquid Glass' }}</span>
<Switch
:model-value="settingsStore.designSystem === 'material3'"
@update:model-value="(v) => settingsStore.designSystem = v ? 'material3' : 'liquid-glass'"
/>
</div>
</div>
<div v-if="settingsStore.designSystem === 'material3'" class="row">
<span class="col-label">M3 палитра</span>
<div class="col-value color-row-content">
<span
class="color-dot"
:style="{ background: settingsStore.material3Seed }"
v-tooltip="settingsStore.material3Seed"
/>
<div class="quick-picks">
<button
v-for="hex in MATERIAL3_SEED_PRESETS"
:key="hex"
class="quick-dot"
:class="{ active: settingsStore.material3Seed.toLowerCase() === hex.toLowerCase() }"
:style="{ '--dot-color': hex }"
v-tooltip="hex"
@click="settingsStore.material3Seed = hex"
/>
</div>
<ColorPicker v-model="settingsStore.material3Seed" />
</div>
</div>
<div v-if="settingsStore.designSystem === 'liquid-glass'" class="row">
<span class="col-label">Акцент</span>
<div class="col-value color-row-content">
<span
@ -529,6 +569,19 @@ function folderDisplayName(path: string): string {
border-color: rgba(255, 85, 85, 0.30);
}
/* ── Дизайн-система ──────────────────────────────────────────────────────── */
.design-row-content {
display: flex;
align-items: center;
gap: 10px;
}
.design-name {
font-size: 12.5px;
color: var(--text-secondary);
}
/* ── Цвет ────────────────────────────────────────────────────────────────── */
.color-row-content {
@ -910,4 +963,201 @@ function folderDisplayName(path: string): string {
opacity: 0;
transform: translateY(-4px);
}
/* ══════════════════════════════════════════════════════════════════════════
Material Design 3 — переопределения (активны только под data-design=material3)
══════════════════════════════════════════════════════════════════════════ */
html[data-design='material3'] .settings-panel {
border: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-low);
box-shadow: var(--md-sys-elevation-2);
border-radius: var(--md-sys-shape-corner-large);
}
html[data-design='material3'] .panel-header {
border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
html[data-design='material3'] .panel-title {
font-size: var(--md-sys-typescale-title-large-size);
line-height: var(--md-sys-typescale-title-large-line);
font-weight: var(--md-sys-typescale-title-large-weight);
letter-spacing: var(--md-sys-typescale-title-large-tracking);
}
html[data-design='material3'] .back-btn {
font-size: var(--md-sys-typescale-label-large-size);
font-weight: var(--md-sys-typescale-label-large-weight);
letter-spacing: var(--md-sys-typescale-label-large-tracking);
background: transparent;
border: 1px solid var(--md-sys-color-outline);
box-shadow: none;
}
html[data-design='material3'] .back-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
border-color: var(--md-sys-color-outline);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .back-btn:active {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 10%, transparent);
}
/* Заголовки секций — title-medium согласно контракту типографики */
html[data-design='material3'] .section-label {
font-size: var(--md-sys-typescale-title-medium-size);
line-height: var(--md-sys-typescale-title-medium-line);
font-weight: var(--md-sys-typescale-title-medium-weight);
letter-spacing: var(--md-sys-typescale-title-medium-tracking);
text-transform: none;
color: var(--md-sys-color-on-surface);
padding-bottom: 6px;
}
html[data-design='material3'] .section-body {
background: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
border-radius: var(--md-sys-shape-corner-medium);
}
html[data-design='material3'] .row {
border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
/* Метки и значения строк — body-medium согласно контракту */
html[data-design='material3'] .col-label {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
font-weight: var(--md-sys-typescale-body-medium-weight);
letter-spacing: var(--md-sys-typescale-body-medium-tracking);
text-transform: none;
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .col-value {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
font-weight: var(--md-sys-typescale-body-medium-weight);
letter-spacing: var(--md-sys-typescale-body-medium-tracking);
color: var(--md-sys-color-on-surface);
}
/* Кнопки строк (Изменить/Удалить/Проверить) — Outlined tier */
html[data-design='material3'] .action-btn {
font-size: var(--md-sys-typescale-label-large-size);
font-weight: var(--md-sys-typescale-label-large-weight);
letter-spacing: var(--md-sys-typescale-label-large-tracking);
background: transparent;
border: 1px solid var(--md-sys-color-outline);
box-shadow: none;
border-radius: var(--md-sys-shape-corner-full);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .action-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
border-color: var(--md-sys-color-outline);
color: var(--md-sys-color-on-surface);
}
html[data-design='material3'] .action-btn.danger {
color: var(--md-sys-color-error);
border-color: color-mix(in srgb, var(--md-sys-color-error) 55%, transparent);
background: transparent;
}
html[data-design='material3'] .action-btn.danger:hover {
background: color-mix(in srgb, var(--md-sys-color-error) 8%, transparent);
border-color: var(--md-sys-color-error);
}
/* Filled tonal — второстепенные акцентные действия (Скачать/Установить) */
html[data-design='material3'] .accent-btn {
background: var(--md-sys-color-secondary-container);
border: 1px solid transparent;
color: var(--md-sys-color-on-secondary-container);
}
html[data-design='material3'] .accent-btn:hover {
background: color-mix(in srgb, var(--md-sys-color-secondary-container) 88%, var(--md-sys-color-on-secondary-container) 12%);
border-color: transparent;
}
html[data-design='material3'] .design-name {
font-size: var(--md-sys-typescale-body-medium-size);
line-height: var(--md-sys-typescale-body-medium-line);
}
/* Точки-цвета — общие для акцента и M3-палитры */
html[data-design='material3'] .color-dot {
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: var(--md-sys-elevation-1);
}
html[data-design='material3'] .quick-dot {
border: 1px solid var(--md-sys-color-outline-variant);
box-shadow: none;
}
html[data-design='material3'] .quick-dot:hover {
box-shadow: var(--md-sys-elevation-1);
}
html[data-design='material3'] .quick-dot.active {
border-color: var(--md-sys-color-on-surface);
box-shadow: 0 0 0 2px var(--md-sys-color-surface-container), 0 0 0 3px var(--dot-color);
}
/* Слайдер масштаба */
html[data-design='material3'] .scale-slider {
background: var(--md-sys-color-surface-container-highest);
box-shadow: none;
}
html[data-design='material3'] .scale-slider::-webkit-slider-runnable-track {
background: linear-gradient(
to right,
var(--md-sys-color-primary) var(--pct, 33%),
var(--md-sys-color-surface-container-highest) var(--pct, 33%)
);
}
html[data-design='material3'] .scale-slider::-webkit-slider-thumb {
background: var(--md-sys-color-primary);
box-shadow: var(--md-sys-elevation-1);
}
html[data-design='material3'] .scale-slider::-webkit-slider-thumb:hover {
box-shadow: var(--md-sys-elevation-2), 0 0 0 8px color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
}
/* Версия приложения / статус обновлений */
html[data-design='material3'] .ver-chip {
background: var(--md-sys-color-surface-container-highest);
border: 1px solid var(--md-sys-color-outline-variant);
color: var(--md-sys-color-on-surface-variant);
}
html[data-design='material3'] .status-ok {
background: var(--md-sys-color-tertiary-container);
color: var(--md-sys-color-on-tertiary-container);
border: 1px solid transparent;
}
html[data-design='material3'] .status-new {
background: var(--md-sys-color-primary-container);
color: var(--md-sys-color-on-primary-container);
border: 1px solid transparent;
}
html[data-design='material3'] .update-progress-track {
background: var(--md-sys-color-surface-container-highest);
}
html[data-design='material3'] .update-error {
color: var(--md-sys-color-error);
}
</style>