From f803403ecfdec522c8098fd5d086362eda272e8a Mon Sep 17 00:00:00 2001 From: Jon Stovell Date: Mon, 29 Apr 2024 16:06:07 -0600 Subject: [PATCH] Fixes CSS for dropmenu buttons created in template_button_strip() Signed-off-by: Jon Stovell --- Sources/Actions/Calendar.php | 2 +- Themes/default/css/index.css | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Sources/Actions/Calendar.php b/Sources/Actions/Calendar.php index fcf0cdbd6a5..d751d8efa62 100644 --- a/Sources/Actions/Calendar.php +++ b/Sources/Actions/Calendar.php @@ -1658,7 +1658,7 @@ protected function __construct() */ protected function createToken(User $user): string { - $token = hash_hmac('sha3-224', $user->id, Config::getAuthSecret(), true); + $token = hash_hmac('sha3-224', (string) $user->id, Config::getAuthSecret(), true); return strtr(base64_encode($token), ['+' => '_', '/' => '-', '=' => '']); } diff --git a/Themes/default/css/index.css b/Themes/default/css/index.css index bcfe1918fe4..da345483bbe 100644 --- a/Themes/default/css/index.css +++ b/Themes/default/css/index.css @@ -4005,7 +4005,7 @@ h3.profile_hd::before, #top_section, .quickbuttons > li, .quickbuttons li ul, .quickbuttons li ul li a:hover, .quickbuttons ul li a:focus, .inline_mod_check, .popup_window, #inner_section, .post_options ul, -.post_options ul a:hover, .post_options ul a:focus, .notify_dropdown a:hover, .notify_dropdown a:focus { +.post_options ul a:hover, .post_options ul a:focus, .dropmenu .viewport .overview a:hover, .dropmenu .viewport .overview a:focus { background: #fff; /* fallback for some browsers */ background-image: linear-gradient(#e2e9f3 0%, #fff 70%); } @@ -4021,20 +4021,21 @@ h3.profile_hd::before, } /* Topic/Board follow-alert menu */ -.notify_dropdown strong { +.dropmenu .viewport .overview strong { font-size: 1.1em; } -.notify_dropdown a { +.dropmenu .viewport .overview a { display: block; padding: 0.5em; text-decoration: none; border: 1px solid transparent; border-radius: 3px; } -.notify_dropdown a:hover, .notify_dropdown a:focus { +.dropmenu .viewport .overview a:hover, +.dropmenu .viewport .overview a:focus { border-color: #ddd; } -.notify_dropdown span { +.dropmenu .viewport .overview span { font-size: 0.9em; }