-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
153 lines (153 loc) · 2.72 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
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
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap');
:root {
--msger-bg: #fff;
--left-msg-bg: #3486ff;
--right-msg-bg: #ececec;
background-color: #070d2d ;
}
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
margin: 0;
padding: 0;
box-sizing: inherit;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-image: var(--body-bg);
font-family: "Source Sans Pro", sans-serif;
}
.msger {
display: flex;
flex-flow: column wrap;
justify-content: space-between;
width: 100%;
max-width: 55rem;
margin: 25px 10px;
border-radius: 10px;
height: calc(100% - 100px);
background: var(--msger-bg);
box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2);
}
.msger-header {
display: flex;
justify-content: center;
padding: 10px;
border-radius: 10px 10px 0px 0px;
background: #546ee5;
color: #fff;
}
.msger-header-title{
display: flex;
align-items: center;
}
.msger-header-title img{
height: 2.5rem;
width: auto;
}
.msger-header-title p{
letter-spacing: 1px;
font-size: 1.8rem;
font-weight: bold;
}
.msger-chat {
flex: 1;
overflow-y: auto;
padding: 10px;
}
.msger-chat::-webkit-scrollbar {
width: 6px;
}
.msger-chat::-webkit-scrollbar-track {
background: #ddd;
}
.msger-chat::-webkit-scrollbar-thumb {
background: #bdbdbd;
border-radius: 10px;
}
.msg {
display: flex;
align-items: flex-end;
margin-bottom: 10px;
}
.msg:last-of-type {
margin: 0;
}
.msg-img {
width: 60px;
height: 60px;
margin-right: 10px;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
border-radius: 50%;
}
.msg-bubble {
max-width: 350px;
padding: 15px;
border-radius: 15px;
background: var(--left-msg-bg);
}
.msg-info {
display: flex;
justify-content: space-between;
align-items: center;
}
.msg-info-name {
margin-right: 10px;
font-weight: bold;
}
.msg-info-time {
font-size: 0.85em;
}
.left-msg .msg-bubble {
color: #fff;
border-bottom-left-radius: 0;
}
.right-msg {
flex-direction: row-reverse;
}
.right-msg .msg-bubble {
background: var(--right-msg-bg);
color: #000;
border-bottom-right-radius: 0;
}
.right-msg .msg-img {
margin: 0 0 0 10px;
}
.msger-inputarea {
display: flex;
padding: 10px;
background: #6dccb0;
border-radius: 0px 0px 10px 10px;
}
.msger-inputarea * {
padding: 5px;
border: none;
border-radius: 3px;
font-size: 1em;
}
.msger-input {
flex: 1;
background: transparent;
color: #fff;
outline: none;
border: 1px solid rgba(255, 255, 255, 0.7);
border-radius: 40px;
}
.msger-send-btn {
margin-left: 10px;
background: transparent;
color: #fff;
font-size: 1.5rem;
cursor: pointer;
}
.msger-chat {
background-color: #fff3f3;
}