pleroma-fe/src/components/notifications/notifications.scss

194 行
3.1 KiB
SCSS
Raw 通常表示 履歴

2023-01-10 03:02:16 +09:00
@import "../../variables";
.Notifications {
&:not(.minimal) {
// a bit of a hack to allow scrolling below notifications
padding-bottom: 15em;
}
2016-11-28 04:00:44 +09:00
2018-08-21 02:45:54 +09:00
.loadmore-error {
2018-10-08 01:59:22 +09:00
color: $fallback--text;
color: var(--text, $fallback--text);
2018-08-21 02:45:54 +09:00
}
.notification {
position: relative;
.notification-overlay {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
2018-11-22 00:22:05 +09:00
pointer-events: none;
}
&.unseen {
.notification-overlay {
2023-01-10 03:02:16 +09:00
background-image: linear-gradient(135deg, var(--badgeNotification, $fallback--cRed) 4px, transparent 10px);
}
}
}
}
2023-01-10 03:02:16 +09:00
/* stylelint-disable-next-line no-descending-specificity */
.notification {
box-sizing: border-box;
&:hover .animated.Avatar {
canvas {
display: none;
}
2023-01-10 03:02:16 +09:00
img {
visibility: visible;
2018-04-10 01:43:31 +09:00
}
}
2018-04-10 01:43:31 +09:00
&:last-child .Notification {
border-bottom: none;
}
.non-mention {
display: flex;
flex: 1;
flex-wrap: nowrap;
padding: 0.6em;
min-width: 0;
2020-06-13 19:09:55 +09:00
.avatar-container {
width: 32px;
height: 32px;
}
2020-06-13 19:09:55 +09:00
.faint {
--link: var(--faintLink);
--text: var(--faint);
}
}
2016-11-28 03:44:56 +09:00
.follow-request-accept {
&:hover {
color: $fallback--text;
color: var(--text, $fallback--text);
}
}
.follow-request-reject {
&:hover {
color: $fallback--cRed;
color: var(--cRed, $fallback--cRed);
}
}
2023-01-10 03:02:16 +09:00
.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;
}
}
2020-07-28 07:27:11 +09:00
/* TODO cleanup this */
.Status {
flex: 1;
}
2017-08-11 01:17:40 +09:00
time {
white-space: nowrap;
}
.notification-right {
flex: 1;
padding-left: 0.8em;
min-width: 0;
2020-07-08 20:11:42 +09:00
.timeago {
min-width: 3em;
text-align: right;
}
.timeago-link {
margin-right: 0.2em;
}
.expand-icon {
.svg-inline--fa {
margin-left: 0.25em;
}
}
}
.emoji-reaction-emoji {
2022-04-21 05:44:33 +09:00
font-size: 1.3em;
2022-12-19 04:04:58 +09:00
max-width: 1.25em;
height: 1.25em;
width: auto;
}
.emoji-reaction-emoji-image {
vertical-align: middle;
}
.notification-details {
2022-04-21 05:44:33 +09:00
min-width: 0;
word-wrap: break-word;
line-height: var(--post-line-height);
position: relative;
overflow: hidden;
width: 100%;
2018-04-11 04:12:59 +09:00
flex: 1 1 0;
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
.name-and-action {
flex: 1;
2018-04-14 14:59:55 +09:00
overflow: hidden;
text-overflow: ellipsis;
}
.username {
font-weight: bolder;
2018-04-14 14:59:55 +09:00
max-width: 100%;
text-overflow: ellipsis;
white-space: nowrap;
}
.timeago {
2022-04-21 05:44:33 +09:00
margin-right: 0.2em;
}
.status-content {
margin: 0;
max-height: 300px;
}
2018-04-10 01:43:31 +09:00
h1 {
word-break: break-all;
margin: 0 0 0.3em;
padding: 0;
font-size: 1em;
line-height: 1.5;
small {
font-weight: lighter;
}
2018-04-10 01:43:31 +09:00
}
p {
margin: 0;
margin-top: 0;
margin-bottom: 0.3em;
}
2018-04-10 01:43:31 +09:00
}
}