Added back reduction in size
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
This commit is contained in:
@@ -47,7 +47,8 @@ ${headings.reduce<string>((style, heading) => {
|
||||
let factor: number | string = 1;
|
||||
if (typeof value === 'number') {
|
||||
// convert px to rem
|
||||
factor = value / htmlFontSize;
|
||||
// 60% of the size defined because it is too big
|
||||
factor = (value / htmlFontSize) * 0.6;
|
||||
}
|
||||
if (typeof value === 'string') {
|
||||
factor = value.replace('rem', '');
|
||||
|
||||
Reference in New Issue
Block a user