Files
safechat/nodejs/public/stylesheets/safechat.css

249 lines
3.6 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;
}
ul li {
margin-left: 1em;
}
2015-06-29 22:34:37 +00:00
@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;
flex-basis: 0;
text-align: center;
2015-07-01 00:07:33 +00:00
text-align: center;
cursor: pointer;
2015-07-01 00:07:33 +00:00
}
.toolbutton label img {
height: 1.5em;
}
.toolbutton input {
display:none;
}
.toolbutton.bad:first-line,
.toolbutton.good:first-line {
font-weight: bold;
}
.toolbutton.bad {
background-color: #f77;
border: 1px solid black;
}
.toolbutton.good {
background-color: #7f7;
border: 1px solid black;
}
2015-07-01 00:07:33 +00:00
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 */
}
.warning {
padding: 1em;
margin: 1em;
background-color: red;
color: yellow;
font-size: large;
border: 2px inset yellow;
}
2015-06-29 22:34:37 +00:00
#header {
position: fixed;
left: 0;
right: 0;
top: 0;
margin: 0;
padding: 0 1em 0 1em;
background-color: green;
color: white;
}
#header #togglemenu {
display: inline;
float: right;
}
2015-06-29 22:34:37 +00:00
#header h1 {
font-weight: bold;
font-size: 100%;
display: inline;
2015-06-29 22:34:37 +00:00
}
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;
}
@media (max-width: 45em) {
#username {
display: none;
2015-06-29 22:34:37 +00:00
}
}
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
#connectionstatus #good {
color: lightgreen;
}
#connectionstatus #bad {
color: red;
}
#menuicon {
cursor: pointer;
}
#menu {
clear: both;
padding: 2em 0em 1em 0em;
margin: 0 1em 0 1em;
float: right;
background-color: lightblue;
list-style-type: none;
border: 1px solid black;
}
#menu li {
margin-left: 0;
}
2015-09-20 20:45:22 +00:00
#menu a {
text-decoration: inherit;
color: inherit;
}
#menu li {
padding: 0 1em 0 1em;
}
#menu li, #menu li * {
cursor: pointer;
text-align: left;
}
#menu li + li {
border-top: 1px solid black;
margin-top: 0.5em;
padding-top: 0.5em;
}
2015-06-29 13:19:06 +00:00
#main {
2015-06-29 22:34:37 +00:00
padding: 2em 1em 2em 1em;
clear: both;
2015-06-29 22:34:37 +00:00
}
.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
}