159 lines
3.5 KiB
SCSS
Raw Normal View History

2021-04-08 22:59:05 +08:00
/* Message List */
// a.k.a. notifications in the menu
.message-list {
width: 31.5em;
2022-10-08 16:52:14 +08:00
padding: $base_padding * 1.5 0;
2021-04-08 22:59:05 +08:00
text-shadow: none;
2022-05-05 17:53:22 +08:00
border: none;
2021-04-08 22:59:05 +08:00
2022-05-05 17:53:22 +08:00
// padding and margins to account for scrollbar
&:ltr { margin-left: 0; margin-right: 0; padding-right: 0; }
&:rtl { margin-right: 0; margin-left: 0; padding-left: 0; }
.message-list-placeholder {
spacing: 12px;
// icon size and color
> StIcon {
icon-size: $base_icon_size * 3; // 48px
margin-bottom: $base_margin * 3;
-st-icon-style: symbolic;
}
}
2021-04-08 22:59:05 +08:00
}
.message-list-sections {
margin: 0 $base_margin * 4; // to account for scrollbar
}
.message-list-section,
.message-list-sections,
.message-list-section-list {
spacing: $base_spacing;
}
// do-not-disturb + clear button
.message-list-controls {
margin: ($base_margin * 2) ($base_margin * 4) 0;
// NOTE: remove the padding if notification_bubble could remove margin for drop shadow
padding: $base_margin;
spacing: $base_spacing * 2;
2022-04-17 22:49:54 +08:00
font-weight: normal;
2021-04-08 22:59:05 +08:00
}
// .message-list-clear-button.button {
// margin: 8px 8px;
// }
// message bubbles
.message {
2022-11-11 18:39:37 +08:00
margin: 3px 4px 4px;
2021-04-10 18:05:02 +08:00
.popup-menu & {
@extend %popover_bubble;
}
2021-04-08 22:59:05 +08:00
// icon container
.message-icon-bin {
margin: 8px 0;
padding: 8px 0px 8px 8px;
&:rtl { padding: 8px 8px 8px 0px; }
// icon size and color
> StIcon {
2022-10-09 16:02:36 +08:00
icon-size: 32px;
2021-04-08 22:59:05 +08:00
-st-icon-style: symbolic;
}
// fallback
> .fallback-app-icon {
width: 16px;
height: 16px;
}
}
.message-secondary-bin {
padding: 0 8px;
> .event-time {
min-height: $small_size - 2px;
color: $hint_fg_color;
font-size: 1em;
text-align: right;
/* HACK: the label should be baseline-aligned with a 1em label, fake this with some bottom padding */
padding-bottom: 0.13em;
}
}
.message-title {
min-height: $small_size - 2px;
padding-top: 2px;
color: $fg_color;
font-weight: bold;
font-size: 1em;
}
.message-content {
min-height: $menuitem_size * 2 - 8px * 2;
padding: 8px;
color: $hint_fg_color;
font-size: 1em;
}
// close button
.message-close-button {
color: $alt_fg_color;
2022-10-28 18:34:59 +08:00
padding: 0 !important;
height: 24px !important;
width: 24px !important;
2021-08-22 13:45:39 +08:00
border-radius: $circular_radius;
2021-04-08 22:59:05 +08:00
&:hover, &:active { color: $fg_color; }
&:hover, &:focus { background-color: $divider_color; }
&:active { background-color: $track_color; }
2022-10-28 18:34:59 +08:00
StIcon { icon-size: $base_icon_size; }
2021-04-08 22:59:05 +08:00
}
// body
.message-body {
color: $hint_fg_color;
}
}
// URLs in messages
.url-highlighter {
link-color: $link_color;
}
.message-media-control {
2023-01-23 00:13:50 +08:00
margin: 18px 4px !important;
padding: 8px !important;
2021-08-22 13:45:39 +08:00
border-radius: $circular_radius;
2021-04-08 22:59:05 +08:00
color: $alt_fg_color;
&:hover, &:focus { color: $fg_color; background-color: $divider_color; }
&:active { color: $fg_color; background-color: $track_color; }
&:insensitive { color: $disabled_fg_color; }
2023-01-23 00:13:50 +08:00
&:last-child:ltr { margin-right: 16px !important; padding-right: 8px !important; }
&:last-child:rtl { margin-left: 16px !important; padding-left: 8px !important; }
2022-11-11 18:39:37 +08:00
StIcon { icon-size: $base_icon_size !important; }
2021-04-08 22:59:05 +08:00
}
// album-art
.media-message-cover-icon {
icon-size: 32px !important;
2021-08-22 13:45:39 +08:00
margin: 0 0 0 4px !important;
&:rtl { margin: 0 4px 0 0 !important; }
2021-04-08 22:59:05 +08:00
&.fallback {
icon-size: 16px !important;
padding: 8px;
border: none;
border-radius: $bt_radius;
background-color: $divider_color;
color: $hint_fg_color;
}
}