lbry-desktop/ui/scss/component/_notification.scss

289 lines
5.4 KiB
SCSS
Raw Normal View History

2020-11-03 19:45:36 +01:00
$thumbnailWidth: 4rem;
$contentMaxWidth: 60rem;
2020-11-03 19:45:36 +01:00
2020-07-23 16:22:57 +02:00
.notifications__empty {
background-color: var(--color-card-background);
padding: var(--spacing-l);
}
.notification_list {
2021-08-27 12:29:58 +02:00
.notification__wrapper {
border-top: 1px solid var(--color-border);
2020-07-23 16:22:57 +02:00
2021-08-27 12:29:58 +02:00
&:first-of-type {
border-top: none;
2020-07-23 16:22:57 +02:00
}
@media (min-width: $breakpoint-small) {
&:hover {
background-color: var(--color-card-background-highlighted);
}
}
2020-07-23 16:22:57 +02:00
}
2021-08-27 12:29:58 +02:00
.commentCreate,
2021-08-27 12:29:58 +02:00
.comment__content {
margin: var(--spacing-m);
2021-08-26 16:44:00 +02:00
margin-bottom: 0;
2021-08-27 12:29:58 +02:00
}
2020-07-23 16:22:57 +02:00
}
.notification__icon {
2020-11-02 17:51:08 +01:00
display: flex;
align-items: flex-start;
margin-top: var(--spacing-xxs);
2020-11-02 17:51:08 +01:00
.icon__wrapper {
2020-09-18 06:23:42 +02:00
width: 1rem;
height: 1rem;
2020-10-01 22:59:11 +02:00
padding: 1.2rem;
2020-09-18 06:23:42 +02:00
border-radius: var(--border-radius);
margin-right: var(--spacing-m);
2020-09-18 06:23:42 +02:00
@media (min-width: $breakpoint-small) {
padding: 1.5rem;
}
}
2020-11-02 17:51:08 +01:00
@media (min-width: $breakpoint-small) {
align-items: center;
margin-left: var(--spacing-m);
2020-11-02 17:51:08 +01:00
}
2021-08-26 16:44:00 +02:00
@media (max-width: $breakpoint-medium) {
margin-top: var(--spacing-xxs);
}
}
2020-07-23 16:22:57 +02:00
.notification__wrapper {
width: 100%;
display: flex;
padding: var(--spacing-m) 0;
justify-content: space-between;
2021-08-27 12:29:58 +02:00
flex-direction: column;
.channel-thumbnail {
@include handleChannelGif(3rem);
}
2020-08-21 21:44:54 +02:00
@media (max-width: $breakpoint-small) {
.channel-thumbnail {
@include handleChannelGif(2rem);
}
}
2020-11-13 06:36:23 +01:00
@media (max-width: $breakpoint-small) {
padding: var(--spacing-s);
}
2021-08-26 16:44:00 +02:00
.comment__creator-like {
height: 0.8rem;
width: 0.8rem;
margin-left: 3px;
z-index: 3;
position: absolute;
top: 0.4rem;
left: 0.4rem;
}
2020-08-21 21:44:54 +02:00
}
2020-12-14 19:52:17 +01:00
.notification__wrapper--unread {
background-color: var(--color-card-background-highlighted);
justify-content: space-between;
2020-08-21 21:44:54 +02:00
&:hover {
background-color: var(--color-button-secondary-bg);
}
@media (max-width: $breakpoint-small) {
padding: var(--spacing-s);
}
2020-07-23 16:22:57 +02:00
}
.notificationContent__wrapper {
2020-11-03 19:45:36 +01:00
flex: 1;
display: flex;
justify-content: space-between;
flex-direction: column;
@media (min-width: $breakpoint-small) {
flex-direction: row;
justify-content: space-between;
align-items: center;
}
}
2020-07-23 16:22:57 +02:00
.notification__content {
flex: 1;
2020-09-18 06:23:42 +02:00
display: flex;
flex-direction: column;
2020-11-03 19:45:36 +01:00
justify-content: space-between;
max-width: $contentMaxWidth;
2020-08-21 21:44:54 +02:00
2020-09-18 06:23:42 +02:00
@media (min-width: $breakpoint-small) {
flex-direction: row;
justify-content: space-between;
align-items: center;
2020-08-21 21:44:54 +02:00
}
2020-07-23 16:22:57 +02:00
}
.notificationContent__thumbnail {
2020-11-03 19:45:36 +01:00
@include thumbnail;
position: relative;
margin-left: auto;
height: auto;
width: 100%;
margin-top: var(--spacing-s);
@media (min-width: $breakpoint-small) {
height: thumbnailWidth;
width: calc(#{$thumbnailWidth} * 16 / 9);
max-width: calc(#{$thumbnailWidth} * 16 / 9);
margin-left: var(--spacing-m);
margin-top: 0;
min-width: 0;
}
}
.notificationText__wrapper {
max-width: calc(#{$contentMaxWidth} - (#{$thumbnailWidth} * 16 / 9) - var(--spacing-m));
.sticker__comment {
width: 4.5rem;
height: 4.5rem;
}
2020-11-03 19:45:36 +01:00
}
2020-07-23 16:22:57 +02:00
.notification__title {
position: relative;
font-size: var(--font-small);
color: var(--color-text);
margin-bottom: var(--spacing-s);
2020-09-18 06:23:42 +02:00
display: -webkit-box;
2020-11-02 17:51:08 +01:00
-webkit-line-clamp: 1;
2020-09-18 06:23:42 +02:00
-webkit-box-orient: vertical;
overflow: hidden;
2020-08-21 21:44:54 +02:00
@media (max-width: $breakpoint-small) {
margin-bottom: 0;
}
2020-07-23 16:22:57 +02:00
}
.notification__text {
font-size: var(--font-body);
color: var(--color-text);
2020-08-21 21:44:54 +02:00
display: -webkit-box;
2020-11-02 17:51:08 +01:00
-webkit-line-clamp: 1;
2020-08-21 21:44:54 +02:00
-webkit-box-orient: vertical;
overflow: hidden;
2020-07-23 16:22:57 +02:00
}
2020-11-03 19:45:36 +01:00
.notification__text,
.notification__title {
flex-shrink: 1;
2020-10-01 22:59:11 +02:00
}
2020-07-23 16:22:57 +02:00
.notification__time {
font-size: var(--font-small);
color: var(--color-text-help);
2020-08-21 21:44:54 +02:00
flex-shrink: 0;
2020-09-18 06:23:42 +02:00
margin-top: var(--spacing-s);
@media (min-width: $breakpoint-small) {
margin-left: var(--spacing-s);
margin-top: 0;
}
2020-07-23 16:22:57 +02:00
}
2020-08-10 22:47:39 +02:00
2021-08-27 12:29:58 +02:00
.notification__reactions {
display: flex;
margin: var(--spacing-m);
margin-bottom: 0;
2021-08-26 16:44:00 +02:00
@media (min-width: $breakpoint-small) {
margin-left: 5rem;
}
@media (max-width: $breakpoint-small) {
margin-left: 3rem;
}
2021-08-27 12:29:58 +02:00
> *:not(:last-of-type) {
margin-right: var(--spacing-m);
}
.button__label {
margin-left: var(--spacing-xs);
}
}
2020-08-10 22:47:39 +02:00
.notification__bubble {
height: 1.5rem;
width: 1.5rem;
border-radius: 50%;
background-color: var(--color-notification);
position: absolute;
top: -0.5rem;
right: -0.5rem;
color: white;
font-size: var(--font-small);
font-weight: bold;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
}
2020-08-11 22:32:03 +02:00
.notification__bubble--small {
font-size: var(--font-xsmall);
}
2020-08-11 22:32:03 +02:00
.notification__bubble--inline {
@extend .notification__bubble;
top: 0.75rem;
right: 1rem;
}
.notification__extra {
display: flex;
align-items: center;
justify-content: flex-end;
margin-right: var(--spacing-m);
flex-direction: row-reverse;
@media (min-width: $breakpoint-small) {
margin-left: var(--spacing-s);
margin-top: 0;
flex-direction: row;
}
}
.notification__markSeen {
height: 12px;
width: 12px;
border-radius: 50%;
background-color: var(--color-primary);
margin-left: var(--spacing-s);
2020-10-01 22:59:11 +02:00
margin-top: var(--spacing-s);
@media (min-width: $breakpoint-small) {
margin-top: 0;
}
}
.notification__menu {
margin-right: var(--spacing-m);
.icon {
stroke: var(--color-text-help);
}
}
2021-03-11 23:18:26 +01:00
.notification__filter {
display: none;
@media (min-width: $breakpoint-small) {
display: block;
}
}