From faaf1e85821e4dc1ad6247a86d8af0d895182e24 Mon Sep 17 00:00:00 2001 From: VA3HDL Date: Sat, 25 May 2024 21:41:37 -0400 Subject: [PATCH] Added optional right side menu --- README.md | 1 + hamdash.html | 75 +++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 67 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4782d43..910d324 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ Is that easy! - Ability to add multiple images per position. Images are rotated automatically every 30 seconds. - Autorefresh is now paused automatically when switching to a website (from menu) or when an image is zoomed-in to full screen - Moved configuration variables to the top of the script and added extra commentary to ease the initial setup +- Added menu to the right of the page. Now the left menu has ham radio links and right menu has weather links ## Samples diff --git a/hamdash.html b/hamdash.html index e9e4b8f..a315058 100644 --- a/hamdash.html +++ b/hamdash.html @@ -109,7 +109,7 @@ db 8D 88 88 88booo. 88. db 8D background: hsl(210deg 15% 20%); color: white; padding: 0.5vh; - font-family: "Victor Mono", Monaco, sans-serif; + font-family: "Victor Mono", sans-serif; font-size: 1.4vw; } @@ -157,7 +157,7 @@ db 8D 88 88 88booo. 88. db 8D font-size: 1vw; border-left: 0.25vw solid black; border-right: 0.25vw solid black; - font-family: "Roboto Condensed", Monaco, sans-serif; + font-family: "Roboto Condensed", sans-serif; font-optical-sizing: auto; font-weight: 300; font-style: normal; @@ -179,7 +179,6 @@ db 8D 88 88 88booo. 88. db 8D /* Style for the left menu options */ .menu { display: grid; - /* grid-row: 9 / span 1; /* Update with number of menu items */ grid-gap: 3px; position: absolute; width: auto; @@ -187,6 +186,20 @@ db 8D 88 88 88booo. 88. db 8D margin-top: 70px; left: 0px; z-index: 2; + overflow: hidden; + } + + /* Style for the right menu options */ + .menuR { + display: grid; + grid-gap: 3px; + position: absolute; + width: auto; + height: auto; + margin-top: 70px; + right: 0px; + z-index: 2; + overflow: hidden; } #mySidenav a { @@ -200,7 +213,7 @@ db 8D 88 88 88booo. 88. db 8D padding-bottom: 8px; width: 100px; text-decoration: none; - font-family: "Bebas Neue", Monaco, sans-serif; + font-family: "Bebas Neue", sans-serif; font-size: 1.2vw; font-optical-sizing: auto; font-weight: 300; @@ -214,6 +227,32 @@ db 8D 88 88 88booo. 88. db 8D #mySidenav a:hover { left: 0; } + + #mySidenavR a { + position: relative; + float: inline-start; + right: -120px; + transition: 0.3s; + padding-left: 15px; + padding-right: 15px; + padding-top: 12px; + padding-bottom: 8px; + width: 100px; + text-decoration: none; + font-family: "Bebas Neue", sans-serif; + font-size: 1.2vw; + font-optical-sizing: auto; + font-weight: 300; + font-style: normal; + text-align: left; + color: white; + border-radius: 5px 0px 0px 5px; + box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.5); + } + + #mySidenavR a:hover { + right: 0; + } + + + +