vybe/client/index.html

334 lines
6.4 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,
2024-06-23 21:55:28 -07:00
input:not([type]), input[type='text'],
.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;
2024-04-28 22:55:54 -07:00
&::placeholder {
color: #aaa;
}
2024-06-23 21:55:28 -07:00
&:not([type]), &[type='text'] {
border: 1px solid #444;
&:focus {
padding-bottom: 2px;
border-bottom: 3px solid #777;
}
}
2024-06-14 22:24:32 -07:00
&[type='radio'], &[type='checkbox'] {
2024-05-14 20:31:52 -07:00
position: relative;
top: 2px;
}
2024-06-23 21:55:28 -07:00
&[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;
}
}
}
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 {
2024-06-23 21:55:28 -07:00
margin: 2px;
2024-05-12 23:46:05 -07:00
}
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-14 22:24:32 -07:00
*.hidden:first-child + .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-07-02 23:27:43 -07:00
cursor: default;
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-06-23 21:55:28 -07:00
max-width: 256px;
2024-04-28 22:55:54 -07:00
display: flex;
flex-direction: column;
justify-content: space-between;
}
2024-06-23 21:55:28 -07:00
#instances {
margin-inline: 2px;
}
2024-06-12 21:52:23 -07:00
#instancelist {
overflow-y: auto;
> :not(div) {
margin: 3px;
}
2024-06-12 03:00:50 -07:00
}
2024-07-02 23:27:43 -07:00
#instances, #membershead, #threadshead {
2024-06-12 03:00:50 -07:00
display: flex;
justify-content: space-between;
2024-07-02 23:27:43 -07:00
align-items: center;
2024-06-12 03:00:50 -07:00
}
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;
}
2024-08-20 19:32:32 -07:00
#threadshead {
margin-block: 2px 4px;
}
2024-05-12 23:46:05 -07:00
#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-08-20 19:32:32 -07:00
cursor: default;
2024-04-28 22:55:54 -07:00
}
2024-06-14 22:24:32 -07:00
.user {
white-space: pre-wrap;
2024-07-02 23:27:43 -07:00
cursor: default;
2024-06-14 22:24:32 -07:00
&:hover {
2024-06-19 22:57:57 -07:00
background-color: #333;
border-bottom: 1px #bbb solid;
2024-06-14 22:24:32 -07:00
}
}
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-17 19:44:11 -07:00
#instance, #member {
2024-06-12 21:52:23 -07:00
display: flex;
flex-direction: column;
justify-content: space-between;
max-width: 250px;
}
.thread {
padding: 2px 3px;
2024-05-04 20:13:37 -07:00
white-space: pre;
2024-07-02 23:27:43 -07:00
cursor: default;
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;
2024-09-07 18:55:03 -07:00
margin: 0 2px;
2023-12-28 11:54:16 -08:00
}
#message {
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-06-14 22:24:32 -07:00
#member {
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
#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>