vybe/client/index.html

333 lines
6.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<script src="/openpgp.min.js"></script>
<script src="/socket.io.min.v4.6.1.js"></script>
<script src="/aes.js"></script>
<script type="module" src="/auth.js"></script>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>vybe</title>
<style>
* {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
sans-serif;
scrollbar-color: #505050 #111;
}
::-webkit-scrollbar-thumb {
background: #505050;
}
::-webkit-scrollbar {
background-color: #111;
}
::-webkit-scrollbar-corner {
background-color: #111;
}
html {
height: 100%;
}
body {
height: 100%;
background: #020202;
display: flex;
align-items: stretch;
margin: 0;
min-width: min-content;
}
body,
button,
input {
color: #eaeaea;
}
button {
border: none;
background: #303030;
}
button,
input:not([type]), input[type='text'],
.tab {
padding: 4px 7px;
}
input {
background: #1b1b1b;
outline: none;
&::placeholder {
color: #aaa;
}
&:not([type]), &[type='text'] {
border: 1px solid #444;
&:focus {
padding-bottom: 2px;
border-bottom: 3px solid #777;
}
}
&[type='radio'], &[type='checkbox'] {
position: relative;
top: 2px;
}
&[type='range'] {
width: 100px;
-webkit-appearance: none;
appearance: none;
background-color: #4f4f4f;
border-radius: 1rem;
height: 0.5rem;
&:focus {
outline: none;
}
&::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
background-color: #555;
border-radius: 1rem;
border: 2px solid #909090;
height: 17px;
width: 17px;
}
&:focus::-webkit-slider-thumb {
border: 2px solid #e0e0e0;
}
&::-moz-range-thumb {
appearance: none;
background-color: #555;
border-radius: 1rem;
border: 2px solid #909090;
height: 13px;
width: 13px;
}
&:focus::-moz-range-thumb {
border: 2px solid #e0e0e0;
}
}
}
#register {
margin-inline: 14px;
max-width: 800px;
}
:not(#register) > p {
margin-block: 5px;
word-wrap: break-word;
}
.thread:hover,
.tab:hover,
.instancetitle > span:hover,
#user:hover {
background-color: #333;
}
.thread.active,
.tab.active,
button:hover {
background-color: #4f4f4f;
color: #fff;
}
label.heading {
margin: 10px 0 4px;
display: block;
}
h3 {
margin: 2px;
}
h4 {
margin: 6px 0;
}
.hidden {
display: none !important;
}
.column {
flex: 1;
margin: 3px;
}
.separator {
margin: 8px 2px;
}
.separator:has(+ .separator),
*.hidden:first-child + .separator,
.separator:has(+ *.hidden),
.separator:last-child {
display: none;
}
.content {
flex: 1;
}
.instancetitle {
margin: 2px;
> span {
display: table-cell;
background-color: #222;
padding-block: 6px;
}
> .title {
width: 100%;
}
}
.expander {
padding-inline: 6px;
}
.arrow {
display: block;
position: relative;
top: -1px;
rotate: 45deg;
&.collapsed {
rotate: -45deg;
top: 0;
left: -3px;
}
}
#home {
margin: 0;
max-width: 256px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
#instances {
margin-inline: 2px;
}
#instancelist {
overflow-y: auto;
> :not(div) {
margin: 3px;
}
}
#instances, #membershead {
display: flex;
justify-content: space-between;
}
#threads {
margin: 0 2px 6px;
min-height: 0;
display: flex;
flex-direction: column;
}
#threadlist {
overflow: auto;
}
#user {
margin: 2px;
padding: 6px;
background-color: #222;
}
.user {
white-space: pre-wrap;
&:hover {
background-color: #333;
border-bottom: 1px #bbb solid;
}
}
#profile {
max-width: 250px;
}
#instance, #member {
display: flex;
flex-direction: column;
justify-content: space-between;
max-width: 250px;
}
.thread {
padding: 2px 3px;
white-space: pre;
}
#newthread {
margin-top: 5px;
width: fit-content;
}
#createthread {
max-width: fit-content;
overflow: auto;
}
#permissions {
margin-bottom: 5px;
}
#thread {
display: flex;
margin: 0;
}
#content {
margin: 2px;
min-width: 300px;
display: flex;
flex-direction: column;
}
#titlebar, #buttonbar {
margin: 2px;
display: flex;
justify-content: space-between;
}
#title {
margin-bottom: 5px;
}
.tab {
padding: 5px 7px;
background-color: #1f1f1f;
border: 0;
color: #ddd;
font-weight: 500;
}
.tabcontent {
flex: 1;
}
#message {
margin: 2px;
display: flex;
flex-direction: column;
min-height: 0; /* flex makes this auto so it can't shrink */
}
#messages {
flex: 1;
overflow: auto;
}
#msginput {
display: flex;
flex-direction: row;
> * {
margin: 2px;
}
}
#msg {
flex-grow: 1;
}
.message {
margin-bottom: 5px;
overflow-wrap: anywhere;
}
#loadmore {
margin-bottom: 10px;
}
#members {
min-width: 140px;
max-width: 250px;
}
#member {
max-width: 250px;
}
#editthread {
max-width: fit-content;
}
#visibility {
white-space: pre-line;
margin-bottom: 12px;
}
#space {
margin: -2px; /* offset column margin */
position: relative;
overflow: auto;
}
.span {
position: absolute;
white-space: nowrap;
}
#stream {
margin: 4px 2px;
}
#play {
line-height: 1.4;
font-family: 'Segoe UI Symbol', math;
}
</style>
</head>
<body></body>
</html>