font size isn't changing
See original GitHub issueBug Report
Describe the bug Font-size of h1 isn’t changing when fontSize’s data type is Array.
my doczrc.js:
const path = require('path')
module.exports = {
title: 'the title',
description: 'description of component',
src: path.resolve(__dirname, 'examples'),
dest: './dist',
codeSandbox: false,
themeConfig: {
styles: {
h1: {
fontFamily: '\'Source Sans Pro\', Helvetica, sans-serif',
fontWeight: 100,
fontSize: [36, 38, 42]
}
}
}
}
But, the font-size is …
1120px: 36px 920px: 70px 420px: 50px
I expected …
1120px: 42px 920px: 38px 420px: 36px
Environment
- OS: OS X (Mojave)
- Node/npm version: v11.4.0 / v6.5.0
- docz: 0.13.7
- docz-theme-default: 0.13.7
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Why font size does not change? - Stack Overflow
If you don't have other CSS, the current CSS can set div's font size to 12px correctly. You could check its computed style...
Read more >Change of font size has no effect - HTML & CSS - SitePoint
Hey, I can't seem to work out why i can't change the font size of the <ul> in the left column of this...
Read more >Font Size Problems? Check Here First! - Codecademy
Go to your browser's settings and make sure in the font settings that your minimum font setting is set to 10px… if not...
Read more >Why isn't the font size changing? (Example) - Treehouse
This is bugging me. It's from the intro "build a website" course. I cannot change the size of the h1 or the h2...
Read more >How to Change Font Size in CSS - HubSpot Blog
Learn how to change the size of different elements on your web page using the font-size property in CSS.
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
My solution is a workaround. It’d be nice if the font in the menu could be tweaked in a slightly less crazy way 🙂
I finally manage to reduce font size in the menu on the left and in the main area by using the following workaround:
[1]: docz/packages/docz-theme-default/src/styles/global.ts#L15