deployment-talks/chat-app/static/css/main.css

114 lines
2.2 KiB
CSS
Raw Normal View History

body {
margin: 0;
padding: 0;
background-color: #134115;
font-family: monospace;
}
div {
box-sizing: border-box;
}
.messages {
padding: 1em;
display: flex;
flex-direction: column-reverse;
height: auto;
overflow: auto;
}
.messages .message {
padding: 1em 1.25em;
border: 1px solid #020a03;
border-radius: 5px;
margin-bottom: 0.75em;
background-color: #fffefc;
font-family: monospace;
font-size: 14px;
color: #0c0b09;
}
.chatter {
font-weight: bold;
}
.chat-input {
position: fixed;
bottom: 0;
width: 100%;
box-sizing: border-box;
border-top: 1px solid #ccc;
height: auto;
padding: 1em;
background-color: #f4efe6;
}
.chat-input > form {
display: flex;
width: 100%;
box-sizing: border-box;
}
.chat-input > form > input,
.chat-input > form > submit {
padding: 1em 1.25em;
margin-right: 1em;
}
.chat-input > form > submit {
background-color: #020a03;
border: none;
border-radius: 5px;
color: #fffbf6;
font-weight: bold;
font-family: monospace !important;
padding: 0.75em 1em;
margin-right: 0;
}
.chat-input > form > input[name="chatter"] {
width: 20%;
border: 1px solid #020a03;
border-radius: 5px;
color: #0c0b09;
font-family: monospace;
}
.chat-input > form > input[name="message"] {
width: 75%;
border: 1px solid #020a03;
border-radius: 5px;
color: #0c0b09;
font-family: monospace;
}
@media only screen and (max-width: 600px) {
.chat-input {
padding: 2.5em;
}
.chat-input > form {
display: flex;
width: 100%;
box-sizing: border-box;
flex-direction: column;
}
.chat-input > form > input[name="chatter"] {
width: 100%;
font-size: 3.5em;
margin-bottom: 0.5em;
box-sizing: border-box;
}
.chat-input > form > input[name="message"] {
width: 100%;
font-size: 3.5em;
margin-bottom: 0.5em;
box-sizing: border-box;
}
.chat-input > form > input, .chat-input > form > submit {
padding: 0.75em 1em;
border-radius: 0.25em;
width: 100%;
font-size: 3.5em;
}
}