From 511d96a5226a6822e48e4d11a3d855883fdfe0ad Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Mon, 4 Mar 2024 09:01:01 -0800 Subject: [PATCH] [ticket/17291] Utilize font classes from the Icon function PHPBB3-17291 Signed-off-by: Matt Friedman --- phpBB/adm/style/admin.css | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/phpBB/adm/style/admin.css b/phpBB/adm/style/admin.css index 4bf0091c6c..290eaffcf8 100644 --- a/phpBB/adm/style/admin.css +++ b/phpBB/adm/style/admin.css @@ -3007,12 +3007,6 @@ fieldset.permissions .permissions-switch { padding-right: 0.3em; } -/* this class loads Free and Brand icons, for use when .fas and .fab are needed at same time */ -.icon { - font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands"; - font-style: normal; -} - .send-stats-data-row { background: #f9f9f9; border: #dedede 1px solid; @@ -3106,6 +3100,28 @@ fieldset.permissions .permissions-switch { overflow-x: scroll; } +.o-icon { + vertical-align: middle !important; +} + +.o-icon-font { + font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands"; + font-style: normal; + font-variant: normal; + -webkit-font-smoothing: antialiased; + vertical-align: baseline; + display: inline-block; + /* stylelint-disable order/properties-order */ + -moz-osx-font-smoothing: grayscale; + /* stylelint-enable order/properties-order */ + text-rendering: auto; /* optimizelegibility throws things off #1094 */ +} + +.o-icon + span, +span + .o-icon { + padding-left: 4px; +} + .acp-icon { font-size: 1.5em; }