9ea0f10abb
* origin/develop: (169 commits) Improve the user card for deactivated users Update CHANGELOG.md Update CHANGELOG.md Allow canceling a follow request Simple policy reasons for instance specific policies entity_normalizer: Escape name when parsing user Translated using Weblate (Spanish) Translated using Weblate (Catalan) Translated using Weblate (Korean) Translated using Weblate (Japanese (ja_PEDANTIC)) Translated using Weblate (Indonesian) Translated using Weblate (Esperanto) Translated using Weblate (Vietnamese) Translated using Weblate (Italian) Translated using Weblate (Vietnamese) Translated using Weblate (Indonesian) Translated using Weblate (Italian) Translated using Weblate (Vietnamese) Translated using Weblate (Indonesian) Translated using Weblate (Chinese (Simplified)) ...
175 lines
2.8 KiB
SCSS
175 lines
2.8 KiB
SCSS
@import '../../_variables.scss';
|
|
|
|
.Notifications {
|
|
&:not(.minimal) {
|
|
// a bit of a hack to allow scrolling below notifications
|
|
padding-bottom: 15em;
|
|
}
|
|
|
|
.loadmore-error {
|
|
color: $fallback--text;
|
|
color: var(--text, $fallback--text);
|
|
}
|
|
|
|
.notifications-footer {
|
|
border: none;
|
|
}
|
|
|
|
.notification {
|
|
position: relative;
|
|
|
|
.notification-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
&.unseen {
|
|
.notification-overlay {
|
|
background-image: linear-gradient(135deg, var(--badgeNotification, $fallback--cRed) 4px, transparent 10px)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.notification {
|
|
box-sizing: border-box;
|
|
|
|
&:hover .animated.Avatar {
|
|
canvas {
|
|
display: none;
|
|
}
|
|
img {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
|
|
.non-mention {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-wrap: nowrap;
|
|
padding: 0.6em;
|
|
min-width: 0;
|
|
|
|
.avatar-container {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
--link: var(--faintLink);
|
|
--text: var(--faint);
|
|
}
|
|
|
|
.follow-request-accept {
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
color: $fallback--text;
|
|
color: var(--text, $fallback--text);
|
|
}
|
|
}
|
|
|
|
.follow-request-reject {
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
color: $fallback--cRed;
|
|
color: var(--cRed, $fallback--cRed);
|
|
}
|
|
}
|
|
|
|
.follow-text, .move-text {
|
|
padding: 0.5em 0;
|
|
overflow-wrap: break-word;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
.follow-name {
|
|
display: block;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
/* TODO cleanup this */
|
|
.Status {
|
|
flex: 1;
|
|
}
|
|
|
|
time {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.notification-right {
|
|
flex: 1;
|
|
padding-left: 0.8em;
|
|
min-width: 0;
|
|
|
|
.timeago {
|
|
min-width: 3em;
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
.emoji-reaction-emoji {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.notification-details {
|
|
min-width: 0px;
|
|
word-wrap: break-word;
|
|
line-height:18px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
flex: 1 1 0;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
justify-content: space-between;
|
|
|
|
.name-and-action {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.username {
|
|
font-weight: bolder;
|
|
max-width: 100%;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.timeago {
|
|
margin-right: .2em;
|
|
}
|
|
|
|
.status-content {
|
|
margin: 0;
|
|
max-height: 300px;
|
|
}
|
|
|
|
h1 {
|
|
word-break: break-all;
|
|
margin: 0 0 0.3em;
|
|
padding: 0;
|
|
font-size: 1em;
|
|
line-height:20px;
|
|
small {
|
|
font-weight: lighter;
|
|
}
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
margin-top: 0;
|
|
margin-bottom: 0.3em;
|
|
}
|
|
}
|
|
}
|