fix: remove chaotic font css
This commit is contained in:
@@ -76,7 +76,6 @@ const InnerContainer = styled('div')({
|
|||||||
boxShadow: '$panel',
|
boxShadow: '$panel',
|
||||||
maxWidth: 320,
|
maxWidth: 320,
|
||||||
color: '$text',
|
color: '$text',
|
||||||
fontFamily: '$ui',
|
|
||||||
fontSize: '$2',
|
fontSize: '$2',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
@@ -90,11 +89,9 @@ const InnerContainer = styled('div')({
|
|||||||
backgroundColor: '$hover',
|
backgroundColor: '$hover',
|
||||||
padding: '$4',
|
padding: '$4',
|
||||||
borderRadius: '$2',
|
borderRadius: '$2',
|
||||||
fontFamily: '"Menlo", "Monaco", monospace',
|
|
||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
},
|
},
|
||||||
'& p': {
|
'& p': {
|
||||||
fontFamily: '$body',
|
|
||||||
lineHeight: 1.7,
|
lineHeight: 1.7,
|
||||||
padding: '$5',
|
padding: '$5',
|
||||||
margin: 0,
|
margin: 0,
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ const StyledLoadingPanelContainer = styled('div')({
|
|||||||
borderBottomLeftRadius: '12px',
|
borderBottomLeftRadius: '12px',
|
||||||
borderBottomRightRadius: '12px',
|
borderBottomRightRadius: '12px',
|
||||||
padding: '8px 16px',
|
padding: '8px 16px',
|
||||||
fontFamily: 'var(--fonts-ui)',
|
|
||||||
fontSize: 'var(--fontSizes-1)',
|
fontSize: 'var(--fontSizes-1)',
|
||||||
boxShadow: 'var(--shadows-panel)',
|
boxShadow: 'var(--shadows-panel)',
|
||||||
backgroundColor: 'white',
|
backgroundColor: 'white',
|
||||||
|
|||||||
@@ -165,7 +165,6 @@ const Wrapper = styled('div')<{
|
|||||||
}>({
|
}>({
|
||||||
pointerEvents: 'all',
|
pointerEvents: 'all',
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
fontFamily: 'sans-serif',
|
|
||||||
fontSize: '2em',
|
fontSize: '2em',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
|||||||
@@ -210,7 +210,6 @@ const Wrapper = styled('div')<{
|
|||||||
}>({
|
}>({
|
||||||
pointerEvents: 'all',
|
pointerEvents: 'all',
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
fontFamily: 'sans-serif',
|
|
||||||
fontSize: '2em',
|
fontSize: '2em',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
|||||||
@@ -519,7 +519,6 @@ const styles = style9.create({
|
|||||||
outline: 'none',
|
outline: 'none',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
padding: '0',
|
padding: '0',
|
||||||
fontFamily: 'Helvetica,Arial,"Microsoft Yahei",SimHei,sans-serif',
|
|
||||||
'::-webkit-input-placeholder': {
|
'::-webkit-input-placeholder': {
|
||||||
color: '#98acbd',
|
color: '#98acbd',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export type ExtendedTextUtils = SlateUtils & {
|
|||||||
};
|
};
|
||||||
const TextBlockContainer = styled(Text)(({ theme }) => ({
|
const TextBlockContainer = styled(Text)(({ theme }) => ({
|
||||||
lineHeight: theme.affine.typography.body1.lineHeight,
|
lineHeight: theme.affine.typography.body1.lineHeight,
|
||||||
fontFamily: theme.affine.typography.body1.fontFamily,
|
|
||||||
color: theme.affine.typography.body1.color,
|
color: theme.affine.typography.body1.color,
|
||||||
letterSpacing: '0.1px',
|
letterSpacing: '0.1px',
|
||||||
a: {
|
a: {
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ const styles = style9.create({
|
|||||||
color: '#98ACBD',
|
color: '#98ACBD',
|
||||||
fontSize: '12px',
|
fontSize: '12px',
|
||||||
lineHeight: '14px',
|
lineHeight: '14px',
|
||||||
fontFamily: 'Helvetica,Arial,"Microsoft Yahei",SimHei,sans-serif',
|
|
||||||
textAlign: 'justify',
|
textAlign: 'justify',
|
||||||
letterSpacing: '1.5px',
|
letterSpacing: '1.5px',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ export const Menu = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const MenuUl = styled('ul')(({ theme }) => ({
|
const MenuUl = styled('ul')(({ theme }) => ({
|
||||||
fontFamily: 'PingFang SC',
|
|
||||||
background: '#FFF',
|
background: '#FFF',
|
||||||
color: '#4C6275',
|
color: '#4C6275',
|
||||||
fontWeight: '400',
|
fontWeight: '400',
|
||||||
|
|||||||
@@ -177,6 +177,5 @@ const styles = style9.create({
|
|||||||
},
|
},
|
||||||
dropdownItemItext: {
|
dropdownItemItext: {
|
||||||
color: '#4C6275',
|
color: '#4C6275',
|
||||||
fontFamily: 'Helvetica,Arial,"Microsoft Yahei",SimHei,sans-serif',
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -251,7 +251,6 @@ const LinkModalContainerInput = styled('input')(({ theme }) => ({
|
|||||||
outline: 'none',
|
outline: 'none',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
padding: '8px',
|
padding: '8px',
|
||||||
fontFamily: 'Helvetica,Arial,"Microsoft Yahei",SimHei,sans-serif',
|
|
||||||
'::-webkit-input-placeholder': {
|
'::-webkit-input-placeholder': {
|
||||||
color: '#98acbd',
|
color: '#98acbd',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import ButtonUnstyled, {
|
|||||||
import { styled } from '../styled';
|
import { styled } from '../styled';
|
||||||
|
|
||||||
export const BaseButton = styled(ButtonUnstyled)`
|
export const BaseButton = styled(ButtonUnstyled)`
|
||||||
fontFamily: 'Helvetica,Arial,"Microsoft Yahei",SimHei,sans-serif',
|
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
|
|||||||
@@ -131,7 +131,6 @@ export function Cascader(props: CascaderProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const MenuPaper = styled('div')(({ theme }) => ({
|
const MenuPaper = styled('div')(({ theme }) => ({
|
||||||
fontFamily: 'PingFang SC',
|
|
||||||
background: '#FFF',
|
background: '#FFF',
|
||||||
boxShadow: theme.affine.shadows.shadow1,
|
boxShadow: theme.affine.shadows.shadow1,
|
||||||
borderRadius: '10px 0px 10px 10px',
|
borderRadius: '10px 0px 10px 10px',
|
||||||
|
|||||||
@@ -1,111 +1,3 @@
|
|||||||
// import { ThemeOptions } from '@mui/material/styles';
|
|
||||||
/**
|
|
||||||
* @deprecated Please use the new {@link ThemeOptions} type.
|
|
||||||
*/
|
|
||||||
interface ThemeOptionsLegacy {
|
|
||||||
palette: Palette;
|
|
||||||
typography: Typography;
|
|
||||||
shadows?: Shadows;
|
|
||||||
border?: StringWithNone;
|
|
||||||
spacing?: Spacing;
|
|
||||||
shape?: Shape;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Shape {
|
|
||||||
xsBorderRadius?: string;
|
|
||||||
borderRadius?: string;
|
|
||||||
smBorderRadius?: string;
|
|
||||||
lgBorderRadius?: string;
|
|
||||||
}
|
|
||||||
interface Spacing {
|
|
||||||
xsSpacing: string;
|
|
||||||
smSpacing?: string;
|
|
||||||
main?: string;
|
|
||||||
lgSpacing?: string;
|
|
||||||
}
|
|
||||||
interface Palette {
|
|
||||||
primary?: Action;
|
|
||||||
success?: Action;
|
|
||||||
info?: Action;
|
|
||||||
error?: Action;
|
|
||||||
warning?: Action;
|
|
||||||
text?: Action;
|
|
||||||
}
|
|
||||||
interface Action {
|
|
||||||
main: string;
|
|
||||||
active?: string;
|
|
||||||
hover?: string;
|
|
||||||
hoverOpacity?: number;
|
|
||||||
selected?: string;
|
|
||||||
selectedOpacity?: number;
|
|
||||||
disabled?: string;
|
|
||||||
disabledOpacity?: number;
|
|
||||||
disabledBackground?: string;
|
|
||||||
focus?: string;
|
|
||||||
focusOpacity?: number;
|
|
||||||
activatedOpacity?: number;
|
|
||||||
}
|
|
||||||
interface Typography {
|
|
||||||
fontSize?: string;
|
|
||||||
fontFamily?: string;
|
|
||||||
xsFontSize?: string;
|
|
||||||
lgFontSize?: string;
|
|
||||||
fontWeight?: number;
|
|
||||||
xsFontWeight?: number;
|
|
||||||
lineHeight?: string;
|
|
||||||
lgFontWeight?: number;
|
|
||||||
button?: Font;
|
|
||||||
body1?: Font;
|
|
||||||
body2?: Font;
|
|
||||||
h1?: Font;
|
|
||||||
h2?: Font;
|
|
||||||
h3?: Font;
|
|
||||||
h4?: Font;
|
|
||||||
h5?: Font;
|
|
||||||
page?: Font;
|
|
||||||
quote?: Font;
|
|
||||||
callout?: Font;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Shadows {
|
|
||||||
none: 'none';
|
|
||||||
shadow1: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
type StringWithNone = [
|
|
||||||
'none',
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?,
|
|
||||||
string?
|
|
||||||
];
|
|
||||||
interface Font {
|
|
||||||
fontSize?: string;
|
|
||||||
lineHeight?: string;
|
|
||||||
fontFamily?: string;
|
|
||||||
fontWeight?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const Theme = {
|
export const Theme = {
|
||||||
palette: {
|
palette: {
|
||||||
/**
|
/**
|
||||||
@@ -166,6 +58,24 @@ export const Theme = {
|
|||||||
textHover: '#ECF1FB',
|
textHover: '#ECF1FB',
|
||||||
},
|
},
|
||||||
typography: {
|
typography: {
|
||||||
|
fontFamily: (
|
||||||
|
[
|
||||||
|
'-apple-system',
|
||||||
|
'BlinkMacSystemFont',
|
||||||
|
'Helvetica Neue',
|
||||||
|
'Tahoma',
|
||||||
|
'PingFang SC',
|
||||||
|
'Microsoft Yahei',
|
||||||
|
'Arial',
|
||||||
|
'Hiragino Sans GB',
|
||||||
|
'sans-serif',
|
||||||
|
'Apple Color Emoji',
|
||||||
|
'Segoe UI Emoji',
|
||||||
|
'Segoe UI Symbol',
|
||||||
|
'Noto Color Emoji',
|
||||||
|
] as const
|
||||||
|
).join(', '),
|
||||||
|
|
||||||
button: {
|
button: {
|
||||||
fontSize: '16px',
|
fontSize: '16px',
|
||||||
},
|
},
|
||||||
@@ -173,7 +83,6 @@ export const Theme = {
|
|||||||
fontSize: '16px',
|
fontSize: '16px',
|
||||||
lineHeight: '22px',
|
lineHeight: '22px',
|
||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
fontFamily: 'PingFang SC',
|
|
||||||
color: '#3A4C5C',
|
color: '#3A4C5C',
|
||||||
},
|
},
|
||||||
h1: {
|
h1: {
|
||||||
|
|||||||
Reference in New Issue
Block a user