2018-09-21 16:05:03 +02:00
|
|
|
/* Constants */
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--icon-size: 24px;
|
|
|
|
--primary-color: #4285f4;
|
2023-02-08 04:06:15 +01:00
|
|
|
--paired-device-color: #00a69c;
|
2018-09-21 16:05:03 +02:00
|
|
|
--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,
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-03-01 10:04:37 +01:00
|
|
|
width: 100vw;
|
2018-09-21 16:05:03 +02:00
|
|
|
overflow-x: hidden;
|
2023-03-01 10:04:37 +01:00
|
|
|
overscroll-behavior: none;
|
|
|
|
overflow-y: hidden;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2023-03-10 18:47:04 +01:00
|
|
|
height: 100%;
|
2023-03-01 10:04:37 +01:00
|
|
|
/* mobile viewport bug fix */
|
2023-03-10 18:47:04 +01:00
|
|
|
min-height: -moz-available; /* WebKit-based browsers will ignore this. */
|
|
|
|
min-height: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
|
|
|
|
min-height: fill-available;
|
2023-03-01 10:04:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
2023-03-10 18:47:04 +01:00
|
|
|
height: 100%;
|
|
|
|
min-height: -moz-available; /* WebKit-based browsers will ignore this. */
|
|
|
|
min-height: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
|
|
|
|
min-height: fill-available;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.row-reverse {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
}
|
|
|
|
|
2023-01-10 05:07:57 +01:00
|
|
|
.space-between {
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
.row {
|
|
|
|
display: flex;
|
2023-01-10 05:07:57 +01:00
|
|
|
justify-content: center;
|
2018-09-21 16:05:03 +02:00
|
|
|
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 {
|
2023-03-28 17:26:22 +02:00
|
|
|
position: absolute;
|
|
|
|
align-items: baseline;
|
|
|
|
padding: 8px 16px;
|
2018-09-24 13:14:11 +02:00
|
|
|
box-sizing: border-box;
|
2023-03-28 17:26:22 +02:00
|
|
|
width: 100vw;
|
|
|
|
z-index: 2;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
header > a,
|
|
|
|
header > div {
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
header > div {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-self: flex-start;
|
|
|
|
touch-action: manipulation;
|
|
|
|
}
|
2023-03-08 15:18:22 +01:00
|
|
|
|
|
|
|
header > div .icon-button {
|
2023-03-28 17:26:22 +02:00
|
|
|
height: 40px;
|
|
|
|
transition: all 300ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
header > div > div {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2023-03-08 15:18:22 +01:00
|
|
|
header > div:not(:hover) .icon-button:not(.selected) {
|
2023-03-28 17:26:22 +02:00
|
|
|
height: 0;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2023-04-19 21:15:03 +02:00
|
|
|
#theme-wrapper:hover::before {
|
2023-03-28 17:26:22 +02:00
|
|
|
border-radius: 20px;
|
|
|
|
background: currentColor;
|
|
|
|
opacity: 0.1;
|
|
|
|
transition: opacity 300ms;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 40px;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
2023-03-08 15:18:22 +01:00
|
|
|
header > div:hover .icon-button.selected::before {
|
2023-03-28 17:26:22 +02:00
|
|
|
opacity: 0.1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (pointer: coarse) {
|
2023-03-08 15:18:22 +01:00
|
|
|
header > div:hover .icon-button.selected:hover::before {
|
2023-03-28 17:26:22 +02:00
|
|
|
opacity: 0.2;
|
|
|
|
}
|
|
|
|
|
2023-03-08 15:18:22 +01:00
|
|
|
header > div .icon-button:not(.selected) {
|
2023-03-28 17:26:22 +02:00
|
|
|
height: 0;
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
header > div > div {
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
}
|
2018-09-24 13:14:11 +02:00
|
|
|
}
|
|
|
|
|
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;
|
2023-01-17 10:41:50 +01:00
|
|
|
color: var(--primary-color);}
|
2018-09-21 16:05:03 +02:00
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: 500;
|
|
|
|
margin: 16px 0;
|
2023-01-10 05:07:57 +01:00
|
|
|
color: var(--primary-color);
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.font-subheading {
|
2023-03-01 10:04:37 +01:00
|
|
|
font-size: 14px;
|
2018-09-21 16:05:03 +02:00
|
|
|
font-weight: 400;
|
2023-03-01 10:04:37 +01:00
|
|
|
line-height: 18px;
|
2023-01-10 05:07:57 +01:00
|
|
|
word-break: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text-center {
|
|
|
|
text-align: center;
|
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;
|
|
|
|
}
|
|
|
|
|
2023-04-19 21:15:03 +02:00
|
|
|
a,
|
|
|
|
.icon-button {
|
2018-09-21 16:05:03 +02:00
|
|
|
text-decoration: none;
|
2018-09-24 13:14:11 +02:00
|
|
|
color: currentColor;
|
2018-09-21 16:05:03 +02:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2023-01-10 15:55:36 +01:00
|
|
|
hr {
|
2023-02-10 03:26:45 +01:00
|
|
|
color: white;
|
2023-01-10 15:55:36 +01:00
|
|
|
}
|
|
|
|
|
2023-02-08 04:07:02 +01:00
|
|
|
x-noscript {
|
|
|
|
background: var(--primary-color);
|
|
|
|
color: white;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
2018-09-21 16:05:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
#center {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
2023-03-28 17:26:22 +02:00
|
|
|
margin-top: 56px;
|
2023-03-01 10:04:37 +01:00
|
|
|
flex-direction: column-reverse;
|
|
|
|
flex-grow: 1;
|
|
|
|
--footer-height: 132px;
|
|
|
|
max-height: calc(100vh - 56px - var(--footer-height));
|
|
|
|
justify-content: space-around;
|
|
|
|
align-items: center;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: scroll;
|
|
|
|
overscroll-behavior-x: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 425px) {
|
|
|
|
header:has(#clear-pair-devices:not([hidden]))~#center {
|
|
|
|
--footer-height: 150px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
/* Peers List */
|
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
#x-peers-filler {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
x-peers {
|
2023-03-01 10:04:37 +01:00
|
|
|
position: relative;
|
|
|
|
display: flex;
|
2018-09-21 16:05:03 +02:00
|
|
|
flex-flow: row wrap;
|
2023-03-01 10:04:37 +01:00
|
|
|
flex-grow: 1;
|
|
|
|
align-items: start !important;
|
|
|
|
justify-content: center;
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
z-index: 2;
|
2023-03-01 10:04:37 +01:00
|
|
|
transition: --bg-color 0.5s ease;
|
|
|
|
overflow-y: scroll;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overscroll-behavior-x: none;
|
|
|
|
scrollbar-width: none;
|
|
|
|
|
|
|
|
--peers-per-row: 6; /* default if browser does not support :has selector */
|
|
|
|
--x-peers-width: min(100vw, calc(var(--peers-per-row) * (var(--peer-width) + 25px) - 16px));
|
|
|
|
width: var(--x-peers-width);
|
|
|
|
margin-right: 20px;
|
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers.overflowing {
|
|
|
|
background: /* Shadow covers */ linear-gradient(rgb(var(--bg-color)) 30%, rgba(var(--bg-color), 0)),
|
|
|
|
linear-gradient(rgba(var(--bg-color), 0), rgb(var(--bg-color)) 70%) 0 100%,
|
|
|
|
/* Shadows */ radial-gradient(farthest-side at 50% 0, rgba(var(--text-color), .2), rgba(var(--text-color), 0)),
|
|
|
|
radial-gradient(farthest-side at 50% 100%, rgba(var(--text-color), .2), rgba(var(--text-color), 0)) 0 100%;
|
|
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
|
|
|
|
|
|
|
|
/* Opera doesn't support this in the shorthand */
|
|
|
|
background-attachment: local, local, scroll, scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer) {
|
|
|
|
--peers-per-row: 10;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-height: 505px) and (max-height: 649px) and (max-width: 426px),
|
|
|
|
screen and (min-height: 486px) and (max-height: 631px) and (min-width: 426px) {
|
|
|
|
x-peers:has(> x-peer) {
|
|
|
|
--peers-per-row: 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(7)) {
|
|
|
|
--peers-per-row: 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(10)) {
|
|
|
|
--peers-per-row: 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(13)) {
|
|
|
|
--peers-per-row: 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(16)) {
|
|
|
|
--peers-per-row: 7;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(19)) {
|
|
|
|
--peers-per-row: 8;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(22)) {
|
|
|
|
--peers-per-row: 9;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(25)) {
|
|
|
|
--peers-per-row: 10;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-height: 649px) and (max-width: 425px),
|
|
|
|
screen and (min-height: 631px) and (min-width: 426px) {
|
|
|
|
x-peers:has(> x-peer) {
|
|
|
|
--peers-per-row: 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(10)) {
|
|
|
|
--peers-per-row: 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(13)) {
|
|
|
|
--peers-per-row: 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(16)) {
|
|
|
|
--peers-per-row: 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(19)) {
|
|
|
|
--peers-per-row: 7;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(22)) {
|
|
|
|
--peers-per-row: 8;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(25)) {
|
|
|
|
--peers-per-row: 9;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:has(> x-peer:nth-of-type(28)) {
|
|
|
|
--peers-per-row: 10;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
display: none;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Empty Peers List */
|
|
|
|
|
|
|
|
x-no-peers {
|
2023-03-01 10:04:37 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2018-09-21 16:05:03 +02:00
|
|
|
padding: 8px;
|
|
|
|
text-align: center;
|
|
|
|
animation: fade-in 300ms;
|
|
|
|
animation-fill-mode: backwards;
|
2023-04-20 21:11:08 +02:00
|
|
|
/* prevent flickering on load */
|
|
|
|
animation-iteration-count: 0;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
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);
|
2023-01-10 05:07:57 +01:00
|
|
|
margin-bottom: 5px;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
x-peers:not(:empty)+x-no-peers {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-01-22 17:33:19 +01:00
|
|
|
x-no-peers::before {
|
|
|
|
color: var(--primary-color);
|
|
|
|
font-size: 24px;
|
|
|
|
font-weight: 400;
|
|
|
|
letter-spacing: -.012em;
|
|
|
|
line-height: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-no-peers[drop-bg]::before {
|
|
|
|
content: "Release to select recipient";
|
|
|
|
}
|
|
|
|
|
|
|
|
x-no-peers[drop-bg] * {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Peer */
|
|
|
|
|
|
|
|
x-peer {
|
|
|
|
-webkit-user-select: none;
|
|
|
|
user-select: none;
|
2023-03-01 10:04:37 +01:00
|
|
|
padding: 8px;
|
|
|
|
align-content: start;
|
|
|
|
flex-wrap: wrap;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
x-peer label {
|
|
|
|
width: var(--peer-width);
|
|
|
|
cursor: pointer;
|
|
|
|
touch-action: manipulation;
|
|
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="file"] {
|
|
|
|
visibility: hidden;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peer x-icon {
|
|
|
|
--icon-size: 40px;
|
2023-03-01 10:04:37 +01:00
|
|
|
margin-bottom: 4px;
|
|
|
|
transition: transform 150ms;
|
|
|
|
will-change: transform;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peer .icon-wrapper {
|
2018-09-21 16:05:03 +02:00
|
|
|
width: var(--icon-size);
|
|
|
|
padding: 12px;
|
|
|
|
border-radius: 50%;
|
|
|
|
background: var(--primary-color);
|
|
|
|
color: white;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
x-peer:not(.type-ip).type-secret .icon-wrapper {
|
2023-02-08 04:06:15 +01:00
|
|
|
background: var(--paired-device-color);
|
2023-01-10 05:07:57 +01:00
|
|
|
}
|
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
x-peer x-icon > .highlight-wrapper {
|
|
|
|
align-self: center;
|
|
|
|
align-items: center;
|
|
|
|
margin: 7px auto 0;
|
|
|
|
height: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peer x-icon > .highlight-wrapper > .highlight {
|
|
|
|
width: 6px;
|
|
|
|
height: 6px;
|
|
|
|
border-radius: 50%;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peer.type-secret x-icon > .highlight-wrapper > .highlight {
|
|
|
|
background-color: var(--paired-device-color);
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
2023-01-17 10:41:50 +01:00
|
|
|
x-peer:not([status]):hover x-icon,
|
|
|
|
x-peer:not([status]):focus x-icon {
|
2018-09-21 16:05:03 +02:00
|
|
|
transform: scale(1.05);
|
|
|
|
}
|
|
|
|
|
2023-01-17 10:41:50 +01:00
|
|
|
x-peer[status] x-icon {
|
2018-09-21 16:05:03 +02:00
|
|
|
box-shadow: none;
|
|
|
|
opacity: 0.8;
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
.device-descriptor {
|
2023-03-01 21:35:00 +01:00
|
|
|
width: 100%;
|
2023-03-01 10:04:37 +01:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2023-03-13 13:03:07 +01:00
|
|
|
.device-descriptor > div {
|
2023-03-01 10:04:37 +01:00
|
|
|
width: 100%;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2020-12-21 00:20:38 +01:00
|
|
|
.status,
|
2023-02-16 02:19:14 +01:00
|
|
|
.device-name,
|
|
|
|
.connection-hash {
|
2018-09-21 16:05:03 +02:00
|
|
|
height: 18px;
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
|
2023-01-10 05:07:57 +01:00
|
|
|
.device-name {
|
|
|
|
font-size: 14px;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2023-02-16 02:19:14 +01:00
|
|
|
.connection-hash {
|
|
|
|
font-size: 12px;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2023-01-17 10:41:50 +01:00
|
|
|
x-peer[status=transfer] .status:before {
|
2020-12-15 04:35:23 +01:00
|
|
|
content: 'Transferring...';
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2023-01-17 10:41:50 +01:00
|
|
|
x-peer[status=prepare] .status:before {
|
|
|
|
content: 'Preparing...';
|
|
|
|
}
|
|
|
|
|
|
|
|
x-peer[status=wait] .status:before {
|
|
|
|
content: 'Waiting...';
|
|
|
|
}
|
|
|
|
|
2023-01-23 04:51:22 +01:00
|
|
|
x-peer[status=process] .status:before {
|
|
|
|
content: 'Processing...';
|
|
|
|
}
|
|
|
|
|
2023-01-17 10:41:50 +01:00
|
|
|
x-peer:not([status]) .status,
|
|
|
|
x-peer[status] .device-name {
|
2020-12-19 21:05:48 +01:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-01-17 10:41:50 +01:00
|
|
|
x-peer[status] {
|
|
|
|
pointer-events: 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 {
|
2023-03-01 10:04:37 +01:00
|
|
|
position: relative;
|
|
|
|
margin-top: auto;
|
|
|
|
z-index: 2;
|
2018-09-21 16:05:03 +02:00
|
|
|
align-items: center;
|
|
|
|
padding: 0 0 16px 0;
|
2020-12-16 03:08:24 +01:00
|
|
|
text-align: center;
|
2023-01-10 05:07:57 +01:00
|
|
|
transition: color 300ms;
|
2023-03-03 17:43:03 +01:00
|
|
|
cursor: default;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
footer .logo {
|
|
|
|
--icon-size: 80px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
color: var(--primary-color);
|
2023-03-01 10:04:37 +01:00
|
|
|
margin-top: -10px;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
footer .font-body2 {
|
|
|
|
color: var(--primary-color);
|
2023-02-08 05:14:34 +01:00
|
|
|
margin: auto 18px;
|
2023-02-08 04:06:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#on-this-network {
|
2023-02-11 11:44:11 +01:00
|
|
|
border-bottom: solid 4px var(--primary-color);
|
|
|
|
padding-bottom: 1px;
|
2023-02-08 04:06:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#paired-devices {
|
2023-02-11 11:44:11 +01:00
|
|
|
border-bottom: solid 4px var(--paired-device-color);
|
|
|
|
padding-bottom: 1px;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2023-03-01 21:35:00 +01:00
|
|
|
#display-name {
|
|
|
|
display: inline-block;
|
|
|
|
text-align: left;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
2023-03-06 00:40:53 +01:00
|
|
|
max-width: 15em;
|
2023-03-01 21:35:00 +01:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2023-03-03 17:43:03 +01:00
|
|
|
cursor: text;
|
2023-03-04 20:50:52 +01:00
|
|
|
margin-left: -1rem;
|
2023-03-06 00:40:53 +01:00
|
|
|
margin-bottom: -6px;
|
2023-03-04 20:50:52 +01:00
|
|
|
padding-right: 0.3rem;
|
|
|
|
padding-left: 0.3em;
|
2023-03-06 00:40:53 +01:00
|
|
|
padding-bottom: 0.1rem;
|
2023-03-04 20:50:52 +01:00
|
|
|
border-radius: 1.3rem/30%;
|
|
|
|
border-right: solid 1rem transparent;
|
|
|
|
border-left: solid 1rem transparent;
|
|
|
|
background-clip: padding-box;
|
2023-03-06 00:40:53 +01:00
|
|
|
background-color: rgba(var(--text-color), 43%);
|
2023-03-04 22:59:49 +01:00
|
|
|
color: white;
|
|
|
|
transition: background-color 0.5s ease;
|
|
|
|
overflow: hidden;
|
2023-03-01 21:35:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#edit-pen {
|
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
margin-left: -1rem;
|
|
|
|
margin-bottom: -2px;
|
|
|
|
position: relative;
|
|
|
|
z-index: -1;
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
/* 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;
|
2023-03-03 12:01:43 +01:00
|
|
|
padding: 15px;
|
2023-02-24 16:08:36 +01:00
|
|
|
overflow: overlay;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
x-dialog x-paper {
|
|
|
|
z-index: 3;
|
|
|
|
background: white;
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 16px 24px;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 400px;
|
2023-03-03 12:01:43 +01:00
|
|
|
overflow: hidden;
|
2018-09-21 16:05:03 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
transition: transform 300ms;
|
2018-09-21 21:48:31 +02:00
|
|
|
will-change: transform;
|
2023-02-24 16:53:13 +01:00
|
|
|
}
|
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#pair-device-dialog x-paper {
|
2023-03-01 10:04:37 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-03-03 12:01:43 +01:00
|
|
|
position: absolute;
|
|
|
|
top: max(50%, 350px);
|
|
|
|
margin-top: -328.5px;
|
|
|
|
width: calc(100vw - 20px);
|
|
|
|
height: 625px;
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2023-01-10 05:07:57 +01:00
|
|
|
x-dialog .font-subheading {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* PairDevicesDialog */
|
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#key-input-container {
|
2023-01-10 05:07:57 +01:00
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#key-input-container>input {
|
2023-01-10 05:07:57 +01:00
|
|
|
width: 45px;
|
|
|
|
height: 45px;
|
|
|
|
font-size: 30px;
|
|
|
|
padding: 0;
|
|
|
|
text-align: center;
|
|
|
|
display: -webkit-box !important;
|
|
|
|
display: -webkit-flex !important;
|
|
|
|
display: -moz-flex !important;
|
|
|
|
display: -ms-flexbox !important;
|
|
|
|
display: flex !important;
|
|
|
|
-webkit-justify-content: center;
|
|
|
|
-ms-justify-content: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#key-input-container>input + * {
|
2023-01-10 05:07:57 +01:00
|
|
|
margin-left: 6px;
|
|
|
|
}
|
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#key-input-container>input:nth-of-type(4) {
|
2023-03-03 12:01:43 +01:00
|
|
|
margin-left: 5%;
|
2023-01-10 05:07:57 +01:00
|
|
|
}
|
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#room-key {
|
2023-01-10 05:07:57 +01:00
|
|
|
font-size: 50px;
|
|
|
|
letter-spacing: min(calc((100vw - 80px - 99px) / 100 * 7), 23px);
|
|
|
|
display: inline-block;
|
|
|
|
text-indent: calc(0.5 * (11px + min(calc((100vw - 80px - 99px) / 100 * 6), 23px)));
|
|
|
|
margin: 15px -15px;
|
|
|
|
}
|
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#room-key-qr-code {
|
2023-03-03 12:01:43 +01:00
|
|
|
margin: 16px;
|
2023-01-10 05:07:57 +01:00
|
|
|
}
|
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#pair-device-dialog hr {
|
2023-03-03 12:01:43 +01:00
|
|
|
margin: 40px -24px;
|
2023-01-10 05:07:57 +01:00
|
|
|
}
|
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#pair-device-dialog x-background {
|
2023-01-17 10:52:40 +01:00
|
|
|
padding: 16px!important;
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
/* Receive Dialog */
|
2023-01-10 05:07:57 +01:00
|
|
|
|
2023-01-17 10:52:40 +01:00
|
|
|
x-dialog .row {
|
2020-12-20 21:30:28 +01:00
|
|
|
margin-top: 24px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
2023-03-03 12:01:43 +01:00
|
|
|
/* button row*/
|
|
|
|
x-paper > div:last-child {
|
|
|
|
margin: auto -24px -15px;
|
|
|
|
border-top: solid 2.5px var(--border-color);
|
|
|
|
height: 50px;
|
2023-01-17 14:00:01 +01:00
|
|
|
}
|
|
|
|
|
2023-03-03 12:01:43 +01:00
|
|
|
x-paper > div:last-child > .button {
|
|
|
|
height: 100%;
|
2023-03-13 23:48:42 +01:00
|
|
|
width: 100%;
|
2023-01-17 10:52:40 +01:00
|
|
|
}
|
|
|
|
|
2023-03-03 12:01:43 +01:00
|
|
|
x-paper > div:last-child > .button:not(:last-child) {
|
|
|
|
border-left: solid 2.5px var(--border-color);
|
2023-01-17 10:52:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.file-description {
|
2023-03-03 12:01:43 +01:00
|
|
|
margin-bottom: 25px;
|
2023-01-17 10:52:40 +01:00
|
|
|
}
|
|
|
|
|
2023-01-21 18:21:58 +01:00
|
|
|
.file-description .row {
|
|
|
|
margin: 0
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-description span {
|
|
|
|
display: inline;
|
|
|
|
word-break: normal;
|
|
|
|
}
|
|
|
|
|
2023-03-03 12:01:43 +01:00
|
|
|
.file-name {
|
2023-01-21 18:21:58 +01:00
|
|
|
font-style: italic;
|
2023-03-03 12:01:43 +01:00
|
|
|
max-width: 100%;
|
2023-01-21 18:21:58 +01:00
|
|
|
}
|
|
|
|
|
2023-03-03 12:01:43 +01:00
|
|
|
.file-stem {
|
2023-01-21 18:21:58 +01:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2023-03-03 12:01:43 +01:00
|
|
|
white-space: nowrap;
|
2023-01-10 05:07:57 +01:00
|
|
|
}
|
|
|
|
|
2023-01-17 10:47:44 +01:00
|
|
|
/* Send Text Dialog */
|
|
|
|
|
2023-03-03 12:01:43 +01:00
|
|
|
x-dialog .dialog-subheader {
|
|
|
|
margin-bottom: 25px;
|
|
|
|
}
|
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#text-input {
|
2023-03-03 12:01:43 +01:00
|
|
|
min-height: 200px;
|
|
|
|
margin: 14px auto;
|
2023-01-17 10:47:44 +01:00
|
|
|
}
|
|
|
|
|
2020-12-20 21:30:28 +01:00
|
|
|
/* Receive Text Dialog */
|
2018-09-21 16:05:03 +02:00
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#receive-text-dialog #text {
|
2018-09-21 16:05:03 +02:00
|
|
|
width: 100%;
|
|
|
|
word-break: break-all;
|
2023-03-03 12:01:43 +01:00
|
|
|
max-height: calc(100vh - 393px);
|
2018-09-21 16:05:03 +02:00
|
|
|
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;
|
2023-03-03 12:01:43 +01:00
|
|
|
padding: 15px 0;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#receive-text-dialog #text a {
|
2020-12-16 05:30:57 +01:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
2018-09-21 16:05:03 +02:00
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#receive-text-dialog #text a:hover {
|
2020-12-16 05:30:57 +01:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2018-09-21 16:05:03 +02:00
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#receive-text-dialog h3 {
|
2020-12-16 05:55:21 +01:00
|
|
|
/* Select the received text when double-clicking the dialog */
|
|
|
|
user-select: none;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2023-02-10 03:26:08 +01:00
|
|
|
.row-separator {
|
|
|
|
border-bottom: solid 2.5px var(--border-color);
|
2023-03-03 12:01:43 +01:00
|
|
|
margin: auto -24px;
|
2023-02-10 03:26:08 +01:00
|
|
|
}
|
|
|
|
|
2023-03-06 02:18:07 +01:00
|
|
|
#base64-paste-btn,
|
|
|
|
#base64-paste-dialog .textarea {
|
2023-01-19 04:40:28 +01:00
|
|
|
width: 100%;
|
|
|
|
height: 40vh;
|
|
|
|
border: solid 12px #438cff;
|
2023-03-06 02:18:07 +01:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#base64-paste-dialog .textarea {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#base64-paste-dialog .textarea::before {
|
|
|
|
font-size: 15px;
|
|
|
|
letter-spacing: 0.12em;
|
|
|
|
color: var(--primary-color);
|
|
|
|
font-weight: 700;
|
|
|
|
text-transform: uppercase;
|
|
|
|
content: attr(placeholder);
|
2023-01-19 04:40:28 +01:00
|
|
|
}
|
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#base64-paste-dialog button {
|
2023-01-19 04:40:28 +01:00
|
|
|
margin: auto;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#base64-paste-dialog button[close] {
|
2023-01-19 04:40:28 +01:00
|
|
|
margin-top: 20px;
|
|
|
|
}
|
2023-02-24 16:08:36 +01:00
|
|
|
|
2023-03-01 10:44:57 +01:00
|
|
|
#base64-paste-dialog button[close]:before {
|
2023-01-19 04:40:28 +01:00
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
/* Button */
|
|
|
|
|
|
|
|
.button {
|
2023-01-19 04:40:28 +01:00
|
|
|
padding: 2px 16px 0;
|
2018-09-21 16:05:03 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
min-height: 36px;
|
|
|
|
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);
|
2023-03-03 12:01:43 +01:00
|
|
|
overflow: hidden;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2023-01-10 05:07:57 +01:00
|
|
|
.button[disabled] {
|
|
|
|
color: #5B5B66;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
2023-01-10 05:07:57 +01:00
|
|
|
.button:not([disabled]):hover:before,
|
2018-09-21 16:05:03 +02:00
|
|
|
.icon-button:hover:before {
|
|
|
|
opacity: 0.1;
|
|
|
|
}
|
|
|
|
|
2023-03-03 12:01:43 +01:00
|
|
|
#cancel-paste-mode {
|
2023-01-19 06:43:24 +01:00
|
|
|
z-index: 2;
|
2023-03-01 10:04:37 +01:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2023-01-19 06:43:24 +01:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2023-03-01 10:04:37 +01:00
|
|
|
width: 100vw;
|
2023-01-19 06:43:24 +01:00
|
|
|
height: 56px;
|
2023-03-01 10:04:37 +01:00
|
|
|
background-color: var(--primary-color);
|
|
|
|
color: rgb(238, 238, 238);
|
2023-01-18 15:28:57 +01:00
|
|
|
}
|
|
|
|
|
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;
|
2023-01-10 05:07:57 +01:00
|
|
|
margin: 10px 0;
|
2018-09-21 16:05:03 +02:00
|
|
|
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;
|
|
|
|
line-height: 16px;
|
2023-03-03 12:01:43 +01:00
|
|
|
max-height: calc(100vh - 254px);
|
2023-02-10 03:26:45 +01:00
|
|
|
white-space: pre;
|
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;
|
2023-01-10 05:07:57 +01:00
|
|
|
transition-delay: 0s;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
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;
|
2023-03-28 17:26:22 +02:00
|
|
|
top: calc(28px - 250px);
|
|
|
|
right: calc(36px - 250px);
|
2021-02-24 09:23:07 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2023-03-03 19:37:07 +01:00
|
|
|
#about section {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#about header {
|
|
|
|
align-self: end;
|
|
|
|
}
|
2018-09-21 16:05:03 +02:00
|
|
|
|
|
|
|
/* Loading Indicator */
|
|
|
|
|
|
|
|
.progress {
|
|
|
|
width: 80px;
|
|
|
|
height: 80px;
|
|
|
|
position: absolute;
|
2023-03-01 10:04:37 +01:00
|
|
|
top: -8px;
|
2018-09-21 16:05:03 +02:00
|
|
|
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;
|
2023-03-01 21:35:00 +01:00
|
|
|
top: 50px;
|
2018-09-21 16:05:03 +02:00
|
|
|
width: 100%;
|
|
|
|
max-width: 344px;
|
2023-03-01 21:35:00 +01:00
|
|
|
background-color: rgb(var(--text-color));
|
|
|
|
color: rgb(var(--bg-color));
|
2018-09-21 16:05:03 +02:00
|
|
|
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;
|
2023-03-01 21:35:00 +01:00
|
|
|
transform: translateY(-100px);
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Instructions */
|
|
|
|
|
|
|
|
x-instructions {
|
2023-03-01 10:04:37 +01:00
|
|
|
position: relative;
|
2018-09-21 16:05:03 +02:00
|
|
|
opacity: 0.5;
|
|
|
|
transition: opacity 300ms;
|
2020-12-16 04:16:53 +01:00
|
|
|
text-align: center;
|
2023-03-01 10:04:37 +01:00
|
|
|
margin-left: 10px;
|
|
|
|
margin-right: 10px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
justify-content: center;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2023-01-22 16:14:27 +01:00
|
|
|
x-instructions:not([drop-peer]):not([drop-bg]):before {
|
2018-09-21 16:05:03 +02:00
|
|
|
content: attr(mobile);
|
|
|
|
}
|
|
|
|
|
2023-01-22 16:14:27 +01:00
|
|
|
x-instructions[drop-peer]:before {
|
|
|
|
content: "Release to send to peer";
|
|
|
|
}
|
|
|
|
|
|
|
|
x-instructions[drop-bg]:not([drop-peer]):before {
|
2023-01-22 17:33:19 +01:00
|
|
|
content: "Release to select recipient";
|
2023-01-22 16:14:27 +01:00
|
|
|
}
|
|
|
|
|
2023-01-18 15:28:57 +01:00
|
|
|
x-instructions p {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
x-peers:empty~x-instructions {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
|
|
x-peer {
|
|
|
|
transform: scale(0.95);
|
|
|
|
padding: 4px 0;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
#websocket-fallback {
|
|
|
|
margin-left: 5px;
|
|
|
|
margin-right: 5px;
|
|
|
|
padding: 5px;
|
|
|
|
text-align: center;
|
|
|
|
opacity: 0.5;
|
|
|
|
transition: opacity 300ms;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
#websocket-fallback>span {
|
|
|
|
margin: 2px;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
#websocket-fallback > span > span {
|
|
|
|
border-bottom: solid 4px var(--ws-peer-color);
|
|
|
|
}
|
2020-12-21 00:20:38 +01:00
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
/* Responsive Styles */
|
2023-03-03 12:01:43 +01:00
|
|
|
@media screen and (max-width: 360px) {
|
|
|
|
x-dialog x-paper {
|
|
|
|
padding: 15px;
|
|
|
|
}
|
|
|
|
x-paper > div:last-child {
|
|
|
|
margin: auto -15px -15px;
|
|
|
|
}
|
|
|
|
}
|
2022-12-23 00:19:47 +01:00
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
@media screen and (min-height: 800px) {
|
|
|
|
footer {
|
|
|
|
margin-bottom: 16px;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
2023-03-01 10:04:37 +01:00
|
|
|
}
|
2018-09-21 16:05:03 +02:00
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
@media (hover: hover) and (pointer: fine) {
|
2023-02-24 16:08:36 +01:00
|
|
|
x-instructions:not([drop-peer]):not([drop-bg]):before {
|
2023-03-01 10:04:37 +01:00
|
|
|
content: attr(desktop);
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
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 {
|
2023-03-01 10:04:37 +01:00
|
|
|
--text-color: 51,51,51;
|
|
|
|
--bg-color: 250,250,250; /*rgb code*/
|
|
|
|
--bg-color-test: 18,18,18;
|
2020-12-21 06:23:12 +01:00
|
|
|
--bg-color-secondary: #f1f3f4;
|
2023-01-17 10:52:40 +01:00
|
|
|
--border-color: #e7e8e8;
|
2020-12-21 06:23:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Dark theme colors */
|
|
|
|
body.dark-theme {
|
2023-03-01 10:04:37 +01:00
|
|
|
--text-color: 238,238,238;
|
|
|
|
--bg-color: 18,18,18; /*rgb code*/
|
2020-12-21 06:23:12 +01:00
|
|
|
--bg-color-secondary: #333;
|
2023-01-17 10:52:40 +01:00
|
|
|
--border-color: #252525;
|
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 {
|
2023-03-01 10:04:37 +01:00
|
|
|
color: rgb(var(--text-color));
|
|
|
|
background-color: rgb(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 {
|
2023-03-01 10:04:37 +01:00
|
|
|
background-color: rgb(var(--bg-color));
|
2020-10-25 10:08:07 +01:00
|
|
|
}
|
|
|
|
|
2023-01-19 02:08:13 +01:00
|
|
|
.textarea {
|
2023-03-01 10:04:37 +01:00
|
|
|
color: rgb(var(--text-color)) !important;
|
2023-01-18 15:47:06 +01:00
|
|
|
background-color: var(--bg-color-secondary) !important;
|
2020-12-20 22:23:25 +01:00
|
|
|
}
|
2023-01-17 10:52:40 +01:00
|
|
|
|
2023-01-19 02:08:13 +01:00
|
|
|
.textarea * {
|
2023-02-10 03:26:45 +01:00
|
|
|
margin: 0 !important;
|
|
|
|
padding: 0 !important;
|
|
|
|
color: unset !important;
|
|
|
|
background: unset !important;
|
|
|
|
border: unset !important;
|
|
|
|
opacity: unset !important;
|
|
|
|
font-family: inherit !important;
|
|
|
|
font-size: inherit !important;
|
|
|
|
font-style: unset !important;
|
|
|
|
font-weight: unset !important;
|
2023-01-19 02:08:13 +01:00
|
|
|
}
|
|
|
|
|
2022-06-05 19:32:43 +02:00
|
|
|
/* Image/Video/Audio Preview */
|
2023-01-17 10:52:40 +01:00
|
|
|
.file-preview {
|
|
|
|
margin: 10px -24px 40px -24px;
|
|
|
|
}
|
|
|
|
|
2023-01-21 18:20:42 +01:00
|
|
|
.file-preview:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-03-03 12:01:43 +01:00
|
|
|
.file-preview > img,
|
|
|
|
.file-preview > audio,
|
|
|
|
.file-preview > video {
|
2023-01-06 18:08:33 +01:00
|
|
|
max-width: 100%;
|
2023-01-17 10:52:40 +01:00
|
|
|
max-height: 40vh;
|
2021-08-05 21:18:15 +02:00
|
|
|
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 {
|
2023-03-01 10:04:37 +01:00
|
|
|
--text-color: 238,238,238;
|
|
|
|
--bg-color: 18,18,18; /*rgb code*/
|
2020-12-21 06:23:12 +01:00
|
|
|
--bg-color-secondary: #333;
|
2023-01-17 10:52:40 +01:00
|
|
|
--border-color: #252525;
|
2020-12-21 00:20:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Override dark mode with light mode styles if the user decides to swap */
|
|
|
|
body.light-theme {
|
2023-03-01 10:04:37 +01:00
|
|
|
--text-color: 51,51,51;
|
|
|
|
--bg-color: 250,250,250; /*rgb code*/
|
2020-12-21 06:23:12 +01:00
|
|
|
--bg-color-secondary: #f1f3f4;
|
2023-01-17 10:52:40 +01:00
|
|
|
--border-color: #e7e8e8;
|
|
|
|
}
|
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
|
|
|
}
|
2023-01-10 05:07:57 +01:00
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
/*
|
|
|
|
iOS specific styles
|
|
|
|
*/
|
|
|
|
@supports (-webkit-overflow-scrolling: touch) {
|
|
|
|
html {
|
|
|
|
min-height: -webkit-fill-available;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-10 05:07:57 +01:00
|
|
|
/* webkit scrollbar style*/
|
|
|
|
|
|
|
|
::-webkit-scrollbar{
|
|
|
|
width: 4px;
|
|
|
|
height: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb{
|
|
|
|
background: #bfbfbf;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|