-
Notifications
You must be signed in to change notification settings - Fork 73
/
style.css
128 lines (103 loc) · 1.94 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/*==============================
GENERAL STYLES
================================*/
/*https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/*/
*, html {
box-sizing: border-box;
margin:0;
padding:0;
}
*:before, *:after {
box-sizing: inherit;
}
body {
font: 1.5em Helvetica, Arial;
height: 100%;
padding-bottom: 2.3em;
overflow:auto;
}
/*==============================
#MESSAGE-INPUT-FORM
================================*/
form {
background: #2c3e50;
height: 2.3em;
width: 100%;
display: flex;
padding: 3px;
position: fixed;
bottom: 0;
margin: 0;
}
form input {
border: 0;
font-size: 1em;
/*height: 2px;*/
height: 2em;
min-width: 70%;
flex: 1;
padding:0.5em;
margin-right: .5%;
}
form button {
background: #27ae60;
border: none;
color: white;
font-size: 1em;
height: 2em;
padding: 10px;
}
/*==============================
#JOINING-CHAT-STRAPLINE
================================*/
#joiners {
background-color:#2c3e50;
color: white;
opacity:0.9;
z-index: 3;
font-size: 1em;
text-align: center;
padding: 0.5em;
word-wrap: break-word;
}
#joined { color: #40d47e; }
/*==============================
#MESSAGES-WINDOW
================================*/
#messages {
list-style-type: none;
margin: 0;
max-height: 90%;
padding: 0;
}
#messages li { padding: 5px 10px; }
#messages li:nth-child(odd) { background: #eee; }
/* == Individual messages == */
.time { color: #9c9c9c; }
.name {
color: #2980b9;
margin-right: 0.8em;
word-wrap: break-word;
}
.name,
.time {
font-size: 0.7em;
}
/*==============================
MEDIA QUERIES
================================*/
@media only screen and (min-width: 768px) {
.name {
font-size: 1em;
}
.name,
.time {
font-size: .8em;
}
#joiners {
height: 2em;
font-size: 1.5em;
padding: 0.5em 0 1em 2em;
text-align: left;
}
}