From 26e6def921fa5c477afe9635c6a7a2271ab352a1 Mon Sep 17 00:00:00 2001 From: Paul Kevan <2290623+pkevan@users.noreply.github.com> Date: Wed, 26 Jun 2024 13:34:00 +0100 Subject: [PATCH] Add custom CSS for sustainability team badge. (#261) Fixes #258. --- themes/wporg-5ftf/css/components/_team-badges.scss | 8 ++++++++ themes/wporg-5ftf/functions.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/themes/wporg-5ftf/css/components/_team-badges.scss b/themes/wporg-5ftf/css/components/_team-badges.scss index 284ab9a..f0c0e89 100644 --- a/themes/wporg-5ftf/css/components/_team-badges.scss +++ b/themes/wporg-5ftf/css/components/_team-badges.scss @@ -213,3 +213,11 @@ .badge-test-team:before { color: rgb(136, 79, 174); } + +.badge-sustainability-team { + background: rgba(23, 127, 106, 0.25); + box-shadow: 0 0 0 4px rgb(23, 127, 106); +} +.badge-sustainability-team:before { + color: rgb(23, 127, 106); +} diff --git a/themes/wporg-5ftf/functions.php b/themes/wporg-5ftf/functions.php index 0d6ae61..3d4e3b8 100644 --- a/themes/wporg-5ftf/functions.php +++ b/themes/wporg-5ftf/functions.php @@ -298,7 +298,7 @@ function get_badge_classes( $team ) { break; case 'sustainability team': - $classes = array( 'badge-meta', 'dashicons-admin-site-alt3' ); + $classes = array( 'badge-sustainability-team', 'dashicons-admin-site-alt3' ); break; case 'test team':