-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何统一设置所有组件字体大小 #4495
Labels
Comments
这个现在的确没有更好的方案了,现在 antd-mobile 的风格化能力还做的不够,后面我们会完善一下 |
这个 issue 先挂在这里吧 |
我也觉得mobile字体过大 |
竟然是写死,没rem |
rem 是你自己项目中处理的,作为一个组件库,antd-mobile 本来就不应该使用 rem 作为单位 |
但统一能更改字体很有必要17大了。要秀气才好看。 |
试试直接hack全局变量的值
|
我觉得 antd 的默认正文字体太小,直接hack也会有些问题,就是整个字体看起来和组件margin padding不和谐 |
感觉 antd mobile 已经没有人维护了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version of antd-mobile
5.0.0-beta.25
Description
现在设置组件字体大小,只能一个一个的组件单独设置,感觉很麻烦,有没有什么方法统一设置
目前我采用的这种方法,感觉不友好
:root:root {
--adm-font-size-main: 14px;
.adm-list {
font-size: 14px;
}
.adm-radio-content {
font-size: 14px;
}
.adm-checkbox-content {
font-size: 14px;
}
}
The text was updated successfully, but these errors were encountered: