From eb3bb33bdb540642177a66147f02761667347a89 Mon Sep 17 00:00:00 2001 From: zipper3030 Date: Wed, 24 Apr 2024 09:33:46 -0400 Subject: [PATCH] alert styling --- _layouts/home.html | 8 ++++---- assets/css/style.scss | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/_layouts/home.html b/_layouts/home.html index 4528b00..94a35cb 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -96,10 +96,10 @@

{{ feature.title }}

// Function to handle alert scrolling window.addEventListener('scroll', function() { - var alertElement = document.getElementById("alert"); - var windowHeight = window.innerHeight; - var bodyHeight = document.body.scrollHeight; - var scrollPosition = window.scrollY || window.pageYOffset; + const alertElement = document.getElementById("alert"); + const windowHeight = window.innerHeight; + const bodyHeight = document.body.scrollHeight; + const scrollPosition = window.scrollY || window.pageYOffset; //place the alert at the bottom of the viewport if (scrollPosition > windowHeight) { diff --git a/assets/css/style.scss b/assets/css/style.scss index 7626812..8a9ba95 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -408,10 +408,11 @@ ul li { // event alert .alert { - background-color: rgb(237, 219, 122); + background-color: $peach; font-family: $font-family-base; color: black; position: fixed; + font-size: 1.1em; bottom: 0; left: 0; z-index: 9999; @@ -424,7 +425,7 @@ ul li { font-weight: bold; float: right; font-size: 22px; - line-height: 20px; + line-height: 25px; cursor: pointer; transition: 0.3s; }