2022-12-10 12:14:48 +03:00
|
|
|
.notification {
|
|
|
|
display: flex;
|
|
|
|
padding: 16px !important;
|
2022-12-23 16:25:01 +03:00
|
|
|
gap: 12px;
|
2023-01-27 06:47:30 +03:00
|
|
|
animation: appear 0.2s ease-out;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-27 19:24:36 +03:00
|
|
|
.notification.mention {
|
|
|
|
margin-top: 16px;
|
|
|
|
}
|
2022-12-17 20:04:26 +03:00
|
|
|
.only-mentions .notification:not(.mention),
|
|
|
|
.only-mentions .timeline-empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
.notification.skeleton {
|
|
|
|
color: var(--outline-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification-type {
|
|
|
|
width: 24px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
opacity: 0.75;
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
}
|
2023-01-02 09:42:28 +03:00
|
|
|
.notification-type.notification-mention {
|
|
|
|
color: var(--reply-to-color);
|
|
|
|
}
|
2022-12-21 02:42:48 +03:00
|
|
|
.notification-type.notification-favourite {
|
2022-12-10 12:14:48 +03:00
|
|
|
color: var(--favourite-color);
|
|
|
|
}
|
2022-12-21 02:42:48 +03:00
|
|
|
.notification-type.notification-reblog {
|
2022-12-10 12:14:48 +03:00
|
|
|
color: var(--reblog-color);
|
|
|
|
}
|
2023-01-02 09:42:28 +03:00
|
|
|
.notification-type.notification-poll {
|
2022-12-10 12:14:48 +03:00
|
|
|
color: var(--link-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification .status-link {
|
2023-01-02 09:42:28 +03:00
|
|
|
border-radius: 8px;
|
2022-12-21 03:48:11 +03:00
|
|
|
border: 1px solid var(--outline-color);
|
2023-01-02 09:42:28 +03:00
|
|
|
max-height: 160px;
|
|
|
|
overflow: hidden;
|
|
|
|
filter: saturate(0.25);
|
|
|
|
}
|
|
|
|
.notification .status-link:not(.status-type-mention) > .status {
|
2022-12-10 12:14:48 +03:00
|
|
|
max-height: 160px;
|
|
|
|
overflow: hidden;
|
|
|
|
/* fade out mask gradient bottom */
|
2022-12-17 20:04:26 +03:00
|
|
|
mask-image: linear-gradient(
|
2023-01-02 09:42:28 +03:00
|
|
|
rgba(0, 0, 0, 1) 130px,
|
|
|
|
rgba(0, 0, 0, 0.5) 145px,
|
|
|
|
transparent 159px
|
2022-12-17 20:04:26 +03:00
|
|
|
);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-21 03:48:11 +03:00
|
|
|
.notification .status-link.status-type-mention {
|
|
|
|
max-height: 320px;
|
|
|
|
filter: none;
|
|
|
|
background-color: var(--bg-color);
|
|
|
|
margin-top: calc(-16px - 1px);
|
2023-01-02 09:42:28 +03:00
|
|
|
border-color: var(--reply-to-color);
|
|
|
|
box-shadow: 0 0 0 3px var(--reply-to-faded-color);
|
2022-12-21 03:48:11 +03:00
|
|
|
}
|
2022-12-29 11:11:58 +03:00
|
|
|
.notification .status-link:is(:hover, :focus) {
|
2022-12-10 12:14:48 +03:00
|
|
|
background-color: var(--bg-blur-color);
|
|
|
|
filter: saturate(1);
|
2022-12-21 03:48:11 +03:00
|
|
|
border-color: var(--outline-hover-color);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2023-01-02 09:42:28 +03:00
|
|
|
.notification .status-link.status-type-mention:is(:hover, :focus) {
|
|
|
|
border-color: var(--reply-to-color);
|
|
|
|
box-shadow: 0 0 5px var(--reply-to-color);
|
|
|
|
}
|
|
|
|
.notification .status-link:active {
|
|
|
|
filter: brightness(0.95);
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
.notification .status-link > * {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification-content {
|
|
|
|
flex-grow: 1;
|
2022-12-22 05:35:39 +03:00
|
|
|
min-width: 0;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
.notification-content p:first-child {
|
|
|
|
margin-top: 0;
|
2022-12-23 16:25:01 +03:00
|
|
|
margin-bottom: 8px;
|
2022-12-17 20:04:26 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#mentions-option {
|
|
|
|
float: right;
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
|
|
|
#mentions-option label {
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
display: inline-block;
|
|
|
|
padding: 1em 16px;
|
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
|
|
|
z-index: 1;
|
|
|
|
font-size: 90%;
|
|
|
|
background-color: var(--bg-blur-color);
|
|
|
|
border-radius: 2em;
|
|
|
|
}
|
|
|
|
#mentions-option label:has(:checked) {
|
|
|
|
color: var(--text-color);
|
|
|
|
background-color: var(--bg-color);
|
|
|
|
}
|