session-desktop/stylesheets/_global.scss

251 lines
4.2 KiB
SCSS
Raw Normal View History

* {
box-sizing: border-box;
}
html {
height: 100%;
background-color: white;
}
body {
position: relative;
height: 100%;
width: 100%;
margin: 0;
2020-08-26 02:48:35 +02:00
font-family: $session-font-default;
font-size: 14px;
letter-spacing: 0.3px;
}
2020-08-24 06:10:40 +02:00
// scrollbars
2018-08-08 20:27:40 +02:00
::-webkit-scrollbar {
width: 6px;
height: 6px;
2018-08-08 20:27:40 +02:00
}
2022-10-07 05:42:59 +02:00
::-webkit-scrollbar-track {
background-color: var(--scroll-bar-track-color);
}
2018-08-08 20:27:40 +02:00
::-webkit-scrollbar-thumb {
2022-10-07 05:42:59 +02:00
background: var(--scroll-bar-thumb-color);
border-radius: 20px;
2020-08-26 02:48:35 +02:00
&:hover {
2022-10-07 05:42:59 +02:00
background: var(--scroll-bar-thumb-hover-color);
2018-08-08 20:27:40 +02:00
}
}
audio {
max-width: 100%;
}
2015-02-06 07:42:16 +01:00
.clearfix:before,
.clearfix:after {
display: table;
2018-05-04 22:07:52 +02:00
content: ' ';
2015-02-06 07:42:16 +01:00
}
.clearfix:after {
clear: both;
}
.hide {
display: none;
}
button {
cursor: pointer;
font-size: inherit;
border: none;
2019-10-23 04:30:07 +02:00
&[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);
}
2018-05-04 22:07:52 +02:00
&[disabled='disabled'] {
&,
&:hover {
opacity: 0.5;
box-shadow: none;
cursor: default;
}
}
}
2018-05-04 22:07:52 +02:00
a {
cursor: pointer;
user-select: text;
2018-05-04 22:07:52 +02:00
}
2015-02-06 07:42:16 +01:00
.file-input {
position: relative;
.choose-file {
cursor: pointer;
}
2015-02-06 07:42:16 +01:00
2018-05-04 22:07:52 +02:00
input[type='file'] {
2020-03-31 04:35:48 +02:00
// Must be displayed in order to programmatically
// insert file paths)
2015-02-06 07:42:16 +01:00
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
cursor: pointer;
2020-03-31 04:35:48 +02:00
z-index: -100;
2015-02-06 07:42:16 +01:00
}
}
.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;
2018-05-04 22:07:52 +02:00
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 {
2018-05-04 22:07:52 +02:00
to {
transform: rotate(360deg);
}
}
}
@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;
}
Full export, migration banner, and full migration workflow - behind flag (#1342) * Add support for backup and restore This first pass works for all stores except messages, pending some scaling improvements. // FREEBIE * Import of messages and attachments Properly sanitize filenames. Logging information that will help with debugging but won't threaten privacy (no contact or group names), where the on-disk directories have this information to make things human-readable FREEBIE * First fully operational single-action export and import! FREEBIE * Add migration export flow A banner alert leads to a blocking ui for the migration. We close the socket and wait for incoming messages to drain before starting the export. FREEBIE * A number of updates for the export flow 1. We don't immediately pop the directory selection dialog box, instead showing an explicit 'choose directory' button after explaining what is about to happen 2. We show a 'submit debug log' button on most steps of the process 3. We handle export errors and encourage the user to double-check their filesystem then submit their log 4. We are resilient to restarts during the process 5. We handle the user cancelling out of the directory selection dialog differently from other errors. 6. The export process is now serialized: non-messages, then messages. 7. After successful export, show where the data is on disk FREEBUE * Put migration behind a flag FREEBIE * Shut down websocket before proceeding with export FREEBIE * Add MigrationView to test/index.html to fix test FREEBIE * Remove 'Submit Debug Log' button when the export process is complete FREEBIE * Create a 'Signal Export' directory below user-chosen dir This cleans things up a bit so we don't litter the user's target directory with lots of stuff. FREEBIE * Clarify MessageReceiver.drain() method comments FREEBIE * A couple updates for clarity - event names, else handling Also the removal of wait(), which wasn't used anywhere. FREEBIE * A number of wording updates for the export flow FREEBIE * Export complete: put dir on its own line, make text selectable FREEBIE
2017-08-28 22:06:10 +02:00
.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 {
2018-05-04 22:07:52 +02:00
outline: none;
}
2019-01-14 22:49:58 +01:00
.inbox {
position: relative;
}