mirror of
https://github.com/Crazyco-xyz/48hr.email.git
synced 2026-01-09 03:09:36 +01:00
[Chore]: Fix Expiry Color
This time fr
This commit is contained in:
parent
4d74eacb23
commit
8ce7476227
2 changed files with 4 additions and 3 deletions
|
|
@ -32,9 +32,9 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
el.textContent = 'Expired';
|
||||
// why am I doing this to myself?
|
||||
try {
|
||||
const horse = document.querySelector('body');
|
||||
const style = getComputedStyle(horse);
|
||||
el.style.color = style.getPropertyValue('accent-color').trim() + "!important";
|
||||
const trojan = document.querySelector('body');
|
||||
const horse = getComputedStyle(trojan);
|
||||
el.style.color = horse.getPropertyValue('accent-color').trim() + "!important";
|
||||
} catch (_) {
|
||||
el.style.color = '#b00!important';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ body {
|
|||
padding: 20px;
|
||||
display: flex;
|
||||
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);
|
||||
color: var(--color-text-primary);
|
||||
border: 1px solid var(--overlay-white-12);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue