-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
123 lines (105 loc) Β· 1.74 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-size: 1rem;
font-family: Arial, Helvetica, sans-serif;
}
body {
background-color: #000;
color: #fff;
}
main {
height: 100vh;
padding: 1rem;
display: flex;
flex-flow: column;
}
form {
width: 100%;
margin: auto;
max-width: 600px;
display: flex;
flex-flow: row nowrap;
justify-content: center;
gap: .25rem;
}
input {
flex-grow: 1;
max-width: calc(80% - .25rem);
}
button {
width: 20%;
}
input,
button {
border-radius: 10px;
padding: .5rem;
}
.chat-display {
background-color: #333;
list-style-type: none;
width: 100%;
max-width: 600px;
border-radius: 10px;
margin: 1rem auto;
padding: 0;
display: flex;
flex-flow: column;
justify-content: left;
overflow: auto;
flex-grow: 1;
}
.post {
background-color: #eee;
border-radius: 10px;
padding: 0 0 .25rem;
margin: .5rem;
overflow: hidden;
flex-shrink: 0;
}
.post--left {
width: 60%;
align-self: flex-start;
}
.post--right {
width: 60%;
align-self: flex-end;
}
.post__header {
color: #fff;
padding: .25rem .5rem;
display: flex;
justify-content: space-between;
align-items: center;
gap: .5rem;
}
.post__header--user {
background-color: blue;
}
.post__header--reply {
background-color: purple;
}
.post__header--name {
font-weight: bold;
}
.post__header--time {
font-size: .8rem;
}
.post__text {
margin-top: 5px;
color: #333;
padding: .25rem .5rem;
}
.user-list,
.room-list,
.activity {
width: 100%;
min-height: 2.65rem;
margin: 0 auto;
max-width: 600px;
padding: .75rem .25rem;
}
.activity {
font-style: italic;
}