diff --git a/website/styles/chat.css b/website/styles/chat.css index 9b836cc..640bb1d 100644 --- a/website/styles/chat.css +++ b/website/styles/chat.css @@ -1,14 +1,22 @@ .chat { text-align: center; + padding-top: 15px; } .chat-history { /*border: solid #845663;*/ width: 80%; height: 500px; - margin: 20px auto; + margin: auto auto; background-color: white; vertical-align: bottom; + overflow-y: scroll; + padding: 5px 0; + border-radius: 10px; +} + +.chat-field { + padding: 15px; } .chat-field input { @@ -22,31 +30,34 @@ .chat-field input[type="submit"] { width: 60px; - + background-color: #845663; + color: white; + padding: 5px; } + .chat-message { width: 100%; - height: 40px; + min-height: 40px; padding-top: 10px; + clear: both; } .chat-message-self, .chat-message-other { + text-align: left; border-radius: 20px; padding: 10px 12px; - min-width: 10%; max-width: 45%; } .chat-message-self { - text-align: right; float: right; + margin-right: 10px; background-color: darkgreen; color: white; } .chat-message-other { - text-align: left; float: left; margin-left: 10px; background-color: aquamarine; diff --git a/website/styles/main.css b/website/styles/main.css index ed8f200..cd0e0f4 100644 --- a/website/styles/main.css +++ b/website/styles/main.css @@ -16,7 +16,7 @@ body { } .content { - margin-top: 95px; + margin-top: 80px; } ::selection { @@ -36,11 +36,6 @@ body { border: 0; } -input[type="submit"], button { - background-color: #845663; - color: white; - padding: 5px; -} input[type="text"] { padding: 5px; diff --git a/website/views/chat.php b/website/views/chat.php index 29e643c..d6e6644 100644 --- a/website/views/chat.php +++ b/website/views/chat.php @@ -13,6 +13,18 @@
+ + + +