117 lines
1.9 KiB
CSS
117 lines
1.9 KiB
CSS
html {
|
|
width: 100%;
|
|
height: 100%;
|
|
font-family: Arial, sans-serif
|
|
}
|
|
|
|
body {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
header {
|
|
height: 3em;
|
|
}
|
|
|
|
main {
|
|
display: grid;
|
|
grid-template-columns: 80% 20%;
|
|
height: calc(100% - 3em);
|
|
}
|
|
|
|
#game {
|
|
height: 100%;
|
|
grid-column-start: 1;
|
|
}
|
|
|
|
#chat {
|
|
border-left: #7d7d7d solid 2px;
|
|
height: 100%;
|
|
grid-column-start: 2;
|
|
}
|
|
|
|
#messages {
|
|
height: calc(100% - 5em - 3em);
|
|
overflow-y: scroll;
|
|
padding: 5px;
|
|
}
|
|
|
|
.log {
|
|
list-style-type: none;
|
|
padding: 5px;
|
|
font-weight: bold;
|
|
color: #424242;
|
|
text-align: center;
|
|
}
|
|
|
|
.message {
|
|
list-style-type: none;
|
|
margin: 5px;
|
|
border-radius: 5px;
|
|
background: #0079a5;
|
|
color: #fff;
|
|
padding: 5px 5px 5px 15px;
|
|
position: relative;
|
|
}
|
|
|
|
.me:before {
|
|
content: "";
|
|
width: 0;
|
|
height: 0;
|
|
position: absolute;
|
|
border-left: 15px solid #0079a5;
|
|
border-right: 15px solid transparent;
|
|
border-top: 15px solid #0079a5;
|
|
border-bottom: 15px solid transparent;
|
|
right: -10px;
|
|
top: 0;
|
|
}
|
|
|
|
.others:before {
|
|
content: "";
|
|
width: 0;
|
|
height: 0;
|
|
position: absolute;
|
|
border-left: 15px solid transparent;
|
|
border-right: 15px solid #0079a5;
|
|
border-top: 15px solid #0079a5;
|
|
border-bottom: 15px solid transparent;
|
|
left: -10px;
|
|
top: 0;
|
|
}
|
|
|
|
.username {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.messageBody {
|
|
|
|
}
|
|
|
|
.messageBody::before {
|
|
content: '\A';
|
|
white-space: pre;
|
|
}
|
|
|
|
#message_form {
|
|
height: 5em;
|
|
}
|
|
|
|
.material-icon {
|
|
font-family: Material Icons, sans-serif !important;
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-size: 24px;
|
|
line-height: 1;
|
|
letter-spacing: normal;
|
|
text-transform: none;
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
word-wrap: normal;
|
|
direction: ltr;
|
|
-webkit-font-feature-settings: "liga";
|
|
-webkit-font-smoothing: antialiased;
|
|
} |