1
0
mirror of https://github.com/nileane/TangerineUI-for-Mastodon synced 2024-11-28 06:48:19 +09:00

Fixed styling for Notifications on private mentions

This commit is contained in:
Niléane 2024-03-21 01:11:11 +01:00
parent ea01fe2ffb
commit 59c5fa6576
No known key found for this signature in database
3 changed files with 24 additions and 15 deletions

View File

@ -8,7 +8,7 @@
/* 📄 Meta */
:root {
--version: "v2.0.0-pre4";
--version: "v2.0.0-pre5~";
--variant-name: "Cherry";
--variant-emoji: "\1F352\00A0";
@ -2481,7 +2481,7 @@ div[tabindex="-1"] + div[tabindex="-1"] > .status__wrapper > .status-reply.statu
}
}
.app-body :is(.status__wrapper.focusable, .detailed-status__wrapper.focusable):focus .status__avatar {
outline: 6px solid var(--color-content-bg-focus);
outline: 6px solid var(--color-post-bg);
}
/* 👁️ Post detailed view */
@ -3176,11 +3176,14 @@ div[tabindex="-1"] + div[tabindex="-1"] > .status__wrapper > .status-reply.statu
display: none;
}
.app-body .status__wrapper.status__wrapper-direct {
.app-body .status__wrapper.status__wrapper-direct,
.app-body .notification__message:has(+ div > .status__wrapper.status__wrapper-direct) {
--color-post-bg: color-mix(in srgb, var(--color-accent), var(--color-content-bg) 90%);
}
.app-body .status__wrapper.status__wrapper-direct:has(.status__content:hover),
.app-body .status__wrapper.status__wrapper-direct:has(.status__content:hover) .status__avatar {
.app-body .status__wrapper.status__wrapper-direct:has(.status__content:hover) .status__avatar,
.app-body .status__wrapper.status__wrapper-direct.focusable:focus,
.app-body .notification__message:has(+ div > .status__wrapper.status__wrapper-direct .status__content:hover) {
--color-post-bg: color-mix(in srgb, var(--color-accent), var(--color-content-bg) 85%);
}
@ -4844,7 +4847,7 @@ div[tabindex="-1"] + div[tabindex="-1"] > .status__wrapper > .status-reply.statu
}
.app-body .notification__message {
padding: 12px 12px 5px;
background-color: var(--color-content-bg);
background-color: var(--color-post-bg);
color: var(--color-content-fg-bold);
transition: all .3s;
}

View File

@ -8,7 +8,7 @@
/* 📄 Meta */
:root {
--version: "v2.0.0-pre4";
--version: "v2.0.0-pre5~";
--variant-name: "Purple";
--variant-emoji: "\1FABB\00A0";
@ -2481,7 +2481,7 @@ div[tabindex="-1"] + div[tabindex="-1"] > .status__wrapper > .status-reply.statu
}
}
.app-body :is(.status__wrapper.focusable, .detailed-status__wrapper.focusable):focus .status__avatar {
outline: 6px solid var(--color-content-bg-focus);
outline: 6px solid var(--color-post-bg);
}
/* 👁️ Post detailed view */
@ -3176,11 +3176,14 @@ div[tabindex="-1"] + div[tabindex="-1"] > .status__wrapper > .status-reply.statu
display: none;
}
.app-body .status__wrapper.status__wrapper-direct {
.app-body .status__wrapper.status__wrapper-direct,
.app-body .notification__message:has(+ div > .status__wrapper.status__wrapper-direct) {
--color-post-bg: color-mix(in srgb, var(--color-accent), var(--color-content-bg) 90%);
}
.app-body .status__wrapper.status__wrapper-direct:has(.status__content:hover),
.app-body .status__wrapper.status__wrapper-direct:has(.status__content:hover) .status__avatar {
.app-body .status__wrapper.status__wrapper-direct:has(.status__content:hover) .status__avatar,
.app-body .status__wrapper.status__wrapper-direct.focusable:focus,
.app-body .notification__message:has(+ div > .status__wrapper.status__wrapper-direct .status__content:hover) {
--color-post-bg: color-mix(in srgb, var(--color-accent), var(--color-content-bg) 85%);
}
@ -4844,7 +4847,7 @@ div[tabindex="-1"] + div[tabindex="-1"] > .status__wrapper > .status-reply.statu
}
.app-body .notification__message {
padding: 12px 12px 5px;
background-color: var(--color-content-bg);
background-color: var(--color-post-bg);
color: var(--color-content-fg-bold);
transition: all .3s;
}

View File

@ -8,7 +8,7 @@
/* 📄 Meta */
:root {
--version: "v2.0.0-pre4";
--version: "v2.0.0-pre5~";
--variant-name: "Tangerine";
--variant-emoji: "\1F34A\00A0";
@ -2481,7 +2481,7 @@ div[tabindex="-1"] + div[tabindex="-1"] > .status__wrapper > .status-reply.statu
}
}
.app-body :is(.status__wrapper.focusable, .detailed-status__wrapper.focusable):focus .status__avatar {
outline: 6px solid var(--color-content-bg-focus);
outline: 6px solid var(--color-post-bg);
}
/* 👁️ Post detailed view */
@ -3176,11 +3176,14 @@ div[tabindex="-1"] + div[tabindex="-1"] > .status__wrapper > .status-reply.statu
display: none;
}
.app-body .status__wrapper.status__wrapper-direct {
.app-body .status__wrapper.status__wrapper-direct,
.app-body .notification__message:has(+ div > .status__wrapper.status__wrapper-direct) {
--color-post-bg: color-mix(in srgb, var(--color-accent), var(--color-content-bg) 90%);
}
.app-body .status__wrapper.status__wrapper-direct:has(.status__content:hover),
.app-body .status__wrapper.status__wrapper-direct:has(.status__content:hover) .status__avatar {
.app-body .status__wrapper.status__wrapper-direct:has(.status__content:hover) .status__avatar,
.app-body .status__wrapper.status__wrapper-direct.focusable:focus,
.app-body .notification__message:has(+ div > .status__wrapper.status__wrapper-direct .status__content:hover) {
--color-post-bg: color-mix(in srgb, var(--color-accent), var(--color-content-bg) 85%);
}
@ -4844,7 +4847,7 @@ div[tabindex="-1"] + div[tabindex="-1"] > .status__wrapper > .status-reply.statu
}
.app-body .notification__message {
padding: 12px 12px 5px;
background-color: var(--color-content-bg);
background-color: var(--color-post-bg);
color: var(--color-content-fg-bold);
transition: all .3s;
}