From fa554ef6e83c6ecbaef3b69e951f41482fb1ee71 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Sat, 1 Apr 2023 16:39:21 +0200 Subject: [PATCH] simple chat css --- truthinquiry/static/css/game_ui_game.css | 38 +++++++++++++++--------- truthinquiry/templates/game.html | 2 +- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/truthinquiry/static/css/game_ui_game.css b/truthinquiry/static/css/game_ui_game.css index a3d77c8..1801346 100644 --- a/truthinquiry/static/css/game_ui_game.css +++ b/truthinquiry/static/css/game_ui_game.css @@ -353,10 +353,11 @@ background-color: #000000d0; /* chat */ /* Button used to open the chat form - fixed at the bottom of the page */ .open-button { - background-color: #555; - color: white; + background-color: #000000dd; + color: var(--game-dark-gold); padding: 16px 20px; - border: none; + border: var(--game-dark-gold) solid; + border-radius: 1em; cursor: pointer; opacity: 0.8; position: fixed; @@ -370,17 +371,20 @@ background-color: #000000d0; display: none; position: fixed; bottom: 0; - color: #555; + color: var(--game-dark-gold); right: 15px; - border: 3px solid #f1f1f1; z-index: 9; + border: solid black 1px; + border-radius: 1em; } /* Add styles to the form container */ .form-container { max-width: 300px; padding: 10px; - background-color: white; + border: solid var(--game-dark-gold); + border-radius: 1em; + background-color: black; } /* Full-width textarea */ @@ -395,17 +399,21 @@ background-color: #000000d0; } /* When the textarea gets focus, do something */ -.form-container textarea:focus { - background-color: #ddd; +#chat_message_box{ + background-color: #505050; outline: none; + margin: 10px; +} +.message{ + list-style-type: none } - /* Set a style for the submit/send button */ .form-container .btn { - background-color: #04AA6D; - color: white; + background-color: black; + color: #04AA6D; padding: 16px 20px; - border: none; + border: #04AA6D solid; + border-radius: 1em; cursor: pointer; width: 100%; margin-bottom:10px; @@ -414,10 +422,12 @@ background-color: #000000d0; /* Add a red background color to the cancel button */ .form-container .cancel { - background-color: red; + background-color: black; + color: red; + border-color: red; } /* Add some hover effects to buttons */ .form-container .btn:hover, .open-button:hover { - opacity: 1; + opacity: 1; } \ No newline at end of file diff --git a/truthinquiry/templates/game.html b/truthinquiry/templates/game.html index 335108b..002e2ad 100644 --- a/truthinquiry/templates/game.html +++ b/truthinquiry/templates/game.html @@ -50,7 +50,7 @@ - +