-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_chat_style.css
118 lines (117 loc) · 2.36 KB
/
main_chat_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
*{
margin: 0
}
p{
margin: 2pt 0;
}
/*This encloses the message so the messages don't overlap eachother*/
.messagerow{
width: 100%;
overflow: hidden;
margin-top: 0px;
}
/*text bubbles*/
.sentbubble, .recievedbubble{
padding: 10px;
margin: 3px 10px;
border-radius: 15px;
position: relative;
}
.sent, .recieved{
max-width: 80%;
position: relative;
}
.sent{
display: block;
float: right;
}
.recieved{
display: block;
float: left;
}
.recievedbubble{
background-color: #e5e5ea;
color:black;
border-radius: 1.15rem;
line-height: 1.25rem;
padding: 0.5rem .875rem;
}
/*Triangles of the chat bubbles*/
.sentbubble.first:before{
content: "";
height: 0px;
position: absolute;
border-left: 15px solid #248bf5;
border-right: 15px solid transparent;
border-top: 15px solid #248bf5;
border-bottom: 15px solid transparent;
right: -12px;
z-index: -3;
top: 0px;
width: 0px;
}
.recievedbubble.first:before{
width: 0px;
content: "";
left: -13px;
top: 0px;
height: 0px;
z-index: -3;
position: absolute;
border-left: 15px solid transparent;
border-right: 15px solid #e5e5ea;
border-top: 15px solid #e5e5ea;
border-bottom: 15px solid transparent;
}
/*Sent bubble*/
.sentbubble{
text-align: right;
background-color:#248bf5;
color:white;
padding-right: 2.5vw;
}
/* Text formatting for the text bubbles*/
.sentbubble > p, .recievedbubble > p{
padding: 0.4vw;
margin: 0;
word-wrap: break-word;
}
/* Name formatting*/
.name{
font-weight: bold;
font-size: 1.1em;
margin: 10px 0px 0px 0px;
}
/*Differnt contacts/characters colours. Add ".name.[Your character name all in lower case] like seen here, and use a hex code to determine the colour. You can get this codes here: https://www.google.com/search?q=hex+color+picker Other CSS formatting can be used as well.*/
.name.character1{
color: #cb11f9;
}
.name.character2{
color: #f9c63a;
}
.name.character3{
color: #ff0000;
}
/*Timestamps*/
.timesent{
font-size: 0.85em;
color:#e6e6e6
}
.timerecieved{
font-size: 0.85em;
color:#4b4b4b
}
/*Read recipts*/
.status{
text-align: right;
margin: 0;
margin-right: 1em;
}
.check{
margin-right: 0.2em;
}
.seen.check{
letter-spacing: -4pt;
margin-right: 0.45em;
color:rgb(0, 191, 255);
}