diff --git a/tests_hugo/chat_nest/chat_client/chat.css b/tests_hugo/chat_nest/chat_client/chat.css deleted file mode 100644 index f0633ed2..00000000 --- a/tests_hugo/chat_nest/chat_client/chat.css +++ /dev/null @@ -1,197 +0,0 @@ - -/* global settings */ -.chat_box { - /* - */ - --chat_box_width: 300px; - --chat_box_height: 400px; - - --top_bar_height: 30px; - --bottom_bar_height: 40px; -} - -/* */ -.chat_box, -.chat_box * { - /* - */ - display: flex; - flex-direction: column; - position: relative; - margin: auto; - padding: 0px; - box-sizing: border-box; -} - -/* */ -.chat_box { - /* - width: 0px; - height: 0px; - */ - position: fixed; - bottom: 20px; - right: 20px; - justify-content: flex-end; - - width: var(--chat_box_width); - height: var(--chat_box_height); - border: 1px solid green; -} - -/* */ -.chat_box .chat_main_button { - /* - */ - position: absolute; - top: auto; - right: 0px; - bottom: 0px; - - padding: 10px; - border-radius: 3px; - background-color: rgb(128, 128, 128); - cursor: pointer; -} - -/* */ -.chat_box .chat_main_button_title { - /* - */ - margin: 0px; - color: rgb(230, 230, 230); - text-size: 20px; - font-weight: 700; -} - -/* */ -.chat_box .chat_main_button:hover { - /* - */ - background-color: rgb(108, 108, 108); -} - -/* */ -.chat_box .chat_main_button:active { - /* - */ - background-color: rgb(128, 128, 128); - box-shadow: 0px 0px 5px rgb(108, 108, 108) inset; -} - - - - - -/** - * when input is checked - * box grow to become the chat box - * label move to become a little _ on top right to close the box - */ - -/* grow the box */ -input#chat_main_button_input:checked + -.chat_box { - /* - */ - width: var(--chat_box_width); - height: var(--chat_box_height); - border: 1px solid rgb(128, 128, 128); -} - -/* transform chat button into little - in top right corner */ -input#chat_main_button_input:checked + -.chat_box .chat_main_button { - /* - */ - top: 0px; - right: 0px; - bottom: auto; - - padding: 0px; - height: var(--top_bar_height); - width: 30px; - box-shadow: none; - border-radius: 0px; - background-color: transparent; - border: none; - - border: 1px solid green; -} -/* design the little - */ -input#chat_main_button_input:checked + -.chat_box .chat_main_button::before { - /* - */ - content: ""; - position: absolute; - left: calc((100% - 20px) / 2); - top: 50%; - transform: translateY(-50%); - height: 2px; - width: 20px; - max-width: 100%; - background-color: rgb(98, 98, 98); -} - -/* hide the "chat" button text */ -input#chat_main_button_input:checked + -.chat_box .chat_main_button_title { - /* - */ - display: none; -} - - - - - - -/** - * chat area is composed of - * post message area - * and view message area - */ - -/* */ -.chat_box .view_messages_area { - /* - */ - width: 100%; - height: calc(100% - var(--top_bar_height) - var(--bottom_bar_height)); - padding: 0px; - margin: 0px; - - border: 1px solid red; -} - -/* */ -.chat_box .post_message_area { - /* - */ - flex-direction: row; - width: 100%; - height: var(--bottom_bar_height); - margin: 0px; - - border: 1px solid orange; -} - - - - - - -/** - * chat area is composed of - * post message area - * and view message area - */ - -/* */ -.chat_box { - /* - */ -} - - diff --git a/tests_hugo/chat_nest/chat_client/chat.html b/tests_hugo/chat_nest/chat_client/chat.html new file mode 100644 index 00000000..1764a11b --- /dev/null +++ b/tests_hugo/chat_nest/chat_client/chat.html @@ -0,0 +1,60 @@ + + +
+ + + + + + + + + +