Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Reduced wysiwyg heading sizes (#8868)

Benjamin Bädorf1a7e5b3d7731
diff --git a/frontend/src/global_styles/content/user-content/_index.sass b/frontend/src/global_styles/content/user-content/_index.sass
index b02510f1768..6c046bd0361 100644
--- a/frontend/src/global_styles/content/user-content/_index.sass
+++ b/frontend/src/global_styles/content/user-content/_index.sass
@@ -9,8 +9,8 @@
@import 'placeholder'
.op-uc-container
- --op-uc-heading-base: 3.5rem
- --op-uc-heading-falloff: 0.7
+ --op-uc-heading-base: 1.8rem
+ --op-uc-heading-falloff: 0.85
display: block
overflow: hidden
font-size: var(--wiki-default-font-size)
diff --git a/frontend/src/global_styles/content/user-content/_toc.sass b/frontend/src/global_styles/content/user-content/_toc.sass
index 697c1083c27..ec900d4b396 100644
--- a/frontend/src/global_styles/content/user-content/_toc.sass
+++ b/frontend/src/global_styles/content/user-content/_toc.sass
@@ -3,8 +3,8 @@
font-size: var(--wiki-toc-ul-font-size)
background-color: #fafafa
border: 1px solid #dadada
- float: left
- margin: 1rem 2rem 1rem 0rem
+ float: right
+ margin: 1rem 0rem 1rem 2rem
padding: 1.5rem 1.5rem 1.5rem 0rem
&--list
diff --git a/frontend/src/global_styles/layout/_toolbar.sass b/frontend/src/global_styles/layout/_toolbar.sass
index 1baa0f49183..4ebd5ee7cf2 100644
--- a/frontend/src/global_styles/layout/_toolbar.sass
+++ b/frontend/src/global_styles/layout/_toolbar.sass
@@ -216,12 +216,6 @@ $nm-color-success-background: #d8fdd1
@include text-shortener
padding: 0
- // WYSIWYG content creates bigger headings than this. When viewing on screen, this is okay since the general page
- // layout does a decent job conveying hierarchy. However, when printing we need to bump the size of this heading
- // (which is really the page heading) to be larger than the user-content h1.
- @media print
- font-size: 4rem
-
div.inline-edit
cursor: pointer