shift/styles.css

250 lines
3.7 KiB
CSS

:root {
--dark-purple: #271f30;
--light-red: #ff686b;
--eggshell: #dfe2cf;
--ucla-blue: #4d7298;
--robin-egg-blue: #66ced6;
--vermilion: #ef3e36;
--lapis-lazuli: #235789;
--onyx: #383d3b;
--light-cyan: #e0fbfc;
--buff: #edb88b;
--eeriee-black: #1d201f;
}
html {
font-family: sans-serif;
height: 100%;
}
body {
margin: 0;
height: 100%;
display: flex;
background-color: var(--buff);
}
#side-panel {
height: 100%;
display: none;
color: var(--onyx);
}
#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(--onyx);
}
#side-panel.invisible-on-mobile {
display: block;
}
#header button {
width: 0;
margin: 0;
padding: 0;
visibility: hidden;
}
#side-panel .conversation {
max-width: 300px;
}
}
#side-panel .conversation {
width: 100%;
height: 70px;
border-bottom: solid var(--onyx) 3px;
color: var(--onyx);
padding: .5em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#side-panel .conversation:hover {
background-color: var(--vermilion);
color: var(--light-cyan);
}
#side-panel h2 {
margin: 0;
}
#header {
position: sticky;
top: 0;
border-bottom: solid var(--onyx) 3px;
}
#main-panel {
float: right;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
#page {
max-width: 600px;
}
h1 {
display: inline-block;
color: var(--onyx);
margin-left: 1em;
}
.rounded-rectangle {
border-width: 2px;
border: black;
border-style: none;
border-radius: 1em;
padding: .6em .8em;
}
.message-content {
z-index: 1;
float: right;
}
.message-content.theirs {
background-color: var(--onyx);
color: var(--light-cyan);
float: left;
}
.message-content.theirs h3 {
color: var(--buff);
margin: 0;
margin-bottom: 3px;
font-size: .85em;
font-weight: bolder;
letter-spacing: .03em;
}
.theirs .message-text {
}
.message-content.ours {
background-color: var(--vermilion);
right: 0;
margin-bottom: 0.5em;
}
.ours .message-text {
color: var(--light-cyan);
}
.system-message {
color: var(--onyx);
width: 100%;
text-align: center;
}
ul {
overflow: scroll;
/*height:100%;*/
flex-grow: 1;
margin: 0 .5em;
padding: .5em 0;
list-style: none;
}
li {
position: relative;
display: inline-table;
margin-bottom: 0.5em;
}
li.message {
height: 2.5em;
width: 100%;
margin-bottom: 1em;
}
#textbox {
width: 100%;
display: flex;
bottom: 0;
z-index: 1;
/*background-color: var(--light-cyan);*/
}
#typing-indicator {
color: var(--eggshell);
margin: 0;
margin-left: 1em;
margin-bottom: 0.5em;
position: fixed;
bottom: 3em;
}
#textbox input {
flex-grow: 4;
color: var(--onyx);
background-color: var(--light-cyan);
margin: 0.5em;
left: 1em;
font-size: 1em;
z-index: 1;
}
button {
background-color: var(--vermilion);
color: var(--light-cyan);
margin: 0.5em;
padding: 0;
flex-grow: 1;
right: 0;
font-size: 1em;
}
button:hover {
color: var(--light-cyan);
background-color: var(--onyx);
}
.message-status {
color: var(--onyx);
position: absolute;
bottom: -1.75em;
right: 1em;
font-size: .8em;
}