mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
268 lines
4.4 KiB
SCSS
268 lines
4.4 KiB
SCSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
height: 100%;
|
|
background-color: white;
|
|
}
|
|
|
|
body {
|
|
position: relative;
|
|
height: 100%;
|
|
width: 100%;
|
|
margin: 0;
|
|
font-family: $session-font-default;
|
|
font-size: 14px;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
// scrollbars
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--color-scroll-bar-thumb);
|
|
border-radius: 20px;
|
|
|
|
&:hover {
|
|
background: var(--color-light-gray-color);
|
|
}
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: none;
|
|
}
|
|
|
|
audio {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.clearfix:before,
|
|
.clearfix:after {
|
|
display: table;
|
|
content: ' ';
|
|
}
|
|
.clearfix:after {
|
|
clear: both;
|
|
}
|
|
|
|
.hide {
|
|
display: none;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
font-size: inherit;
|
|
border: none;
|
|
|
|
&[disabled='disabled'] {
|
|
&,
|
|
&:hover {
|
|
opacity: 0.5;
|
|
box-shadow: none;
|
|
cursor: default;
|
|
}
|
|
}
|
|
}
|
|
button.grey {
|
|
border-radius: $border-radius;
|
|
border: solid 1px var(--color-light-gray-color);
|
|
cursor: pointer;
|
|
margin: 1em auto;
|
|
padding: 1em;
|
|
font-family: inherit;
|
|
color: var(--color-gray-color);
|
|
background: var(--color-lightest-gray-color);
|
|
box-shadow: 0 0 10px -5px rgba(var(--color-gray-color-rgb), 0.5);
|
|
|
|
&:hover {
|
|
box-shadow: 0 0 10px -3px rgba(var(--color-gray-color-rgb), 0.7);
|
|
}
|
|
|
|
&[disabled='disabled'] {
|
|
&,
|
|
&:hover {
|
|
opacity: 0.5;
|
|
box-shadow: none;
|
|
cursor: default;
|
|
}
|
|
}
|
|
}
|
|
|
|
a {
|
|
cursor: pointer;
|
|
user-select: text;
|
|
}
|
|
|
|
.file-input {
|
|
position: relative;
|
|
.choose-file {
|
|
cursor: pointer;
|
|
}
|
|
|
|
input[type='file'] {
|
|
// Must be displayed in order to programmatically
|
|
// insert file paths)
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
cursor: pointer;
|
|
z-index: -100;
|
|
}
|
|
}
|
|
|
|
.banner {
|
|
z-index: 100;
|
|
|
|
// what's the right color?
|
|
background-color: var(--color-light-blue-color);
|
|
color: black;
|
|
box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.2);
|
|
|
|
position: absolute;
|
|
top: 25px;
|
|
right: 30px;
|
|
left: 30px;
|
|
|
|
padding: 5px 25px 5px 10px;
|
|
|
|
text-align: center;
|
|
border-radius: 10px;
|
|
|
|
cursor: pointer;
|
|
|
|
.warning {
|
|
width: 18px;
|
|
height: 18px;
|
|
display: inline-block;
|
|
vertical-align: text-bottom;
|
|
@include color-svg('../images/warning.svg', black);
|
|
}
|
|
|
|
.dismiss {
|
|
position: absolute;
|
|
right: 3px;
|
|
top: 3px;
|
|
|
|
height: 23px;
|
|
width: 23px;
|
|
@include color-svg('../images/x.svg', black);
|
|
}
|
|
}
|
|
|
|
$loading-height: 16px;
|
|
|
|
.loading {
|
|
position: relative;
|
|
&::before {
|
|
display: block;
|
|
margin: 0px auto;
|
|
content: ' ';
|
|
height: $loading-height;
|
|
width: $loading-height;
|
|
border-radius: 2 * $loading-height;
|
|
border: solid 3px;
|
|
border-color: var(--color-light-blue-color) var(--color-light-blue-color)
|
|
var(--color-lightest-gray-color) var(--color-lightest-gray-color) !important;
|
|
animation: rotate 1s linear infinite;
|
|
}
|
|
|
|
@keyframes rotate {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
}
|
|
|
|
.x {
|
|
display: inline-block;
|
|
float: right;
|
|
cursor: pointer;
|
|
border-radius: 50%;
|
|
width: 22px;
|
|
height: 22px;
|
|
padding: 3px;
|
|
background: var(--color-gray-color);
|
|
|
|
&:before {
|
|
content: '';
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
@include color-svg('../images/x.svg', white);
|
|
}
|
|
}
|
|
|
|
@keyframes loading {
|
|
50% {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.app-loading-screen {
|
|
z-index: 99;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
user-select: none;
|
|
// force this to black, to stay consistent with the password prompt being in dark mode too.
|
|
background-color: black;
|
|
|
|
.content {
|
|
margin-inline-start: auto;
|
|
margin-inline-end: auto;
|
|
text-align: center;
|
|
}
|
|
.container {
|
|
margin-inline-start: auto;
|
|
margin-inline-end: auto;
|
|
width: 78px;
|
|
height: 22px;
|
|
}
|
|
.message {
|
|
-webkit-user-select: text;
|
|
max-width: 35em;
|
|
}
|
|
|
|
.dot {
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 3px solid white;
|
|
border-radius: 50%;
|
|
float: left;
|
|
margin: 0 6px;
|
|
transform: scale(0);
|
|
|
|
animation: loading 1500ms ease infinite 0ms;
|
|
&:nth-child(2) {
|
|
animation: loading 1500ms ease infinite 333ms;
|
|
}
|
|
&:nth-child(3) {
|
|
animation: loading 1500ms ease infinite 666ms;
|
|
}
|
|
}
|
|
.session-text-logo {
|
|
filter: var(--session-logo-text-current-filter);
|
|
}
|
|
}
|
|
|
|
//yellow border fix
|
|
.inbox:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.inbox {
|
|
position: relative;
|
|
}
|