shift/styles.css

250 lines
3.7 KiB
CSS
Raw Permalink 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;
2024-10-07 02:44:26 +02:00
--vermilion: #ef3e36;
--lapis-lazuli: #235789;
--onyx: #383d3b;
--light-cyan: #e0fbfc;
--buff: #edb88b;
--eeriee-black: #1d201f;
2024-07-12 01:39:41 +02:00
}
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;
2024-10-07 02:44:26 +02:00
background-color: var(--buff);
2024-10-05 17:20:40 +02:00
}
#side-panel {
height: 100%;
2024-10-05 19:35:24 +02:00
display: none;
2024-10-07 02:44:26 +02:00
color: var(--onyx);
2024-10-05 19:35:24 +02:00
}
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;
2024-10-07 02:44:26 +02:00
border-right: 3px solid var(--onyx);
2024-10-05 19:35:24 +02:00
}
#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-07 02:44:26 +02:00
border-bottom: solid var(--onyx) 3px;
color: var(--onyx);
2024-10-05 19:35:24 +02:00
padding: .5em;
2024-10-05 17:20:40 +02:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#side-panel .conversation:hover {
2024-10-07 02:44:26 +02:00
background-color: var(--vermilion);
color: var(--light-cyan);
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;
2024-10-07 02:44:26 +02:00
border-bottom: solid var(--onyx) 3px;
2024-10-05 17:20:40 +02:00
}
#main-panel {
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
display: inline-block;
2024-10-07 02:44:26 +02:00
color: var(--onyx);
margin-left: 1em;
}
.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-10-07 02:44:26 +02:00
background-color: var(--onyx);
color: var(--light-cyan);
2024-07-12 01:39:41 +02:00
2024-10-05 17:20:40 +02:00
float: left;
}
.message-content.theirs h3 {
2024-10-07 02:44:26 +02:00
color: var(--buff);
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 {
}
.message-content.ours {
2024-10-07 02:44:26 +02:00
background-color: var(--vermilion);
2024-07-12 01:39:41 +02:00
right: 0;
margin-bottom: 0.5em;
}
2024-07-12 01:39:41 +02:00
.ours .message-text {
2024-10-07 02:44:26 +02:00
color: var(--light-cyan);
2024-07-12 01:39:41 +02:00
}
2024-10-06 19:30:58 +02:00
.system-message {
2024-10-07 02:44:26 +02:00
color: var(--onyx);
2024-10-06 19:30:58 +02:00
width: 100%;
text-align: center;
}
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;
2024-10-07 02:44:26 +02:00
margin: 0 .5em;
padding: .5em 0;
list-style: none;
}
li {
2024-10-06 19:30:58 +02:00
position: relative;
display: inline-table;
margin-bottom: 0.5em;
}
li.message {
height: 2.5em;
width: 100%;
2024-10-07 02:44:26 +02:00
margin-bottom: 1em;
}
#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;
z-index: 1;
2024-10-05 17:20:40 +02:00
2024-10-07 02:44:26 +02:00
/*background-color: var(--light-cyan);*/
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 {
flex-grow: 4;
2024-10-05 17:20:40 +02:00
2024-10-07 02:44:26 +02:00
color: var(--onyx);
background-color: var(--light-cyan);
2024-07-12 01:39:41 +02:00
margin: 0.5em;
2024-07-09 22:51:28 +02:00
left: 1em;
font-size: 1em;
z-index: 1;
}
button {
2024-10-07 02:44:26 +02:00
background-color: var(--vermilion);
color: var(--light-cyan);
2024-07-12 01:39:41 +02:00
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 {
2024-10-07 02:44:26 +02:00
color: var(--light-cyan);
background-color: var(--onyx);
}
.message-status {
2024-10-07 02:44:26 +02:00
color: var(--onyx);
2024-07-12 01:39:41 +02:00
position: absolute;
2024-10-07 02:44:26 +02:00
bottom: -1.75em;
right: 1em;
font-size: .8em;
}