vybe/client/index.html

287 lines
5.2 KiB
HTML
Raw Normal View History

2023-05-06 20:55:04 -07:00
<!DOCTYPE html>
<html lang="en">
2023-07-30 18:06:21 -07:00
<head>
<script src="/openpgp.min.js"></script>
<script src="/socket.io.min.v4.6.1.js"></script>
<script src="/aes.js"></script>
2023-08-30 21:00:17 -07:00
<script type="module" src="/auth.js"></script>
2023-07-30 18:06:21 -07:00
<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;
2024-03-18 23:07:48 -07:00
scrollbar-color: #505050 #111;
}
::-webkit-scrollbar-thumb {
background: #505050;
}
::-webkit-scrollbar {
background-color: #111;
}
::-webkit-scrollbar-corner {
background-color: #111;
2023-07-30 18:06:21 -07:00
}
html {
height: 100%;
2023-07-30 18:06:21 -07:00
}
body {
height: 100%;
background: #020202;
2023-07-30 18:06:21 -07:00
display: flex;
align-items: stretch;
margin: 0;
min-width: min-content;
2023-08-30 21:00:17 -07:00
}
2024-04-15 21:52:21 -07:00
body,
button,
input {
color: #eaeaea;
}
button {
border: none;
background: #303030;
2024-03-18 23:07:48 -07:00
}
button,
input,
.tab {
2024-05-12 23:46:05 -07:00
padding: 4px 7px;
2023-08-30 21:00:17 -07:00
}
input {
2024-03-18 23:07:48 -07:00
background: #1b1b1b;
2024-04-15 21:52:21 -07:00
outline: none;
border: 1px solid #444;
2024-04-28 22:55:54 -07:00
&:focus {
2024-06-12 03:00:50 -07:00
padding-bottom: 2px;
2024-04-28 22:55:54 -07:00
border-bottom: 3px solid #777;
}
&::placeholder {
color: #aaa;
}
2024-05-14 20:31:52 -07:00
&[type='radio'] {
position: relative;
top: 2px;
}
}
2024-04-15 21:52:21 -07:00
#register {
margin-inline: 14px;
2024-04-15 23:53:54 -07:00
max-width: 800px;
2024-04-15 21:52:21 -07:00
}
2024-06-12 03:00:50 -07:00
:not(#register) > p {
2024-06-12 21:52:23 -07:00
margin-block: 5px;
word-wrap: break-word;
2024-06-12 03:00:50 -07:00
}
.thread:hover,
2024-04-28 22:55:54 -07:00
.tab:hover,
2024-06-12 21:52:23 -07:00
.instancetitle > span:hover,
2024-04-28 22:55:54 -07:00
#user:hover {
2024-06-12 03:00:50 -07:00
background-color: #333;
}
.thread.active,
2024-06-12 03:00:50 -07:00
.tab.active,
button:hover {
background-color: #4f4f4f;
color: #fff;
}
label.heading {
2024-06-12 21:52:23 -07:00
margin: 10px 0 4px;
display: block;
}
2024-05-12 23:46:05 -07:00
h3 {
margin: 0;
}
h4 {
2024-05-12 23:46:05 -07:00
margin: 6px 0;
2023-08-30 21:00:17 -07:00
}
.hidden {
display: none !important;
2023-07-30 18:06:21 -07:00
}
.column {
flex: 1;
margin: 3px;
2023-07-30 18:06:21 -07:00
}
2024-04-15 14:27:21 -07:00
.separator {
margin: 8px 2px;
}
2024-05-04 20:13:37 -07:00
.separator:has(+ .separator),
2024-06-12 21:52:23 -07:00
*.hidden + .separator,
2024-05-12 23:46:05 -07:00
.separator:has(+ *.hidden),
.separator:last-child {
2024-05-04 20:13:37 -07:00
display: none;
}
2024-06-12 21:52:23 -07:00
.content {
flex: 1;
}
.instancetitle {
2024-06-12 03:00:50 -07:00
margin: 2px;
> span {
display: table-cell;
background-color: #222;
2024-06-12 21:52:23 -07:00
padding-block: 6px;
2024-06-12 03:00:50 -07:00
}
> .title {
width: 100%;
}
}
.expander {
padding-inline: 6px;
}
.arrow {
display: block;
position: relative;
top: -1px;
rotate: 45deg;
&.collapsed {
rotate: -45deg;
top: 0;
left: -3px;
}
}
2024-04-28 22:55:54 -07:00
#home {
2024-06-12 03:00:50 -07:00
margin: 0;
2024-04-28 22:55:54 -07:00
max-width: 250px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
2024-06-12 21:52:23 -07:00
#instancelist {
overflow-y: auto;
> :not(div) {
margin: 3px;
}
2024-06-12 03:00:50 -07:00
}
#instances {
display: flex;
justify-content: space-between;
}
2023-08-30 21:00:17 -07:00
#threads {
2024-06-12 03:00:50 -07:00
margin: 0 2px 6px;
2024-05-12 23:46:05 -07:00
min-height: 0;
display: flex;
flex-direction: column;
}
#threadlist {
overflow: auto;
2024-04-28 22:55:54 -07:00
}
#user {
2024-06-12 03:00:50 -07:00
margin: 2px;
2024-04-28 22:55:54 -07:00
padding: 6px;
2024-06-12 03:00:50 -07:00
background-color: #222;
2024-04-28 22:55:54 -07:00
}
#profile {
2023-08-30 21:00:17 -07:00
max-width: 250px;
2023-07-30 18:06:21 -07:00
}
2024-06-12 21:52:23 -07:00
#instance {
display: flex;
flex-direction: column;
justify-content: space-between;
max-width: 250px;
}
#disconnect {
width: fit-content;
}
.thread {
padding: 2px 3px;
2024-05-04 20:13:37 -07:00
white-space: pre;
2023-12-28 11:54:16 -08:00
}
2023-08-30 21:00:17 -07:00
#newthread {
margin-top: 5px;
2024-05-12 23:46:05 -07:00
width: fit-content;
2023-07-30 18:06:21 -07:00
}
2023-12-28 11:54:16 -08:00
#createthread {
2024-05-04 20:13:37 -07:00
max-width: fit-content;
2024-05-12 23:46:05 -07:00
overflow: auto;
2023-12-28 11:54:16 -08:00
}
2023-07-30 19:31:26 -07:00
#permissions {
margin-bottom: 5px;
}
#thread {
display: flex;
2024-05-12 23:46:05 -07:00
margin: 0;
2024-05-04 20:13:37 -07:00
}
#content {
2024-05-12 23:46:05 -07:00
margin: 2px;
2024-06-12 21:52:23 -07:00
min-width: 300px;
2024-05-04 20:13:37 -07:00
display: flex;
flex-direction: column;
}
2024-05-14 20:31:52 -07:00
#titlebar, #buttonbar {
margin: 2px;
2024-05-04 20:13:37 -07:00
display: flex;
justify-content: space-between;
}
2024-05-14 20:31:52 -07:00
#title {
margin-bottom: 5px;
}
2023-12-28 11:54:16 -08:00
.tab {
padding: 5px 7px;
background-color: #1f1f1f;
2023-12-28 11:54:16 -08:00
border: 0;
color: #ddd;
2023-12-28 11:54:16 -08:00
font-weight: 500;
}
.tabcontent {
2024-05-04 20:13:37 -07:00
flex: 1;
2023-12-28 11:54:16 -08:00
}
#message {
2024-05-04 20:13:37 -07:00
margin: 2px;
display: flex;
flex-direction: column;
2024-04-29 21:05:45 -07:00
min-height: 0; /* flex makes this auto so it can't shrink */
2023-12-28 11:54:16 -08:00
}
#messages {
2024-05-04 20:13:37 -07:00
flex: 1;
2024-04-29 21:05:45 -07:00
overflow: auto;
2023-12-28 11:54:16 -08:00
}
2023-07-30 18:06:21 -07:00
#msginput {
display: flex;
flex-direction: row;
2024-04-28 22:55:54 -07:00
> * {
2024-05-05 00:47:42 -07:00
margin: 2px;
2024-04-28 22:55:54 -07:00
}
}
#msg {
flex-grow: 1;
2023-07-30 18:06:21 -07:00
}
.message {
margin-bottom: 5px;
2023-08-30 21:00:17 -07:00
overflow-wrap: anywhere;
2023-07-30 18:06:21 -07:00
}
#loadmore {
margin-bottom: 10px;
}
2024-05-05 00:47:42 -07:00
#members {
2024-06-12 21:52:23 -07:00
min-width: 140px;
2024-05-05 00:47:42 -07:00
max-width: 250px;
}
2024-05-12 23:46:05 -07:00
#editthread {
max-width: fit-content;
}
2024-05-05 00:47:42 -07:00
#visibility {
white-space: pre-line;
2024-05-12 23:46:05 -07:00
margin-bottom: 12px;
2024-05-05 00:47:42 -07:00
}
2024-03-18 23:07:48 -07:00
#space {
2024-05-04 20:13:37 -07:00
margin: -2px; /* offset column margin */
2024-03-18 23:07:48 -07:00
position: relative;
overflow: auto;
}
.span {
position: absolute;
2024-04-26 18:46:00 -07:00
white-space: nowrap;
2024-03-18 23:07:48 -07:00
}
2024-05-24 00:29:09 -07:00
#stream {
margin: 4px 2px;
}
#play {
line-height: 1.4;
font-family: 'Segoe UI Symbol', math;
}
2023-07-30 18:06:21 -07:00
</style>
</head>
<body></body>
2023-05-06 20:55:04 -07:00
</html>