-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
102 lines (102 loc) · 1.71 KB
/
style.css
File metadata and controls
102 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
}
body {
color: rgb(236, 236, 241);
background-color: #343541;
font-family: sans-serif;
display: flex;
flex-direction: column;
justify-content: space-between;
}
main {
display: flex;
flex-direction: column;
justify-content: flex-start;
overflow-y: scroll;
}
footer {
width: 100%;
}
footer form {
display: flex;
flex-direction: row;
justify-content: space-between;
}
input {
color: #ececf1;
border-width: 0;
outline: none;
}
button {
border: none;
color: rgb(236,236,241,0.5);
}
input, button, .from-user {
background-color: rgba(0,0,0,0.25);
}
@media (max-width: 768px) {
input {
width: calc(100% - 2.25em);
}
button {
margin-right: 1px;
}
input, button, .message {
padding: 0.5em;
font-size: 18px;
}
}
@media (min-width: 768px) {
input, button {
margin: 1em;
}
button {
margin-left: 0.125em;
}
input {
margin-right: 0.125em;
width: calc(100% - 5.5em);
}
input, button, .message {
padding: 1em;
}
}
.waiting {
color: rgba(236,236,241,0.25);
}
.message {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: flex-start;
column-gap: 1em;
}
.avatar {
width: 1.75em;
height: 1.75em;
border-radius: 0.125rem;
opacity: 0.75;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.from-user .avatar {
background-color: purple;
}
.from-niall .avatar {
background-color: green;
}
.from-user .avatar:before {
content: "U";
}
.from-niall .avatar:before {
content: "N";
}