Files
safechat/html/safechat.css

177 lines
2.5 KiB
CSS
Raw Normal View History

2015-06-29 13:19:06 +00:00
* {
margin: 0;
padding: 0;
}
2015-07-01 00:07:33 +00:00
@media (min-resolution: 120dpi) {
html {
font-size: 120%;
}
}
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;
}
2015-07-01 00:07:33 +00:00
.buttongroup {
flex-grow: 0;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
.buttongroup .toolbutton {
flex-grow: 1;
text-align: center;
}
.toolbutton label img {
height: 1.5em;
}
.toolbutton input {
display:none;
}
2015-06-29 22:34:37 +00:00
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 {
2015-07-01 00:07:33 +00:00
background-color: red;
color: black;
2015-06-29 13:19:06 +00:00
}
#status.notice {
background-color: yellow;
2015-07-01 00:07:33 +00:00
color: black;
2015-06-29 13:19:06 +00:00
}
#status.success {
background-color: lightgreen;
2015-07-01 00:07:33 +00:00
color: black;
2015-06-29 13:19:06 +00:00
}
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;
border-radius: 2ex;
2015-07-01 00:07:33 +00:00
-moz-border-radius: 2ex;
-webkit-border-radius: 2ex;
display: block;
width: auto;
height: auto;
max-width: 60%;
2015-06-29 22:34:37 +00:00
}
#msgs .me {
float: left;
2015-07-01 00:07:33 +00:00
background-color: lightgray;
2015-06-29 22:34:37 +00:00
}
#msgs .other {
float: right;
2015-07-01 00:07:33 +00:00
background-color: lightyellow;
2015-06-29 22:34:37 +00:00
}
#msgs .msg .header {
2015-07-01 00:07:33 +00:00
border: 1px solid black;
border-radius: 2ex 2ex 0 0;
-moz-border-radius: 2ex 2ex 0 0;
-webkit-border-radius: 2ex 2ex 0 0;
/*border-radius: 2ex;
-moz-border-radius: 2ex;
-webkit-border-radius: 2ex;*/
2015-06-29 22:34:37 +00:00
margin-bottom: .25ex;
padding-bottom: .25ex;
position: relative;
height: 1em;
2015-07-01 00:07:33 +00:00
padding: .5ex 1ex .5ex 1ex;
}
#msgs .msg .header {
background-color: lightgreen;
2015-06-29 22:34:37 +00:00
}
#msgs .msg .header .date {
font-size: xx-small;
float: left;
2015-07-01 00:07:33 +00:00
padding: 0 1ex 0 0;
2015-06-29 22:34:37 +00:00
}
#msgs .msg .header .sender {
font-size: small;
float: right;
2015-07-01 00:07:33 +00:00
padding: 0 0 0 1ex;
2015-06-29 22:34:37 +00:00
}
#msgs .msg .text {
float: left;
2015-07-01 00:07:33 +00:00
padding: .5ex 1ex .5ex 1ex;
}
#msgs .msg img {
display: block;
width: 99%;
}
#preview img {
height: 4em;
2015-06-29 13:19:06 +00:00
}