From 36688139f8a7866b67ae5dee1c1530872516214c Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 5 Oct 2023 14:11:03 +0300 Subject: [PATCH] fully use the new macros --- files/assets/css/chat.css | 4 ++++ files/assets/css/main.css | 2 ++ files/templates/settings/common.html | 2 +- files/templates/submit.html | 4 +++- files/templates/userpage/admintools.html | 3 ++- files/templates/util/macros.html | 17 +++++------------ 6 files changed, 17 insertions(+), 15 deletions(-) diff --git a/files/assets/css/chat.css b/files/assets/css/chat.css index d95658755c..66154f20f5 100644 --- a/files/assets/css/chat.css +++ b/files/assets/css/chat.css @@ -184,3 +184,7 @@ h1, h2, h3, h4, h5, h6 { margin-bottom: 0.3rem; } } + +#shrink .format * { + font-size: 1.3rem !important; +} diff --git a/files/assets/css/main.css b/files/assets/css/main.css index f1902f7050..1398870702 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -4570,6 +4570,8 @@ ul.comment-section { padding: 0.3rem 0.4rem; font-size: 1rem; color: var(--gray-200); + margin-top: auto !important; + margin-bottom: auto !important; } .format:hover { color: var(--black); diff --git a/files/templates/settings/common.html b/files/templates/settings/common.html index 99274c91cf..a84c171c6f 100644 --- a/files/templates/settings/common.html +++ b/files/templates/settings/common.html @@ -61,7 +61,7 @@
{% if show_emojis %} -
+ {{macros.emoji_btn(id ~ '-body')}} {% endif %} {{below_text}} diff --git a/files/templates/submit.html b/files/templates/submit.html index ec4fb0565c..339fcb6157 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -29,7 +29,9 @@
- + + {{macros.emoji_btn('post-title')}} +
diff --git a/files/templates/userpage/admintools.html b/files/templates/userpage/admintools.html index 9e2e503fbe..6e278be4d6 100644 --- a/files/templates/userpage/admintools.html +++ b/files/templates/userpage/admintools.html @@ -40,7 +40,8 @@
-
+ {{macros.emoji_btn('flair_htmlbody-' ~ deviceType)}} +
diff --git a/files/templates/util/macros.html b/files/templates/util/macros.html index 01ffb20581..77901b2804 100644 --- a/files/templates/util/macros.html +++ b/files/templates/util/macros.html @@ -116,7 +116,7 @@ {% endmacro %} -{% macro file_btn(input_id, disabled) %} +{% macro file_btn(input_id, disabled, image_only) %}
- - - - - - + {{emoji_btn('input-text-chat')}} + {{file_btn('input-text-chat', False, True)}} - + - +