mirror of
https://github.com/Crazyco-xyz/48hr.email.git
synced 2026-01-10 03:29: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';
|
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';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue