From 9d4bb85c2d255b97a0bb5f9434b7dbb0c7344234 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Sat, 17 Dec 2022 11:04:29 +0100 Subject: [PATCH] wip mute panel --- tests_hugo/chat_node/chat_client/chat.html | 153 +++++++++++++++++- .../chat_node/chat_client/style/chat_form.css | 40 +++++ .../chat_client/style/layout_mute.css | 2 + 3 files changed, 193 insertions(+), 2 deletions(-) diff --git a/tests_hugo/chat_node/chat_client/chat.html b/tests_hugo/chat_node/chat_client/chat.html index aab91a18..f25c61e0 100644 --- a/tests_hugo/chat_node/chat_client/chat.html +++ b/tests_hugo/chat_node/chat_client/chat.html @@ -237,8 +237,157 @@
- - panel mute +

mute this user for a time :

+
+ + + +
+ + + + + + +
+ +
diff --git a/tests_hugo/chat_node/chat_client/style/chat_form.css b/tests_hugo/chat_node/chat_client/style/chat_form.css index 22475524..148ac85f 100644 --- a/tests_hugo/chat_node/chat_client/style/chat_form.css +++ b/tests_hugo/chat_node/chat_client/style/chat_form.css @@ -63,3 +63,43 @@ } +/* select +*/ +#chat_box .chat_item form label._select { + flex-direction: row; + margin-left: auto; +} +#chat_box .chat_item form select { + margin: auto 0px; +} + + +/* checkbox + + +*/ +#chat_box .chat_item form input[type=checkbox] { + display: none; +} +#chat_box .chat_item form label._checkbox { + margin: 0px 0px 0px auto; + padding-right: 10px; + cursor: pointer; +} +#chat_box .chat_item form label._checkbox::after { + content: ""; + position: absolute; + top: calc(50% - 6px); + right: 0px; + width: 12px; + height: 12px; + border: 2px solid rgb(150, 150, 150); + box-sizing: border-box; + cursor: pointer; +} +#chat_box .chat_item form input[type=checkbox]:checked ++ label._checkbox::after { + background-color: rgb(200, 200, 200); +} + + diff --git a/tests_hugo/chat_node/chat_client/style/layout_mute.css b/tests_hugo/chat_node/chat_client/style/layout_mute.css index 46b649b1..667809f8 100644 --- a/tests_hugo/chat_node/chat_client/style/layout_mute.css +++ b/tests_hugo/chat_node/chat_client/style/layout_mute.css @@ -26,3 +26,5 @@ text-align: center; } + +