signal-desktop/stylesheets/components/MessageBody.scss

74 lines
1.3 KiB
SCSS
Raw Normal View History

2021-10-20 20:46:42 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
2021-10-20 20:46:42 +00:00
.MessageBody {
&__highlight {
font-weight: bold;
}
&__download-body,
2021-10-20 20:46:42 +00:00
&__read-more {
2024-11-15 23:09:31 +00:00
@include mixins.button-reset;
& {
font-weight: bold;
}
2021-10-20 20:46:42 +00:00
&:focus {
2024-11-15 23:09:31 +00:00
@include mixins.keyboard-mode {
border: 1px solid variables.$color-black;
outline: none;
2021-10-21 22:06:47 +00:00
}
2021-10-20 20:46:42 +00:00
}
}
&__message-too-long {
font-weight: bold;
}
2021-10-20 20:46:42 +00:00
&__at-mention {
border-radius: 4px;
cursor: pointer;
display: inline-block;
2023-04-20 17:03:43 +00:00
padding-inline: 4px;
2021-10-20 20:46:42 +00:00
border: 1px solid transparent;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
background-color: variables.$color-gray-20;
2021-10-20 20:46:42 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background-color: variables.$color-black-alpha-40;
2021-10-20 20:46:42 +00:00
}
&:focus {
2024-11-15 23:09:31 +00:00
border: 1px solid variables.$color-black;
2021-10-20 20:46:42 +00:00
outline: none;
}
&--incoming {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
background-color: variables.$color-gray-20;
2021-10-20 20:46:42 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background-color: variables.$color-gray-60;
2021-10-20 20:46:42 +00:00
}
}
&--outgoing {
2024-11-15 23:09:31 +00:00
background-color: variables.$color-black-alpha-40;
2021-10-20 20:46:42 +00:00
}
&--invisible {
visibility: hidden;
}
2021-10-20 20:46:42 +00:00
}
&__author {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-2-medium;
}
2021-10-20 20:46:42 +00:00
}