From 0b326ad853a77032a39851b36ea38fce3f6bd1d0 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Fri, 16 Dec 2022 14:35:46 +0100 Subject: [PATCH] added lock logo to blocked users --- tests_hugo/chat_node/chat_client/chat.html | 87 +++++++++++-------- .../chat_node/chat_client/style/chat.css | 2 +- .../chat_client/style/chat__global.css | 13 --- .../chat_client/style/chat_blocked.css | 39 +++++++++ .../chat_client/style/chat_buttons.css | 12 +++ .../chat_client/style/layout_home.css | 7 -- .../chat_client/style/layout_new.css | 1 + 7 files changed, 105 insertions(+), 56 deletions(-) create mode 100644 tests_hugo/chat_node/chat_client/style/chat_blocked.css diff --git a/tests_hugo/chat_node/chat_client/chat.html b/tests_hugo/chat_node/chat_client/chat.html index 14c2497b..a282f67e 100644 --- a/tests_hugo/chat_node/chat_client/chat.html +++ b/tests_hugo/chat_node/chat_client/chat.html @@ -21,18 +21,18 @@
- - - - - - + + + + + +

create

placeholder

- - - - + + + +

list of your rooms :

-
+

/ you have no chat room yet /

- - - @@ -80,24 +80,24 @@
- +

join room :

-
-
+
+

/ there are no public rooms yet /

- - - - @@ -107,23 +107,20 @@

blocked users :

-
-
-

/ you haven't block any one /

-
+
- - - -
@@ -131,8 +128,28 @@
- - panel room settings + +

room users :

+
+
+

/ there are no public rooms yet /

+
+ + + + + + +
diff --git a/tests_hugo/chat_node/chat_client/style/chat.css b/tests_hugo/chat_node/chat_client/style/chat.css index 511b3ef4..ce53c085 100644 --- a/tests_hugo/chat_node/chat_client/style/chat.css +++ b/tests_hugo/chat_node/chat_client/style/chat.css @@ -21,7 +21,7 @@ cxv @import 'chat_close.css'; @import 'chat_write.css'; @import 'chat_msg.css'; -@import 'chat_room_list.css'; +@import 'chat_blocked.css'; /* @import '_chat_controls.css'; diff --git a/tests_hugo/chat_node/chat_client/style/chat__global.css b/tests_hugo/chat_node/chat_client/style/chat__global.css index e8e26590..4eafe842 100644 --- a/tests_hugo/chat_node/chat_client/style/chat__global.css +++ b/tests_hugo/chat_node/chat_client/style/chat__global.css @@ -45,16 +45,3 @@ } -/* style btn when it's a list -*/ -/* add or remove '._btn' to toggle the hover effect */ -#chat_box .chat_item .__list_btn button { - margin: 0px; - background-color: transparent; -} -#chat_box .chat_item .__list_btn { - background-color: rgb(240, 240, 240); -} - - - diff --git a/tests_hugo/chat_node/chat_client/style/chat_blocked.css b/tests_hugo/chat_node/chat_client/style/chat_blocked.css new file mode 100644 index 00000000..1d000227 --- /dev/null +++ b/tests_hugo/chat_node/chat_client/style/chat_blocked.css @@ -0,0 +1,39 @@ + +/* +https://www.fileformat.info/info/unicode/category/So/list.htm +U+1F512 LOCK 🔒 +U+1F513 OPEN LOCK 🔓 +*/ + +#chat_box .blocked { + padding-left: 30px; +} +#chat_box .blocked::before { + content: ""; + position: absolute; + top: calc(50% - 2px); + left: 10px; + cursor: pointer; + width: 13px; + height: 10px; + border-radius: 2px; + /* + */ + background-color: rgb(110, 110, 110); +} +#chat_box .blocked::after { + content: ""; + position: absolute; + top: calc(50% - 9px); + left: 12px; + cursor: pointer; + width: 9px; + height: 13px; + border-radius: 5px; + box-sizing: border-box; + /* + background-color: red; + */ + border: 3px solid rgb(110, 110, 110); +} + diff --git a/tests_hugo/chat_node/chat_client/style/chat_buttons.css b/tests_hugo/chat_node/chat_client/style/chat_buttons.css index 3f1147f1..2eb5cf94 100644 --- a/tests_hugo/chat_node/chat_client/style/chat_buttons.css +++ b/tests_hugo/chat_node/chat_client/style/chat_buttons.css @@ -20,3 +20,15 @@ background-color: rgb(190, 190, 190); } + +/* style btn when it's a list + add or remove '.btn' to toggle the hover effect +*/ +#chat_box .list_btn button { + margin: 0px; + background-color: transparent; +} +#chat_box .list_btn { + background-color: rgb(240, 240, 240); +} + diff --git a/tests_hugo/chat_node/chat_client/style/layout_home.css b/tests_hugo/chat_node/chat_client/style/layout_home.css index e209f441..3915877a 100644 --- a/tests_hugo/chat_node/chat_client/style/layout_home.css +++ b/tests_hugo/chat_node/chat_client/style/layout_home.css @@ -51,10 +51,3 @@ */ } - -/* button "settings" as 3 dots -*/ -#chat_box.home #chat_api_room_list { - background-color: rgb(240, 240, 240); -} - diff --git a/tests_hugo/chat_node/chat_client/style/layout_new.css b/tests_hugo/chat_node/chat_client/style/layout_new.css index fadb6d6c..c1513e4a 100644 --- a/tests_hugo/chat_node/chat_client/style/layout_new.css +++ b/tests_hugo/chat_node/chat_client/style/layout_new.css @@ -12,6 +12,7 @@ display: flex; } + /* button "new" appearance */ /* add or remove '.chat_item' to toggle the hover effect */