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