signal-desktop/stylesheets/components/StoryViewsNRepliesModal.scss

300 lines
5.3 KiB
SCSS
Raw Normal View History

2022-03-04 21:14:52 +00:00
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
2022-03-04 21:14:52 +00:00
.StoryViewsNRepliesModal {
min-width: 320px;
max-height: 80vh;
2022-03-04 21:14:52 +00:00
&--group {
min-height: min(400px, 80vh);
.StoryViewsNRepliesModal__content {
display: flex;
flex-direction: column;
flex: 1;
}
2022-11-11 17:17:30 +00:00
}
&__body {
flex: 1;
display: flex;
flex-direction: column;
}
&__body_inner {
2022-11-11 17:17:30 +00:00
display: flex;
flex-direction: column;
flex: 1;
2022-04-23 03:16:13 +00:00
}
&__content {
&:not(:has(.Tabs)) {
padding-block-start: 16px;
}
// When picking from full emoji set, compensate for for hidden quick picker
&:has(.module-emoji-picker)::before {
content: '';
display: block;
height: 52px;
}
padding-block-end: 16px;
padding-inline: 16px;
}
2022-04-23 03:16:13 +00:00
&__replies {
flex: 1;
2023-04-20 17:03:43 +00:00
margin-block: 0;
margin-inline: -16px;
2022-04-23 03:16:13 +00:00
&--none {
align-items: center;
2024-11-15 23:09:31 +00:00
color: variables.$color-gray-45;
2022-04-23 03:16:13 +00:00
display: flex;
flex: 1;
justify-content: center;
2023-04-20 17:03:43 +00:00
padding-block: 80px;
padding-inline: 0;
2022-04-23 03:16:13 +00:00
user-select: none;
}
2022-03-04 21:14:52 +00:00
}
&__overlay-container {
align-items: flex-end;
justify-content: flex-end;
}
&__compose-container {
display: flex;
align-items: center;
}
&__composer {
flex: 1;
2023-01-27 17:34:15 +00:00
margin-top: 6px;
2022-03-04 21:14:52 +00:00
}
&__emoji-button {
height: 24px;
2023-04-20 17:03:43 +00:00
margin-inline-start: 10px;
2022-03-04 21:14:52 +00:00
width: 24px;
&::after {
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
@include mixins.color-svg(
'../images/icons/v3/emoji/emoji.svg',
variables.$color-white
);
2022-03-04 21:14:52 +00:00
}
}
}
&__not-a-member {
2023-04-20 17:03:43 +00:00
margin-block: 24px 8px;
margin-inline: 4px;
font-size: 12px;
text-align: center;
2024-11-15 23:09:31 +00:00
color: variables.$color-gray-25;
}
2022-03-04 21:14:52 +00:00
&__input {
&__input {
// For specificity because StoryViewsNRepliesModal is always in dark-theme
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background: variables.$color-gray-75;
border: 1px solid variables.$color-gray-75;
color: variables.$color-white;
2022-03-04 21:14:52 +00:00
}
.ql-editor.ql-blank::before {
2024-11-15 23:09:31 +00:00
color: variables.$color-gray-25;
2022-03-04 21:14:52 +00:00
}
display: flex;
align-items: center;
min-height: 36px;
2022-03-04 21:14:52 +00:00
&--with-children {
flex: 1;
2022-03-04 21:14:52 +00:00
}
.quill {
flex: 1;
}
}
}
&__view {
align-items: center;
display: flex;
justify-content: space-between;
2023-04-20 17:03:43 +00:00
margin-block: 8px;
margin-inline: 0;
2022-03-04 21:14:52 +00:00
&--name {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-2;
2023-04-20 17:03:43 +00:00
margin-inline-start: 12px;
2022-03-04 21:14:52 +00:00
}
&--timestamp {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-2;
color: variables.$color-gray-45;
2022-03-04 21:14:52 +00:00
}
}
&__reply {
align-items: flex-end;
display: flex;
padding-bottom: 12px;
&--title {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-2;
2022-03-04 21:14:52 +00:00
}
&--timestamp {
2024-11-15 23:09:31 +00:00
@include mixins.font-subtitle;
color: variables.$color-gray-25;
2023-04-20 17:03:43 +00:00
margin-inline-start: 6px;
2022-03-04 21:14:52 +00:00
}
}
&__reaction {
align-items: center;
display: flex;
justify-content: space-between;
2023-04-20 17:03:43 +00:00
padding-block: 12px;
padding-inline: 16px;
2022-03-04 21:14:52 +00:00
&--container {
display: flex;
}
&--body {
2023-04-20 17:03:43 +00:00
margin-inline-start: 20px;
2022-03-04 21:14:52 +00:00
}
}
&__message-bubble {
2024-11-15 23:09:31 +00:00
background: variables.$color-gray-75;
2022-03-04 21:14:52 +00:00
border-radius: 18px;
2023-04-20 17:03:43 +00:00
margin-inline-start: 8px;
padding-block: 7px;
padding-inline: 12px;
2022-04-15 00:08:46 +00:00
&--doe {
background: none;
2024-11-15 23:09:31 +00:00
border: 1px solid variables.$color-gray-75;
2022-04-15 00:08:46 +00:00
}
2022-03-04 21:14:52 +00:00
}
2022-03-16 17:30:14 +00:00
&__quote {
&__container {
2023-04-20 17:03:43 +00:00
margin-block: 8px;
margin-inline: 0;
margin-inline-end: 38px;
2022-03-16 17:30:14 +00:00
}
&--outgoing-ultramarine {
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background-color: variables.$color-gray-60;
2022-03-16 17:30:14 +00:00
background-image: none;
}
}
&__primary {
min-height: 64px;
2024-11-15 23:09:31 +00:00
color: variables.$color-gray-05;
2022-03-16 17:30:14 +00:00
font-size: 12px;
font-weight: 400;
&__author,
&__text {
}
}
&__icon-container {
flex: 0 0 40px;
height: 64px;
width: 40px;
}
}
2022-07-25 18:55:44 +00:00
&__debugger__button {
2024-11-15 23:09:31 +00:00
color: variables.$color-gray-25;
2022-07-25 18:55:44 +00:00
display: block;
font-weight: 600;
height: auto;
opacity: 1;
width: auto;
&--active {
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
2022-07-25 18:55:44 +00:00
background: inherit;
}
}
&::after {
display: none;
}
&__text {
font-weight: normal;
}
}
&__copy-icon {
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
'../images/icons/v3/copy/copy.svg',
variables.$color-white
);
2022-07-25 18:55:44 +00:00
}
&__read-receipts-off {
2024-11-15 23:09:31 +00:00
color: variables.$color-gray-25;
2023-04-20 17:03:43 +00:00
margin-block: 160px;
margin-inline: 16px;
}
2023-01-27 17:34:15 +00:00
.module-ReactionPickerPicker {
background: inherit;
border: none;
box-shadow: none;
justify-content: space-between;
width: 100%;
}
.module-emoji-picker {
position: absolute;
bottom: 55px;
max-height: calc(100vh - 100px);
2023-01-27 17:34:15 +00:00
}
2022-03-04 21:14:52 +00:00
}
.Tabs.StoryViewsNRepliesModal__tabs {
position: sticky;
top: 0;
2024-11-15 23:09:31 +00:00
z-index: variables.$z-index-base;
padding-block: 16px;
2024-11-15 23:09:31 +00:00
background: variables.$color-gray-80;
2022-03-04 21:14:52 +00:00
border-bottom: none;
justify-content: center;
}
.Tabs__tab.StoryViewsNRepliesModal__tabs__tab {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-1-bold;
2023-04-20 17:03:43 +00:00
padding-block: 4px;
padding-inline: 12px;
margin-block: 0;
margin-inline: 12px;
2022-03-04 21:14:52 +00:00
}
.Tabs__tab--selected.StoryViewsNRepliesModal__tabs__tab--selected {
2024-11-15 23:09:31 +00:00
background: variables.$color-gray-65;
2022-03-04 21:14:52 +00:00
border-radius: 24px;
border-bottom: none;
}