From c570a19b3714cbcee432d3bf62f96b547fb2b8f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 21 Jun 2024 14:46:45 -0400 Subject: [PATCH] scale down header font size --- install/package.json | 2 +- public/scss/global.scss | 17 +++++++++++++++++ public/src/client/topic.js | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/install/package.json b/install/package.json index 7db386123a..e00126ed9a 100644 --- a/install/package.json +++ b/install/package.json @@ -107,7 +107,7 @@ "nodebb-theme-harmony": "1.2.59", "nodebb-theme-lavender": "7.1.8", "nodebb-theme-peace": "2.2.5", - "nodebb-theme-persona": "13.3.21", + "nodebb-theme-persona": "13.3.22", "nodebb-widget-essentials": "7.0.16", "nodemailer": "6.9.13", "nprogress": "0.2.0", diff --git a/public/scss/global.scss b/public/scss/global.scss index 394eec646e..a33e74eb35 100644 --- a/public/scss/global.scss +++ b/public/scss/global.scss @@ -20,3 +20,20 @@ html[data-dir="rtl"] { } } /*rtl:end:ignore*/ + +[component="post/content"], [component="chat/message/body"], [component="composer"] .preview { + h1 { font-size: calc(1.125rem + 1vw); } + h2 { font-size: calc(1.1rem + 0.8vw); } + h3 { font-size: calc(1.075rem + 0.6vw); } + h4 { font-size: calc(1.05rem + 0.3vw); } + h5 { font-size: 1.125rem; } + h6 { font-size: 1rem; } + @include media-breakpoint-up(xl) { + h1 { font-size: 1.625rem; } + h2 { font-size: 1.5rem; } + h3 { font-size: 1.375rem; } + h4 { font-size: 1.250rem; } + h5 { font-size: 1.125rem; } + h6 { font-size: 1rem; } + } +} \ No newline at end of file diff --git a/public/src/client/topic.js b/public/src/client/topic.js index 49f2c1bc42..3e7ffa7ee9 100644 --- a/public/src/client/topic.js +++ b/public/src/client/topic.js @@ -297,7 +297,7 @@ define('forum/topic', [ destroyed = true; } $(window).one('action:ajaxify.start', destroyTooltip); - $('[component="topic"]').on('mouseenter', '[component="post"] [component="post/content"] a, [component="topic/event"] a', async function () { + $('[component="topic"]').on('mouseenter', '[component="post/parent"] a, [component="post/content"] a, [component="topic/event"] a', async function () { const link = $(this); destroyed = false;