session-desktop/stylesheets/_session.scss

1522 lines
27 KiB
SCSS
Raw Normal View History

div.spacer-sm {
height: $session-margin-sm;
}
div.spacer-md {
height: $session-margin-md;
}
div.spacer-lg {
height: $session-margin-lg;
}
2020-03-31 05:30:53 +02:00
.subtle {
2019-12-23 07:40:48 +01:00
opacity: 0.6;
}
2020-03-31 05:30:53 +02:00
.soft {
2019-12-27 07:55:28 +01:00
opacity: 0.4;
}
.text-center {
text-align: center;
}
.fullwidth {
width: 100%;
}
2020-02-05 04:19:01 +01:00
input,
textarea {
caret-color: $session-color-green !important;
}
2020-02-14 01:41:59 +01:00
* {
user-select: none;
2020-02-14 04:25:36 +01:00
.text-selectable,
input,
textarea {
2020-02-14 04:12:03 +01:00
user-select: text;
2020-02-14 04:25:36 +01:00
2020-02-14 04:12:03 +01:00
&::selection {
background: rgba($session-color-green, 0.6);
}
}
}
2019-12-13 02:02:02 +01:00
.shadowed {
opacity: $session-shadow-opacity;
}
.overlayed {
opacity: $session-overlay-opacity;
pointer-events: none;
}
.overlay {
display: flex !important;
2019-12-13 02:02:02 +01:00
z-index: 1;
}
2020-01-09 01:38:48 +01:00
#main-view {
height: 100vh;
display: flex;
flex-grow: 1;
.conversation-stack {
display: block;
width: 100%;
}
}
.button-group > div {
display: inline-flex;
margin-inline-start: 5px;
margin-inline-end: 5px;
}
2019-12-05 06:12:33 +01:00
.session-button {
@mixin transparent-background($textAndBorderColor) {
background-color: Transparent;
background-repeat: no-repeat;
overflow: hidden;
outline: none;
color: $textAndBorderColor;
border: 2px solid $textAndBorderColor;
}
width: auto;
display: flex;
justify-content: center;
2020-05-07 05:46:36 +02:00
align-items: center;
font-weight: 700;
user-select: none;
white-space: nowrap;
cursor: pointer;
2019-12-16 00:03:50 +01:00
transition: $session-transition-duration;
2020-01-07 03:24:44 +01:00
background-color: rgba(0, 0, 0, 0);
&.disabled {
cursor: default;
}
&.default,
&.square,
&.brand {
@include themify($themes) {
color: themed('foregroundPrimary');
}
2020-01-14 03:28:31 +01:00
2020-02-05 04:19:01 +01:00
&:not(.disabled):hover {
@include themify($themes) {
background: themed('clickableHovered');
}
}
&.green,
&.white,
&.primary,
&.secondary,
&.success,
&.danger,
&.warning {
2020-01-14 03:28:31 +01:00
&.disabled {
filter: brightness(60%);
}
}
&.green {
@include themify($themes) {
background-color: themed('accentButton');
}
}
&.white {
@include themify($themes) {
color: themed('textColor');
}
}
&.primary {
@include themify($themes) {
background-color: themed('backgroundPrimary');
}
.session-icon {
@include themify($themes) {
fill: themed('foregroundPrimary');
}
}
}
&.secondary {
background-color: $session-color-secondary;
}
&.success {
background-color: $session-color-success;
}
&.danger {
background-color: $session-color-danger;
}
&.warning {
background-color: $session-color-warning;
}
2019-12-05 06:12:33 +01:00
}
&.brand-outline,
&.default-outline,
&.square-outline {
border: none;
&.green {
@include themify($themes) {
2020-08-24 06:10:40 +02:00
@include transparent-background(themed('buttonGreen'));
}
}
&.white {
@include transparent-background($session-color-white);
}
&.primary {
@include transparent-background($session-color-primary);
}
&.secondary {
@include transparent-background($session-color-secondary);
}
&.danger {
@include transparent-background($session-color-danger);
}
&.warning {
@include transparent-background($session-color-warning-alt);
}
&.warning,
&.danger,
&.secondary,
&.primary,
&.white,
&.green {
&.disabled {
filter: brightness(60%);
&:hover {
filter: brightness(60%);
}
}
}
2019-12-05 06:12:33 +01:00
}
&.brand {
min-width: 165px;
height: 45px;
2020-05-21 07:10:54 +02:00
align-items: center;
2020-02-04 01:55:01 +01:00
padding: 0px $session-margin-lg;
2020-01-22 04:09:34 +01:00
font-size: $session-font-md;
2020-04-23 09:41:07 +02:00
font-family: $session-font-accent;
border-radius: 500px;
2020-01-21 01:17:45 +01:00
2020-02-05 04:19:01 +01:00
&:not(.disabled):hover {
@include themify($themes) {
color: themed('textColor');
border-color: themed('textColor');
}
2020-01-21 01:17:45 +01:00
}
2019-12-05 01:04:48 +01:00
}
&.default,
&.square,
&.default-outline,
&.square-outline {
border-radius: 2px;
height: 33px;
padding: 0px 18px;
// line-height: 33px;
2020-01-22 04:09:34 +01:00
font-size: $session-font-sm;
}
&.square,
&.square-outline {
border-radius: 0px;
}
2020-01-05 23:53:18 +01:00
2020-01-21 02:58:49 +01:00
& > *:hover:not(svg) {
2020-01-05 23:53:18 +01:00
filter: brightness(80%);
}
2019-12-05 06:12:33 +01:00
}
2019-12-27 07:55:28 +01:00
.session-label {
color: $session-color-white;
padding: $session-margin-sm;
width: 100%;
border-radius: 2px;
text-align: center;
&.primary {
background-color: $session-color-primary;
}
&.secondary {
background-color: $session-color-secondary;
}
&.success {
background-color: $session-color-success;
}
&.danger {
background-color: $session-color-danger;
}
&.warning {
background-color: $session-color-warning-alt;
2019-12-27 07:55:28 +01:00
}
}
2019-12-09 03:48:04 +01:00
@mixin set-icon-margin($size) {
margin: $size / 3;
}
2019-12-09 03:57:18 +01:00
.session-icon {
&.padded-left {
2019-12-09 03:48:04 +01:00
@include set-icon-margin($session-icon-size-md);
}
}
.session-icon-button {
2019-12-05 06:12:33 +01:00
cursor: pointer;
display: inline-block;
position: relative;
opacity: 0.4;
transform: translateZ(0);
&:hover {
opacity: 1;
}
transition: opacity $session-transition-duration;
2020-01-03 06:39:42 +01:00
&.no-opacity {
opacity: 1;
}
2019-12-09 03:48:04 +01:00
&.small.padded {
@include set-icon-margin($session-icon-size-sm);
}
2019-12-05 06:12:33 +01:00
2019-12-09 03:48:04 +01:00
&.medium.padded {
2019-12-06 06:49:05 +01:00
@include set-icon-margin($session-icon-size-md);
2019-12-05 06:12:33 +01:00
}
2019-12-09 03:48:04 +01:00
&.large.padded {
2019-12-06 06:49:05 +01:00
@include set-icon-margin($session-icon-size-lg);
2019-12-05 06:12:33 +01:00
}
.notification-count {
position: absolute;
2020-03-29 22:38:43 +02:00
top: $session-margin-lg;
right: $session-margin-lg;
padding: 3px;
opacity: 1;
}
}
2019-12-05 06:12:33 +01:00
2020-03-29 22:38:43 +02:00
.notification-count {
display: flex;
align-items: center;
justify-content: center;
2020-04-30 10:35:43 +02:00
font-family: $session-font-default;
2020-03-29 22:38:43 +02:00
border-radius: 50%;
font-weight: 700;
background: $session-color-danger;
color: $session-color-white;
text-align: center;
2020-04-30 10:35:43 +02:00
div {
2020-03-29 22:38:43 +02:00
position: relative;
2020-03-27 06:22:41 +01:00
sup {
2020-03-29 22:38:43 +02:00
position: absolute;
2020-04-30 10:35:43 +02:00
font-size: 1.3em;
top: -0.5em;
margin-inline-start: -0.125em;
2020-03-27 06:22:41 +01:00
}
}
2020-03-27 06:22:41 +01:00
2020-03-29 22:38:43 +02:00
&.hover {
transition: $session-transition-duration;
cursor: pointer;
&:hover {
filter: brightness(80%);
}
}
}
2019-12-05 06:12:33 +01:00
.session-icon {
@include themify($themes) {
fill: themed('textColor');
}
2019-12-05 06:12:33 +01:00
}
2019-12-09 03:48:04 +01:00
/* CONVERSATION AND MESSAGES */
@mixin standard-icon-button() {
color: $session-color-white;
opacity: 0.6;
&:hover {
opacity: 1;
}
}
2020-02-14 01:55:15 +01:00
.module-conversation-header {
height: $main-view-header-height;
}
2019-12-09 03:57:18 +01:00
.module-conversation-header__title-flex,
.module-conversation-header__title {
2020-04-23 09:28:42 +02:00
font-family: $session-font-accent;
font-weight: bold;
2019-12-09 03:48:04 +01:00
width: 100%;
display: flex;
2020-01-31 05:28:47 +01:00
font-size: $session-font-md;
2019-12-09 03:48:04 +01:00
2020-01-30 01:44:25 +01:00
&-text {
2020-09-02 04:08:31 +02:00
@include themify($themes) {
@include session-color-subtle(themed('textColor'));
}
2020-04-07 03:35:56 +02:00
font-family: $session-font-default;
2020-01-30 01:44:25 +01:00
font-weight: 300;
2020-01-31 03:31:25 +01:00
font-size: $session-font-xs;
2020-04-02 01:57:43 +02:00
line-height: $session-font-xs;
2020-01-30 01:44:25 +01:00
}
2019-12-09 03:48:04 +01:00
.module-contact-name {
2019-12-09 03:57:18 +01:00
width: 100%;
2019-12-09 03:48:04 +01:00
}
2019-12-09 03:57:18 +01:00
.module-contact-name__profile-number {
text-align: center;
2019-12-09 03:48:04 +01:00
}
}
.module-conversation-header__title {
flex-direction: column;
}
.module-conversation-header__title-flex {
flex-direction: row;
}
.module-conversation__user__profile-name,
2019-12-09 03:48:04 +01:00
.module-message__author__profile-name {
font-style: normal;
}
.module-message__author-avatar {
display: inline-flex;
margin-inline-end: 20px;
2019-12-09 03:48:04 +01:00
padding-top: 5px;
}
2019-12-17 04:43:00 +01:00
.module-message__container {
2019-12-09 03:48:04 +01:00
border-radius: $session_message-container-border-radius;
2019-12-17 04:43:00 +01:00
}
label {
user-select: none;
}
2019-12-17 04:43:00 +01:00
.module-message__attachment-container,
.module-image--curved-bottom-right,
.module-image--curved-bottom-left {
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-bottom-left-radius: $session_message-container-border-radius;
border-bottom-right-radius: $session_message-container-border-radius;
}
2020-01-31 03:31:25 +01:00
.conversation-header {
.module-avatar img {
2020-01-31 03:47:19 +01:00
box-shadow: 0px 0px 5px 0px rgba(255, 255, 255, 0.2);
2020-01-31 03:31:25 +01:00
}
2020-01-31 03:47:19 +01:00
2020-01-31 03:31:25 +01:00
.search-icon {
margin-inline-end: 10px;
2020-01-31 03:31:25 +01:00
}
2020-01-31 03:47:19 +01:00
2020-01-31 03:31:25 +01:00
.session-icon-button {
@include standard-icon-button();
}
2019-12-17 04:43:00 +01:00
}
.module-conversation-header {
position: relative;
2020-01-20 04:36:46 +01:00
padding: 0px $session-margin-lg 0px $session-margin-sm;
2019-12-17 04:43:00 +01:00
}
.title-wrapper {
position: relative;
}
2020-02-04 01:55:01 +01:00
.module-left-pane-overlay {
h3 {
margin-bottom: 6px;
}
}
2019-12-17 04:43:00 +01:00
.message-selection-overlay {
display: none;
position: absolute;
left: 0px;
right: 0px;
2020-02-14 05:27:17 +01:00
margin: 0px $session-margin-lg;
align-items: center;
justify-content: space-between;
2020-02-14 05:27:17 +01:00
height: $main-view-header-height;
2019-12-17 04:43:00 +01:00
.close-button {
float: left;
2019-12-16 00:03:50 +01:00
}
2020-02-14 01:41:59 +01:00
.session-button.default.danger {
display: flex;
// width: 80px;
margin-inline-end: 0px;
2020-02-14 01:41:59 +01:00
}
2019-12-17 04:43:00 +01:00
}
.message-selection-overlay div[role='button'] {
display: inline-block;
}
2019-12-17 04:43:00 +01:00
.message-selection-overlay .button-group {
float: right;
}
.hidden {
visibility: hidden;
}
.session-button div[role='button'] {
cursor: pointer;
}
.session-toast-wrapper {
2019-12-13 05:14:30 +01:00
position: fixed;
right: $session-margin-lg;
bottom: $session-margin-lg;
z-index: 10000;
2019-12-16 07:38:43 +01:00
}
2019-12-13 05:14:30 +01:00
2019-12-16 07:38:43 +01:00
.session-toast {
position: relative;
padding: $session-margin-md $session-margin-md;
2020-08-25 07:57:37 +02:00
@include themify($themes) {
background: rgba(themed('cellBackground'), 0.8);
}
2019-12-16 07:38:43 +01:00
margin-bottom: $session-margin-md;
2019-12-13 05:14:30 +01:00
display: flex;
flex-direction: row;
justify-content: flex-start;
.toast-icon,
.toast-info {
display: flex;
flex-direction: column;
justify-content: center;
}
.toast-icon {
padding-inline-end: $session-icon-size-md;
2019-12-13 05:14:30 +01:00
}
.toast-info {
margin-inline-end: $session-icon-size-sm + $session-icon-size-sm;
2019-12-13 05:14:30 +01:00
width: 350px;
&-container {
display: block;
}
}
.title,
.description {
text-overflow: ellipsis;
}
.title {
2020-01-22 04:09:34 +01:00
font-size: $session-font-md;
line-height: $session-font-sm;
2019-12-13 05:14:30 +01:00
margin-bottom: $session-margin-sm;
2020-01-08 07:21:39 +01:00
padding-top: 0px;
2020-08-25 07:57:37 +02:00
@include themify($themes) {
color: themed('textColor');
}
2020-01-09 04:03:21 +01:00
padding-top: 0px;
2019-12-13 05:14:30 +01:00
}
.description {
2020-01-22 04:09:34 +01:00
font-size: $session-font-xs;
2020-08-25 07:57:37 +02:00
@include themify($themes) {
@include session-color-subtle(themed('textColor'));
}
2019-12-13 05:14:30 +01:00
}
.toast-close {
2020-08-25 07:57:37 +02:00
@include themify($themes) {
@include session-color-subtle(themed('textColor'));
}
2019-12-13 05:14:30 +01:00
position: absolute;
top: $session-margin-md;
right: $session-margin-md;
&:hover {
2020-08-25 07:57:37 +02:00
@include themify($themes) {
color: themed('textColor');
}
2019-12-13 05:14:30 +01:00
}
}
@mixin set-toast-theme($color) {
border-left: 4px solid $color;
}
&.info {
@include set-toast-theme($session-color-info);
}
&.success {
@include set-toast-theme($session-color-success);
}
&.warning {
@include set-toast-theme($session-color-warning-alt);
2019-12-13 05:14:30 +01:00
}
&.error {
@include set-toast-theme($session-color-error);
}
}
2019-12-18 01:50:19 +01:00
.session-modal {
animation: fadein $session-transition-duration;
2019-12-18 01:50:19 +01:00
z-index: 150;
min-width: 300px;
2019-12-18 01:50:19 +01:00
box-sizing: border-box;
max-height: 70vh;
max-width: 70vw;
2020-08-24 06:57:55 +02:00
@include themify($themes) {
background-color: themed('modalBackground');
color: themed('textColor');
border: themed('sessionBorder');
box-shadow: themed('sessionShadow');
2020-08-24 06:57:55 +02:00
}
2020-05-26 05:56:30 +02:00
overflow: hidden;
display: flex;
flex-direction: column;
2019-12-18 01:50:19 +01:00
&__header {
2019-12-18 01:50:19 +01:00
display: flex;
flex-direction: row;
justify-content: space-between;
2020-01-22 04:09:34 +01:00
align-items: center;
2019-12-18 01:50:19 +01:00
padding: $session-margin-lg;
2020-04-23 09:28:42 +02:00
font-family: $session-font-accent;
2019-12-18 01:50:19 +01:00
text-align: center;
line-height: 18px;
2020-01-22 04:09:34 +01:00
font-size: $session-font-md;
2019-12-18 01:50:19 +01:00
font-weight: 700;
2020-01-22 04:09:34 +01:00
&.reverse {
flex-direction: row-reverse;
.session-modal__header__close > div {
float: right;
}
.session-modal__header__icons > div {
float: left;
padding-inline-start: 0px;
padding-inline-end: 10px;
2020-01-22 04:09:34 +01:00
}
}
2019-12-22 23:44:18 +01:00
&__icons,
&__close {
width: 60px;
2019-12-18 01:50:19 +01:00
}
&__icons {
float: right;
}
&__close > div {
2019-12-18 01:50:19 +01:00
float: left;
}
&__icons > div {
2019-12-18 01:50:19 +01:00
float: right;
padding-inline-start: 10px;
}
}
&__body {
2019-12-27 07:55:28 +01:00
padding: 0px $session-margin-lg $session-margin-lg $session-margin-lg;
2020-04-23 09:28:42 +02:00
font-family: $session-font-accent;
2020-01-22 04:09:34 +01:00
line-height: $session-font-md;
font-size: $session-font-sm;
2020-05-26 05:56:30 +02:00
overflow-y: auto;
overflow-x: hidden;
2019-12-22 23:44:18 +01:00
.message {
text-align: center;
2019-12-18 01:50:19 +01:00
}
2020-01-31 03:31:25 +01:00
.session-id-editable {
width: 30vw;
max-width: 700px;
}
2019-12-18 01:50:19 +01:00
}
2019-12-27 07:55:28 +01:00
&__centered {
display: flex;
flex-direction: column;
align-items: center;
}
&__button-group {
display: flex;
justify-content: flex-end;
2019-12-27 07:55:28 +01:00
2019-12-23 07:40:48 +01:00
.session-button {
margin: $session-margin-xs;
2019-12-23 07:40:48 +01:00
}
2019-12-22 23:44:18 +01:00
&__center {
2019-12-23 07:40:48 +01:00
display: flex;
justify-content: center;
}
}
&__text-highlight {
@include text-highlight($session-color-green);
color: black;
font-family: monospace;
font-style: normal;
2020-01-22 04:09:34 +01:00
font-size: $session-font-xs;
}
2019-12-18 01:50:19 +01:00
}
2020-03-27 04:33:37 +01:00
.device-pairing-dialog {
&__desc {
font-weight: 300;
font-size: $session-font-sm;
margin-bottom: $session-margin-lg;
}
&__secret-words {
display: flex;
flex-direction: column;
align-items: center;
background-color: $session-shade-6;
padding: $session-margin-sm $session-margin-lg;
border-radius: 3px;
margin-bottom: $session-margin-md;
}
}
.session-modal__body {
display: flex;
flex-direction: column;
.contact-selection-list {
width: unset;
}
2020-03-31 05:30:53 +02:00
.create-group-dialog__member-count {
text-align: center;
margin-top: -25px;
opacity: 0.6;
}
}
2020-01-08 07:21:39 +01:00
.session-confirm {
&-wrapper {
.session-modal__body .session-modal__centered {
margin: $session-margin-lg;
2020-01-08 07:21:39 +01:00
}
}
&-main-message {
2020-01-22 04:09:34 +01:00
font-size: $session-font-md;
2020-01-08 07:21:39 +01:00
}
&-sub-message {
2020-04-30 09:34:55 +02:00
text-align: center;
margin-top: 20px;
2020-01-08 07:21:39 +01:00
}
}
2019-12-18 01:50:19 +01:00
.session-toggle {
width: 51px;
height: 31px;
border: 1.5px solid #e5e5ea;
border-radius: 16px;
position: relative;
cursor: pointer;
background-color: rgba(0, 0, 0, 0);
.knob {
position: absolute;
top: 0.5px;
left: 0.5px;
height: 27px;
width: 27px;
border-radius: 28px;
background-color: $session-color-white;
box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.05), 0 3px 1px 0 rgba(0, 0, 0, 0.05),
0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 3px 3px 0 rgba(0, 0, 0, 0.05);
2020-08-25 08:58:24 +02:00
transition: transform $session-transition-duration ease,
background-color $session-transition-duration ease;
2019-12-18 01:50:19 +01:00
}
&.active {
background-color: $session-color-green;
border-color: $session-color-green;
.knob {
transform: translateX(20px);
}
}
}
2019-12-20 00:57:50 +01:00
.react-contextmenu {
padding: 0px;
margin: 0px;
2019-12-18 01:50:19 +01:00
2019-12-20 00:57:50 +01:00
border: none !important;
border-radius: 0px;
}
2019-12-20 00:57:50 +01:00
.react-contextmenu-item {
display: flex;
align-items: center;
2020-08-25 07:57:37 +02:00
transition: $session-transition-duration;
2019-12-20 00:57:50 +01:00
height: 25px;
2020-01-31 03:31:25 +01:00
padding: $session-margin-md $session-margin-sm;
2020-08-25 03:25:41 +02:00
@include themify($themes) {
background: themed('contextMenuBackground');
color: themed('textColor');
}
2020-04-23 09:41:07 +02:00
font-family: $session-font-accent;
2020-01-22 04:09:34 +01:00
font-size: $session-font-sm;
2019-12-20 00:57:50 +01:00
line-height: $session-icon-size-sm;
font-weight: 700;
2019-12-20 00:57:50 +01:00
&--active,
&--selected {
2020-08-25 03:25:41 +02:00
@include themify($themes) {
background: themed('clickableHovered');
}
2019-12-20 00:57:50 +01:00
}
2019-12-23 01:58:03 +01:00
&:active,
&:visited,
&:focus {
outline: none;
}
2019-12-20 00:57:50 +01:00
}
2019-12-20 00:57:50 +01:00
.session-dropdown {
position: relative;
width: 100%;
2019-12-18 01:50:19 +01:00
&__label {
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
height: 50px;
padding: 0px $session-margin-md;
font-size: $session-font-sm;
2020-08-25 04:13:43 +02:00
@include themify($themes) {
color: themed('textColor');
background: themed('cellBackground');
}
&:hover {
@include themify($themes) {
background: themed('clickableHovered');
}
}
.session-icon {
opacity: 0.6;
}
}
&__list-container {
2020-08-25 07:57:37 +02:00
z-index: 99;
2019-12-18 01:50:19 +01:00
display: block;
position: absolute;
top: 50px;
left: 0px;
right: 0px;
2019-12-18 01:50:19 +01:00
list-style: none;
padding: 0px;
margin: 0px;
2020-03-31 05:04:48 +02:00
max-height: 40vh;
overflow-y: auto;
}
2019-12-18 01:50:19 +01:00
&__item {
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
height: 35px;
padding: 0 $session-margin-md;
2020-08-25 04:13:43 +02:00
@include themify($themes) {
background: themed('cellBackground');
color: themed('textColor');
}
font-size: 0.8rem;
width: -webkit-fill-available;
transition: $session-transition-duration;
2019-12-18 01:50:19 +01:00
&:first-child {
2020-08-25 04:13:43 +02:00
@include themify($themes) {
border-top: themed('sessionBorder');
2020-08-25 04:13:43 +02:00
}
}
&:last-child {
2020-08-25 04:13:43 +02:00
@include themify($themes) {
border-top: themed('sessionBorder');
2020-08-25 04:13:43 +02:00
}
}
2019-12-18 01:50:19 +01:00
&:hover {
2020-08-25 04:13:43 +02:00
@include themify($themes) {
background: themed('clickableHovered');
}
}
2019-12-18 01:50:19 +01:00
.session-icon {
margin-inline-start: 6px;
}
.item-content {
margin-inline-start: 6px;
}
2019-12-20 00:57:50 +01:00
&.active,
&:hover {
2020-08-25 04:13:43 +02:00
@include themify($themes) {
background: themed('clickableHovered');
}
}
2019-12-18 01:50:19 +01:00
&.danger {
color: $session-color-danger;
}
}
2019-12-18 01:50:19 +01:00
&:hover {
2020-08-25 04:13:43 +02:00
@include themify($themes) {
background: themed('clickableHovered');
}
.session-icon {
opacity: 1;
2019-12-18 01:50:19 +01:00
}
}
2019-12-20 00:57:50 +01:00
}
.image-upload-section {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
cursor: pointer;
width: 80px;
height: 80px;
border-radius: 100%;
background-color: rgba($session-color-black, 0.72);
opacity: 0;
transition: $session-transition-duration;
&:after {
content: 'Edit';
}
&:hover {
opacity: 1;
}
}
2020-01-23 03:52:08 +01:00
.qr-image {
display: flex;
justify-content: center;
svg {
width: 135px;
height: 135px;
border-radius: 3px;
padding: $session-margin-xs;
background-color: $session-color-white;
}
}
.conversation-loader {
position: absolute;
top: 50%;
left: 50%;
margin: -40px 0 0 -40px;
2020-01-14 03:28:31 +01:00
& > div {
display: block;
}
}
2019-12-30 03:09:52 +01:00
.session-loader {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
2020-01-03 01:48:55 +01:00
2019-12-30 03:09:52 +01:00
div {
position: absolute;
top: 33px;
width: 13px;
height: 13px;
border-radius: 50%;
background: $session-color-green;
animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
div:nth-child(1) {
left: 8px;
animation: session-loader1 0.6s infinite;
}
div:nth-child(2) {
left: 8px;
animation: session-loader2 0.6s infinite;
}
div:nth-child(3) {
left: 32px;
animation: session-loader2 0.6s infinite;
}
div:nth-child(4) {
left: 56px;
animation: session-loader3 0.6s infinite;
}
@keyframes session-loader1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes session-loader3 {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
@keyframes session-loader2 {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(24px, 0);
}
}
}
2020-01-09 01:38:48 +01:00
.session-settings {
width: 100%;
height: 100vh;
2020-01-21 01:17:45 +01:00
display: flex;
flex-direction: column;
&-list {
2020-05-26 05:59:42 +02:00
overflow-y: auto;
overflow-x: hidden;
2020-01-09 01:38:48 +01:00
}
&-header {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
height: $main-view-header-height;
@include themify($themes) {
background: themed('cellBackground');
}
&-title {
line-height: $main-view-header-height;
font-weight: bold;
2020-01-22 04:09:34 +01:00
font-size: $session-font-lg;
text-align: center;
flex-grow: 1;
}
.session-button,
.session-icon-button {
margin-inline-end: $session-margin-lg;
}
}
2020-01-09 01:38:48 +01:00
&-item {
2020-01-22 04:09:34 +01:00
font-size: $session-font-md;
2020-01-09 02:15:12 +01:00
padding: $session-margin-lg;
2020-01-31 04:47:30 +01:00
margin-bottom: 20px;
2020-01-09 01:38:48 +01:00
@include themify($themes) {
background: themed('cellBackground');
color: themed('textColor');
border-bottom: themed('sessionBorder');
}
2020-01-14 07:42:04 +01:00
&.inline {
display: flex;
align-items: center;
justify-content: space-between;
}
2020-01-09 01:38:48 +01:00
&__info {
padding-inline-end: $session-margin-lg;
2020-01-09 02:15:12 +01:00
}
2020-01-09 02:15:12 +01:00
&__title {
line-height: 1.7;
2020-01-22 04:09:34 +01:00
font-size: $session-font-lg;
2020-01-15 02:26:14 +01:00
font-weight: bold;
2020-01-09 01:38:48 +01:00
}
2020-01-09 01:38:48 +01:00
&__description {
2020-04-07 03:35:56 +02:00
font-family: $session-font-default;
2020-01-22 04:09:34 +01:00
font-size: $session-font-sm;
2020-01-09 02:15:12 +01:00
font-weight: 100;
2020-02-03 05:50:38 +01:00
max-width: 700px;
@include themify($themes) {
@include session-color-subtle(themed('textColor'));
}
2020-01-09 01:38:48 +01:00
}
2020-01-15 03:49:07 +01:00
&__content {
2020-01-15 02:26:14 +01:00
label {
@include themify($themes) {
@include session-color-subtle(themed('textColor'));
}
}
}
&__selection {
.session-toggle {
transition: $session-transition-duration;
2020-01-15 02:26:14 +01:00
}
}
2020-01-09 01:38:48 +01:00
}
2020-01-21 01:17:45 +01:00
2020-01-22 05:57:58 +01:00
&-view {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
2020-05-26 05:59:42 +02:00
overflow: hidden;
2020-01-22 05:57:58 +01:00
}
&__version-info {
display: flex;
justify-content: space-between;
2020-01-24 02:26:15 +01:00
2020-01-22 05:57:58 +01:00
padding: $session-margin-sm $session-margin-md;
background: none;
2020-01-22 05:57:58 +01:00
font-size: $session-font-xs;
2020-01-22 07:17:15 +01:00
2020-01-24 02:26:15 +01:00
span {
2020-01-22 07:17:15 +01:00
opacity: 0.4;
transition: $session-transition-duration;
&:hover {
opacity: 1;
}
}
2020-01-22 05:57:58 +01:00
}
2020-01-21 02:58:49 +01:00
&__password-lock {
2020-01-21 01:17:45 +01:00
display: flex;
align-items: center;
justify-content: center;
flex-grow: 1;
2020-01-21 02:58:49 +01:00
&-box {
2020-01-21 01:17:45 +01:00
padding: 45px 60px;
display: flex;
flex-direction: column;
align-items: center;
max-width: 90%;
width: 600px;
background-color: $session-shade-4;
border: 1px solid $session-shade-8;
border-radius: 5px;
h3 {
padding: 0px;
margin-bottom: $session-margin-lg;
}
input {
width: 100%;
color: $session-color-white;
background-color: $session-shade-7;
padding: $session-margin-xs $session-margin-md;
margin-bottom: $session-margin-lg;
outline: none;
border: none;
border-radius: 2px;
2020-01-21 02:58:49 +01:00
text-align: center;
2020-01-22 04:09:34 +01:00
font-size: $session-font-xl;
2020-01-21 01:17:45 +01:00
letter-spacing: 5px;
2020-04-07 03:35:56 +02:00
font-family: $session-font-default;
2020-01-21 01:17:45 +01:00
}
2020-01-21 02:58:49 +01:00
}
2020-01-21 01:17:45 +01:00
}
2020-01-09 01:38:48 +01:00
}
2020-01-24 02:26:15 +01:00
#qr svg,
.qr-image svg {
width: $session-modal-size-sm;
height: $session-modal-size-sm;
2020-01-22 04:09:34 +01:00
padding: $session-margin-xs;
background-color: $session-color-white;
border-radius: 3px;
}
.seed-dialog {
&__description {
max-width: $session-modal-size-lg;
}
2020-01-07 02:51:22 +01:00
}
2020-01-07 02:41:14 +01:00
.messages li {
transition: $session-transition-duration !important;
}
.discussion-container {
.module-message {
2020-04-07 03:35:56 +02:00
font-family: $session-font-default;
border-radius: 5px;
2020-02-12 07:27:14 +01:00
&__text--incoming {
/* Add padding to large emojis in chat */
img.emoji.jumbo {
margin: $session-margin-sm 0px;
}
}
}
}
.bottom-bar {
.compose {
max-height: 200px;
}
.send-message-container {
display: flex;
flex-grow: 1;
2020-02-14 04:12:03 +01:00
height: 48px;
2020-01-31 03:31:25 +01:00
margin-bottom: -5px;
}
textarea.send-message {
@include themify($themes) {
background: themed('composeViewBackground');
2020-08-25 03:25:41 +02:00
color: themed('textColor');
}
border: none;
margin: 0px;
padding: 0px $session-margin-lg;
font-size: $session-font-md;
line-height: 1.3em;
align-self: center;
}
}
.bottom-bar form {
&.send {
@include themify($themes) {
background: themed('composeViewBackground');
}
}
&.active textarea {
border: none;
}
2020-01-14 03:28:31 +01:00
}
2020-01-14 07:42:04 +01:00
2020-01-30 04:19:07 +01:00
.dark-theme .bottom-bar .send-message[disabled='disabled'] {
@include themify($themes) {
background: themed('composeViewBackground');
}
2020-01-30 04:19:07 +01:00
}
2020-01-15 02:26:14 +01:00
.session-radio-group fieldset {
border: none;
margin-inline-start: $session-margin-sm;
2020-01-15 02:26:14 +01:00
margin-top: $session-margin-sm;
.session-radio {
padding: $session-margin-xs 0px;
}
}
2020-01-14 07:42:04 +01:00
.session-radio {
2020-01-15 03:49:07 +01:00
input[type='radio'] {
2020-01-14 07:42:04 +01:00
border: 0;
opacity: 0;
padding: 0;
position: absolute;
2020-01-15 02:26:14 +01:00
cursor: pointer;
2020-01-14 07:42:04 +01:00
}
label {
margin-inline-end: 1em;
2020-01-14 07:42:04 +01:00
}
label:before {
2020-01-15 03:49:07 +01:00
content: '';
2020-01-14 07:42:04 +01:00
display: inline-block;
width: 0.5em;
height: 0.5em;
margin-inline-end: 0.8em;
2020-01-14 07:42:04 +01:00
border-radius: 100%;
vertical-align: -3px;
2020-01-15 02:26:14 +01:00
border: 2px solid rgba($session-color-white, 0.6);
2020-01-14 07:42:04 +01:00
padding: 0.2em;
@include themify($themes) {
background: none;
border-color: themed('accent');
}
2020-01-14 07:42:04 +01:00
background-clip: content-box;
transition: $session-transition-duration;
2020-01-14 07:42:04 +01:00
}
input:hover + label:before {
@include themify($themes) {
background: themed('accent');
}
2020-01-14 07:42:04 +01:00
}
input:checked + label:before {
@include themify($themes) {
background: themed('accent');
}
2020-01-14 07:42:04 +01:00
}
2020-01-15 02:26:14 +01:00
}
.session-id-editable {
2020-01-30 00:55:28 +01:00
padding: $session-margin-lg;
2020-01-30 00:55:28 +01:00
textarea {
width: 30vh;
}
}
2020-01-30 00:55:28 +01:00
.session-id-editable textarea {
resize: none;
overflow: hidden;
user-select: all;
overflow-y: auto;
2020-07-14 05:12:07 +02:00
padding: 0px 5px 20px 5px;
&.session-id-editable-textarea:placeholder-shown {
padding: 10px 5px 0px 5px;
2020-07-14 05:12:07 +02:00
}
&.group-id-editable-textarea {
margin-top: 15px;
white-space: nowrap;
}
2020-01-30 00:55:28 +01:00
}
input {
user-select: text;
}
.dark-theme .invite-friends-dialog .member-item {
height: 64px;
background-color: $session-shade-4;
2020-08-25 04:13:43 +02:00
@include themify($themes) {
border: themed('sessionBorder');
2020-08-25 04:13:43 +02:00
}
display: flex;
2020-02-04 01:55:01 +01:00
align-items: center;
transition: $session-transition-duration;
.module-avatar,
.name-part {
margin: auto $session-margin-md;
}
.check-mark {
margin: auto $session-margin-xs;
}
.name-part {
flex-grow: 1;
}
}
.contact-selection-list {
width: 20vw;
}
2020-01-24 01:59:43 +01:00
.session-confirm-wrapper {
position: absolute;
height: 100%;
width: 100%;
display: flex;
.session-modal {
margin: auto auto;
}
}
.module-scroll-down {
2020-08-26 02:48:35 +02:00
}
.module-scroll-down {
z-index: 99;
position: absolute;
right: 20px;
bottom: 15px;
2020-08-26 02:48:35 +02:00
animation: fadein $session-fadein-duration;
2020-01-24 07:10:42 +01:00
.session-icon-button {
display: flex;
justify-content: center;
align-items: center;
height: 40px;
width: 40px;
border-radius: 50%;
opacity: 1;
background-color: $session-shade-2;
box-shadow: 0px 0px $session-font-sm 0px rgba($session-color-white, 0.1);
svg path {
2020-01-16 05:09:28 +01:00
transition: $session-transition-duration;
opacity: 0.6;
2020-01-16 05:09:28 +01:00
}
&:hover svg path {
opacity: 1;
}
2020-01-16 05:09:28 +01:00
}
}
2020-01-16 06:06:55 +01:00
2020-02-04 08:07:31 +01:00
.group-member-list {
&__container {
padding: 2px 0px;
width: 100%;
max-height: 400px;
overflow-y: auto;
2020-08-28 07:28:06 +02:00
@include themify($themes) {
border: themed('sessionBorder');
}
2020-02-04 08:07:31 +01:00
}
&__selection {
height: 100%;
display: flex;
flex-direction: column;
}
2020-02-05 04:19:01 +01:00
&__no-contacts {
2020-04-07 03:35:56 +02:00
font-family: $session-font-mono;
2020-08-28 07:28:06 +02:00
@include themify($themes) {
background: themed('cellBackground');
}
2020-02-05 04:19:01 +01:00
text-align: center;
padding: 20px;
}
2020-05-26 05:56:30 +02:00
// Height at which scroll bar appears on the group member list
@media (max-height: 804px) {
&__container {
overflow-y: visible;
max-height: none;
2020-05-26 05:56:30 +02:00
}
}
2020-02-04 08:07:31 +01:00
}
2020-02-04 23:59:55 +01:00
.create-group-name-input {
2020-07-14 05:12:07 +02:00
display: flex;
justify-content: center;
width: 100%;
2020-02-04 23:59:55 +01:00
.session-id-editable {
height: 60px !important;
textarea {
padding-bottom: 0px !important;
}
2020-02-05 04:19:01 +01:00
&-disabled {
border: 1px solid $session-color-dark-grey !important;
}
2020-02-04 23:59:55 +01:00
}
}
2020-02-04 08:07:31 +01:00
.session-member-item {
cursor: pointer;
2020-04-07 03:35:56 +02:00
font-family: $session-font-default;
2020-02-04 08:07:31 +01:00
padding: 0px $session-margin-sm;
height: 50px;
display: flex;
justify-content: space-between;
transition: $session-transition-duration;
2020-08-28 07:28:06 +02:00
@include themify($themes) {
background: themed('cellBackground');
}
2020-02-04 08:07:31 +01:00
2020-08-28 07:28:06 +02:00
&:not(:last-child) {
@include themify($themes) {
border-bottom: themed('sessionBorder');
}
2020-03-31 05:30:53 +02:00
}
2020-08-28 07:28:06 +02:00
&:hover {
@include themify($themes) {
background-color: themed('clickableHovered');
}
2020-03-31 05:30:53 +02:00
}
2020-02-04 08:07:31 +01:00
&.selected {
@include themify($themes) {
background-color: themed('conversationItemSelected');
}
2020-02-04 08:07:31 +01:00
}
&__checkmark {
opacity: 0;
transition: $session-transition-duration;
&.selected {
2020-02-04 08:07:31 +01:00
opacity: 1;
svg {
@include themify($themes) {
fill: themed('accent') !important;
}
}
2020-02-04 08:07:31 +01:00
}
}
&__info,
&__checkmark {
2020-02-04 08:07:31 +01:00
display: flex;
align-items: center;
}
&__name {
font-weight: bold;
margin-inline-start: $session-margin-md;
2020-02-04 08:07:31 +01:00
}
&__pubkey {
margin-inline-start: 5px;
2020-02-04 08:07:31 +01:00
opacity: 0.8;
}
2020-03-31 05:12:12 +02:00
&__avatar > div {
2020-03-31 05:30:53 +02:00
margin-bottom: 0px !important;
2020-03-31 05:12:12 +02:00
}
}
.module-message-detail {
.module-message {
pointer-events: none;
}
}