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

114 lines
1.9 KiB
SCSS
Raw Normal View History

: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;
2022-01-21 14:50:41 +01:00
height: calc(100vh - 40px);
width: calc(100vw - 40px);
justify-content: space-between;
padding: 10px;
.nickname {
font-style: italic;
}
2022-01-21 14:50:41 +01:00
#container {
min-height: 100%;
max-height: 100%;
display: flex;
flex-grow: 1;
2022-01-21 14:50:41 +01:00
#message-area {
display: flex;
flex-direction: column;
flex-grow: 80;
#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;
}
}
}
2022-01-21 14:50:41 +01:00
#message-writing-area {
display: flex;
flex-direction: column;
justify-content: center;
2022-01-08 20:18:04 +01:00
2022-01-21 14:50:41 +01:00
#message-input {
width: 80%;
}
2022-01-08 20:18:04 +01:00
}
}
2022-01-21 14:50:41 +01:00
#user-area {
display: flex;
flex-direction: column;
flex-grow: 20;
ol {
overflow-y: scroll;
max-height: 100%;
> li:nth-of-type(even) {
background-color: #f2f2f2;
}
}
}
}
}