2023-05-25 17:25:11 -04:00
|
|
|
/* Message List */
|
|
|
|
// a.k.a. notifications in the menu
|
|
|
|
|
|
|
|
// main list
|
|
|
|
.message-list {
|
|
|
|
width: 29em;
|
|
|
|
border: solid $borders_color;
|
|
|
|
|
|
|
|
// 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; }
|
|
|
|
|
|
|
|
.message-list-placeholder {
|
|
|
|
@extend %title_2;
|
2024-03-25 13:34:36 -04:00
|
|
|
color: transparentize($fg_color, .75);
|
|
|
|
@if $contrast == 'high' {
|
|
|
|
color: transparentize($fg_color, .5);
|
|
|
|
}
|
2023-05-25 17:25:11 -04:00
|
|
|
// icon size and color
|
|
|
|
> StIcon {
|
2024-03-25 13:34:36 -04:00
|
|
|
icon-size: 96px; // non-em asset size
|
|
|
|
margin-bottom: $base_margin * 3;
|
2023-05-25 17:25:11 -04:00
|
|
|
-st-icon-style: symbolic;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.message-list-sections {
|
|
|
|
// to account for scrollbar
|
|
|
|
&:ltr {margin-right: $base_margin * 3; }
|
|
|
|
&:rtl {margin-left: $base_margin * 3;}
|
2024-03-25 13:34:36 -04:00
|
|
|
|
|
|
|
spacing: $base_padding * 2;
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.message-list-section,
|
|
|
|
.message-list-section-list {
|
2024-03-25 13:34:36 -04:00
|
|
|
spacing: $base_padding * 2;
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// do-not-disturb + clear button
|
|
|
|
.message-list-controls {
|
|
|
|
// NOTE: remove the padding if notification_bubble could remove margin for drop shadow
|
2024-03-25 13:34:36 -04:00
|
|
|
padding: $base_padding * 2;
|
|
|
|
padding-bottom: $base_padding;
|
2023-05-25 17:25:11 -04:00
|
|
|
spacing: $base_padding;
|
|
|
|
@extend %heading;
|
|
|
|
|
|
|
|
.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;
|
|
|
|
border-radius: 32px;
|
|
|
|
border-style: solid;
|
|
|
|
|
|
|
|
&:focus {
|
2024-09-19 20:40:52 -04:00
|
|
|
border-color: st-transparentize(-st-accent-color, 0.4);
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// message bubbles
|
|
|
|
.message {
|
2024-03-25 13:34:36 -04:00
|
|
|
@extend %card;
|
2024-09-19 20:40:52 -04:00
|
|
|
padding: $base_padding;
|
2024-03-25 13:34:36 -04:00
|
|
|
margin: 0;
|
|
|
|
border-radius: $modal_radius;
|
|
|
|
|
|
|
|
// message header
|
|
|
|
.message-header {
|
|
|
|
spacing: $base_padding;
|
|
|
|
color: $insensitive_fg_color;
|
2024-09-19 20:40:52 -04:00
|
|
|
padding:0 $base_padding;
|
|
|
|
|
|
|
|
// side padding to accommodate the close button
|
|
|
|
&:ltr { padding-right:$base_padding - 2px; };
|
|
|
|
&:rtl { padding-left:$base_padding - 2px; };
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// header source icon
|
|
|
|
.message-source-icon {
|
|
|
|
icon-size: $scalable_icon_size; // 16px
|
|
|
|
-st-icon-style: symbolic;
|
|
|
|
}
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// box that contains the source icon, source name and timestamp of the message
|
|
|
|
.message-header-content {
|
|
|
|
spacing: $base_padding;
|
|
|
|
min-height: to_em(24px);
|
|
|
|
padding-bottom: $base_padding;
|
|
|
|
|
|
|
|
// header source title
|
|
|
|
.message-source-title {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Time label
|
|
|
|
.event-time {
|
|
|
|
@extend %caption;
|
|
|
|
color: $insensitive_fg_color;
|
|
|
|
// Add bottom padding to align the app name with the time horizontally
|
|
|
|
padding-bottom: to_em(1px);
|
|
|
|
|
|
|
|
&:ltr { text-align: right };
|
|
|
|
&:rtl { text-align: left };
|
|
|
|
}
|
|
|
|
}
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// buttons in the message header
|
|
|
|
.message-expand-button,
|
|
|
|
.message-close-button {
|
|
|
|
@extend .icon-button;
|
2024-09-19 20:40:52 -04:00
|
|
|
@extend %notification_button;
|
|
|
|
border-radius: $forced_circular_radius; // make circular
|
2024-03-25 13:34:36 -04:00
|
|
|
color: $fg_color;
|
|
|
|
padding: 4px;
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
.message-expand-button {
|
2024-09-19 20:40:52 -04:00
|
|
|
padding: $base_padding;
|
2024-03-25 13:34:36 -04:00
|
|
|
&:ltr { margin-right: $base_padding; }
|
|
|
|
&:rtl { margin-left: $base_padding; }
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// container for message contents
|
|
|
|
.message-box {
|
|
|
|
padding: $base_padding;
|
|
|
|
margin-top: 0;
|
|
|
|
spacing: $base_padding;
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// icon of the message
|
|
|
|
.message-icon {
|
|
|
|
&:ltr { margin-right:$base_padding;}
|
|
|
|
&:rtl { margin-left:$base_padding;}
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// icon size and color
|
|
|
|
icon-size: $base_icon_size * 3; // 48px
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-09-19 20:40:52 -04:00
|
|
|
// a small symbolic icon on a circle background
|
2024-03-25 13:34:36 -04:00
|
|
|
&.message-themed-icon {
|
2024-09-19 20:40:52 -04:00
|
|
|
border-radius: $forced_circular_radius;
|
|
|
|
background-color: transparentize($fg_color, .93);
|
|
|
|
icon-size: $scalable_icon_size;
|
2024-03-25 13:34:36 -04:00
|
|
|
min-width: $base_icon_size * 3;
|
|
|
|
min-height: $base_icon_size * 3;
|
|
|
|
}
|
|
|
|
}
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// If the header isn't displayed we need more top margin
|
|
|
|
&:first-child {
|
|
|
|
margin-top: $base_padding * 2;
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// text of the message
|
|
|
|
.message-content {
|
|
|
|
spacing: $base_margin;
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// message title
|
|
|
|
.message-title {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-09-19 20:40:52 -04:00
|
|
|
|
|
|
|
// container for message buttons
|
|
|
|
.message-action-bin {
|
|
|
|
padding: $base_margin;
|
|
|
|
spacing: $base_padding;
|
|
|
|
|
|
|
|
// set margin on children
|
|
|
|
* {
|
|
|
|
margin: 0 $base_margin;
|
|
|
|
// remove margins
|
|
|
|
&:first-child {
|
|
|
|
&:ltr { margin-left:0;}
|
|
|
|
&:rtl { margin-right:0;}
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
&:ltr { margin-right:0;}
|
|
|
|
&:rtl { margin-left:0;}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// URLs in messages
|
|
|
|
.url-highlighter {
|
|
|
|
link-color: $link_color;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Media Controls */
|
|
|
|
.message-media-control {
|
2024-03-25 13:34:36 -04:00
|
|
|
padding: 0 $base_padding * 3;
|
2023-05-25 17:25:11 -04:00
|
|
|
border-radius: $base_border_radius;
|
|
|
|
color: $fg_color;
|
2024-03-25 13:34:36 -04:00
|
|
|
border: 1px solid transparent;
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
@if $contrast == 'high' {
|
|
|
|
border-color: $hc_inset_color;
|
|
|
|
margin: $base_padding * 2 2px;
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// colors are lightened since the media controls are in a card
|
|
|
|
&:hover {
|
|
|
|
background-color: lighten($hover_bg_color, 5%);
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: lighten($active_bg_color, 5%);
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:insensitive {
|
|
|
|
color: lighten($insensitive_fg_color, 5%);
|
2024-03-25 13:34:36 -04:00
|
|
|
|
|
|
|
@if $contrast == 'high' {
|
2023-05-25 17:25:11 -04:00
|
|
|
border-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& StIcon { icon-size: $base_icon_size; }
|
|
|
|
}
|
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
.media-message {
|
|
|
|
// album-art
|
|
|
|
.message-icon {
|
|
|
|
border-radius: $base_border_radius !important;
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
&.message-themed-icon {
|
|
|
|
icon-size: $large_icon_size !important; // 32px
|
|
|
|
}
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
}
|