2019-12-18 21:25:03 +00:00
|
|
|
/* Message List */
|
|
|
|
// a.k.a. notifications in the menu
|
|
|
|
|
|
|
|
// main list
|
|
|
|
.message-list {
|
2021-12-28 13:46:54 +00:00
|
|
|
width: 32em;
|
|
|
|
padding: 0;
|
2020-01-19 20:45:36 +00:00
|
|
|
|
2021-12-28 13:46:54 +00:00
|
|
|
.message-list-placeholder {
|
|
|
|
font-weight:1000;
|
|
|
|
font-size: 18pt;
|
|
|
|
color: transparentize($fg_color, 0.7);
|
|
|
|
spacing: 12px;
|
|
|
|
|
|
|
|
// icon size and color
|
|
|
|
> StIcon {
|
2022-01-17 16:44:25 +00:00
|
|
|
icon-size: $base_icon_size*3; // 48px
|
|
|
|
margin-bottom: $base_margin*3;
|
2021-12-28 13:46:54 +00:00
|
|
|
-st-icon-style: symbolic;
|
|
|
|
}
|
|
|
|
}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
2021-12-28 13:46:54 +00:00
|
|
|
|
2019-12-18 21:25:03 +00:00
|
|
|
.message-list-sections {
|
2019-12-19 15:38:27 +00:00
|
|
|
spacing: $base_spacing;
|
2021-12-28 13:46:54 +00:00
|
|
|
margin: 0;
|
|
|
|
padding-bottom: $base_padding;
|
|
|
|
|
|
|
|
// to account for scrollbar
|
|
|
|
&:ltr {margin-right: $base_margin * 4; }
|
|
|
|
&:rtl {margin-left: $base_margin * 4;}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.message-list-section,
|
|
|
|
.message-list-section-list {
|
2019-12-19 15:38:27 +00:00
|
|
|
spacing: $base_spacing;
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
2018-05-04 15:55:29 +00:00
|
|
|
// do-not-disturb + clear button
|
|
|
|
.message-list-controls {
|
2020-02-06 12:42:13 +00:00
|
|
|
// NOTE: remove the padding if notification_bubble could remove margin for drop shadow
|
2021-12-28 13:46:54 +00:00
|
|
|
padding: $base_padding;
|
|
|
|
margin: 0;
|
|
|
|
spacing: $base_spacing;
|
2021-07-20 12:13:40 +00:00
|
|
|
|
|
|
|
.dnd-button {
|
|
|
|
// We need this because the focus outline isn't inset like for the buttons
|
|
|
|
// so the dnd button would grow when it gets focus if we didn't change only
|
|
|
|
// its color when focusing.
|
|
|
|
border-width: 2px;
|
|
|
|
border-color: transparent;
|
2021-12-28 13:46:54 +00:00
|
|
|
border-radius: 32px;
|
2021-07-20 12:13:40 +00:00
|
|
|
border-style: solid;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-color: transparentize($selected_bg_color, 0.4);
|
|
|
|
}
|
|
|
|
}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// message bubbles
|
|
|
|
.message {
|
2020-01-25 03:15:54 +00:00
|
|
|
@include notification_bubble;
|
2019-12-19 15:38:27 +00:00
|
|
|
|
|
|
|
// icon container
|
|
|
|
.message-icon-bin {
|
2021-12-28 13:46:54 +00:00
|
|
|
padding: ($base_padding * 3);
|
|
|
|
padding-right:$base_padding;
|
2019-12-19 15:38:27 +00:00
|
|
|
|
|
|
|
&:rtl {
|
2021-12-28 13:46:54 +00:00
|
|
|
padding-right:$base_padding;
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// icon size and color
|
|
|
|
> StIcon {
|
|
|
|
icon-size: $base_icon_size*2; // 32px
|
|
|
|
-st-icon-style: symbolic;
|
|
|
|
}
|
|
|
|
|
|
|
|
// fallback
|
2020-01-23 16:23:13 +00:00
|
|
|
> .fallback-app-icon {
|
2019-12-19 15:38:27 +00:00
|
|
|
width: $base_icon_size;
|
|
|
|
height: $base_icon_size;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-04 16:08:20 +00:00
|
|
|
// content
|
|
|
|
.message-content {
|
2020-02-04 16:15:27 +00:00
|
|
|
spacing: 4px;
|
2021-12-28 13:46:54 +00:00
|
|
|
padding: ($base_padding*1.5);
|
|
|
|
margin-bottom: $base_margin*2;
|
2020-02-04 16:08:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// title
|
|
|
|
.message-title {
|
|
|
|
font-weight: bold;
|
2021-12-28 13:46:54 +00:00
|
|
|
/* HACK: the label should be baseline-aligned with a 1em label, fake this with some bottom padding */
|
|
|
|
padding-top: 0.57em;
|
2020-02-04 16:08:20 +00:00
|
|
|
}
|
|
|
|
|
2019-12-19 15:38:27 +00:00
|
|
|
// secondary container in title box
|
|
|
|
.message-secondary-bin {
|
2020-02-04 16:15:27 +00:00
|
|
|
padding: 0 $base_margin * 2;
|
2019-12-19 15:38:27 +00:00
|
|
|
|
|
|
|
// notification time stamp
|
|
|
|
> .event-time {
|
|
|
|
color: transparentize($fg_color, 0.5);
|
2019-12-19 16:09:33 +00:00
|
|
|
@include fontsize($base_font_size - 2);
|
2019-12-19 15:38:27 +00:00
|
|
|
/* HACK: the label should be baseline-aligned with a 1em label, fake this with some bottom padding */
|
2020-02-04 16:15:27 +00:00
|
|
|
padding-bottom: 0.13em;
|
2020-08-03 14:38:17 +00:00
|
|
|
|
|
|
|
&:ltr { text-align: right };
|
|
|
|
&:rtl { text-align: left };
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
|
|
|
}
|
2019-12-18 21:25:03 +00:00
|
|
|
|
2020-02-04 16:08:20 +00:00
|
|
|
// close button
|
|
|
|
.message-close-button {
|
2021-12-28 13:46:54 +00:00
|
|
|
color: $fg_color;
|
|
|
|
background-color: transparentize($fg_color, 0.9);
|
|
|
|
border-radius: 99px;
|
2022-01-17 16:44:25 +00:00
|
|
|
padding: $base_padding - 1px;
|
|
|
|
margin: 1px;
|
2021-12-28 13:46:54 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: transparentize($fg_color, 0.8);
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background-color: transparentize($fg_color, 0.9);
|
|
|
|
}
|
2020-02-04 16:08:20 +00:00
|
|
|
}
|
2020-02-04 16:15:27 +00:00
|
|
|
|
|
|
|
// body
|
|
|
|
.message-body {
|
|
|
|
color: darken($fg_color, 10%);
|
|
|
|
}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
2020-01-19 16:24:47 +00:00
|
|
|
// URLs in messages
|
|
|
|
.url-highlighter {
|
|
|
|
link-color: $link_color;
|
|
|
|
}
|
|
|
|
|
2019-12-18 21:25:03 +00:00
|
|
|
/* Media Controls */
|
|
|
|
.message-media-control {
|
2021-12-28 13:46:54 +00:00
|
|
|
padding: 0 $base_padding*2;
|
|
|
|
margin: $base_padding*2 0;
|
|
|
|
border-radius: $base_border_radius;
|
|
|
|
color: $fg_color;
|
2019-12-19 15:38:27 +00:00
|
|
|
|
2021-12-28 13:46:54 +00:00
|
|
|
// colors are lightened since the media controls are in a notification_bubble
|
2019-12-19 15:38:27 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: lighten($hover_bg_color, 5%);
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2021-12-28 13:46:54 +00:00
|
|
|
background-color: lighten($active_bg_color, 5%);
|
2019-12-19 15:38:27 +00:00
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
|
2021-12-28 13:46:54 +00:00
|
|
|
&:insensitive { color: lighten($insensitive_fg_color, 5%); }
|
2019-12-19 15:38:27 +00:00
|
|
|
|
2020-02-04 16:15:27 +00:00
|
|
|
// fix border-radius for last button
|
2021-12-28 13:46:54 +00:00
|
|
|
&:last-child:ltr { margin-right: $base_margin*3; }
|
|
|
|
&:last-child:rtl { margin-left: $base_margin*3; }
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// album-art
|
|
|
|
.media-message-cover-icon {
|
2021-12-28 13:46:54 +00:00
|
|
|
icon-size: $base_icon_size*3 !important; // 48px
|
2019-12-19 15:38:27 +00:00
|
|
|
border-radius: $base_border_radius;
|
|
|
|
|
|
|
|
// when there is no artwork
|
|
|
|
&.fallback {
|
|
|
|
color: darken($fg_color, 17%);
|
|
|
|
background-color: $bg_color;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
border-radius: $base_border_radius;
|
2021-12-28 13:46:54 +00:00
|
|
|
icon-size: $base_icon_size * 2 !important; // 32px
|
|
|
|
padding: ($base_padding*2 + 2); // 16px
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
2020-01-19 20:45:36 +00:00
|
|
|
}
|