From 812c7a4f205c6fbb6f7b8eb38af022809d47028d Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 11 Mar 2023 14:13:29 +0100 Subject: [PATCH] PhotoPage: change previous/next icons --- public/css/default.css | 10 ++++------ templates/PhotoPage.php | 8 ++++---- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/public/css/default.css b/public/css/default.css index 541f3e6..e88e043 100644 --- a/public/css/default.css +++ b/public/css/default.css @@ -401,17 +401,15 @@ a#previous_photo:hover, a#next_photo:hover { color: #000; } #previous_photo { + border-top-right-radius: 0.5rem; + border-bottom-right-radius: 0.5rem; left: 0; } -#previous_photo:before { - content: '←'; -} #next_photo { + border-top-left-radius: 0.5rem; + border-bottom-left-radius: 0.5rem; right: 0; } -#next_photo:before { - content: '→'; -} #sub_photo h2, #sub_photo h3, #photo_exif_box h3, #user_actions_box h3 { font: 600 20px/30px "Open Sans", sans-serif; diff --git a/templates/PhotoPage.php b/templates/PhotoPage.php index 1c0bd5c..772a4f9 100644 --- a/templates/PhotoPage.php +++ b/templates/PhotoPage.php @@ -84,17 +84,17 @@ class PhotoPage extends Template { if ($this->previous_photo_url) echo ' - Previous photo'; + '; else echo ' - Previous photo'; + '; if ($this->next_photo_url) echo ' - Next photo'; + '; else echo ' - Next photo'; + '; } private function photoMeta()