1
Fork 0
This repository has been archived on 2022-08-23. You can view files and clone it, but cannot push or open issues or pull requests.
web-drs-frontend/src/styles.scss
2022-02-07 14:01:50 +00:00

116 lines
1.9 KiB
SCSS

:root {
--primay: black;
--bg-primay: white;
--link: #2a0b0b;
text-align: center;
}
* {
font-family: unset;
}
p {
margin: 20px 0px;
}
button {
&:hover:not(:disabled) {
filter: brightness(120%);
cursor: pointer;
}
&:disabled {
filter: brightness(30%);
cursor: default;
}
}
body {
margin: 0;
}
main {
display: flex;
flex-direction: column;
height: calc(100vh - 60px);
width: calc(100vw - 40px);
justify-content: space-between;
padding: 10px;
.nickname {
font-style: italic;
}
#container {
min-height: 100%;
max-height: 100%;
display: flex;
flex-grow: 1;
#message-area {
display: flex;
flex-direction: column;
flex-grow: 80;
max-width: 80vw;
#messages-container {
display: flex;
flex-direction: column;
flex-grow: 1;
overflow-y: scroll;
overflow-anchor: none;
list-style: none;
padding-inline-start: 0;
max-width: 100%;
overflow-wrap: break-word;
.message {
display: block;
text-align: left;
width: calc(100% - 2 * 5px);
padding: 5px;
white-space: pre-line;
&:nth-child(even) {
background-color: #f2f2f2;
}
> h2 {
width: 100%;
display: inline-flex;
margin: 0;
font-size: medium;
justify-content: space-between;
}
}
}
#message-writing-area {
display: flex;
flex-direction: column;
justify-content: center;
#message-input {
width: 80%;
}
}
}
#user-area {
display: flex;
flex-direction: column;
flex-grow: 20;
max-width: 20vw;
ol {
overflow-y: scroll;
max-height: 100%;
> li:nth-of-type(even) {
background-color: #f2f2f2;
}
}
}
}
}