2023-11-09 03:48:17 +01:00
|
|
|
/* All styles in this sheet are needed on page load */
|
|
|
|
|
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;
|
2023-05-04 17:38:51 +02:00
|
|
|
/* Only allow selection on message and pair key */
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
user-select: none;
|
2023-08-30 14:57:40 +02:00
|
|
|
transition: color 300ms;
|
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
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
2023-03-10 18:47:04 +01:00
|
|
|
height: 100%;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2023-08-30 14:57:40 +02:00
|
|
|
.fw {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2023-11-20 05:23:21 +01:00
|
|
|
.p1 {
|
2023-11-29 23:39:55 +01:00
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p2 {
|
2023-11-20 05:23:21 +01:00
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
2023-11-29 23:39:55 +01:00
|
|
|
.pb0 {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx1 {
|
|
|
|
margin-left: 5px;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.m1 {
|
|
|
|
margin: 10px;
|
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
.cursive {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
.row-reverse {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
}
|
|
|
|
|
2023-11-29 23:39:55 +01:00
|
|
|
.flex {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.align-center {
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.space-evenly {
|
|
|
|
justify-content: space-evenly;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2023-09-13 18:15:01 +02:00
|
|
|
.pointer {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
header {
|
2023-03-28 17:26:22 +02:00
|
|
|
position: absolute;
|
|
|
|
align-items: baseline;
|
2023-10-12 02:53:51 +02:00
|
|
|
padding: 8px 12px;
|
2018-09-24 13:14:11 +02:00
|
|
|
box-sizing: border-box;
|
2023-03-28 17:26:22 +02:00
|
|
|
width: 100vw;
|
2023-11-20 05:23:21 +01:00
|
|
|
z-index: 20;
|
2023-03-28 17:26:22 +02:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
header > .row-reverse > * {
|
2023-10-12 02:53:51 +02:00
|
|
|
margin-left: 4px;
|
|
|
|
margin-right: 4px;
|
2023-03-28 17:26:22 +02:00
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
header > .row-reverse > div {
|
2023-03-28 17:26:22 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-self: flex-start;
|
|
|
|
touch-action: manipulation;
|
|
|
|
}
|
2023-03-08 15:18:22 +01:00
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
header > .row-reverse > div .icon-button {
|
2023-03-28 17:26:22 +02:00
|
|
|
height: 40px;
|
|
|
|
transition: all 300ms;
|
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
header > .row-reverse > div > div {
|
2023-03-28 17:26:22 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
header > .row-reverse > 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-11-24 16:25:30 +01:00
|
|
|
header > .row-reverse > div:hover .icon-button.selected::before {
|
2023-03-28 17:26:22 +02:00
|
|
|
opacity: 0.1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (pointer: coarse) {
|
2023-11-24 16:25:30 +01:00
|
|
|
header > .row-reverse > div:hover .icon-button.selected:hover::before {
|
2023-03-28 17:26:22 +02:00
|
|
|
opacity: 0.2;
|
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
header > .row-reverse > div .icon-button:not(.selected) {
|
2023-03-28 17:26:22 +02:00
|
|
|
height: 0;
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
header > .row-reverse > div > div {
|
2023-03-28 17:26:22 +02:00
|
|
|
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 */
|
|
|
|
|
2023-11-20 22:40:07 +01:00
|
|
|
@font-face {
|
|
|
|
font-family: "Open Sans";
|
2023-11-23 19:16:29 +01:00
|
|
|
src: url('../fonts/OpenSans/static/OpenSans-Medium.ttf') format('truetype');
|
2023-11-20 22:40:07 +01:00
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
body {
|
2023-11-20 22:40:07 +01:00
|
|
|
font-family: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
|
2018-09-21 16:05:03 +02:00
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
2023-11-20 22:40:07 +01:00
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
font-variant-ligatures: common-ligatures;
|
|
|
|
font-kerning: normal;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: 34px;
|
|
|
|
font-weight: 400;
|
|
|
|
letter-spacing: -.01em;
|
|
|
|
line-height: 40px;
|
2023-11-20 22:40:07 +01:00
|
|
|
margin: 0 0 4px;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
2023-11-29 17:42:19 +01:00
|
|
|
font-size: 22px;
|
2018-09-21 16:05:03 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
.text-white {
|
|
|
|
color: white !important;
|
|
|
|
}
|
|
|
|
|
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-05-04 17:38:51 +02:00
|
|
|
input {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"] {
|
|
|
|
min-width: 13px;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2023-11-23 19:16:29 +01:00
|
|
|
.overflowing {
|
|
|
|
background:
|
|
|
|
/* Shadow covers */
|
|
|
|
linear-gradient(rgb(var(--shadow-color-cover-rgb)) 30%, rgba(var(--shadow-color-cover-rgb), 0)),
|
|
|
|
linear-gradient(rgba(var(--shadow-color-cover-rgb), 0), rgb(var(--shadow-color-cover-rgb)) 70%) 0 100%,
|
|
|
|
/* Shadows */
|
|
|
|
radial-gradient(farthest-side at 50% 0, rgba(var(--shadow-color-rgb), .2), rgba(var(--shadow-color-rgb), 0)),
|
|
|
|
radial-gradient(farthest-side at 50% 100%, rgba(var(--shadow-color-rgb), .2), rgba(var(--shadow-color-rgb), 0))
|
|
|
|
0 100%;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 100% 60px, 100% 60px, 100% 24px, 100% 24px;
|
|
|
|
background-attachment: local, local, scroll, scroll;
|
|
|
|
}
|
2018-09-21 16:05:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Animations */
|
|
|
|
|
|
|
|
@keyframes fade-in {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2023-10-11 23:22:10 +02:00
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
justify-content: space-around;
|
|
|
|
align-items: center;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: scroll;
|
|
|
|
overscroll-behavior-x: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-11-09 03:48:17 +01:00
|
|
|
/* Peers */
|
2018-09-21 16:05:03 +02:00
|
|
|
|
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-11-20 05:23:21 +01:00
|
|
|
transition: background-color 0.5s ease;
|
2023-03-01 10:04:37 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
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;
|
2023-10-06 02:57:46 +02:00
|
|
|
height: 137px;
|
2018-09-21 16:05:03 +02:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
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 {
|
2023-07-06 21:29:36 +02:00
|
|
|
content: attr(data-drop-bg);
|
2023-01-22 17:33:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
x-no-peers[drop-bg] * {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
/* Footer */
|
|
|
|
|
|
|
|
footer {
|
2023-03-01 10:04:37 +01:00
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
2018-09-21 16:05:03 +02:00
|
|
|
align-items: center;
|
2020-12-16 03:08:24 +01:00
|
|
|
text-align: center;
|
2023-03-03 17:43:03 +01:00
|
|
|
cursor: default;
|
2023-09-13 18:15:01 +02:00
|
|
|
margin: auto 5px 5px;
|
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
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
.border {
|
2023-11-20 05:23:21 +01:00
|
|
|
border: 2px solid var(--border-color);
|
2023-11-24 16:25:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.panel {
|
|
|
|
font-size: 14px;
|
2023-09-13 18:15:01 +02:00
|
|
|
padding: 2px;
|
|
|
|
background-color: rgb(var(--bg-color));
|
|
|
|
transition: background-color 0.5s ease;
|
2023-10-06 02:57:46 +02:00
|
|
|
min-height: 24px;
|
2023-02-08 04:06:15 +01:00
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
.panel.column {
|
2023-11-20 05:23:21 +01:00
|
|
|
border-radius: 16px;
|
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
.panel.row {
|
2023-11-20 05:23:21 +01:00
|
|
|
border-radius: 12px;
|
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
.panel > div:first-of-type {
|
2023-09-13 18:15:01 +02:00
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 4px;
|
2023-02-08 04:06:15 +01:00
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
/* You can be discovered wrapper */
|
|
|
|
.discovery-wrapper {
|
|
|
|
margin: 15px auto auto;
|
|
|
|
}
|
2023-09-13 18:15:01 +02:00
|
|
|
|
|
|
|
.discovery-wrapper .badge {
|
2023-07-06 21:29:36 +02:00
|
|
|
word-break: keep-all;
|
2023-09-13 18:15:01 +02:00
|
|
|
margin: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge {
|
2023-11-20 05:23:21 +01:00
|
|
|
border-radius: 0.4rem;
|
2023-09-13 18:15:01 +02:00
|
|
|
padding-right: 0.3rem;
|
|
|
|
padding-left: 0.3em;
|
|
|
|
background-color: var(--badge-color);
|
|
|
|
color: white;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge-room-ip {
|
2023-11-20 05:23:21 +01:00
|
|
|
--badge-color: var(--primary-color);
|
2023-09-13 18:15:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.badge-room-secret {
|
2023-11-20 05:23:21 +01:00
|
|
|
--badge-color: var(--paired-device-color);
|
2023-09-13 18:15:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.badge-room-public-id {
|
2023-11-20 05:23:21 +01:00
|
|
|
--badge-color: var(--public-room-color);
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2023-11-20 05:27:22 +01:00
|
|
|
.known-as-wrapper {
|
|
|
|
font-size: 16px; /* prevents auto-zoom on edit */
|
|
|
|
}
|
|
|
|
|
2023-03-01 21:35:00 +01:00
|
|
|
#display-name {
|
2023-09-13 18:15:01 +02:00
|
|
|
position: relative;
|
2023-03-01 21:35:00 +01:00
|
|
|
display: inline-block;
|
|
|
|
text-align: left;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
2023-11-24 16:25:30 +01:00
|
|
|
height: 20px;
|
2023-03-06 00:40:53 +01:00
|
|
|
max-width: 15em;
|
2023-03-01 21:35:00 +01:00
|
|
|
text-overflow: ellipsis;
|
2023-11-24 16:25:30 +01:00
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
2023-03-03 17:43:03 +01:00
|
|
|
cursor: text;
|
2023-03-06 00:40:53 +01:00
|
|
|
margin-bottom: -6px;
|
|
|
|
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-09-13 18:15:01 +02:00
|
|
|
z-index: 1;
|
2023-03-01 21:35:00 +01:00
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
.edit-pen {
|
2023-03-01 21:35:00 +01:00
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
margin-bottom: -2px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2023-10-11 19:27:11 +02:00
|
|
|
html:not([dir="rtl"]) #display-name,
|
2023-11-24 16:25:30 +01:00
|
|
|
html:not([dir="rtl"]) .edit-pen {
|
2023-10-11 19:27:11 +02:00
|
|
|
margin-left: -1rem;
|
2023-10-05 17:11:16 +02:00
|
|
|
}
|
|
|
|
|
2023-10-11 19:27:11 +02:00
|
|
|
html[dir="rtl"] #display-name,
|
2023-11-24 16:25:30 +01:00
|
|
|
html[dir="rtl"] .edit-pen {
|
2023-10-11 19:27:11 +02:00
|
|
|
margin-right: -1rem;
|
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
html[dir="rtl"] .edit-pen {
|
2023-10-11 19:27:11 +02:00
|
|
|
transform: rotateY(180deg);
|
2023-10-05 17:11:16 +02:00
|
|
|
}
|
|
|
|
|
2023-11-09 03:48:17 +01:00
|
|
|
/* Dialogs needed on page load */
|
2018-09-21 16:05:03 +02:00
|
|
|
x-dialog:not([show]) x-background {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Button */
|
|
|
|
|
2023-11-20 05:23:21 +01:00
|
|
|
.btn {
|
2023-11-20 22:40:07 +01:00
|
|
|
font-family: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
|
2023-01-19 04:40:28 +01:00
|
|
|
padding: 2px 16px 0;
|
2018-09-21 16:05:03 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
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;
|
2023-09-13 18:15:01 +02:00
|
|
|
color: var(--accent-color);
|
2023-03-03 12:01:43 +01:00
|
|
|
overflow: hidden;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
.btn-small {
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 22px;
|
|
|
|
}
|
|
|
|
|
2023-11-20 05:23:21 +01:00
|
|
|
.btn[disabled] {
|
|
|
|
color: var(--btn-disabled-color);
|
2023-09-13 18:15:01 +02:00
|
|
|
cursor: not-allowed;
|
2023-01-10 05:07:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-11-20 05:23:21 +01:00
|
|
|
.btn,
|
2018-09-21 16:05:03 +02:00
|
|
|
.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
|
|
|
}
|
|
|
|
|
2023-11-20 05:23:21 +01:00
|
|
|
.btn:before,
|
2018-09-21 16:05:03 +02:00
|
|
|
.icon-button:before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
opacity: 0;
|
2023-11-20 05:23:21 +01:00
|
|
|
background-color: var(--accent-color);
|
2018-09-21 16:05:03 +02:00
|
|
|
transition: opacity 300ms;
|
|
|
|
}
|
|
|
|
|
2023-11-20 05:23:21 +01:00
|
|
|
.btn:not([disabled]):hover:before,
|
2018-09-21 16:05:03 +02:00
|
|
|
.icon-button:hover:before {
|
|
|
|
opacity: 0.1;
|
|
|
|
}
|
|
|
|
|
2023-11-20 05:23:21 +01:00
|
|
|
.btn[selected],
|
2023-08-30 14:57:40 +02:00
|
|
|
.icon-button[selected] {
|
|
|
|
opacity: 0.1;
|
|
|
|
}
|
|
|
|
|
2023-11-20 05:23:21 +01:00
|
|
|
.btn:focus:before,
|
2018-09-24 13:14:11 +02:00
|
|
|
.icon-button:focus:before {
|
2018-09-21 16:05:03 +02:00
|
|
|
opacity: 0.2;
|
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
.btn-round {
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
2023-11-20 05:23:21 +01:00
|
|
|
.btn-rounded {
|
|
|
|
border-radius: 12px;
|
|
|
|
}
|
2018-09-24 13:14:11 +02:00
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
.btn-small.btn-rounded {
|
|
|
|
border-radius: 6px;
|
|
|
|
}
|
|
|
|
|
2023-11-20 05:23:21 +01:00
|
|
|
.btn-grey {
|
|
|
|
background-color: var(--bg-color-secondary);
|
|
|
|
}
|
2018-09-24 13:14:11 +02:00
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
.btn-dark {
|
|
|
|
background-color: #262628;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-primary {
|
|
|
|
background: var(--primary-color);
|
|
|
|
color: rgb(var(--bg-color));
|
|
|
|
}
|
|
|
|
|
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%;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Info Animation */
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
#about {
|
2018-09-21 16:05:03 +02:00
|
|
|
color: white;
|
2023-11-20 05:23:21 +01:00
|
|
|
z-index: 32;
|
2018-09-24 13:14:11 +02:00
|
|
|
overflow: hidden;
|
|
|
|
pointer-events: none;
|
2019-02-08 02:57:35 +01:00
|
|
|
text-align: center;
|
2018-09-24 13:14:11 +02:00
|
|
|
}
|
|
|
|
|
2023-05-26 20:05:50 +02:00
|
|
|
#about header {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2023-10-11 23:22:10 +02:00
|
|
|
#about:not(:target) header {
|
2023-10-06 02:57:46 +02:00
|
|
|
transition-delay: 400ms;
|
|
|
|
}
|
|
|
|
|
2023-10-11 23:22:10 +02:00
|
|
|
#about:target header {
|
2023-10-06 02:57:46 +02:00
|
|
|
transition-delay: 100ms;
|
|
|
|
}
|
|
|
|
|
2023-10-11 23:22:10 +02:00
|
|
|
#about > * {
|
2023-10-06 02:57:46 +02:00
|
|
|
transition: opacity 300ms ease 300ms;
|
2018-09-21 16:05:03 +02:00
|
|
|
will-change: opacity;
|
2018-09-24 13:14:11 +02:00
|
|
|
pointer-events: all;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2023-10-11 23:22:10 +02:00
|
|
|
#about:not(:target) > header,
|
|
|
|
#about:not(:target) > section {
|
|
|
|
opacity: 0;
|
2018-09-21 16:05:03 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2023-05-23 02:44:25 +02:00
|
|
|
#about .title-wrapper {
|
|
|
|
display: flex;
|
|
|
|
align-items: baseline;
|
|
|
|
}
|
|
|
|
|
|
|
|
#about .title-wrapper > div {
|
2023-11-20 22:40:07 +01:00
|
|
|
margin-left: 0.4em;
|
2023-05-23 02:44:25 +02:00
|
|
|
}
|
|
|
|
|
2018-09-24 13:14:11 +02:00
|
|
|
#about x-background {
|
2018-09-21 16:05:03 +02:00
|
|
|
position: absolute;
|
2023-05-16 01:50:12 +02:00
|
|
|
--size: max(max(230vw, 230vh), calc(150vh + 150vw));
|
|
|
|
--size-half: calc(var(--size)/2);
|
|
|
|
top: calc(28px - var(--size-half));
|
|
|
|
width: var(--size);
|
|
|
|
height: var(--size);
|
2018-11-01 01:35:18 +01:00
|
|
|
z-index: -1;
|
2023-11-20 05:23:21 +01:00
|
|
|
background: var(--primary-color);
|
|
|
|
background-image: radial-gradient(circle at calc(50% - 36px), var(--accent-color) 0%, color-mix(in srgb, var(--accent-color) 40%, black) 80%);
|
|
|
|
--crop-size: 0px;
|
|
|
|
clip-path: circle(var(--crop-size));
|
2018-11-01 01:35:18 +01:00
|
|
|
}
|
|
|
|
|
2023-10-11 19:27:11 +02:00
|
|
|
html:not([dir="rtl"]) #about x-background {
|
|
|
|
right: calc(36px - var(--size-half));
|
2023-10-05 17:11:16 +02:00
|
|
|
}
|
|
|
|
|
2023-10-11 19:27:11 +02:00
|
|
|
html[dir="rtl"] #about x-background {
|
|
|
|
left: calc(36px - var(--size-half));
|
2023-10-05 17:11:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-11-01 01:35:18 +01:00
|
|
|
/* Hack such that initial scale(0) isn't animated */
|
2020-12-21 00:20:38 +01:00
|
|
|
#about x-background {
|
2023-11-20 05:23:21 +01:00
|
|
|
will-change: clip-path;
|
|
|
|
transition: clip-path 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 {
|
2023-11-20 05:23:21 +01:00
|
|
|
--crop-size: var(--size);
|
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;
|
|
|
|
}
|
|
|
|
|
2023-05-16 19:15:47 +02:00
|
|
|
canvas.circles {
|
2023-05-16 18:55:36 +02:00
|
|
|
width: 100vw;
|
|
|
|
position: absolute;
|
|
|
|
z-index: -10;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
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 {
|
2023-11-24 16:25:30 +01:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2018-09-21 16:05:03 +02:00
|
|
|
position: absolute;
|
|
|
|
min-height: 48px;
|
2023-03-01 21:35:00 +01:00
|
|
|
top: 50px;
|
2023-11-29 18:36:38 +01:00
|
|
|
max-width: 400px;
|
2023-03-01 21:35:00 +01:00
|
|
|
background-color: rgb(var(--text-color));
|
2023-11-20 05:23:21 +01:00
|
|
|
color: var(--dialog-bg-color);
|
2018-09-21 16:05:03 +02:00
|
|
|
align-items: center;
|
|
|
|
box-sizing: border-box;
|
2023-11-24 16:25:30 +01:00
|
|
|
padding: 8px;
|
2023-11-20 05:23:21 +01:00
|
|
|
z-index: 40;
|
2018-09-21 16:05:03 +02:00
|
|
|
transition: opacity 200ms, transform 300ms ease-out;
|
|
|
|
cursor: default;
|
|
|
|
line-height: 24px;
|
2023-11-20 05:23:21 +01:00
|
|
|
border-radius: 12px;
|
2018-09-21 16:05:03 +02:00
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
2023-11-24 16:25:30 +01:00
|
|
|
x-toast.top-row {
|
|
|
|
top: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
x-toast:not([show]) {
|
2018-09-21 16:05:03 +02:00
|
|
|
opacity: 0;
|
2023-11-24 16:25:30 +01:00
|
|
|
transform: translateY(calc(-100% + -55px));
|
|
|
|
}
|
|
|
|
|
|
|
|
x-toast span {
|
|
|
|
flex-grow: 1;
|
2023-11-29 18:36:38 +01:00
|
|
|
margin: auto 4px auto 10px
|
|
|
|
}
|
|
|
|
|
|
|
|
x-dialog[show] ~ div x-toast {
|
|
|
|
background-color: var(--lt-dialog-bg-color);
|
|
|
|
color: rgb(var(--lt-text-color));
|
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;
|
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 {
|
2023-07-06 21:29:36 +02:00
|
|
|
content: attr(data-drop-peer);
|
2023-01-22 16:14:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
x-instructions[drop-bg]:not([drop-peer]):before {
|
2023-07-06 21:29:36 +02:00
|
|
|
content: attr(data-drop-bg);
|
2023-01-22 16:14:27 +01:00
|
|
|
}
|
|
|
|
|
2023-01-18 15:28:57 +01:00
|
|
|
|
2018-09-21 16:05:03 +02:00
|
|
|
x-peers:empty~x-instructions {
|
2023-10-06 02:57:46 +02:00
|
|
|
opacity: 0 !important;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
|
|
x-peer {
|
|
|
|
transform: scale(0.95);
|
2023-05-12 04:59:44 +02:00
|
|
|
padding: 4px;
|
2018-09-21 16:05:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-06 02:57:46 +02:00
|
|
|
/* Prevent Cumulative Layout Shift */
|
|
|
|
|
2023-10-11 23:22:10 +02:00
|
|
|
.fade-in {
|
|
|
|
animation: fade-in 600ms;
|
|
|
|
animation-fill-mode: backwards;
|
|
|
|
}
|
|
|
|
|
|
|
|
.no-animation-on-load {
|
|
|
|
animation-iteration-count: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.opacity-0 {
|
|
|
|
opacity: 0;
|
2023-10-06 02:57:46 +02:00
|
|
|
}
|
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
/* Responsive Styles */
|
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 14:38:07 +05:30
|
|
|
|
2023-11-20 05:23:21 +01:00
|
|
|
/* Constants */
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--icon-size: 24px;
|
|
|
|
--peer-width: 120px;
|
|
|
|
color-scheme: light dark;
|
|
|
|
}
|
|
|
|
|
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 14:38:07 +05:30
|
|
|
/* Default colors */
|
2020-12-21 06:23:12 +01:00
|
|
|
body {
|
2023-11-20 05:23:21 +01:00
|
|
|
/* Constant colors */
|
|
|
|
--primary-color: #4285f4;
|
|
|
|
--paired-device-color: #00a69c;
|
2023-11-29 17:42:19 +01:00
|
|
|
--public-room-color: #ed9d01;
|
2023-11-20 05:23:21 +01:00
|
|
|
--accent-color: var(--primary-color);
|
2023-11-23 19:16:29 +01:00
|
|
|
--ws-peer-color: #ff6b6b;
|
2023-11-20 05:23:21 +01:00
|
|
|
--btn-disabled-color: #5B5B66;
|
2023-11-29 18:36:38 +01:00
|
|
|
|
2023-11-23 19:16:29 +01:00
|
|
|
/* shadows */
|
|
|
|
--shadow-color-rgb: var(--text-color);
|
|
|
|
--shadow-color-cover-rgb: var(--bg-color);
|
2023-11-29 18:36:38 +01:00
|
|
|
|
|
|
|
/* Light theme colors */
|
|
|
|
--lt-text-color: 51,51,51;
|
|
|
|
--lt-dialog-bg-color: #fff;
|
|
|
|
--lt-bg-color: 255,255,255;
|
|
|
|
--lt-bg-color-secondary: #f2f2f2;
|
|
|
|
--lt-border-color: #a9a9a9;
|
|
|
|
--lt-badge-color: #a5a5a5;
|
|
|
|
|
|
|
|
--lt-shadow-color-secondary-rgb: 0,0,0;
|
|
|
|
--lt-shadow-color-secondary-cover-rgb: 242,242,242;
|
|
|
|
--lt-shadow-color-dialog-rgb: 0,0,0;
|
|
|
|
--lt-shadow-color-dialog-cover-rgb: 242,242,242;
|
|
|
|
|
|
|
|
/* Dark theme colors */
|
|
|
|
--dt-text-color: 238,238,238;
|
|
|
|
--dt-dialog-bg-color: #141414;
|
|
|
|
--dt-bg-color: 0,0,0;
|
|
|
|
--dt-bg-color-secondary: #262628;
|
|
|
|
--dt-border-color: #919191;
|
|
|
|
--dt-badge-color: #717171;
|
|
|
|
|
|
|
|
--dt-shadow-color-secondary-rgb: 255,255,255;
|
|
|
|
--dt-shadow-color-secondary-cover-rgb: 38,38,38;
|
|
|
|
--dt-shadow-color-dialog-rgb: 255,255,255;
|
|
|
|
--dt-shadow-color-dialog-cover-rgb: 38,38,38;
|
2023-11-23 19:16:29 +01:00
|
|
|
}
|
2023-11-20 05:23:21 +01:00
|
|
|
|
2023-11-23 19:16:29 +01:00
|
|
|
/* Light theme colors */
|
2020-12-21 06:23:12 +01:00
|
|
|
body {
|
2023-11-29 18:36:38 +01:00
|
|
|
--text-color: var(--lt-text-color);
|
|
|
|
--dialog-bg-color: var(--lt-dialog-bg-color);
|
|
|
|
--bg-color: var(--lt-bg-color);
|
|
|
|
--bg-color-secondary: var(--lt-bg-color-secondary);
|
|
|
|
--border-color: var(--lt-border-color);
|
|
|
|
--badge-color: var(--lt-badge-color);
|
2023-11-20 05:23:21 +01:00
|
|
|
|
2023-11-29 18:36:38 +01:00
|
|
|
--shadow-color-secondary-rgb: var(--lt-shadow-color-secondary-rgb);
|
|
|
|
--shadow-color-secondary-cover-rgb: var(--lt-shadow-color-secondary-cover-rgb);
|
|
|
|
--shadow-color-dialog-rgb: var(--lt-shadow-color-dialog-rgb);
|
|
|
|
--shadow-color-dialog-cover-rgb: var(--lt-shadow-color-dialog-cover-rgb);
|
2020-12-21 06:23:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Dark theme colors */
|
|
|
|
body.dark-theme {
|
2023-11-29 18:36:38 +01:00
|
|
|
--text-color: var(--dt-text-color);
|
|
|
|
--dialog-bg-color: var(--dt-dialog-bg-color);
|
|
|
|
--bg-color: var(--dt-bg-color);
|
|
|
|
--bg-color-secondary: var(--dt-bg-color-secondary);
|
|
|
|
--border-color: var(--dt-border-color);
|
|
|
|
--badge-color: var(--dt-badge-color);
|
2023-11-20 05:23:21 +01:00
|
|
|
|
2023-11-29 18:36:38 +01:00
|
|
|
--shadow-color-secondary-rgb: var(--dt-shadow-color-secondary-rgb);
|
|
|
|
--shadow-color-secondary-cover-rgb: var(--dt-shadow-color-secondary-cover-rgb);
|
|
|
|
--shadow-color-dialog-rgb: var(--dt-shadow-color-dialog-rgb);
|
|
|
|
--shadow-color-dialog-cover-rgb: var(--dt-shadow-color-dialog-cover-rgb);
|
2023-11-20 05:23:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Styles for users who prefer dark mode at the OS level */
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
|
|
|
|
/* defaults to dark theme */
|
|
|
|
body {
|
2023-11-29 18:36:38 +01:00
|
|
|
--text-color: var(--dt-text-color);
|
|
|
|
--dialog-bg-color: var(--dt-dialog-bg-color);
|
|
|
|
--bg-color: var(--dt-bg-color);
|
|
|
|
--bg-color-secondary: var(--dt-bg-color-secondary);
|
|
|
|
--border-color: var(--dt-border-color);
|
|
|
|
--badge-color: var(--dt-badge-color);
|
|
|
|
|
|
|
|
--shadow-color-secondary-rgb: var(--dt-shadow-color-secondary-rgb);
|
|
|
|
--shadow-color-secondary-cover-rgb: var(--dt-shadow-color-secondary-cover-rgb);
|
|
|
|
--shadow-color-dialog-rgb: var(--dt-shadow-color-dialog-rgb);
|
|
|
|
--shadow-color-dialog-cover-rgb: var(--dt-shadow-color-dialog-cover-rgb);
|
2023-11-20 05:23:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Override dark mode with light mode styles if the user decides to swap */
|
|
|
|
body.light-theme {
|
2023-11-29 18:36:38 +01:00
|
|
|
--text-color: var(--lt-text-color);
|
|
|
|
--dialog-bg-color: var(--lt-dialog-bg-color);
|
|
|
|
--bg-color: var(--lt-bg-color);
|
|
|
|
--bg-color-secondary: var(--lt-bg-color-secondary);
|
|
|
|
--border-color: var(--lt-border-color);
|
|
|
|
--badge-color: var(--lt-badge-color);
|
|
|
|
|
|
|
|
--shadow-color-secondary-rgb: var(--lt-shadow-color-secondary-rgb);
|
|
|
|
--shadow-color-secondary-cover-rgb: var(--lt-shadow-color-secondary-cover-rgb);
|
|
|
|
--shadow-color-dialog-rgb: var(--lt-shadow-color-dialog-rgb);
|
|
|
|
--shadow-color-dialog-cover-rgb: var(--lt-shadow-color-dialog-cover-rgb);
|
2023-11-20 05:23:21 +01:00
|
|
|
}
|
2020-12-21 00:20:38 +01:00
|
|
|
}
|
2020-10-25 14:38:07 +05:30
|
|
|
|
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 14:38:07 +05:30
|
|
|
}
|
2020-12-20 22:23:25 +01:00
|
|
|
|
2023-11-23 19:16:29 +01:00
|
|
|
/* Gradient for wifi-tether icon */
|
|
|
|
#primaryGradient .start-color {
|
|
|
|
stop-color: var(--primary-color);
|
2023-01-17 10:52:40 +01:00
|
|
|
}
|
|
|
|
|
2023-11-23 19:16:29 +01:00
|
|
|
@supports (stop-color: color-mix(in srgb, blue 50%, black)) {
|
|
|
|
#primaryGradient .start-color {
|
|
|
|
stop-color: color-mix(in srgb, var(--primary-color) 80%, white);
|
|
|
|
}
|
2023-01-21 18:20:42 +01:00
|
|
|
}
|
|
|
|
|
2023-11-23 19:16:29 +01:00
|
|
|
#primaryGradient .stop-color {
|
|
|
|
stop-color: var(--primary-color);
|
2021-06-02 22:26:08 +05:30
|
|
|
}
|
2020-12-20 22:23:25 +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 22:26:08 +05:30
|
|
|
}
|
2023-01-10 05:07:57 +01:00
|
|
|
|
2023-03-01 10:04:37 +01:00
|
|
|
/*
|
2023-11-09 03:48:17 +01:00
|
|
|
Browser specific styles
|
2023-03-01 10:04:37 +01:00
|
|
|
*/
|
2023-11-09 03:48:17 +01:00
|
|
|
|
|
|
|
body {
|
|
|
|
/* mobile viewport bug fix */
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2023-01-10 05:07:57 +01:00
|
|
|
/* webkit scrollbar style*/
|
|
|
|
|
|
|
|
::-webkit-scrollbar{
|
2023-11-24 16:25:30 +01:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
2023-01-10 05:07:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb{
|
|
|
|
background: #bfbfbf;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
2023-05-04 17:38:51 +02:00
|
|
|
|
|
|
|
::-moz-selection,
|
|
|
|
::selection {
|
|
|
|
color: black;
|
|
|
|
background: var(--primary-color);
|
|
|
|
}
|
2023-10-11 18:17:12 +02:00
|
|
|
|
|
|
|
/* make elements with attribute contenteditable editable on older iOS devices.
|
|
|
|
See note here: https://developer.mozilla.org/en-US/docs/Web/CSS/user-select */
|
|
|
|
[contenteditable] {
|
|
|
|
-webkit-user-select: text;
|
|
|
|
user-select: text;
|
|
|
|
}
|
2023-11-20 05:23:21 +01:00
|
|
|
|