wschat-ng/public/style.css

213 lines
3.3 KiB
CSS

body {
font-family: sans-serif;
margin: 0;
overflow: hidden;
}
textarea {
border: none;
}
input[type=checkbox] {
background-color: #fcd363;
}
button,
input[type=button] {
border: none;
padding: 10px 8px 10px 8px;
min-width: 132px;
background-color: #0060df;
color: #fff;
border-radius: 5px;
}
button:hover,
input[type=button]:hover {
background-color: #003eaa;
}
button:active,
input[type=button]:active {
background-color: #002275;
}
button:focus,
input[type=button]:focus,
button:focus-visible,
input[type=button]:focus-visible {
box-shadow: 0 0 0 1px #0a84ff inset, 0 0 0 1px #0a84ff, 0 0 0 4px rgba(10, 132, 255, 0.3);
}
a {
color: #0060df;
}
a:hover {
text-decoration: underline;
text-decoration-color: #0060df;
}
a:active {
color: #003eaa;
text-decoration: underline;
text-decoration-color: #003eaa;
}
a:focus {
box-shadow: 0 0 0 2px #0a84ff, 0 0 0 6px rgba(10, 132, 255, 0.3);
}
pre {
margin: 0;
}
.note {
margin-right: 5px;
color: #737373;
}
#message {
background-color: #f9f9fa;
margin: 0;
font-size: 17px;
padding: 20px;
height: 70vh;
width: calc(100vw - 20px);
color: #38383d;
font-family: 'Fira Code', Consolas, monospace;
overflow-y: scroll;
word-wrap: break-word;
}
#send {
background-color: #fff;
margin: 0;
font-size: 17px;
padding: 30px;
width: calc(100vw - 60px);
height: calc(30vh - 100px);
box-shadow: 0 1px 3px rgba(50, 50, 93, .15), 0 1px 0 rgba(0, 0, 0, .02);
}
.send-button {
font-size: 20px;
}
.bottom-box {
position: absolute;
bottom: 30px;
right: 30px;
}
.top-box {
position: absolute;
top: 20px;
right: 20px;
}
.msg {
margin-top: 15px;
}
.msg-content {
font-weight: 400;
color: #737373;
}
.msg-content > *:first-child {
margin-top: 0;
}
.msg-content > *:last-child {
margin-bottom: 0;
}
.msg-private::after {
content: " PRIVATE";
color: #ff9400;
}
.msg-from {
font-weight: 600;
color: #0c0c0d;
}
.msg-time {
font-weight: 400;
color: #b1b1b3;
}
.msg-from::before {
content: "@ ";
}
.msg-from-info {
color: #0a84ff;
}
.msg-from-cb {
color: #0c0c0d;
}
#prompt-box {
width: fit-content;
min-width: 300px;
min-height: 120px;
position: absolute;
top: calc(50% - 180px);
left: calc(45% - 150px);
background-color: #FFFFFF;
padding: 20px;
box-shadow: 0 1px 3px rgba(50, 50, 93, .15), 0 1px 0 rgba(0, 0, 0, .02);
border-radius: 5px;
}
#prompt-box-title {
width: 100%;
height: 30px;
color: #3e3e30;
font-size: 15px;
font-weight: 600;
}
#prompt-box-content {
height: 90px;
display: block;
padding-top: 10px;
}
#prompt-data {
width: calc(100% - 20px);
margin: 0 auto;
border-radius: 5px;
padding: 8px;
color: #0c0c0d;
border: none;
display: block;
font-size: 15px;
border: rgba(12, 12, 13, 0.2) 1px solid;
}
#prompt-data:focus {
border: #0a84ff 2px solid;
box-shadow: 0 0 0 1px #0a84ff, 0 0 0 4px rgba(10, 132, 255, 0.3);
}
#prompt-background {
position: fixed;
top: 0;
right: 0;
height: 100vh;
width: 100vw;
background-color:#38383dCC;
}
#confirm-prompt {
float: right;
margin-top: 15px;
}