From 430f1589574db4a3ac52516031d3b27a31a0c9eb Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Fri, 29 Nov 2024 14:38:41 +1100 Subject: [PATCH] style(news): improved news styles --- src/SEQTA.ts | 2 +- src/css/injected.scss | 73 +++++++++++++++++++++++++------------------ 2 files changed, 43 insertions(+), 32 deletions(-) diff --git a/src/SEQTA.ts b/src/SEQTA.ts index c976e940..1381b4e9 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -145,7 +145,7 @@ export function OpenWhatsNewPopup() { let video = document.createElement('video') let source = document.createElement('source') - // Perhaps we host this on a server and then grab it instead of having it locally? + source.setAttribute('src', 'https://raw.githubusercontent.com/BetterSEQTA/BetterSEQTA-Plus/main/src/resources/update-video.mp4') video.autoplay = true video.muted = true diff --git a/src/css/injected.scss b/src/css/injected.scss index 3dca2557..9c33b886 100644 --- a/src/css/injected.scss +++ b/src/css/injected.scss @@ -2188,44 +2188,55 @@ li.MessageList__unread___3imtO { overflow: hidden; width: 100%; padding: 0 !important; - margin: 0px auto 30px !important; background: var(--background-primary) !important; color: var(--text-primary); display: flex; flex-direction: row; -webkit-box-shadow: 0px 5px 16px 6px rgba(0, 0, 0, 0.3); box-shadow: 0px 5px 16px 6px rgba(0, 0, 0, 0.3); + + &:hover { + .ArticleText a { + text-decoration: underline; + } + } + + .ArticleText a { + padding: 10px 20px; + margin: 0; + font-weight: 800; + font-size: 2em; + background: none; + } + + .ArticleText p { + padding: 10px 20px; + margin: 0; + font-size: 1.5em; + } + + .ArticleText { + display: flex; + flex-direction: column; + width: 65%; + height: 100%; + } + + .articleimage { + width: 35%; + background-position: center; + background-size: cover; + min-height: 18em; + background-repeat: no-repeat; + } } -.articleimage { - width: 35%; - background-position: center; - background-size: cover; - min-height: 18em; - background-repeat: no-repeat; -} -.NewsArticle img { - width: 35%; -} -.ArticleText a { - padding: 10px 20px; - margin: 0; - font-weight: 800; - font-size: 2em; - background: none; -} -.NewsArticle:hover > .ArticleText a { - text-decoration: underline; -} -.ArticleText p { - padding: 10px 20px; - margin: 0; - font-size: 1.5em; -} -.ArticleText { - display: flex; - flex-direction: column; - width: 65%; - height: 100%; + +#news-container { + gap: 16px; + + > h1 { + margin-bottom: 12px; + } } .editmenu { position: absolute;