From af5ed27902e2bc429ba090ebd8154e889f10bd01 Mon Sep 17 00:00:00 2001 From: borissedw Date: Sun, 13 Aug 2023 15:48:08 +0300 Subject: [PATCH] 0.0.124 --- static/css/styles(boris).css | 61 +++++++++++++---------- static/img/svg/cross.svg | 6 +++ static/js/chat_sockets.js | 2 + templates/blocks/profile/b_subscribe.html | 25 +++------- 4 files changed, 50 insertions(+), 44 deletions(-) create mode 100644 static/img/svg/cross.svg diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index 6d0c6a4..e61ad49 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -1058,34 +1058,41 @@ width: 100%; } -/*.option_list{*/ -/* list-style-image: url("/static/img/svg/galka.svg");*/ -/*}*/ +.option_list{ + list-style-image: url("/static/img/svg/galka.svg"); +} -/*.items_subscribe.select{*/ -/* font-size: 16px;*/ -/* color: #272424;*/ -/* padding-left: 20px;*/ -/* !*position: relative;*!*/ -/* margin: 10px;*/ -/*}*/ +.items_subscribe.select{ + font-size: 16px; + color: #272424; +} -/*.items_subscribe.select:before{*/ -/* content: url(/static/img/svg/galka.svg);*/ -/* position: absolute;*/ -/* !* top: 13px; *!*/ -/* color: #FF613A;*/ -/* display: inline-block;*/ -/* vertical-align: center;*/ -/* padding-right: 20px;*/ -/*}*/ +.items_subscribe.unselected{ + color: #E6E6E6; + font-size: 16px; +} -/*.items_subscribe > text{*/ -/* display: inline-block;*/ -/* padding-left: 4%;*/ -/* width: 93%;*/ -/*}*/ +.items_subscribe.select:before{ + content: url(/static/img/svg/galka.svg); +} -/*.items_subscribe{*/ -/* padding-bottom: 5px;*/ -/*}*/ \ No newline at end of file +.items_subscribe:before{ + color: #FF613A; + display: inline-block; + width: 3%; + vertical-align: top; +} + +.items_subscribe.unselected:before{ + content: url(/static/img/svg/cross.svg); +} + +.items_subscribe > text{ + display: inline-block; + padding-left: 4%; + width: 93%; +} + +.items_subscribe{ + padding-bottom: 5px; +} \ No newline at end of file diff --git a/static/img/svg/cross.svg b/static/img/svg/cross.svg new file mode 100644 index 0000000..5c68b29 --- /dev/null +++ b/static/img/svg/cross.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/static/js/chat_sockets.js b/static/js/chat_sockets.js index c0a10ed..a0b16e0 100644 --- a/static/js/chat_sockets.js +++ b/static/js/chat_sockets.js @@ -60,6 +60,8 @@ chatSocket.onmessage = function (e) { document.querySelector(".enter-message-inp").focus() } else if (data.type === "echo"){ console.log(data) + } else if (data.type === "update_chat"){ + document.querySelector(".container-messages").innerHTML = data.message.html } } diff --git a/templates/blocks/profile/b_subscribe.html b/templates/blocks/profile/b_subscribe.html index 5db236b..6f0451b 100644 --- a/templates/blocks/profile/b_subscribe.html +++ b/templates/blocks/profile/b_subscribe.html @@ -35,23 +35,14 @@ Опции:
-
-
- -
-
- Просмотр контактов -
-
-
-{# #} +