Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
121 lines (102 loc) · 1.71 KB
/
Copy pathstyle.css
File metadata and controls
121 lines (102 loc) · 1.71 KB
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
/* Main styles */
body {
font-family: sans-serif;
color: #333;
margin: 0;
padding: 0;
}
#app {
display: flex;
flex-direction: column;
height: 100vh;
}
#header {
background: #ddd;
padding: 20px;
text-align: center;
border-bottom: 1px solid #ccc;
}
#messages {
flex: 1;
overflow-y: scroll;
padding: 20px;
display: flex;
flex-direction: column;
}
#compose {
background: #eee;
padding: 20px;
border-top: 1px solid #ccc;
display: flex;
}
#compose textarea {
flex: 1;
padding: 10px;
border: 0;
font-size: 14px;
}
#compose button {
background: #333;
color: #fff;
border: 0;
padding: 10px;
font-size: 14px;
cursor: pointer;
}
#compose .avatar {
width: 50px;
height: 50px;
border-radius: 50%;
background: #333;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
margin-right: 10px;
}
#compose .avatar i {
font-size: 24px;
}
/* Message styles */
.message {
display: flex;
margin-bottom: 20px;
}
.message .avatar {
width: 50px;
height: 50px;
border-radius: 50%;
background: #333;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
margin-right: 10px;
}
.message .avatar i {
font-size: 24px;
}
.message .content {
flex: 1;
background: #fff;
padding: 20px;
border-radius: 5px;
}
.message .content p {
margin: 0;
font-size: 14px;
}
.message.sent {
align-items: flex-end;
}
.message.received {
align-items: flex-start;
}
.message.sent .avatar {
margin-left: auto;
margin-right: 0;
}
.message.received .avatar {
margin-left: 0;
margin-right: auto;
}