2023-01-03 19:55:46 +00:00
|
|
|
|
// Copyright 2016 Signal Messenger, LLC
|
2020-10-30 20:34:04 +00:00
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
|
// Fonts
|
|
|
|
|
|
2022-03-02 18:41:16 +00:00
|
|
|
|
@mixin font-family {
|
2019-10-04 18:06:17 +00:00
|
|
|
|
font-family: $inter;
|
2023-01-25 00:54:46 +00:00
|
|
|
|
/* Japanese */
|
2022-03-02 18:41:16 +00:00
|
|
|
|
&:lang(ja) {
|
|
|
|
|
font-family: 'SF Pro JP', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3',
|
|
|
|
|
メイリオ, Meiryo, 'MS Pゴシック', 'Helvetica Neue', Helvetica, Arial,
|
|
|
|
|
sans-serif;
|
|
|
|
|
}
|
2023-01-25 00:54:46 +00:00
|
|
|
|
/* Farsi (Persian) */
|
|
|
|
|
&:lang(fa) {
|
|
|
|
|
font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI',
|
|
|
|
|
Tahoma, 'Noto Sans Arabic', Helvetica, Arial, sans-serif;
|
|
|
|
|
}
|
2022-03-02 18:41:16 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin font-title-1 {
|
|
|
|
|
@include font-family;
|
2021-10-21 21:04:43 +00:00
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
line-height: 32px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
letter-spacing: -0.56px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin font-title-2 {
|
2022-03-02 18:41:16 +00:00
|
|
|
|
@include font-family;
|
2021-10-21 21:04:43 +00:00
|
|
|
|
font-weight: 600;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
font-size: 20px;
|
|
|
|
|
line-height: 26px;
|
|
|
|
|
letter-spacing: -0.34px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin font-body-1 {
|
2022-03-02 18:41:16 +00:00
|
|
|
|
@include font-family;
|
2021-03-08 17:58:59 +00:00
|
|
|
|
font-size: 14px;
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
letter-spacing: -0.08px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
}
|
|
|
|
|
@mixin font-body-1-bold {
|
|
|
|
|
@include font-body-1;
|
2021-03-08 17:58:59 +00:00
|
|
|
|
font-weight: 600;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
}
|
|
|
|
|
@mixin font-body-1-italic {
|
|
|
|
|
@include font-body-1;
|
|
|
|
|
font-style: italic;
|
|
|
|
|
}
|
|
|
|
|
@mixin font-body-1-bold-italic {
|
|
|
|
|
@include font-body-1;
|
2021-03-08 17:58:59 +00:00
|
|
|
|
font-weight: 600;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
font-style: italic;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin font-body-2 {
|
2022-03-02 18:41:16 +00:00
|
|
|
|
@include font-family;
|
2021-03-11 22:59:53 +00:00
|
|
|
|
font-size: 13px;
|
|
|
|
|
line-height: 18px;
|
|
|
|
|
letter-spacing: -0.03px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
}
|
|
|
|
|
@mixin font-body-2-bold {
|
|
|
|
|
@include font-body-2;
|
2021-03-08 17:58:59 +00:00
|
|
|
|
font-weight: 600;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
}
|
2022-08-31 19:57:21 +00:00
|
|
|
|
@mixin font-body-2-medium {
|
|
|
|
|
@include font-body-2;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
2019-10-04 18:06:17 +00:00
|
|
|
|
@mixin font-body-2-italic {
|
|
|
|
|
@include font-body-2;
|
|
|
|
|
font-style: italic;
|
|
|
|
|
}
|
|
|
|
|
@mixin font-body-2-bold-italic {
|
|
|
|
|
@include font-body-2;
|
2021-03-08 17:58:59 +00:00
|
|
|
|
font-weight: 600;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
font-style: italic;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin font-subtitle {
|
2022-03-02 18:41:16 +00:00
|
|
|
|
@include font-family;
|
2022-10-26 23:17:39 +00:00
|
|
|
|
font-size: 12px;
|
2021-03-11 22:59:53 +00:00
|
|
|
|
line-height: 16px;
|
|
|
|
|
letter-spacing: 0;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin font-caption {
|
2022-03-02 18:41:16 +00:00
|
|
|
|
@include font-family;
|
2021-03-11 22:59:53 +00:00
|
|
|
|
font-size: 11px;
|
|
|
|
|
line-height: 14px;
|
|
|
|
|
letter-spacing: 0.06px;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
}
|
|
|
|
|
@mixin font-caption-bold {
|
|
|
|
|
@include font-caption;
|
2021-03-08 17:58:59 +00:00
|
|
|
|
font-weight: 600;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
}
|
|
|
|
|
@mixin font-caption-bold-italic {
|
|
|
|
|
@include font-caption;
|
2021-03-08 17:58:59 +00:00
|
|
|
|
font-weight: 600;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
font-style: italic;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Themes
|
|
|
|
|
|
|
|
|
|
@mixin light-theme() {
|
|
|
|
|
@content;
|
2018-05-08 16:51:19 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-05-11 22:58:14 +00:00
|
|
|
|
@mixin explicit-light-theme() {
|
|
|
|
|
.light-theme & {
|
|
|
|
|
@content;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
|
@mixin dark-theme() {
|
|
|
|
|
.dark-theme & {
|
|
|
|
|
@content;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-30 22:58:57 +00:00
|
|
|
|
// Utilities
|
|
|
|
|
|
|
|
|
|
@mixin rounded-corners() {
|
|
|
|
|
// This ensures the borders are completely rounded. (A value like 100% would make it an ellipse.)
|
|
|
|
|
border-radius: 9999px;
|
|
|
|
|
}
|
2021-03-15 18:50:22 +00:00
|
|
|
|
|
|
|
|
|
@mixin smooth-scroll() {
|
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
|
scroll-behavior: auto;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-30 18:35:43 +00:00
|
|
|
|
// NOTE: As of this writing, this mixin only works in the main window, because this class
|
|
|
|
|
// is only applied there.
|
|
|
|
|
@mixin only-when-page-is-visible {
|
|
|
|
|
.page-is-visible & {
|
|
|
|
|
@content;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-02 22:32:55 +00:00
|
|
|
|
// Search results loading
|
|
|
|
|
|
|
|
|
|
@mixin search-results-loading-pulsating-background {
|
|
|
|
|
animation: search-results-loading-pulsating-background-animation 2s infinite;
|
|
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
|
animation: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
|
background: $color-gray-05;
|
|
|
|
|
}
|
|
|
|
|
@include dark-theme {
|
|
|
|
|
background: $color-gray-65;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes search-results-loading-pulsating-background-animation {
|
|
|
|
|
0% {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
50% {
|
|
|
|
|
opacity: 0.55;
|
|
|
|
|
}
|
|
|
|
|
100% {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin search-results-loading-box($width) {
|
|
|
|
|
width: $width;
|
|
|
|
|
height: 12px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
@include search-results-loading-pulsating-background;
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
|
// Icons
|
|
|
|
|
|
2021-08-24 20:16:26 +00:00
|
|
|
|
@mixin color-svg($svg, $color, $stretch: true, $mask-origin: null) {
|
2018-05-04 20:07:52 +00:00
|
|
|
|
-webkit-mask: url($svg) no-repeat center;
|
2019-08-20 19:15:13 +00:00
|
|
|
|
@if $stretch {
|
|
|
|
|
-webkit-mask-size: 100%;
|
|
|
|
|
}
|
2021-08-24 20:16:26 +00:00
|
|
|
|
@if $mask-origin {
|
|
|
|
|
-webkit-mask-origin: $mask-origin;
|
|
|
|
|
}
|
2018-05-04 20:07:52 +00:00
|
|
|
|
background-color: $color;
|
2022-04-04 17:16:00 +00:00
|
|
|
|
@media (forced-colors: active) {
|
|
|
|
|
background-color: WindowText;
|
2016-04-09 07:17:08 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-04-22 18:25:37 +00:00
|
|
|
|
|
2019-11-21 19:16:06 +00:00
|
|
|
|
// Keyboard
|
|
|
|
|
|
|
|
|
|
@mixin keyboard-mode() {
|
|
|
|
|
.keyboard-mode & {
|
|
|
|
|
@content;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin mouse-mode() {
|
|
|
|
|
.mouse-mode & {
|
|
|
|
|
@content;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin dark-keyboard-mode() {
|
|
|
|
|
.dark-theme.keyboard-mode & {
|
|
|
|
|
@content;
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-07-24 01:35:32 +00:00
|
|
|
|
|
|
|
|
|
@mixin dark-mouse-mode() {
|
|
|
|
|
.dark-theme.mouse-mode & {
|
|
|
|
|
@content;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-11-21 19:16:06 +00:00
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
|
// Other
|
2019-04-22 18:25:37 +00:00
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
|
@mixin popper-shadow() {
|
2019-10-17 18:22:07 +00:00
|
|
|
|
box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3), 0px 0px 8px rgba(0, 0, 0, 0.05);
|
2022-04-04 17:16:00 +00:00
|
|
|
|
|
|
|
|
|
@media (forced-colors: active) {
|
|
|
|
|
border: 1px solid WindowText;
|
|
|
|
|
}
|
2019-04-22 18:25:37 +00:00
|
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
|
@mixin button-reset {
|
|
|
|
|
background: none;
|
|
|
|
|
color: inherit;
|
|
|
|
|
border: none;
|
|
|
|
|
padding: 0;
|
2019-11-07 21:36:16 +00:00
|
|
|
|
margin: 0;
|
2019-10-04 18:06:17 +00:00
|
|
|
|
font: inherit;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
outline: inherit;
|
2019-11-07 21:36:16 +00:00
|
|
|
|
text-align: inherit;
|
2022-04-04 17:16:00 +00:00
|
|
|
|
|
|
|
|
|
@media (forced-colors: active) {
|
|
|
|
|
border: 1px solid WindowText;
|
|
|
|
|
}
|
2019-05-16 22:32:11 +00:00
|
|
|
|
}
|
2020-11-20 17:30:45 +00:00
|
|
|
|
|
2021-09-21 01:23:55 +00:00
|
|
|
|
@mixin staged-attachment-close-button {
|
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 8px;
|
|
|
|
|
right: 8px;
|
|
|
|
|
width: 18px;
|
|
|
|
|
height: 18px;
|
2021-12-01 23:13:09 +00:00
|
|
|
|
z-index: $z-index-above-base;
|
2021-09-21 01:23:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-08-17 21:45:18 +00:00
|
|
|
|
@mixin calling-text-shadow {
|
|
|
|
|
text-shadow: 0 0 4px $color-black-alpha-40;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-25 21:42:51 +00:00
|
|
|
|
@mixin lonely-local-video-preview {
|
2021-09-10 17:24:05 +00:00
|
|
|
|
max-height: calc(100% - 24px);
|
|
|
|
|
height: auto;
|
|
|
|
|
transform: rotateY(180deg);
|
|
|
|
|
width: calc(100% - 24px);
|
|
|
|
|
border-radius: 8px;
|
2021-08-25 21:42:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-12-03 16:06:39 +00:00
|
|
|
|
// --- Buttons
|
|
|
|
|
|
|
|
|
|
// Individual traits
|
|
|
|
|
|
|
|
|
|
@mixin button-focus-outline {
|
|
|
|
|
&:focus {
|
|
|
|
|
@include keyboard-mode {
|
2021-05-28 16:15:17 +00:00
|
|
|
|
box-shadow: 0px 0px 0px 3px $color-ultramarine;
|
2020-12-03 16:06:39 +00:00
|
|
|
|
}
|
|
|
|
|
@include dark-keyboard-mode {
|
2021-05-28 16:15:17 +00:00
|
|
|
|
box-shadow: 0px 0px 0px 3px $color-ultramarine-light;
|
2020-12-03 16:06:39 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin button-blue-text {
|
|
|
|
|
@include light-theme {
|
2021-05-28 16:15:17 +00:00
|
|
|
|
color: $color-ultramarine;
|
2020-12-03 16:06:39 +00:00
|
|
|
|
}
|
|
|
|
|
@include dark-theme {
|
2021-05-28 16:15:17 +00:00
|
|
|
|
color: $color-ultramarine-light;
|
2020-12-03 16:06:39 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Complete button styles
|
2020-11-20 17:30:45 +00:00
|
|
|
|
|
|
|
|
|
@mixin button-primary {
|
2021-05-28 16:15:17 +00:00
|
|
|
|
background-color: $color-ultramarine;
|
2020-11-20 17:30:45 +00:00
|
|
|
|
|
|
|
|
|
// Note: the background colors here need to match the parent component
|
|
|
|
|
@include light-theme {
|
|
|
|
|
color: $color-white;
|
|
|
|
|
border: 1px solid white;
|
|
|
|
|
}
|
|
|
|
|
@include dark-theme {
|
|
|
|
|
color: $color-white-alpha-90;
|
|
|
|
|
border: 1px solid $color-gray-95;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
@include mouse-mode {
|
2021-05-28 16:15:17 +00:00
|
|
|
|
background-color: mix($color-black, $color-ultramarine, 15%);
|
2020-11-20 17:30:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include dark-mouse-mode {
|
2021-05-28 16:15:17 +00:00
|
|
|
|
background-color: mix($color-white, $color-ultramarine, 15%);
|
2020-11-20 17:30:45 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active {
|
2020-12-03 16:06:39 +00:00
|
|
|
|
// We need to include all four here for specificity precedence
|
|
|
|
|
|
|
|
|
|
@include mouse-mode {
|
2021-05-28 16:15:17 +00:00
|
|
|
|
background-color: mix($color-black, $color-ultramarine, 25%);
|
2020-11-20 17:30:45 +00:00
|
|
|
|
}
|
2020-12-03 16:06:39 +00:00
|
|
|
|
@include dark-mouse-mode {
|
2021-05-28 16:15:17 +00:00
|
|
|
|
background-color: mix($color-white, $color-ultramarine, 25%);
|
2020-11-20 17:30:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
2021-05-28 16:15:17 +00:00
|
|
|
|
background-color: mix($color-black, $color-ultramarine, 25%);
|
2020-11-20 17:30:45 +00:00
|
|
|
|
}
|
|
|
|
|
@include dark-keyboard-mode {
|
2021-05-28 16:15:17 +00:00
|
|
|
|
background-color: mix($color-black, $color-ultramarine, 25%);
|
2020-11-20 17:30:45 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-12-03 16:06:39 +00:00
|
|
|
|
|
|
|
|
|
@include button-focus-outline;
|
2020-11-20 17:30:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin button-secondary {
|
|
|
|
|
@include light-theme {
|
|
|
|
|
color: $color-gray-90;
|
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
|
}
|
|
|
|
|
@include dark-theme {
|
|
|
|
|
color: $color-gray-05;
|
|
|
|
|
background-color: $color-gray-65;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
@include mouse-mode {
|
|
|
|
|
background-color: mix($color-black, $color-gray-05, 15%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include dark-mouse-mode {
|
|
|
|
|
background-color: mix($color-white, $color-gray-65, 15%);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active {
|
2020-12-03 16:06:39 +00:00
|
|
|
|
// We need to include all four here for specificity precedence
|
|
|
|
|
|
|
|
|
|
@include mouse-mode {
|
2020-11-20 17:30:45 +00:00
|
|
|
|
background-color: mix($color-black, $color-gray-05, 25%);
|
|
|
|
|
}
|
2020-12-03 16:06:39 +00:00
|
|
|
|
@include dark-mouse-mode {
|
|
|
|
|
background-color: mix($color-white, $color-gray-65, 25%);
|
|
|
|
|
}
|
2020-11-20 17:30:45 +00:00
|
|
|
|
|
2020-12-03 16:06:39 +00:00
|
|
|
|
@include keyboard-mode {
|
|
|
|
|
background-color: mix($color-black, $color-gray-05, 25%);
|
|
|
|
|
}
|
|
|
|
|
@include dark-keyboard-mode {
|
2020-11-20 17:30:45 +00:00
|
|
|
|
background-color: mix($color-white, $color-gray-65, 25%);
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-12-03 16:06:39 +00:00
|
|
|
|
|
|
|
|
|
@include button-focus-outline;
|
2020-11-20 17:30:45 +00:00
|
|
|
|
}
|
2020-12-03 16:06:39 +00:00
|
|
|
|
|
2020-11-20 17:30:45 +00:00
|
|
|
|
@mixin button-secondary-blue-text {
|
2020-12-03 16:06:39 +00:00
|
|
|
|
@include button-secondary;
|
|
|
|
|
@include button-blue-text;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin button-light {
|
2020-11-20 17:30:45 +00:00
|
|
|
|
@include light-theme {
|
2020-12-03 16:06:39 +00:00
|
|
|
|
color: $color-gray-90;
|
|
|
|
|
background-color: $color-gray-02;
|
2020-11-20 17:30:45 +00:00
|
|
|
|
}
|
|
|
|
|
@include dark-theme {
|
2020-12-03 16:06:39 +00:00
|
|
|
|
color: $color-gray-05;
|
|
|
|
|
background-color: $color-gray-75;
|
2020-11-20 17:30:45 +00:00
|
|
|
|
}
|
2020-12-03 16:06:39 +00:00
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
@include mouse-mode {
|
|
|
|
|
background-color: mix($color-black, $color-gray-02, 10%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include dark-mouse-mode {
|
|
|
|
|
background-color: mix($color-white, $color-gray-75, 10%);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
// We need to include all four here for specificity precedence
|
|
|
|
|
|
|
|
|
|
@include mouse-mode {
|
|
|
|
|
background-color: mix($color-black, $color-gray-02, 20%);
|
|
|
|
|
}
|
|
|
|
|
@include dark-mouse-mode {
|
|
|
|
|
background-color: mix($color-white, $color-gray-75, 20%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
|
background-color: mix($color-black, $color-gray-02, 20%);
|
|
|
|
|
}
|
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
|
background-color: mix($color-white, $color-gray-75, 20%);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include button-focus-outline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin button-light-blue-text {
|
|
|
|
|
@include button-light;
|
|
|
|
|
@include button-blue-text;
|
2020-11-20 17:30:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin button-destructive {
|
|
|
|
|
@include light-theme {
|
|
|
|
|
color: $color-white;
|
|
|
|
|
background-color: $color-accent-red;
|
|
|
|
|
}
|
|
|
|
|
@include dark-theme {
|
|
|
|
|
color: $color-white-alpha-90;
|
|
|
|
|
background-color: $color-accent-red;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
@include mouse-mode {
|
|
|
|
|
background-color: mix($color-black, $color-accent-red, 15%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include dark-mouse-mode {
|
|
|
|
|
background-color: mix($color-white, $color-accent-red, 15%);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active {
|
2020-12-03 16:06:39 +00:00
|
|
|
|
// We need to include all four here for specificity precedence
|
|
|
|
|
|
|
|
|
|
@include mouse-mode {
|
2020-11-20 17:30:45 +00:00
|
|
|
|
background-color: mix($color-black, $color-accent-red, 25%);
|
|
|
|
|
}
|
2020-12-03 16:06:39 +00:00
|
|
|
|
@include dark-mouse-mode {
|
|
|
|
|
background-color: mix($color-white, $color-accent-red, 25%);
|
|
|
|
|
}
|
2020-11-20 17:30:45 +00:00
|
|
|
|
|
2020-12-03 16:06:39 +00:00
|
|
|
|
@include keyboard-mode {
|
|
|
|
|
background-color: mix($color-black, $color-accent-red, 25%);
|
|
|
|
|
}
|
|
|
|
|
@include dark-keyboard-mode {
|
2020-11-20 17:30:45 +00:00
|
|
|
|
background-color: mix($color-white, $color-accent-red, 25%);
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-12-03 16:06:39 +00:00
|
|
|
|
|
|
|
|
|
@include button-focus-outline;
|
2020-11-20 17:30:45 +00:00
|
|
|
|
}
|
2020-12-07 20:43:19 +00:00
|
|
|
|
|
|
|
|
|
@mixin button-green {
|
|
|
|
|
$background-color: $color-accent-green;
|
|
|
|
|
|
|
|
|
|
background-color: $background-color;
|
|
|
|
|
color: $color-white;
|
|
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
// We need to include all four here for specificity precedence
|
|
|
|
|
|
|
|
|
|
@include mouse-mode {
|
|
|
|
|
background-color: mix($color-black, $background-color, 25%);
|
|
|
|
|
}
|
|
|
|
|
@include dark-mouse-mode {
|
|
|
|
|
background-color: mix($color-white, $background-color, 25%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
|
background-color: mix($color-black, $background-color, 25%);
|
|
|
|
|
}
|
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
|
background-color: mix($color-white, $background-color, 25%);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include button-focus-outline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin button-small {
|
2021-04-30 22:58:57 +00:00
|
|
|
|
@include rounded-corners;
|
2020-12-07 20:43:19 +00:00
|
|
|
|
padding: 7px 14px;
|
|
|
|
|
}
|
2021-03-11 21:29:31 +00:00
|
|
|
|
|
|
|
|
|
// Modals
|
|
|
|
|
|
|
|
|
|
@mixin modal-reset {
|
|
|
|
|
@include popper-shadow();
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
max-height: 100%;
|
|
|
|
|
max-width: 360px;
|
|
|
|
|
padding: 16px;
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 95%;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
|
background: $color-white;
|
|
|
|
|
color: $color-gray-90;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
|
background: $color-gray-95;
|
|
|
|
|
color: $color-gray-05;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin modal-close-button {
|
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 12px;
|
|
|
|
|
top: 12px;
|
|
|
|
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
width: 24px;
|
|
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-75);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-15);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
@include keyboard-mode {
|
2021-05-28 16:15:17 +00:00
|
|
|
|
background-color: $color-ultramarine;
|
2021-03-11 21:29:31 +00:00
|
|
|
|
}
|
|
|
|
|
@include dark-keyboard-mode {
|
2021-05-28 16:15:17 +00:00
|
|
|
|
background-color: $color-ultramarine-light;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin color-bubble($bubble-size) {
|
|
|
|
|
background-clip: content-box;
|
|
|
|
|
border-color: transparent;
|
|
|
|
|
border-radius: $bubble-size + 12px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-width: 4px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
height: $bubble-size + 12px;
|
|
|
|
|
padding: 2px;
|
|
|
|
|
width: $bubble-size + 12px;
|
|
|
|
|
|
|
|
|
|
@each $color, $value in $conversation-colors {
|
|
|
|
|
&--#{$color} {
|
|
|
|
|
background-color: $value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@each $color, $value in $conversation-colors-gradient {
|
|
|
|
|
&--#{$color} {
|
|
|
|
|
background-image: linear-gradient(
|
|
|
|
|
map-get($value, 'deg'),
|
|
|
|
|
map-get($value, 'start'),
|
|
|
|
|
map-get($value, 'end')
|
|
|
|
|
);
|
2021-03-11 21:29:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-08-06 00:17:05 +00:00
|
|
|
|
|
|
|
|
|
@mixin avatar-colors {
|
|
|
|
|
@each $color, $value in $avatar-colors {
|
|
|
|
|
&--#{$color} {
|
2021-10-12 19:07:58 +00:00
|
|
|
|
--bg: #{map-get($value, 'bg')};
|
|
|
|
|
--fg: #{map-get($value, 'fg')};
|
|
|
|
|
|
|
|
|
|
background-color: var(--bg);
|
|
|
|
|
color: var(--fg);
|
2021-08-06 00:17:05 +00:00
|
|
|
|
|
|
|
|
|
&--icon {
|
2021-10-12 19:07:58 +00:00
|
|
|
|
background-color: var(--fg);
|
2021-08-06 00:17:05 +00:00
|
|
|
|
@include dark-theme {
|
|
|
|
|
// For specificity
|
2021-10-12 19:07:58 +00:00
|
|
|
|
background-color: var(--fg);
|
2021-08-06 00:17:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-09-17 21:03:18 +00:00
|
|
|
|
|
|
|
|
|
@mixin scrollbar {
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
width: 6px;
|
|
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
|
background: $color-black-alpha-40;
|
|
|
|
|
}
|
|
|
|
|
@include dark-theme {
|
|
|
|
|
background: $color-white-alpha-40;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover::-webkit-scrollbar-thumb {
|
|
|
|
|
visibility: visible;
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-12-16 15:02:22 +00:00
|
|
|
|
|
|
|
|
|
@mixin normal-input {
|
|
|
|
|
@include font-body-1;
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
border-width: 2px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
|
background: $color-white;
|
|
|
|
|
color: $color-black;
|
|
|
|
|
border-color: $color-gray-15;
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
background: $color-gray-02;
|
|
|
|
|
border-color: $color-gray-05;
|
|
|
|
|
color: $color-gray-90;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
|
background: $color-gray-80;
|
|
|
|
|
color: $color-gray-05;
|
|
|
|
|
border-color: $color-gray-45;
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
background: $color-gray-95;
|
|
|
|
|
border-color: $color-gray-60;
|
|
|
|
|
color: $color-gray-20;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
|
border-color: $color-ultramarine;
|
|
|
|
|
}
|
|
|
|
|
@include dark-theme {
|
|
|
|
|
border-color: $color-ultramarine-light;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin install-screen {
|
|
|
|
|
align-items: center;
|
|
|
|
|
display: flex;
|
2022-07-05 16:44:53 +00:00
|
|
|
|
width: var(--window-width);
|
2022-06-08 22:00:32 +00:00
|
|
|
|
height: var(--window-height);
|
2021-12-16 15:02:22 +00:00
|
|
|
|
justify-content: center;
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
|
background: $color-gray-02;
|
|
|
|
|
color: $color-black;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
|
background: $color-gray-95;
|
|
|
|
|
color: $color-white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
|
@include font-title-2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
|
@include font-body-1;
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-01-26 23:05:26 +00:00
|
|
|
|
|
|
|
|
|
@mixin timeline-floating-header-node {
|
|
|
|
|
@include rounded-corners;
|
|
|
|
|
box-shadow: 0 1px 4px $color-black-alpha-20;
|
|
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
|
background: $color-white;
|
|
|
|
|
}
|
|
|
|
|
@include dark-theme {
|
|
|
|
|
background: $color-gray-80;
|
|
|
|
|
}
|
|
|
|
|
}
|