389 lines
8.6 KiB
SCSS
389 lines
8.6 KiB
SCSS
@use "reboot";
|
|
@use "variables";
|
|
@use "mixins";
|
|
@use "spacing";
|
|
@use "forms";
|
|
@use "icons";
|
|
@use "common";
|
|
@use "print";
|
|
@use "fonts";
|
|
|
|
html,
|
|
body {
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: var(--color-background);
|
|
font-family: var(--font-family);
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 16px;
|
|
color: var(--color-text);
|
|
font-weight: 400;
|
|
line-height: 1.5;
|
|
text-align: left;
|
|
overflow: hidden;
|
|
overscroll-behavior: none;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
user-select: none;
|
|
|
|
--font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Apple Color Emoji", "Segoe UI", Oxygen, Ubuntu, Cantarell,
|
|
"Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
--font-family-monospace: "Cascadia Mono", "Roboto Mono", "Droid Sans Mono", 'SF Mono', "Menlo", "Ubuntu Mono", "Consolas", monospace;
|
|
|
|
@media (max-width: 600px) {
|
|
height: calc(var(--vh, 1vh) * 100);
|
|
}
|
|
}
|
|
|
|
noscript {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: grid;
|
|
align-content: center;
|
|
justify-items: center;
|
|
.nojs-video {
|
|
pointer-events: none;
|
|
&::-webkit-media-controls {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
html.theme-dark {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
body.is-ios,
|
|
body.is-macos {
|
|
--font-family: system-ui, -apple-system, BlinkMacSystemFont, "Roboto", "Apple Color Emoji", "Helvetica Neue", sans-serif;
|
|
}
|
|
|
|
html[lang="fa"],
|
|
html[lang="fa"] body {
|
|
--font-family: "Vazirmatn", "Roboto", -apple-system, BlinkMacSystemFont, "Apple Color Emoji", "Segoe UI", Oxygen, Ubuntu,
|
|
Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
|
|
&.is-ios,
|
|
&.is-macos {
|
|
--font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Roboto", "Apple Color Emoji", "Segoe UI", Oxygen, Ubuntu,
|
|
Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
}
|
|
}
|
|
|
|
body.is-ios {
|
|
--border-radius-messages: 1rem;
|
|
--border-radius-messages-small: 0.5rem;
|
|
}
|
|
|
|
body.is-electron {
|
|
--custom-cursor: default;
|
|
}
|
|
|
|
body.cursor-grabbing {
|
|
--custom-cursor: grabbing;
|
|
cursor: grabbing !important;
|
|
}
|
|
|
|
body.cursor-ew-resize {
|
|
--custom-cursor: ew-resize;
|
|
cursor: ew-resize !important;
|
|
}
|
|
|
|
#root,
|
|
.full-height {
|
|
height: 100%;
|
|
|
|
@media (max-width: 600px) {
|
|
height: calc(var(--vh, 1vh) * 100);
|
|
}
|
|
|
|
&.is-auth {
|
|
background: var(--color-background);
|
|
}
|
|
}
|
|
|
|
#middle-column-portals,
|
|
#portals {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 0;
|
|
}
|
|
|
|
#middle-column-portals {
|
|
top: calc(0rem - var(--call-header-height, 0rem));
|
|
}
|
|
|
|
.hidden {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.allow-selection {
|
|
user-select: text;
|
|
}
|
|
|
|
.no-selection {
|
|
user-select: none !important;
|
|
}
|
|
|
|
.clearfix::after {
|
|
content: "";
|
|
clear: both;
|
|
display: table;
|
|
}
|
|
|
|
/*
|
|
See the article for more information on this visually-hidden pattern.
|
|
https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
|
|
*/
|
|
.visually-hidden {
|
|
position: absolute !important;
|
|
width: 0;
|
|
height: 0;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
z-index: -1;
|
|
}
|
|
|
|
.custom-scroll,
|
|
.custom-scroll-x {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: transparent transparent;
|
|
transition: scrollbar-color 0.3s ease;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
// Fix scroll lock on iOS
|
|
pointer-events: auto;
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
background-color: transparent;
|
|
border-radius: 0.375rem;
|
|
// `box-shadow` prevents repaint on macOS when hovering out of scrollable container
|
|
box-shadow: 0 0 1px rgba(255, 255, 255, 0.01);
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:focus-within {
|
|
scrollbar-color: var(--color-scrollbar) transparent;
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
background-color: var(--color-scrollbar);
|
|
}
|
|
}
|
|
}
|
|
|
|
body:not(.is-ios) {
|
|
.custom-scroll {
|
|
&::-webkit-scrollbar {
|
|
width: 0.375rem;
|
|
}
|
|
}
|
|
|
|
.custom-scroll-x {
|
|
&::-webkit-scrollbar {
|
|
height: 0.375rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
.no-scrollbar {
|
|
scrollbar-width: none;
|
|
|
|
&::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.emoji-small {
|
|
background: no-repeat;
|
|
background-size: var(--emoji-size);
|
|
color: transparent;
|
|
display: inline-block;
|
|
width: var(--emoji-size);
|
|
height: var(--emoji-size);
|
|
margin-inline-end: 1px;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
|
|
&::selection {
|
|
background-color: var(--color-selection-highlight-emoji);
|
|
color: transparent;
|
|
}
|
|
}
|
|
|
|
.div-button {
|
|
outline: none !important;
|
|
cursor: var(--custom-cursor, pointer);
|
|
}
|
|
|
|
.opacity-transition {
|
|
opacity: 1;
|
|
transition: opacity 0.15s ease;
|
|
|
|
&.not-open {
|
|
opacity: 0;
|
|
}
|
|
|
|
&.not-shown {
|
|
display: none;
|
|
}
|
|
|
|
&.slow {
|
|
transition-duration: 0.3s;
|
|
}
|
|
}
|
|
|
|
.color-primary {
|
|
color: var(--color-primary) !important;
|
|
}
|
|
|
|
.color-danger {
|
|
color: var(--color-error) !important;
|
|
}
|
|
|
|
.text-muted {
|
|
color: var(--color-text-secondary) !important;
|
|
}
|
|
|
|
.protector {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 2;
|
|
user-select: none;
|
|
-webkit-touch-callout: none;
|
|
}
|
|
|
|
.for-ios-autocapitalization-fix {
|
|
position: fixed;
|
|
font-size: 16px;
|
|
opacity: 0;
|
|
bottom: 1rem;
|
|
z-index: -1;
|
|
}
|
|
|
|
.emoji-test-element {
|
|
opacity: 0;
|
|
display: inline;
|
|
white-space: nowrap;
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.shared-canvas-container {
|
|
position: relative;
|
|
}
|
|
|
|
.shared-canvas,
|
|
.absolute-video-container {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 1;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
@keyframes grow-icon {
|
|
0% {
|
|
transform: scale(0.5);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
50% {
|
|
transform: scale(1.1);
|
|
opacity: 1;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
@keyframes hide-icon {
|
|
from {
|
|
transform: scale(1);
|
|
opacity: 0.4;
|
|
}
|
|
|
|
to {
|
|
transform: scale(0.5);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.component-theme-dark {
|
|
--color-background: rgb(33, 33, 33);
|
|
--color-background-compact-menu: rgb(33, 33, 33, 0.867);
|
|
--color-background-compact-menu-reactions: rgb(33, 33, 33, 0.867);
|
|
--color-background-compact-menu-hover: rgb(0, 0, 0, 0.4);
|
|
--color-background-menu-separator: rgba(255, 255, 255, 0.102);
|
|
--color-background-secondary: rgb(15, 15, 15);
|
|
--color-background-secondary-accent: rgb(16, 15, 16);
|
|
--color-background-own: rgb(118, 106, 200);
|
|
--color-background-own-apple: rgb(118, 106, 200);
|
|
--color-background-selected: rgb(44, 44, 44);
|
|
--color-background-own-selected: rgb(101, 73, 212);
|
|
--color-chat-hover: rgb(44, 44, 44);
|
|
--color-chat-active: rgb(118, 106, 200);
|
|
--color-chat-active-greyed: rgb(146, 136, 211);
|
|
--color-item-active: rgb(41, 41, 41);
|
|
--color-text: rgb(255, 255, 255);
|
|
--color-text-rgb: 255, 255, 255;
|
|
--color-text-secondary: rgb(170, 170, 170);
|
|
--color-text-secondary-rgb: 170, 170, 170;
|
|
--color-icon-secondary: rgb(170, 170, 170);
|
|
--color-text-secondary-apple: rgb(170, 170, 170);
|
|
--color-borders: rgb(48, 48, 48);
|
|
--color-borders-input: rgb(91, 91, 90);
|
|
--color-dividers: rgb(59, 59, 61);
|
|
--color-dividers-android: rgb(15, 15, 15);
|
|
--color-links: rgb(135, 116, 225);
|
|
--color-gray: rgb(113, 117, 121);
|
|
--color-list-icon: rgb(112, 117, 121);
|
|
--color-default-shadow: rgb(16, 16, 16, 0.612);
|
|
--color-light-shadow: rgb(0, 0, 0, 0.251);
|
|
--color-green: rgb(135, 116, 225);
|
|
--color-text-meta-colored: rgb(131, 120, 219);
|
|
--color-reply-hover: rgb(39, 39, 39);
|
|
--color-reply-active: rgb(46, 47, 47);
|
|
--color-reply-own-hover: rgb(135, 117, 218);
|
|
--color-reply-own-hover-apple: rgb(135, 117, 218);
|
|
--color-reply-own-active: rgb(145, 125, 234);
|
|
--color-reply-own-active-apple: rgb(145, 125, 234);
|
|
--color-accent-own: rgb(255, 255, 255);
|
|
--color-accent-own-rgb: 255, 255, 255;
|
|
--color-message-meta-own: rgb(255, 255, 255, 0.533);
|
|
--color-own-links: rgb(255, 255, 255);
|
|
--color-code: rgb(135, 116, 225);
|
|
--color-code-own: rgb(255, 255, 255);
|
|
--color-code-bg: rgb(0, 0, 0, 0.502);
|
|
--color-code-own-bg: rgb(0, 0, 0, 0.314);
|
|
--color-composer-button: rgb(170, 170, 170, 0.8);
|
|
--color-message-reaction: rgb(43, 42, 53);
|
|
--color-message-reaction-hover: rgb(52, 49, 71);
|
|
--color-message-reaction-own: rgb(103, 92, 175);
|
|
--color-message-reaction-hover-own: rgb(91, 82, 155);
|
|
--color-message-reaction-chosen-hover: rgb(120, 100, 221);
|
|
--color-message-reaction-chosen-hover-own: rgb(245, 245, 245);
|
|
--color-voice-transcribe-button: rgb(42, 42, 60);
|
|
--color-voice-transcribe-button-own: rgb(131, 115, 211);
|
|
--color-topic-blue: rgb(111, 249, 240);
|
|
--color-topic-yellow: rgb(255, 214, 126);
|
|
--color-topic-violet: rgb(203, 134, 219);
|
|
--color-topic-green: rgb(142, 238, 152);
|
|
--color-topic-rose: rgb(255, 147, 178);
|
|
--color-topic-red: rgb(251, 111, 95);
|
|
--color-topic-grey: rgb(153, 153, 153);
|
|
--color-forum-unread-topic-hover: rgb(54, 54, 54);
|
|
--color-forum-hover-unread-topic-hover: rgb(63, 63, 63);
|
|
--color-chat-username: rgb(233, 238, 244);
|
|
}
|