Skip to content

Commit edb3b5e

Browse files
committed
Fix and improve font methods
1 parent a917bc7 commit edb3b5e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/style.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,24 +338,28 @@ export class Style extends StandardAnimation {
338338
return this.textDecoration('line-through');
339339
}
340340

341+
lineHeight(height) {
342+
return this.style('line-height', height);
343+
}
344+
341345
title() {
342-
return this.textSize('2em');
346+
return this.fontSize('2em');
343347
}
344348

345349
heading() {
346-
return this.textSize('1.5em');
350+
return this.fontSize('1.5em');
347351
}
348352

349353
subheading() {
350-
return this.textSize('1.17em');
354+
return this.fontSize('1.17em');
351355
}
352356

353357
header() {
354-
return this.textSize('1em');
358+
return this.fontSize('1em');
355359
}
356360

357361
subheader() {
358-
return this.textSize('.83em');
362+
return this.fontSize('.83em');
359363
}
360364

361365
truncate(lines = 1) {

0 commit comments

Comments
 (0)