vybe/client/index.html

296 lines
5.4 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,
.tab {
padding: 4px 7px;
}
input {
background: #1b1b1b;
outline: none;
border: 1px solid #444;
&:focus {
padding-bottom: 2px;
border-bottom: 3px solid #777;
}
&::placeholder {
color: #aaa;
}
&[type='radio'], &[type='checkbox'] {
position: relative;
top: 2px;
}
}
#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: 0;
}
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: 250px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
#instancelist {
overflow-y: auto;
> :not(div) {
margin: 3px;
}
}
#instances {
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: #444;
}
}
#profile {
max-width: 250px;
}
#instance {
display: flex;
flex-direction: column;
justify-content: space-between;
max-width: 250px;
}
#disconnect {
width: fit-content;
}
.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>