fix(promptlib): 1.14.8 给新 token 加兜底,旧客户端也能正常显示
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m34s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m34s
1.14.7 直接用 var(--iwb-accent-on-surface) / var(--iwb-accent-tint),但这两个 token 是 3.26.108 才加进客户端的; 3.26.107 及更早的客户端取不到值 → 药丸会变成透明底 + 继承色。 - styles.css:两个 var() 都补上 color-mix 兜底值(与 token 定义一致),新旧客户端视觉一致
This commit is contained in:
1 parent
04cc527002
commit
0ccc9041d0
3 files changed
+6
-6
No files matched your search
+3
-3
@@ -56,11 +56,11 @@
|
||||
"dir": "promptlib",
|
||||
"main": "main.js",
|
||||
"style": "styles.css",
|
||||
"version": "1.14.7",
|
||||
"version": "1.14.8",
|
||||
"files": {
|
||||
"manifest.json": "90fddf54829df6da467990c8c24832091d2a393465a89da3c926438bc490acfd",
|
||||
"manifest.json": "90ac2a9407332c12632bd63a7b7e8cab0addc20ebdac498efa47ebbe51371a73",
|
||||
"main.js": "cbb6e555eb575194c5210bcc56945bef50e4477986d9d41818b0d55f0845f4ab",
|
||||
"styles.css": "4050f20ca04f47d1ccf6360f8d9449fa5829ec1c3bdee9e9cdb98083dfccb2c2"
|
||||
"styles.css": "86f73b4d1c7b827f97ec1135c9130c7da6898537b2ed2ab815e282618232f56b"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "promptlib",
|
||||
"name": "提示词库",
|
||||
"version": "1.14.7",
|
||||
"version": "1.14.8",
|
||||
"apiVersion": 1,
|
||||
"main": "main.js",
|
||||
"style": "styles.css",
|
||||
@@ -14,6 +14,6 @@
|
||||
],
|
||||
"files": {
|
||||
"main.js": "cbb6e555eb575194c5210bcc56945bef50e4477986d9d41818b0d55f0845f4ab",
|
||||
"styles.css": "4050f20ca04f47d1ccf6360f8d9449fa5829ec1c3bdee9e9cdb98083dfccb2c2"
|
||||
"styles.css": "86f73b4d1c7b827f97ec1135c9130c7da6898537b2ed2ab815e282618232f56b"
|
||||
}
|
||||
}
|
||||
@@ -160,7 +160,7 @@
|
||||
.iwb-plp-nref input[type="checkbox"]:checked::after{content:"";position:absolute;left:50%;top:50%;width:4px;height:8px;border:solid var(--iwb-on-brand,#ffffff);border-width:0 2px 2px 0;transform:translate(-50%,-58%) rotate(45deg)}
|
||||
/* v1.14.6:强调色当文字用时必须和正文色混合 —— 直接用 --iwb-brand 在暗色下对比度不够(蓝字压深灰底)。
|
||||
亮色混深(更沉),暗色混浅(更亮),两端都过 4.5:1。 */
|
||||
.iwb-plp-nref.is-on{background:var(--iwb-accent-tint);color:var(--iwb-accent-on-surface)}
|
||||
.iwb-plp-nref.is-on{background:var(--iwb-accent-tint, color-mix(in srgb, var(--iwb-brand) 18%, transparent));color:var(--iwb-accent-on-surface, color-mix(in srgb, var(--iwb-brand) 45%, var(--iwb-text)))}
|
||||
.iwb-plp-nref.is-on em{color:inherit;opacity:.8}
|
||||
.iwb-plp-nprev{margin-top:2px;border-top:1px dashed var(--iwb-border,#e3e5e9);padding-top:6px;color:var(--iwb-text2,#5b6472);font-size: 12px;line-height:1.6;max-height:88px;overflow:hidden}
|
||||
|
||||
|
||||
Reference in new issue
Block a user