From b95aa49c32f9101e36ebb51fef08986fe79599ac Mon Sep 17 00:00:00 2001 From: Lars van Hijfte Date: Thu, 12 Jan 2017 14:59:29 +0100 Subject: [PATCH] Styled chat page Change the chat tap so it has the same style as the rest of the page --- website/styles/chat.css | 27 ++++++++++++++++++++------- website/views/chat-view.php | 16 +++++++++------- 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/website/styles/chat.css b/website/styles/chat.css index d76e964..7df2169 100644 --- a/website/styles/chat.css +++ b/website/styles/chat.css @@ -19,9 +19,7 @@ } .chat-recent, .chat-history { - border-radius: 20px; width: 100%; - background-color: white; } /* List of chats. */ @@ -47,7 +45,7 @@ .chat-history { overflow-y: auto; height: 100%; - padding-bottom: 10px; + padding: 0 0 10px 0; } .chat-message { @@ -80,20 +78,35 @@ /* Chat reply field */ .chat-field { - padding: 15px; + width: 100%; + padding: 15px 0; + display: table; } -.chat-field input { - border-radius: 8px; +.chat-field form { + width: 100%; + overflow: hidden; +} + +.chat-field span { + display: block; + overflow: hidden; } .chat-field input[type="text"] { - width: calc(100% - 80px); + width: 100%; + border-top-left-radius: 10px; + border-bottom-left-radius: 10px; + box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); } .chat-field input[type="submit"] { width: auto; + float: right; background-color: #845663; color: white; padding: 5px 10px; + border-top-right-radius: 10px; + border-bottom-right-radius: 10px; + box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); } \ No newline at end of file diff --git a/website/views/chat-view.php b/website/views/chat-view.php index d0a3f53..99a64fc 100644 --- a/website/views/chat-view.php +++ b/website/views/chat-view.php @@ -1,7 +1,7 @@