mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): avoid side effects (#8245)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"main": "./src/index.ts",
|
||||
"exports": {
|
||||
".": "./src/index.ts",
|
||||
"./theme/*": "./src/theme/*",
|
||||
"./theme": "./src/theme/index.ts",
|
||||
"./ui/*": "./src/ui/*/index.ts",
|
||||
"./*": "./src/components/*/index.tsx"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
@import './fonts.css';
|
||||
@import '@toeverything/theme/style.css';
|
||||
|
||||
* {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
||||
|
||||
4
packages/frontend/component/src/theme/index.ts
Normal file
4
packages/frontend/component/src/theme/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import '@toeverything/theme/style.css';
|
||||
import './fonts.css';
|
||||
import './global.css';
|
||||
import './theme.css';
|
||||
@@ -6,9 +6,3 @@ globalStyle('body', {
|
||||
fontFamily: cssVar('fontFamily'),
|
||||
fontSize: cssVar('fontBase'),
|
||||
});
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
globalStyle('.undefined', {
|
||||
border: '5px solid red !important',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user