mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 03:33:06 +08:00
fix(core): update noise image (#5219)
seems https://github.com/toeverything/AFFiNE/pull/4946 not in latest canary.
This commit is contained in:
@@ -23,7 +23,7 @@ export const appStyle = style({
|
|||||||
inset: 0,
|
inset: 0,
|
||||||
opacity: 'var(--affine-noise-opacity, 0)',
|
opacity: 'var(--affine-noise-opacity, 0)',
|
||||||
backgroundRepeat: 'repeat',
|
backgroundRepeat: 'repeat',
|
||||||
backgroundSize: '2.5%',
|
backgroundSize: '3%',
|
||||||
// todo: figure out how to use vanilla-extract webpack plugin to inject img url
|
// todo: figure out how to use vanilla-extract webpack plugin to inject img url
|
||||||
backgroundImage: `var(--noise-background)`,
|
backgroundImage: `var(--noise-background)`,
|
||||||
},
|
},
|
||||||
@@ -32,13 +32,13 @@ export const appStyle = style({
|
|||||||
|
|
||||||
globalStyle(`html[data-theme="light"] ${appStyle}`, {
|
globalStyle(`html[data-theme="light"] ${appStyle}`, {
|
||||||
vars: {
|
vars: {
|
||||||
'--affine-noise-opacity': '0.25',
|
'--affine-noise-opacity': '0.35',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
globalStyle(`html[data-theme="dark"] ${appStyle}`, {
|
globalStyle(`html[data-theme="dark"] ${appStyle}`, {
|
||||||
vars: {
|
vars: {
|
||||||
'--affine-noise-opacity': '0.1',
|
'--affine-noise-opacity': '1',
|
||||||
},
|
},
|
||||||
|
|
||||||
'@media': {
|
'@media': {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--noise-background: url(./noise.png);
|
--noise-background: url(./noise.avif);
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 45 KiB |
Reference in New Issue
Block a user