shift/styles.css

229 lines
3.1 KiB
CSS
Raw Normal View History

2024-07-12 01:39:41 +02:00
:root {
--dark-purple: #271f30;
--light-red: #ff686b;
--eggshell: #dfe2cf;
--ucla-blue: #4d7298;
--robin-egg-blue: #66ced6;
}
html {
font-family: sans-serif;
2024-10-05 17:20:40 +02:00
height: 100%;
}
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%;
background-color: red;
width: 0;
visibility: hidden;
}
#side-panel .conversation {
width: 300px;
height: 70px;
border: solid black 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#side-panel .conversation:hover {
background-color: pink;
}
#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;
background-color: red;
}
#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;
}
h1 {
2024-10-05 17:20:40 +02:00
transform: translateY(.3rem);
height: 100%;
margin: 0;
display: inline-block;
2024-07-12 01:39:41 +02:00
color: var(--eggshell);
}
.delay {
display: inline;
2024-07-12 01:39:41 +02:00
color: var(--robin-egg-blue);
}
.rounded-rectangle {
border-width: 2px;
border: black;
2024-07-12 01:39:41 +02:00
border-style: none;
border-radius: 1em;
2024-07-12 01:39:41 +02:00
padding: .6em .8em;
}
.message-content {
z-index: 1;
float: right;
}
.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-12 01:39:41 +02:00
.theirs .message-text {
color: var(--eggshell);
}
.message-content.ours {
2024-07-12 01:39:41 +02:00
background-color: var(--eggshell);
right: 0;
margin-bottom: 0.5em;
}
2024-07-12 01:39:41 +02:00
.ours .message-text {
color: var(--dark-purple);
}
ul {
2024-10-05 17:20:40 +02:00
overflow: scroll;
flex-grow: 1;
margin: .5em;
padding: 0;
list-style: none;
}
li {
height: 2.5em;
width: 100%;
2024-07-09 22:51:28 +02:00
margin-bottom: 1.5em;
position: relative;
display: inline-table;
}
2024-07-09 22:51:28 +02:00
#textbox {
2024-07-09 22:51:28 +02:00
width: 100%;
2024-10-05 17:20:40 +02:00
display: flex;
/*position: sticky;*/
/*flex-position: end;*/
2024-07-09 22:51:28 +02:00
bottom: 0;
margin-top: 0.5em;
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;
position: fixed;
2024-07-09 22:51:28 +02:00
bottom: 3em;
}
#textbox input {
2024-10-05 17:20:40 +02:00
flex-grow: 2;
2024-07-12 01:39:41 +02:00
color: var(--dark-purple);
background-color: var(--eggshell);
margin: 0.5em;
2024-07-09 22:51:28 +02:00
left: 1em;
font-size: 1em;
z-index: 1;
}
button {
2024-07-12 01:39:41 +02:00
background-color: var(--dark-purple);
color: var(--eggshell);
margin: 0.5em;
padding: 0;
2024-10-05 17:20:40 +02:00
flex-grow: 1;
right: 0;
font-size: 1em;
}
2024-07-12 01:39:41 +02:00
button:hover {
color: var(--dark-purple);
background-color: var(--eggshell);
}
@media only screen and (min-width: 768px) {
button {
width: 10%;
}
#textbox input {
width: 85%;
}
}
.progress-bar {
width: 100%;
height: 100%;
max-width: 400px;
2024-07-12 01:39:41 +02:00
border-radius: 1em;
overflow: hidden;
position: absolute;
z-index: -1;
top: 0;
left: 0;
}
.progress {
2024-07-12 01:39:41 +02:00
opacity: 50%;
width: 0;
height: 100%;
}
.message-status {
color: var(--eggshell);
2024-07-12 01:39:41 +02:00
position: absolute;
top: 2.3em;
right: 1em;
font-size: .8em;
}
2024-10-05 17:20:40 +02:00
.conversations {
}