2019-12-18 21:25:03 +00:00
|
|
|
/* Message List */
|
|
|
|
// a.k.a. notifications in the menu
|
|
|
|
|
|
|
|
// main list
|
|
|
|
.message-list {
|
2022-02-15 16:00:51 +00:00
|
|
|
width: 29em;
|
2022-02-07 18:22:40 +00:00
|
|
|
border: solid $borders_color;
|
2022-02-07 17:37:54 +00:00
|
|
|
|
|
|
|
// padding and margins to account for scrollbar
|
|
|
|
&:ltr {margin-left: 0; margin-right: $base_margin; padding-right: $base_padding; border-right-width: 1px; }
|
|
|
|
&:rtl {margin-right: 0; margin-left: $base_margin; padding-left: $base_padding; border-left-width: 1px; }
|
2020-01-19 20:45:36 +00:00
|
|
|
|
2021-12-28 13:46:54 +00:00
|
|
|
.message-list-placeholder {
|
2022-02-07 18:22:40 +00:00
|
|
|
@extend %title_2;
|
|
|
|
color: transparentize($insensitive_fg_color, .5);
|
2021-12-28 13:46:54 +00:00
|
|
|
|
|
|
|
// 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
|
|
|
}
|
|
|
|
|
|
|
|
.message-list-sections {
|
2022-02-07 18:22:40 +00:00
|
|
|
spacing: $base_padding;
|
2021-12-28 13:46:54 +00:00
|
|
|
margin: 0;
|
|
|
|
padding-bottom: $base_padding;
|
|
|
|
|
|
|
|
// to account for scrollbar
|
2022-02-07 17:37:54 +00:00
|
|
|
&:ltr {margin-right: $base_margin * 3; }
|
|
|
|
&:rtl {margin-left: $base_margin * 3;}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.message-list-section,
|
|
|
|
.message-list-section-list {
|
2022-02-07 18:22:40 +00:00
|
|
|
spacing: $base_padding;
|
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;
|
2022-02-07 18:22:40 +00:00
|
|
|
spacing: $base_padding;
|
|
|
|
@extend %heading;
|
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 {
|
2022-02-02 18:17:42 +00:00
|
|
|
@include card;
|
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 {
|
2022-02-07 18:22:40 +00:00
|
|
|
icon-size: $large_icon_size; // 32px
|
2019-12-19 15:38:27 +00:00
|
|
|
-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;
|
2022-02-07 17:37: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
|
2022-02-07 17:37:54 +00:00
|
|
|
.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 {
|
2022-02-07 17:37:54 +00:00
|
|
|
padding: 0 $base_padding*3;
|
2021-12-28 13:46:54 +00:00
|
|
|
margin: $base_padding*2 0;
|
|
|
|
border-radius: $base_border_radius;
|
|
|
|
color: $fg_color;
|
2019-12-19 15:38:27 +00:00
|
|
|
|
2022-02-02 18:17:42 +00:00
|
|
|
// colors are lightened since the media controls are in a card
|
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
|
|
|
|
2022-02-07 17:37:54 +00:00
|
|
|
// fix margin 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;
|
2022-02-07 18:22:40 +00:00
|
|
|
icon-size: $large_icon_size !important; // 32px
|
2021-12-28 13:46:54 +00:00
|
|
|
padding: ($base_padding*2 + 2); // 16px
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
2020-01-19 20:45:36 +00:00
|
|
|
}
|