Simplify viewport and root font-size setting scripts
See original GitHub issueimport { hd } from 'antd-mobile'
hd()
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (11 by maintainers)
Top Results From Across the Web
Viewport Sized Typography | CSS-Tricks
When the browser window is resized, the font doesn't adjust itself according to the new viewport size. The spec says:.
Read more >Change font size in Vuetify based on viewport? - Stack Overflow
This will allow you to assign/apply specific properties and attributes based upon viewport size. One possible (and rather direct way) is ...
Read more >Responsive fonts - auto-scaling root font-size in pure CSS
The root font-size scales up and down proportionately, between defined values, dependent upon the viewport width. Easy-peasy, stretch & squeezy. Simplify your ...
Read more >Is it a good habit to use vw for font size and % for padding?
I like to use % for the root font size, then use rem for all the fonts in the page. That way the...
Read more >Responsive fonts - auto-scaling the root font-size
Using pure CSS the root font size scales up and down proportionately, between defined values, dependent upon the viewport width.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hd
=>enableHD
😄close in https://github.com/ant-design/ant-design-mobile/pull/1713/
antd-mobile@2.0 适配方案