-
Notifications
You must be signed in to change notification settings - Fork 843
/
Copy pathstyle.css
106 lines (86 loc) · 1.39 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
/* General set up */
* {
box-sizing: border-box;
}
html {
font-family: sans-serif;
margin: 0;
/* Use overscroll-behavior to stop the "bounce" or refresh effect you get on mobile
browsers when getting to the top or bottom scroll limits of the page */
overscroll-behavior: none;
}
/* Styling of contacts */
header,
footer {
background-color: #a60000;
color: white;
text-align: center;
height: 50px;
line-height: 50px;
text-shadow: 2px 2px 1px black;
}
h1,
h2 {
margin: 0;
}
main div {
padding: 10px 20px;
border-bottom: 1px solid #eee;
}
p {
margin: 0;
}
a {
color: #ccc;
}
main div p {
line-height: 20px;
}
body > header {
position: sticky;
top: 0;
}
/* Styling of chatbox */
.chatbox {
background: white;
width: 200px;
height: 300px;
border: 1px solid black;
position: fixed;
bottom: 10px;
right: 10px;
}
.messages {
height: 220px;
overflow: auto;
/* use overscroll-behavior-y to stop page scrolling behind the chatbox,
when the chatbox's scroll limits are reached */
overscroll-behavior-y: contain;
}
.messages p {
margin: 10px;
padding: 10px;
border-radius: 3px;
}
.me {
background-color: #bbb;
}
.you {
background-color: #eee;
text-align: right;
}
.chatbox form {
height: 30px;
display: flex;
}
form input,
form button {
display: block;
}
form input {
width: 70%;
}
form button {
width: 30%;
font-size: 0.7rem;
}