[Chore]: Fix Expiry Color

This time fr
This commit is contained in:
ClaraCrazy 2025-12-29 17:54:33 +01:00
parent 4d74eacb23
commit 8ce7476227
No known key found for this signature in database
GPG key ID: EBBC896ACB497011
2 changed files with 4 additions and 3 deletions

View file

@ -32,9 +32,9 @@ document.addEventListener('DOMContentLoaded', () => {
el.textContent = 'Expired'; el.textContent = 'Expired';
// why am I doing this to myself? // why am I doing this to myself?
try { try {
const horse = document.querySelector('body'); const trojan = document.querySelector('body');
const style = getComputedStyle(horse); const horse = getComputedStyle(trojan);
el.style.color = style.getPropertyValue('accent-color').trim() + "!important"; el.style.color = horse.getPropertyValue('accent-color').trim() + "!important";
} catch (_) { } catch (_) {
el.style.color = '#b00!important'; el.style.color = '#b00!important';
} }

View file

@ -58,6 +58,7 @@ body {
padding: 20px; padding: 20px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
accent-color: var(--color-accent-purple-alt);
background: linear-gradient( 135deg, var(--overlay-white-08), var(--overlay-white-02)), var(--color-bg-dark); background: linear-gradient( 135deg, var(--overlay-white-08), var(--overlay-white-02)), var(--color-bg-dark);
color: var(--color-text-primary); color: var(--color-text-primary);
border: 1px solid var(--overlay-white-12); border: 1px solid var(--overlay-white-12);