-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
116 lines (103 loc) · 2.26 KB
/
example.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Chatty</title>
<style>
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700");
@import url("https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css");
body {
background: white;
color: black;
font-family: 'Open Sans', sans-serif;
font-size: 14px;
margin: 70px 0;
}
.chatbar {
background: tomato;
border-top: 1px solid black;
bottom: 0;
display: flex;
left: 0;
padding: 5px;
position: fixed;
right: 0;
}
.chatbar-message,
.chatbar-username {
border: 1px solid black;
display: block;
height: 40px;
line-height: 40px;
margin: 5px;
padding: 0 9px;
}
.chatbar-message {
flex: 8;
}
.chatbar-username {
flex: 2;
}
.message {
display: flex;
padding: 5px;
}
.message.system {
font-style: italic;
padding: 5px 20px;
}
.message-content,
.message-username {
overflow: hidden;
margin: 5px;
padding: 0 10px;
}
.message-content {
flex: 8;
}
.message-username {
flex: 2;
font-weight: 700;
}
.navbar {
background: tomato;
border-bottom: 1px solid black;
height: 60px;
left: 0;
padding: 0 10px;
position: fixed;
right: 0;
top: 0;
}
.navbar-brand {
color: inherit;
display: block;
float: left;
font-weight: 700;
font-size: 28px;
height: 60px;
line-height: 60px;
padding: 0 10px;
text-decoration: none;
}
</style>
</head>
<body>
<nav class="navbar">
<a href="/" class="navbar-brand">Chatty</a>
</nav>
<main class="messages">
<div class="message">
<span class="message-username">Anonymous1</span>
<span class="message-content">I won't be impressed with technology until I can download food.</span>
</div>
<div class="message system">
Anonymous1 changed their name to nomnom.
</div>
</main>
<footer class="chatbar">
<input class="chatbar-username" placeholder="Your Name (Optional)" />
<input class="chatbar-message" placeholder="Type a message and hit ENTER" />
</footer>
</body>
</html>