forked from oskar-codes/web-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
69 lines (60 loc) · 948 Bytes
/
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
* {
box-sizing: border-box;
transition: all .3s ease;
}
html, body {
background: #eee;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
main {
width: calc(100% - 20px);
max-width: 800px;
margin: 0 auto;
font-family: Helvetica, Arial, Sans, sans-serif;
}
h1, .user {
margin: 0;
padding: 10px 0;
font-size: 32px;
cursor: pointer;
}
.user {
float: right;
}
.chat {
content: '';
width: 100%;
height: calc(100vh - 250px); /* 165px */
background: white;
padding: 5px 10px;
}
.chat p {
margin: 0 0 5px 0;
}
input, button {
width: 100%;
font: inherit;
background: #fff;
border: none;
margin-top: 10px;
padding: 5px 10px;
}
button:hover {
cursor: pointer;
background: #ddd;
}
@media all and (min-width: 500px) { /* Landscape */
.chat {
height: calc(100vh - 200px); /* 140px */
}
input {
width: calc(100% - 160px);
}
button {
float: right;
width: 150px;
}
}