diff options
author | marvin-borner@live.com | 2018-04-14 12:17:22 +0200 |
---|---|---|
committer | marvin-borner@live.com | 2018-04-14 12:17:22 +0200 |
commit | e3b1cabdd370b452a77c0a0248c69f0c292a9e72 (patch) | |
tree | fff960d8e15e629def09932e1cabe591fc13b46b /assets/css/main.css | |
parent | 2af483f225ca3c4f9baea3a0c2287fcda2524aa7 (diff) |
Chat design improvements
Diffstat (limited to 'assets/css/main.css')
-rw-r--r-- | assets/css/main.css | 52 |
1 files changed, 49 insertions, 3 deletions
diff --git a/assets/css/main.css b/assets/css/main.css index 47a8141..f84bcf5 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -32,6 +32,11 @@ body { height: 100%;
}
+::-webkit-scrollbar {
+ width: 0;
+ background: transparent;
+}
+
hr {
width: 100%;
display: block;
@@ -51,6 +56,7 @@ FLICKITY .carousel-cell {
width: 100%;
+ height: calc(100vh - 75px);
height: -moz-calc(100vh - 75px);
height: -webkit-calc(100vh - 75px);
height: -o-calc(100vh - 75px);
@@ -100,11 +106,16 @@ CHAT WINDOW **********/
.ChatWindow {
position: relative;
- margin: 5px;
height: 100%;
+ margin: 5px;
}
.ChatMessages {
+ overflow-y: scroll;
+ max-height: calc(100% - 135px); /* navbar + input + some margin*/
+ max-height: -moz-calc(100% - 135px);
+ max-height: -webkit-calc(100% - 135px);
+ max-height: -o-calc(100% - 135px);
height: 100%;
width: 100%;
}
@@ -112,17 +123,28 @@ CHAT WINDOW .ChatMessage {
display: block;
position: relative;
- border-radius: 25px;
- min-width: 100px;
+ min-width: 50px;
max-width: 50%;
width: auto;
height: auto;
word-wrap: break-word;
+ text-align: center;
padding: 10px;
}
.ServerChatMessage {
+ display: inline-block;
+ position: relative;
+ left: 50%;
+ transform: translateX(-50%);
text-align: center;
+ padding: 5px;
+ -webkit-border-radius: 25px;
+ -moz-border-radius: 25px;
+ border-radius: 25px;
+ background: linear-gradient(to right, #ad4eff, #7c41f9);
+ color: #FFF;
+ font-size: x-small;
}
.MessageSent {
@@ -130,6 +152,30 @@ CHAT WINDOW background-color: #12213b;
}
+.AloneMessage {
+ -webkit-border-radius: 25px;
+ -moz-border-radius: 25px;
+ border-radius: 25px;
+}
+
+.TopMessage {
+ -webkit-border-radius: 25px 25px 10px 10px;
+ -moz-border-radius: 25px 25px 10px 10px;
+ border-radius: 25px 25px 10px 10px;
+}
+
+.MiddleMessage {
+ -webkit-border-radius: 10px;
+ -moz-border-radius: 10px;
+ border-radius: 10px;
+}
+
+.BottomMessage {
+ -webkit-border-radius: 10px 10px 25px 25px;
+ -moz-border-radius: 10px 10px 25px 25px;
+ border-radius: 10px 10px 25px 25px;
+}
+
.MessageReceived {
float: left;
background-color: #13223c;
|