Skip to content

Commit

Permalink
Fixes CSS for dropmenu buttons created in template_button_strip()
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Apr 29, 2024
1 parent 444513a commit f803403
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/Actions/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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), ['+' => '_', '/' => '-', '=' => '']);
}
Expand Down
11 changes: 6 additions & 5 deletions Themes/default/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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%);
}
Expand All @@ -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;
}

Expand Down

0 comments on commit f803403

Please sign in to comment.