vybe/client/index.html

216 lines
3.9 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: 5px 7px;
}
input {
background: #1b1b1b;
outline: none;
border: 1px solid #444;
&:focus {
padding-bottom: 3px;
border-bottom: 3px solid #777;
}
&::placeholder {
color: #aaa;
}
}
#register {
margin-inline: 14px;
max-width: 800px;
}
.thread:hover,
.tab:hover,
#user:hover {
background-color: #303030;
}
.tab.active,
.thread.active,
button:hover {
background-color: #4f4f4f;
color: #fff;
}
label.heading {
margin-bottom: 5px;
display: block;
}
h3,
h4 {
margin: 10px 0;
}
.hidden {
display: none !important;
}
.column {
flex: 1;
margin: 2px;
}
.separator {
margin: 8px 2px;
}
.separator:has(+ .separator),
.separator:has(+ *.hidden) {
display: none;
}
#home {
max-width: 250px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
#threads {
margin: 3px;
}
#user {
padding: 6px;
background-color: #191919;
}
#profile {
max-width: 250px;
> * {
margin: 4px;
}
}
.authrequest {
margin-block: 3px;
}
.thread {
padding: 2px 4px;
white-space: pre;
}
#newthread {
margin-top: 5px;
}
#createthread {
max-width: fit-content;
}
#permissions {
margin-bottom: 5px;
}
#thread {
display: flex;
}
#content {
flex: 1;
display: flex;
flex-direction: column;
}
#title {
margin: 4px;
}
#buttons {
margin: 4px 2px;
display: flex;
justify-content: space-between;
}
.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 {
flex: 1;
max-width: 250px;
> * {
margin: 4px;
}
}
#visibility {
white-space: pre-line;
}
.member {
margin: 5px 0;
}
#space {
margin: -2px; /* offset column margin */
position: relative;
overflow: auto;
}
.span {
position: absolute;
white-space: nowrap;
}
</style>
</head>
<body></body>
</html>