2018-09-21 16:05:03 +02:00
|
|
|
/* Constants */
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--icon-size: 24px;
|
|
|
|
--primary-color: #4285f4;
|
|
|
|
--peer-width: 120px;
|
2020-12-21 00:20:38 +01:00
|
|
|
color-scheme: light dark;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Layout */
|
|
|
|
|
|
|
|
html {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
width: 100%;
|
|
|
|
overflow-x: hidden;
|
2021-02-23 13:14:23 +01:00
|
|
|
overscroll-behavior-y: none;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
flex-grow: 1;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.row-reverse {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
}
|
|
|
|
|
|
|
|
.row {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
|
|
|
.column {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.center {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2020-12-20 21:30:28 +01:00
|
|
|
.grow {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
.full {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
header {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 56px;
|
|
|
|
align-items: center;
|
|
|
|
padding: 16px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
[hidden] {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
/* Typography */
|
|
|
|
|
|
|
|
body {
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: 34px;
|
|
|
|
font-weight: 400;
|
|
|
|
letter-spacing: -.01em;
|
|
|
|
line-height: 40px;
|
|
|
|
margin: 8px 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 24px;
|
|
|
|
font-weight: 400;
|
|
|
|
letter-spacing: -.012em;
|
|
|
|
line-height: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: 500;
|
|
|
|
margin: 16px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.font-subheading {
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 24px;
|
2022-01-05 16:45:13 +01:00
|
|
|
word-break: break-all;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.font-body1,
|
|
|
|
body {
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.font-body2 {
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
2018-09-24 13:14:11 +02:00
|
|
|
color: currentColor;
|
2018-09-21 16:05:03 +02:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Icons */
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
width: var(--icon-size);
|
|
|
|
height: var(--icon-size);
|
|
|
|
fill: currentColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Shadows */
|
|
|
|
|
|
|
|
[shadow="1"] {
|
|
|
|
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.14),
|
2020-12-21 00:20:38 +01:00
|
|
|
0 1px 8px 0 rgba(0, 0, 0, 0.12),
|
|
|
|
0 3px 3px -2px rgba(0, 0, 0, 0.4);
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
[shadow="2"] {
|
|
|
|
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14),
|
2020-12-21 00:20:38 +01:00
|
|
|
0 1px 10px 0 rgba(0, 0, 0, 0.12),
|
|
|
|
0 2px 4px -1px rgba(0, 0, 0, 0.4);
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Animations */
|
|
|
|
|
|
|
|
@keyframes fade-in {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
/* Main Header */
|
2018-09-21 16:05:03 +02:00
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
body>header a {
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
2018-09-21 16:05:03 +02:00
|
|
|
|
|
|
|
/* Peers List */
|
|
|
|
|
|
|
|
x-peers {
|
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Empty Peers List */
|
|
|
|
|
|
|
|
x-no-peers {
|
|
|
|
padding: 8px;
|
|
|
|
text-align: center;
|
|
|
|
/* prevent flickering on load */
|
|
|
|
animation: fade-in 300ms;
|
|
|
|
animation-delay: 500ms;
|
|
|
|
animation-fill-mode: backwards;
|
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
x-no-peers h2,
|
|
|
|
x-no-peers a {
|
2018-09-21 16:05:03 +02:00
|
|
|
color: var(--primary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:not(:empty)+x-no-peers {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Peer */
|
|
|
|
|
|
|
|
x-peer {
|
|
|
|
-webkit-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peer label {
|
|
|
|
width: var(--peer-width);
|
|
|
|
padding: 8px;
|
|
|
|
cursor: pointer;
|
|
|
|
touch-action: manipulation;
|
|
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peer .name {
|
|
|
|
width: var(--peer-width);
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="file"] {
|
|
|
|
visibility: hidden;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peer x-icon {
|
|
|
|
--icon-size: 40px;
|
|
|
|
width: var(--icon-size);
|
|
|
|
padding: 12px;
|
|
|
|
border-radius: 50%;
|
|
|
|
background: var(--primary-color);
|
|
|
|
color: white;
|
|
|
|
display: flex;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
transition: transform 150ms;
|
|
|
|
will-change: transform;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peer:not([transfer]):hover x-icon,
|
|
|
|
x-peer:not([transfer]):focus x-icon {
|
|
|
|
transform: scale(1.05);
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peer[transfer] x-icon {
|
|
|
|
box-shadow: none;
|
|
|
|
opacity: 0.8;
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
|
2020-12-21 00:20:38 +01:00
|
|
|
.status,
|
|
|
|
.device-name {
|
2018-09-21 16:05:03 +02:00
|
|
|
height: 18px;
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peer[transfer] .status:before {
|
2020-12-15 04:35:23 +01:00
|
|
|
content: 'Transferring...';
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2020-12-19 21:05:48 +01:00
|
|
|
x-peer:not([transfer]) .status,
|
2020-12-21 00:20:38 +01:00
|
|
|
x-peer[transfer] .device-name {
|
2020-12-19 21:05:48 +01:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
x-peer x-icon {
|
|
|
|
animation: pop 600ms ease-out 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes pop {
|
|
|
|
0% {
|
|
|
|
transform: scale(0.7);
|
|
|
|
}
|
2020-12-21 00:20:38 +01:00
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
40% {
|
|
|
|
transform: scale(1.2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peer[drop] x-icon {
|
|
|
|
transform: scale(1.1);
|
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
/* Footer */
|
|
|
|
|
|
|
|
footer {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 0 16px 0;
|
2020-12-16 03:08:24 +01:00
|
|
|
text-align: center;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
footer .logo {
|
|
|
|
--icon-size: 80px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
color: var(--primary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
footer .font-body2 {
|
|
|
|
color: var(--primary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-height: 800px) {
|
|
|
|
footer {
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Dialog */
|
|
|
|
|
|
|
|
x-dialog x-background {
|
|
|
|
background: rgba(0, 0, 0, 0.61);
|
|
|
|
z-index: 10;
|
|
|
|
transition: opacity 300ms;
|
2018-09-21 21:48:31 +02:00
|
|
|
will-change: opacity;
|
2018-09-21 16:05:03 +02:00
|
|
|
padding: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-dialog x-paper {
|
|
|
|
z-index: 3;
|
|
|
|
background: white;
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 16px 24px;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 400px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
transition: transform 300ms;
|
2018-09-21 21:48:31 +02:00
|
|
|
will-change: transform;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
x-dialog:not([show]) {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-dialog:not([show]) x-paper {
|
|
|
|
transform: scale(0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
x-dialog:not([show]) x-background {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-dialog .row-reverse>.button {
|
|
|
|
margin-top: 16px;
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
|
2020-12-20 21:30:28 +01:00
|
|
|
x-dialog a {
|
2019-03-13 03:28:49 +01:00
|
|
|
color: var(--primary-color);
|
|
|
|
}
|
2018-09-21 16:05:03 +02:00
|
|
|
|
|
|
|
/* Receive Dialog */
|
2020-12-21 00:20:38 +01:00
|
|
|
#receiveDialog .row {
|
2020-12-20 21:30:28 +01:00
|
|
|
margin-top: 24px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Receive Text Dialog */
|
2018-09-21 16:05:03 +02:00
|
|
|
|
|
|
|
#receiveTextDialog #text {
|
|
|
|
width: 100%;
|
|
|
|
word-break: break-all;
|
|
|
|
max-height: 300px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
-webkit-user-select: all;
|
|
|
|
-moz-user-select: all;
|
|
|
|
user-select: all;
|
2020-12-29 20:55:38 +01:00
|
|
|
white-space: pre-wrap;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2020-12-16 05:30:57 +01:00
|
|
|
#receiveTextDialog #text a {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2018-09-21 16:05:03 +02:00
|
|
|
|
2020-12-16 05:30:57 +01:00
|
|
|
#receiveTextDialog #text a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2018-09-21 16:05:03 +02:00
|
|
|
|
2020-12-21 00:20:38 +01:00
|
|
|
#receiveTextDialog h3 {
|
2020-12-16 05:55:21 +01:00
|
|
|
/* Select the received text when double-clicking the dialog */
|
|
|
|
user-select: none;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
/* Button */
|
|
|
|
|
|
|
|
.button {
|
|
|
|
padding: 0 16px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
min-height: 36px;
|
|
|
|
min-width: 100px;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 24px;
|
|
|
|
font-weight: 700;
|
|
|
|
letter-spacing: 0.12em;
|
|
|
|
text-transform: uppercase;
|
|
|
|
white-space: nowrap;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
background: inherit;
|
|
|
|
color: var(--primary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.button,
|
|
|
|
.icon-button {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
|
|
touch-action: manipulation;
|
2018-09-24 13:14:11 +02:00
|
|
|
border: none;
|
|
|
|
outline: none;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.button:before,
|
|
|
|
.icon-button:before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
background: currentColor;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 300ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button:hover:before,
|
|
|
|
.icon-button:hover:before {
|
|
|
|
opacity: 0.1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button:before {
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
.button:focus:before,
|
|
|
|
.icon-button:focus:before {
|
2018-09-21 16:05:03 +02:00
|
|
|
opacity: 0.2;
|
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
button::-moz-focus-inner {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Icon Button */
|
|
|
|
|
|
|
|
.icon-button {
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-button:before {
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Text Input */
|
|
|
|
|
2020-12-28 02:39:44 +01:00
|
|
|
.textarea {
|
2018-09-21 16:05:03 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
padding: 16px 24px;
|
2020-12-16 06:04:58 +01:00
|
|
|
border-radius: 16px;
|
2018-09-21 16:05:03 +02:00
|
|
|
margin: 8px 0;
|
|
|
|
font-size: 14px;
|
2020-12-16 06:04:58 +01:00
|
|
|
font-family: inherit;
|
2020-12-20 22:23:25 +01:00
|
|
|
background: #f1f3f4;
|
2020-12-22 21:08:39 +01:00
|
|
|
display: block;
|
|
|
|
overflow: auto;
|
|
|
|
resize: none;
|
|
|
|
min-height: 40px;
|
|
|
|
line-height: 16px;
|
|
|
|
max-height: 300px;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Info Animation */
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
#about {
|
2018-09-21 16:05:03 +02:00
|
|
|
color: white;
|
2018-09-24 13:14:11 +02:00
|
|
|
z-index: 11;
|
|
|
|
overflow: hidden;
|
|
|
|
pointer-events: none;
|
2019-02-08 02:57:35 +01:00
|
|
|
text-align: center;
|
2018-09-24 13:14:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#about .fade-in {
|
2018-09-21 16:05:03 +02:00
|
|
|
transition: opacity 300ms;
|
|
|
|
will-change: opacity;
|
|
|
|
transition-delay: 300ms;
|
2018-09-24 13:14:11 +02:00
|
|
|
z-index: 11;
|
|
|
|
pointer-events: all;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
#about:not(:target) .fade-in {
|
2018-09-21 16:05:03 +02:00
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
transition-delay: 0;
|
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
#about .logo {
|
2018-09-21 16:05:03 +02:00
|
|
|
--icon-size: 96px;
|
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
#about x-background {
|
2018-09-21 16:05:03 +02:00
|
|
|
position: absolute;
|
2021-02-24 09:23:07 +01:00
|
|
|
top: calc(32px - 250px);
|
|
|
|
right: calc(32px - 250px);
|
|
|
|
width: 500px;
|
|
|
|
height: 500px;
|
2018-09-21 16:05:03 +02:00
|
|
|
border-radius: 50%;
|
|
|
|
background: var(--primary-color);
|
|
|
|
transform: scale(0);
|
2018-11-01 01:35:18 +01:00
|
|
|
z-index: -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Hack such that initial scale(0) isn't animated */
|
2020-12-21 00:20:38 +01:00
|
|
|
#about x-background {
|
2018-09-21 16:05:03 +02:00
|
|
|
will-change: transform;
|
2018-09-24 13:14:11 +02:00
|
|
|
transition: transform 800ms cubic-bezier(0.77, 0, 0.175, 1);
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
#about:target x-background {
|
|
|
|
transform: scale(10);
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
#about .row a {
|
2018-09-21 16:05:03 +02:00
|
|
|
margin: 8px 8px -16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Loading Indicator */
|
|
|
|
|
|
|
|
.progress {
|
|
|
|
width: 80px;
|
|
|
|
height: 80px;
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
clip: rect(0px, 80px, 80px, 40px);
|
|
|
|
--progress: rotate(0deg);
|
|
|
|
transition: transform 200ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
.circle {
|
|
|
|
width: 72px;
|
|
|
|
height: 72px;
|
|
|
|
border: 4px solid var(--primary-color);
|
|
|
|
border-radius: 40px;
|
|
|
|
position: absolute;
|
|
|
|
clip: rect(0px, 40px, 80px, 0px);
|
|
|
|
will-change: transform;
|
|
|
|
transform: var(--progress);
|
|
|
|
}
|
|
|
|
|
|
|
|
.over50 {
|
|
|
|
clip: rect(auto, auto, auto, auto);
|
|
|
|
}
|
|
|
|
|
|
|
|
.over50 .circle.right {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-12-16 05:30:57 +01:00
|
|
|
/* Generic placeholder */
|
|
|
|
[placeholder]:empty:before {
|
|
|
|
content: attr(placeholder);
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
/* Toast */
|
|
|
|
|
|
|
|
.toast-container {
|
|
|
|
padding: 0 8px 24px;
|
|
|
|
overflow: hidden;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-toast {
|
|
|
|
position: absolute;
|
|
|
|
min-height: 48px;
|
|
|
|
bottom: 24px;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 344px;
|
|
|
|
background-color: #323232;
|
|
|
|
color: rgba(255, 255, 255, 0.95);
|
|
|
|
align-items: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 8px 24px;
|
|
|
|
z-index: 20;
|
|
|
|
transition: opacity 200ms, transform 300ms ease-out;
|
|
|
|
cursor: default;
|
|
|
|
line-height: 24px;
|
2018-09-24 13:14:11 +02:00
|
|
|
border-radius: 8px;
|
2018-09-21 16:05:03 +02:00
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-toast:not([show]):not(:hover) {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateY(100px);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Instructions */
|
|
|
|
|
|
|
|
x-instructions {
|
|
|
|
position: absolute;
|
|
|
|
top: 120px;
|
|
|
|
opacity: 0.5;
|
|
|
|
transition: opacity 300ms;
|
|
|
|
z-index: -1;
|
2020-12-16 04:16:53 +01:00
|
|
|
text-align: center;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
x-instructions:before {
|
|
|
|
content: attr(mobile);
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:empty~x-instructions {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
/* Responsive Styles */
|
|
|
|
|
|
|
|
@media (min-height: 800px) {
|
|
|
|
footer {
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-height: 800px),
|
|
|
|
screen and (min-width: 1100px) {
|
|
|
|
x-instructions:before {
|
|
|
|
content: attr(desktop);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-height: 420px) {
|
|
|
|
x-instructions {
|
|
|
|
top: 24px;
|
|
|
|
}
|
2018-09-24 13:14:11 +02:00
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
footer .logo {
|
|
|
|
--icon-size: 40px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-23 00:19:47 +01:00
|
|
|
/*
|
2020-12-21 06:23:12 +01:00
|
|
|
iOS specific styles
|
|
|
|
*/
|
2018-09-21 16:05:03 +02:00
|
|
|
@supports (-webkit-overflow-scrolling: touch) {
|
2020-12-21 00:20:38 +01:00
|
|
|
|
2022-12-23 00:19:47 +01:00
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
html {
|
|
|
|
position: fixed;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-instructions:before {
|
|
|
|
content: attr(mobile);
|
|
|
|
}
|
2019-02-08 02:57:35 +01:00
|
|
|
}
|
2020-10-25 10:08:07 +01:00
|
|
|
|
2020-12-22 21:08:39 +01:00
|
|
|
/*
|
|
|
|
Color Themes
|
2020-12-21 00:20:38 +01:00
|
|
|
*/
|
2020-12-20 22:23:25 +01:00
|
|
|
|
2020-10-25 10:08:07 +01:00
|
|
|
/* Default colors */
|
2020-12-21 06:23:12 +01:00
|
|
|
body {
|
2020-12-21 00:20:38 +01:00
|
|
|
--text-color: #333;
|
|
|
|
--bg-color: #fff;
|
2020-12-21 06:23:12 +01:00
|
|
|
--bg-color-secondary: #f1f3f4;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Dark theme colors */
|
|
|
|
body.dark-theme {
|
|
|
|
--text-color: #eee;
|
|
|
|
--bg-color: #121212;
|
|
|
|
--bg-color-secondary: #333;
|
2020-12-21 00:20:38 +01:00
|
|
|
}
|
2020-10-25 10:08:07 +01:00
|
|
|
|
2020-12-21 06:23:12 +01:00
|
|
|
/* Colored Elements */
|
2020-12-21 00:20:38 +01:00
|
|
|
body {
|
|
|
|
color: var(--text-color);
|
|
|
|
background-color: var(--bg-color);
|
2020-12-22 20:35:46 +01:00
|
|
|
transition: background-color 0.5s ease;
|
2020-10-25 10:08:07 +01:00
|
|
|
}
|
2020-12-20 22:23:25 +01:00
|
|
|
|
2020-12-21 00:20:38 +01:00
|
|
|
x-dialog x-paper {
|
|
|
|
background-color: var(--bg-color);
|
2020-10-25 10:08:07 +01:00
|
|
|
}
|
|
|
|
|
2020-12-28 02:39:44 +01:00
|
|
|
.textarea {
|
2020-12-21 00:20:38 +01:00
|
|
|
color: var(--text-color);
|
2020-12-21 06:23:12 +01:00
|
|
|
background-color: var(--bg-color-secondary);
|
2020-12-20 22:23:25 +01:00
|
|
|
}
|
2021-06-02 18:56:08 +02:00
|
|
|
/* Image Preview */
|
|
|
|
#img-preview{
|
2023-01-06 18:08:33 +01:00
|
|
|
max-width: 100%;
|
2021-08-05 21:18:15 +02:00
|
|
|
max-height: 50vh;
|
|
|
|
margin: auto;
|
|
|
|
display: block;
|
2021-06-02 18:56:08 +02:00
|
|
|
}
|
2020-12-20 22:23:25 +01:00
|
|
|
|
|
|
|
|
2020-10-25 10:08:07 +01:00
|
|
|
/* Styles for users who prefer dark mode at the OS level */
|
|
|
|
@media (prefers-color-scheme: dark) {
|
2020-12-21 00:20:38 +01:00
|
|
|
|
|
|
|
/* defaults to dark theme */
|
|
|
|
body {
|
|
|
|
--text-color: #eee;
|
|
|
|
--bg-color: #121212;
|
2020-12-21 06:23:12 +01:00
|
|
|
--bg-color-secondary: #333;
|
2020-12-21 00:20:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Override dark mode with light mode styles if the user decides to swap */
|
|
|
|
body.light-theme {
|
|
|
|
--text-color: #333;
|
|
|
|
--bg-color: #fafafa;
|
2020-12-21 06:23:12 +01:00
|
|
|
--bg-color-secondary: #f1f3f4;
|
2020-12-21 00:20:38 +01:00
|
|
|
}
|
2020-12-22 21:08:39 +01:00
|
|
|
}
|
2020-12-28 20:33:06 +01:00
|
|
|
|
|
|
|
|
2022-12-23 00:19:47 +01:00
|
|
|
/*
|
2020-12-28 20:33:06 +01:00
|
|
|
Edge specific styles
|
|
|
|
*/
|
|
|
|
@supports (-ms-ime-align: auto) {
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2021-06-02 18:56:08 +02:00
|
|
|
}
|