2024-07-12 01:39:41 +02:00
|
|
|
:root {
|
|
|
|
--dark-purple: #271f30;
|
|
|
|
--light-red: #ff686b;
|
|
|
|
--eggshell: #dfe2cf;
|
|
|
|
--ucla-blue: #4d7298;
|
|
|
|
--robin-egg-blue: #66ced6;
|
|
|
|
}
|
|
|
|
|
2024-07-09 02:55:13 +02:00
|
|
|
html {
|
|
|
|
font-family: sans-serif;
|
2024-10-05 17:20:40 +02:00
|
|
|
height: 100%;
|
2024-07-09 02:55:13 +02:00
|
|
|
}
|
|
|
|
|
2024-07-09 22:51:28 +02:00
|
|
|
body {
|
2024-10-05 17:20:40 +02:00
|
|
|
margin: 0;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
#side-panel {
|
|
|
|
height: 100%;
|
2024-10-05 19:35:24 +02:00
|
|
|
background-color: var(--dark-purple);
|
|
|
|
display: none;
|
|
|
|
}
|
2024-10-05 17:20:40 +02:00
|
|
|
|
2024-10-05 19:35:24 +02:00
|
|
|
#header button {
|
|
|
|
transform: translateY(-.3em);
|
|
|
|
width: auto;
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
#side-panel {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#side-panel.invisible-on-mobile {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* on desktop only */
|
|
|
|
@media only screen and (min-width: 768px) {
|
|
|
|
#side-panel {
|
|
|
|
display: block;
|
|
|
|
width: auto;
|
|
|
|
visibility: visible;
|
|
|
|
border-right: 3px solid var(--eggshell);
|
|
|
|
}
|
|
|
|
|
|
|
|
#side-panel.invisible-on-mobile {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
#header button {
|
|
|
|
width: 0;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
#side-panel .conversation {
|
|
|
|
max-width: 300px;
|
|
|
|
}
|
2024-10-05 17:20:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#side-panel .conversation {
|
2024-10-05 19:35:24 +02:00
|
|
|
width: 100%;
|
2024-10-05 17:20:40 +02:00
|
|
|
height: 70px;
|
2024-10-05 19:35:24 +02:00
|
|
|
border-bottom: solid var(--eggshell) 3px;
|
|
|
|
color: var(--eggshell);
|
|
|
|
padding: .5em;
|
2024-10-05 17:20:40 +02:00
|
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
#side-panel .conversation:hover {
|
2024-10-05 19:35:24 +02:00
|
|
|
background-color: var(--eggshell);
|
|
|
|
color: var(--dark-purple);
|
2024-10-05 17:20:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#side-panel h2 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2024-07-12 01:39:41 +02:00
|
|
|
|
2024-10-05 17:20:40 +02:00
|
|
|
#header {
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main-panel {
|
2024-07-12 01:39:41 +02:00
|
|
|
background-color: var(--dark-purple);
|
2024-10-05 17:20:40 +02:00
|
|
|
float: right;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-end;
|
2024-07-09 22:51:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#page {
|
|
|
|
max-width: 600px;
|
|
|
|
}
|
|
|
|
|
2024-07-09 02:55:13 +02:00
|
|
|
h1 {
|
2024-10-05 17:20:40 +02:00
|
|
|
display: inline-block;
|
2024-07-12 01:39:41 +02:00
|
|
|
|
|
|
|
color: var(--eggshell);
|
2024-07-09 02:55:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.delay {
|
|
|
|
display: inline;
|
2024-07-12 01:39:41 +02:00
|
|
|
|
|
|
|
color: var(--robin-egg-blue);
|
2024-07-09 02:55:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.rounded-rectangle {
|
|
|
|
border-width: 2px;
|
|
|
|
border: black;
|
2024-07-12 01:39:41 +02:00
|
|
|
border-style: none;
|
2024-07-09 02:55:13 +02:00
|
|
|
border-radius: 1em;
|
|
|
|
|
2024-07-12 01:39:41 +02:00
|
|
|
padding: .6em .8em;
|
2024-07-09 02:55:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.message-content {
|
|
|
|
z-index: 1;
|
2024-10-04 01:04:50 +02:00
|
|
|
float: right;
|
2024-07-09 02:55:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.message-content.theirs {
|
2024-07-12 01:39:41 +02:00
|
|
|
background-color: var(--ucla-blue);
|
|
|
|
|
2024-10-05 17:20:40 +02:00
|
|
|
float: left;
|
2024-07-09 02:55:13 +02:00
|
|
|
}
|
|
|
|
|
2024-10-06 17:27:02 +02:00
|
|
|
.message-content.theirs h3 {
|
|
|
|
color: color-mix(in hsl, var(--eggshell) 50%, white 50%);
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
font-size: .85em;
|
|
|
|
font-weight: bolder;
|
|
|
|
letter-spacing: .03em;
|
|
|
|
}
|
|
|
|
|
2024-07-12 01:39:41 +02:00
|
|
|
.theirs .message-text {
|
2024-10-06 17:27:02 +02:00
|
|
|
/*TODO: move this up to .message-content.theirs?*/
|
2024-07-12 01:39:41 +02:00
|
|
|
color: var(--eggshell);
|
|
|
|
}
|
|
|
|
|
2024-07-09 02:55:13 +02:00
|
|
|
.message-content.ours {
|
2024-07-12 01:39:41 +02:00
|
|
|
background-color: var(--eggshell);
|
|
|
|
|
2024-07-09 02:55:13 +02:00
|
|
|
right: 0;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
2024-07-12 01:39:41 +02:00
|
|
|
.ours .message-text {
|
|
|
|
color: var(--dark-purple);
|
|
|
|
}
|
|
|
|
|
2024-07-09 02:55:13 +02:00
|
|
|
ul {
|
2024-10-05 17:20:40 +02:00
|
|
|
overflow: scroll;
|
2024-10-05 19:35:24 +02:00
|
|
|
/*height:100%;*/
|
2024-10-05 17:20:40 +02:00
|
|
|
flex-grow: 1;
|
|
|
|
margin: .5em;
|
2024-07-09 02:55:13 +02:00
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
height: 2.5em;
|
|
|
|
width: 100%;
|
|
|
|
|
2024-07-09 22:51:28 +02:00
|
|
|
margin-bottom: 1.5em;
|
2024-07-09 02:55:13 +02:00
|
|
|
position: relative;
|
2024-10-04 01:04:50 +02:00
|
|
|
display: inline-table;
|
2024-07-09 02:55:13 +02:00
|
|
|
}
|
|
|
|
|
2024-07-09 22:51:28 +02:00
|
|
|
|
2024-07-09 02:55:13 +02:00
|
|
|
#textbox {
|
2024-07-09 22:51:28 +02:00
|
|
|
width: 100%;
|
2024-10-05 17:20:40 +02:00
|
|
|
display: flex;
|
2024-07-09 22:51:28 +02:00
|
|
|
bottom: 0;
|
|
|
|
|
2024-07-10 00:40:49 +02:00
|
|
|
z-index: 1;
|
2024-10-05 17:20:40 +02:00
|
|
|
|
|
|
|
background-color: var(--dark-purple);
|
2024-07-09 22:51:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#typing-indicator {
|
2024-07-12 01:39:41 +02:00
|
|
|
color: var(--eggshell);
|
|
|
|
|
2024-07-09 22:51:28 +02:00
|
|
|
margin: 0;
|
|
|
|
margin-left: 1em;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
|
2024-07-10 00:40:49 +02:00
|
|
|
position: fixed;
|
2024-07-09 22:51:28 +02:00
|
|
|
bottom: 3em;
|
2024-07-09 02:55:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#textbox input {
|
2024-10-06 17:27:02 +02:00
|
|
|
flex-grow: 4;
|
2024-10-05 17:20:40 +02:00
|
|
|
|
2024-07-12 01:39:41 +02:00
|
|
|
color: var(--dark-purple);
|
|
|
|
background-color: var(--eggshell);
|
|
|
|
|
2024-07-09 02:55:13 +02:00
|
|
|
margin: 0.5em;
|
2024-07-09 22:51:28 +02:00
|
|
|
left: 1em;
|
2024-07-09 02:55:13 +02:00
|
|
|
|
|
|
|
font-size: 1em;
|
2024-07-10 00:40:49 +02:00
|
|
|
|
|
|
|
z-index: 1;
|
2024-07-09 02:55:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
2024-07-12 01:39:41 +02:00
|
|
|
background-color: var(--dark-purple);
|
|
|
|
color: var(--eggshell);
|
|
|
|
|
2024-07-09 02:55:13 +02:00
|
|
|
margin: 0.5em;
|
|
|
|
padding: 0;
|
2024-10-05 17:20:40 +02:00
|
|
|
flex-grow: 1;
|
2024-07-09 02:55:13 +02:00
|
|
|
right: 0;
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
|
2024-07-12 01:39:41 +02:00
|
|
|
button:hover {
|
|
|
|
color: var(--dark-purple);
|
|
|
|
background-color: var(--eggshell);
|
|
|
|
}
|
|
|
|
|
2024-07-09 02:55:13 +02:00
|
|
|
.progress-bar {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
max-width: 400px;
|
2024-07-12 01:39:41 +02:00
|
|
|
border-radius: 1em;
|
2024-07-09 02:55:13 +02:00
|
|
|
overflow: hidden;
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
z-index: -1;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress {
|
2024-07-12 01:39:41 +02:00
|
|
|
opacity: 50%;
|
2024-07-09 02:55:13 +02:00
|
|
|
width: 0;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message-status {
|
2024-10-04 01:04:50 +02:00
|
|
|
color: var(--eggshell);
|
2024-07-12 01:39:41 +02:00
|
|
|
|
2024-07-09 02:55:13 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 2.3em;
|
|
|
|
right: 1em;
|
|
|
|
font-size: .8em;
|
|
|
|
}
|