From 588dd92c24a0e780ee441dd7c15957efd6c6267c Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Thu, 7 Oct 2021 13:37:51 +0200 Subject: [PATCH] Add custom heading style to player and editor This is rather hard to implement via HTML inline style attributes. So we do it the classic way. Could be reviewed, when that feature is implemented in TipTap: https://github.com/ueberdosis/tiptap/issues/1514. --- projects/editor/src/styles.css | 17 ++++++++++++++++- projects/player/src/styles.css | 17 +++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/projects/editor/src/styles.css b/projects/editor/src/styles.css index 674a5fc9a..ef1469db0 100644 --- a/projects/editor/src/styles.css +++ b/projects/editor/src/styles.css @@ -14,4 +14,19 @@ body { .drop-list {cursor: grab} .drop-list.cdk-drop-list-dragging {cursor: grabbing} -.mat-menu-panel {border: 2px solid red} +h1 { + font-weight: bold; + font-size: 20px; +} +h2 { + font-weight: bold; + font-size: 18px; +} +h3 { + font-weight: bold; + font-size: 16px; +} +h4 { + font-weight: normal; + font-size: 16px; +} diff --git a/projects/player/src/styles.css b/projects/player/src/styles.css index d9d9d6021..8b6d11633 100644 --- a/projects/player/src/styles.css +++ b/projects/player/src/styles.css @@ -2,3 +2,20 @@ body { overflow: hidden; margin: 0; } + +h1 { + font-weight: bold; + font-size: 20px; +} +h2 { + font-weight: bold; + font-size: 18px; +} +h3 { + font-weight: bold; + font-size: 16px; +} +h4 { + font-weight: normal; + font-size: 16px; +} -- GitLab