Files
safechat/html/safechat.css

129 lines
1.7 KiB
CSS
Raw Normal View History

2015-06-29 13:19:06 +00:00
* {
margin: 0;
padding: 0;
}
2015-06-29 22:34:37 +00:00
p {
padding: .5em 0 1em 0;
}
form {
padding: .5em 0 1em 0;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
@media (max-width: 45em) {
form {
flex-direction: column;
flex-wrap: wrap;
}
}
form > * {
flex-grow: 1;
}
form input[type="submit"] {
flex-grow: 0;
}
form input#msg {
flex-grow: 4;
}
table {
width: 100%;
}
tr {
display: flex;
align-items: stretch;
}
td:last-child {
flex:1; /* last td to fill remaining width */
}
#header {
position: fixed;
left: 0;
right: 0;
top: 0;
margin: 0;
padding: 0 1em 0 1em;
background-color: green;
color: white;
}
#header h1 {
font-weight: bold;
font-size: 100%;
}
2015-06-29 13:19:06 +00:00
#status {
2015-06-29 22:34:37 +00:00
position: fixed;
2015-06-29 13:19:06 +00:00
left: 0;
right: 0;
bottom: 0;
margin: 0;
padding: 0 1em 0 1em;
text-align: right;
}
2015-06-29 22:34:37 +00:00
@media (min-width: 45em) {
#status {
bottom: auto;
left: auto;
top: 0;
}
}
2015-06-29 13:19:06 +00:00
#status.error {
background-color: lightred;
}
#status.notice {
background-color: yellow;
}
#status.success {
background-color: lightgreen;
}
2015-06-29 22:34:37 +00:00
2015-06-29 13:19:06 +00:00
#main {
2015-06-29 22:34:37 +00:00
padding: 2em 1em 2em 1em;
}
.clear {
clear: both;
}
#msgs .msg {
border: 1px solid black;
margin: 1ex;
padding: 1ex;
border-radius: 2ex;
2015-06-29 13:19:06 +00:00
-moz-border-radius: 1em;
2015-06-29 22:34:37 +00:00
-webkit-border-radius: 1em;
}
#msgs .me {
float: left;
}
#msgs .other {
float: right;
}
#msgs .msg .header {
border-bottom: 1px solid black;
margin-bottom: .25ex;
padding-bottom: .25ex;
position: relative;
height: 1em;
}
#msgs .msg .header .date {
font-size: xx-small;
float: left;
/*position: absolute;
left: 0;*/
}
#msgs .msg .header .sender {
font-size: small;
float: right;
/*position: absolute;
right: 0;*/
}
#msgs .msg .text {
float: left;
2015-06-29 13:19:06 +00:00
}