From 21f6f86d722dc07459f63ee0c3a0287534a1c68a Mon Sep 17 00:00:00 2001 From: anhkha2003 Date: Mon, 25 Sep 2023 01:57:07 -0500 Subject: [PATCH] Update Chat Mobile --- resources/base.scss | 13 ++++++-- resources/chatbox.scss | 22 +++--------- resources/contest.scss | 2 +- resources/vars.scss | 1 + templates/chat/chat.html | 13 ++------ templates/chat/chat_css.html | 17 ++++++---- templates/chat/chat_js.html | 46 ++++++++++++-------------- templates/chat/user_online_status.html | 3 ++ 8 files changed, 54 insertions(+), 63 deletions(-) diff --git a/resources/base.scss b/resources/base.scss index 70ad269..3ec3602 100644 --- a/resources/base.scss +++ b/resources/base.scss @@ -182,6 +182,9 @@ header { cursor: pointer; padding: 3.5px; } + img { + border-radius: 50%; + } } #nav-shadow { @@ -539,7 +542,11 @@ math { @media (max-width: 799px) { #navigation { - height: 36px; + height: $navbar_height_mobile; + } + + #content { + margin-top: $navbar_height_mobile; } #navicon { @@ -637,11 +644,11 @@ math { } #chat-icon { - color: $theme_color; + color: darkgreen; } #chat-icon:hover { - color: green; + color: $theme_color; } #nav-lang-icon { diff --git a/resources/chatbox.scss b/resources/chatbox.scss index bfbfd0a..e4b3264 100644 --- a/resources/chatbox.scss +++ b/resources/chatbox.scss @@ -115,21 +115,6 @@ position: relative; z-index: 100; } -#refresh-button { - padding: 0; - margin-left: auto; - margin-right: 0.3em; - background: transparent; - border: none; - height: 1.5em; - width: 1.5em; -} -#refresh-button:hover { - background: lightgreen; - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - transition: 1.5s ease-in-out; -} .status-pic { height: 32px; width: 32px; @@ -186,10 +171,11 @@ color: white; } .chat-input-icon { - color: $theme_color; + color: white; + background-color: #3c8262; } .chat-input-icon:hover { - background: lightgray; + background: #57b28b; } .chat { .active-span { @@ -233,6 +219,6 @@ @media (max-width: 799px) { #chat-area { - height: calc(100vh - 120px); + height: calc(100vh - $navbar_height_mobile); } } diff --git a/resources/contest.scss b/resources/contest.scss index 2bc2ab1..cfdd478 100644 --- a/resources/contest.scss +++ b/resources/contest.scss @@ -1,7 +1,7 @@ @import "vars"; .list-contest { - box-shadow: 0px 4px 8px rgba(4, 83, 67, 0.2), 0px 6px 20px rgba(4, 83, 67, 0.19); + box-shadow: 0px 1px 2px lightgrey, 0px 1px 5px lightgrey; border-radius: 15px; padding: 20px; margin-bottom: 20px; diff --git a/resources/vars.scss b/resources/vars.scss index ba1c0bf..70c30a6 100644 --- a/resources/vars.scss +++ b/resources/vars.scss @@ -12,3 +12,4 @@ $table_header_rounding: 6px; $monospace-fonts: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace; $navbar_height: 50px; +$navbar_height_mobile: 36px; diff --git a/templates/chat/chat.html b/templates/chat/chat.html index 5a4ed07..df6b0ca 100644 --- a/templates/chat/chat.html +++ b/templates/chat/chat.html @@ -59,17 +59,8 @@ {% block body %}
- -
-