This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
chat.css
169 lines (147 loc) · 3.63 KB
/
chat.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
body {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.chat-container {
display: grid;
grid-template-columns: 400px calc(100vw - 400px);
grid-template-rows: calc(100vh - 175px) 100px;
}
#chat-list {
grid-column: 1;
grid-row: 1 / 3;
margin-top: 1rem;
display: flex;
flex-direction: column;
align-items: center;
border-right: solid 1px rgb(177, 176, 176)
}
.chat-list-card {
display: flex;
width: 375px;
height: 100px;
align-items: center;
border-radius: 0.5rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}
.chat-list-profile {
width: 70px;
height: 70px;
margin: 15px;
border-radius: 100%;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 40px;
}
.chat-main, .chat-input {
padding-left: max(30px, calc(50vw - 1085px));
padding-right: calc(50vw - 585px)
}
.chat-main {
grid-row: 1;
grid-column: 2;
}
.chat-input {
border-top: solid 1px rgb(177, 176, 176);
grid-row: 2;
grid-column: 2;
padding-top: 1rem;
white-space: nowrap;
display: none;
}
.textfield {
width: calc(100% - 285px);
transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}
.upload {
display: inline-block;
height: 30px;
width: 150px;
padding: 10px;
font-size: 15px;
border-radius: 54px;
border: solid 2px transparent;
color: white;
background-color: var(--primary-red);
position: relative;
text-align: center;
line-height: 200%;
transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.upload input[type="file"] {
display: none;
}
#chat-submit {
height: 54px;
width: 10%;
padding: 10px;
font-size: 15px;
border-radius: 54px;
border: solid 2px transparent;
font-size: 15px;
color: white;
background-color: var(--primary-red);
transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.chat-list-card:hover, .upload:hover, #chat-submit:hover {
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
cursor: pointer;
}
.textfield:hover, .your-bubble:hover, .their-bubble:hover {
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
#bubble-container {
display: flex;
flex-direction: column-reverse;
overflow-y: auto;
}
.your-bubble {
margin: 4px;
padding: 8px 16px 8px 16px;
margin-left: auto;
max-width: min(90%, calc(50vw - 200px));
display: flex;
align-items: center;
justify-content: center;
border: 2px solid var(--primary-red);
background: white;
color: black;
border-radius: 30px;
transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.their-bubble {
margin: 4px;
padding: 8px 16px 8px 16px;
margin-right: auto;
max-width: min(90%, calc(50vw - 200px));
display: flex;
align-items: center;
justify-content: center;
border: 2px solid rgba(150, 150, 150, 1);
background: white;
color: black;
border-radius: 30px;
transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.your-bubble div, .their-bubble div {
word-break: break-all;
}
form {
display: inline;
}
.select-chat {
color: gray;
position: absolute;
top: 50%;
left: 50%;
transform: translateY(-50%);
font-size: 30px;
}