-
Notifications
You must be signed in to change notification settings - Fork 0
/
cljs-chat.css
90 lines (77 loc) · 1.54 KB
/
cljs-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
.mzero-chat {
--mzc-height: 33em;
--mzc-width: 27em;
margin: 0.5em;
width: var(--mzc-width);
height: var(--mzc-height);
padding: 0 0.5em 0.5em;
border: thin black solid;
border-radius: 8px;
position: relative;
}
.mzero-chat .messages {
overflow: auto;
height: calc(var(--mzc-height) - 3em);
padding-top: 0.2em;
border-bottom: thin black solid;
padding-right: 0.5em;
}
.mzero-chat div.me,
.mzero-chat div.you {
margin-bottom: 0.35em;
}
.mzero-chat div.me {
text-align: right;
}
.mzero-chat div.you {
text-align: left;
}
.mzero-chat .messages div.you > div,
.mzero-chat .messages div.me > div {
border-radius: 10px;
display:inline-block;
max-width: 70%;
padding: 0.2em 0.5em 0.2em;
}
.mzero-chat div.you > div {
background-color: #fcc;
}
.mzero-chat div.me > div {
background-color: #ccf;
}
.new-message {
position: absolute;
bottom: 0%;
padding-bottom: 0.5em;
width: 100%;
text-align: left;
}
.new-message input {
width: 75%;
margin-right: 1em;
padding-left: 0.5em;
border-radius: 8px;
}
.new-message button.btn {
position: absolute;
right: 1em;
border-radius: 8px;
padding: 0.15rem 0.75rem;
}
/* Works on Firefox */
* {
scrollbar-width: thin;
scrollbar-color: black grey;
}
/* Works on Chrome, Edge, and Safari */
*::-webkit-scrollbar {
width: 3px;
}
*::-webkit-scrollbar-track {
background: #0000;
}
*::-webkit-scrollbar-thumb {
background-color: black;
border-radius: 10px;
border: 1px solid grey;
}