session-desktop/stylesheets/_conversation.scss

384 lines
6.4 KiB
SCSS

.message-detail-wrapper {
height: calc(100% - 48px);
width: 100%;
overflow-y: auto;
}
.message-container,
.message-list {
list-style: none;
li {
margin-bottom: 2px;
&::after {
visibility: hidden;
display: block;
font-size: 0;
content: ' ';
clear: both;
height: 0;
}
}
}
.module-message__check-box {
color: rgb(97, 97, 97);
font-size: 20px;
padding: 4px;
user-select: none;
display: inline;
}
.check-box-container {
// background-color: blue;
align-items: center;
flex-direction: row;
display: inline-flex;
}
.check-box-selected {
opacity: 1;
}
.session-message {
.react-contextmenu-wrapper {
display: inline-flex;
width: 100%;
}
}
.public-chat-message-wrapper {
padding-inline-start: 10px;
padding-inline-end: 10px;
}
.session-message {
display: flow-root;
padding-bottom: 4px;
padding-top: 4px;
padding-inline-start: 16px;
padding-inline-end: 16px;
}
.group-invitation-container {
display: flex;
flex-direction: column;
}
.group-invitation {
background-color: #f4f4f0;
display: inline-block;
margin: 4px 16px;
padding: 4px;
border: solid;
border-width: 0.5px;
border-radius: 4px;
border-color: #e0e0e0;
align-self: flex-start;
box-shadow: none;
.title {
margin: 6px;
color: darkslategray;
font-variant-caps: all-small-caps;
user-select: none;
}
.contents {
display: flex;
align-items: center;
margin: 6px;
.invite-group-avatar {
height: 48px;
width: 48px;
}
.group-details {
display: inline-flex;
flex-direction: column;
padding: 8px;
.group-name {
font-weight: lighter;
padding-bottom: 4px;
}
.group-address {
color: grey;
}
}
.join-btn {
background-color: #00f782;
color: white;
padding: 6px 10px;
margin-inline-start: 6px;
border-radius: 2px;
box-shadow: none;
user-select: none;
cursor: pointer;
transition: $session-transition-duration;
&:hover {
background-color: #00d672;
}
}
}
}
.dark-theme {
.group-invitation {
background-color: #242424;
border-color: #303030;
box-shadow: none;
.title {
color: lightgrey;
}
}
}
.invitation-outgoing {
align-self: flex-end;
}
.bulk-edit-container {
display: flex;
border-top: solid;
border-width: 0.8px;
border-color: #80808090;
&.hidden {
display: none;
}
.delete-button {
color: orangered;
padding: 18px;
// This makes sure the message counter is right in the center
width: 80px;
margin-inline-end: -80px;
user-select: none;
}
.cancel-button {
padding: 18px;
width: 80px;
margin-inline-start: -80px;
user-select: none;
}
.message-counter {
color: darkgrey;
display: flex;
align-items: center;
user-select: none;
margin-inline-start: auto;
margin-inline-end: auto;
}
}
.typing-bubble-wrapper {
margin-bottom: 20px;
}
.contact-detail-pane {
overflow-y: scroll;
padding-top: 40px;
padding-bottom: 40px;
}
// We need to use the wrapper because the conversation view calculates the height of all
// things in the composition area. A margin on an inner div won't be included in that
// height calculation.
.bottom-bar .quote-wrapper {
margin-inline-start: 37px;
margin-inline-end: 73px;
margin-top: 3px;
margin-bottom: -5px;
}
.conversation-stack-border {
border-bottom: solid;
border-color: white;
border-width: 4px;
}
.conversation-stack-no-border {
border-bottom: none;
}
.dark-theme {
.conversation-stack-border {
border-color: black;
}
}
.bottom-bar .preview-wrapper {
margin-top: 3px;
margin-inline-start: 37px;
margin-inline-end: 73px;
margin-bottom: 2px;
}
.bottom-bar {
box-sizing: content-box;
$button-width: 36px;
@include themify($themes) {
border-top: themed('sessionBorder');
}
form.send {
margin-bottom: 0px;
background: $color-white;
&.video-attachment {
.image-container {
position: relative;
}
.outer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
.play.icon {
height: 30px;
width: 30px;
@include color-svg('../images/play.svg', white);
}
}
}
}
.attachment-previews {
padding: 0 36px;
margin-bottom: 3px;
.attachment-preview {
padding: 13px 10px 0;
}
img {
border: 2px solid #ddd;
border-radius: $border-radius;
max-height: 100px;
}
.close {
position: absolute;
top: 5px;
right: 2px;
background: #999;
&:hover {
background: $grey;
}
}
}
.flex {
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 7px;
padding: 0px 15px;
.send-message {
flex-grow: 1;
}
}
.choose-file {
float: left;
height: 36px;
}
.send-message {
display: block;
max-height: 100px;
padding: 10px;
border-radius: 4px;
margin-top: 3px;
margin-bottom: 6px;
color: $color-light-90;
border: 1px solid rgba(0, 0, 0, 0.2);
outline: 0;
z-index: 5;
resize: none;
font-size: 1em;
font-family: inherit;
&[disabled='disabled'] {
cursor: not-allowed;
}
}
.capture-audio {
float: right;
height: 36px;
}
.android-length-warning {
padding: 10px;
max-width: 150px;
}
}
.toast {
position: absolute;
left: 50%;
transform: translate(-50%, 0);
bottom: 62px;
text-align: center;
padding: 8px 16px;
border-radius: 4px;
z-index: 100;
font-size: 13px;
line-height: 18px;
letter-spacing: 0;
background-color: $color-gray-75;
color: $color-white;
box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}
.module-last-seen-indicator {
padding-top: 25px;
padding-bottom: 35px;
margin-inline-start: 28px;
margin-inline-end: 28px;
&__bar {
@include themify($themes) {
background-color: themed('lastSeenIndicatorColor');
}
width: 100%;
height: 2px;
}
&__text {
margin-top: 3px;
font-size: 11px;
line-height: 16px;
letter-spacing: 0.3px;
text-transform: uppercase;
@include themify($themes) {
color: themed('lastSeenIndicatorTextColor');
}
text-align: center;
}
}