diff --git a/static/css/styles.css b/static/css/styles.css index d31d5a0..fe6836c 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -180,10 +180,11 @@ header { margin-top: 40px; margin-bottom: 60px; padding: 0px 40px; - display: flex; - justify-content: space-between; + } + + footer { height: 318px; background: #272424; @@ -299,7 +300,6 @@ footer>div { height: 60px; max-width: unset; background: #F8F8F8; - margin-top: -15px; } .sf_first-column{ @@ -412,12 +412,69 @@ footer>div { margin-left: -30px; } -header>div:first-child { - display: flex; +header .header-first { + float: left; align-items: center; - justify-content: space-between; - width: clamp(400px, 50%, 500px); + } +.header-first>div{ + float: left; + margin-right: 40px; +} + +/*.header_menu{*/ +/* display: none;*/ +/* max-height: 200px;*/ +/* width: 100%;*/ +/* position: absolute;*/ +/* background-color: #F8F8F8;*/ +/* overflow: scroll;*/ +/* overflow-x:hidden;*/ + +/*}*/ + + +.dropbtn { + + color: white; + + font-size: 16px; + border: none; +} + +.dropdown { + position: relative; + display: inline-block; +} + +.dropdown-content { + display: none; + position: absolute; + background-color: white; + border-radius: 10px; + width: 250px; + height: 382px; + box-shadow: -1px 4px 10px 0px rgba(198, 199, 203, 0.20), 0px -1px 10px 0px rgba(198, 199, 203, 0.20); + z-index: 1; +} +.dropdown-content.show{ + display:block; +} + +.dropdown-content a { + color: black; + padding: 12px 16px; + text-decoration: none; + display: block; +} + +.dropdown-content a:hover {background-color: #ddd;} + +/*.dropdown:hover .dropdown-content {display: block;}*/ + +/*.dropdown:hover .dropbtn {background-color: #3e8e41;}*/ + + header>div>a { color: #F8F8F8; @@ -427,16 +484,13 @@ header>div>a { font-style: normal; font-weight: 500; line-height: 22px; - display: flex; width: 152px; - height: 44px; - justify-content: center; - align-items: center; - gap: 8px; - flex-shrink: 0; border-radius: 10px; background: #FF613A; - text-decoration: none; + float: left; + text-align: center; + padding-top: 8px; + padding-bottom: 8px; } header>div>div>a { @@ -449,17 +503,26 @@ header>div>div>a { line-height: 22px; } -header>div:last-child { - display: flex; +header .header-second { + float: right; align-items: center; justify-content: space-between; - width: clamp(400px, 50%, 600px); + +} +.header-second>div { + float: left; + align-items: center; + margin-right: 40px; + +} +.header-second>div>img{ + margin-right: 10px; +} +.header-second-item>a{ + color: #00a420; } -header>div:last-child>div:nth-child(2) { - display: flex; - align-items: center; -} + header>div:last-child>div:nth-child(2)>.svg { margin-right: 5px; @@ -1295,6 +1358,9 @@ div.departure_arrival>div>input{ display:inline-block; } + + + .input_list .hide{ display: none; } diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 968ec2c..99f84a7 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -542,6 +542,24 @@ function getRoute(el){ +function showMenu(el, event) { + let menu = document.querySelector('.dropdown-content') + menu.classList.add('show') + + +} +function hideMenu(event) { + let menu = document.querySelector('.dropdown-content') + if(event.currentTarget != event.relatedTarget && event.relatedTarget != null){ + menu.classList.remove('show') + console.log('mouseOUT') + } + +} + + + + diff --git a/templates/blocks/b_header.html b/templates/blocks/b_header.html index 9b48aec..bd939ab 100644 --- a/templates/blocks/b_header.html +++ b/templates/blocks/b_header.html @@ -1,13 +1,33 @@ {% load i18n %}
-
+ -
-
+
+
+ +
Служба поддержки
{% if user.is_authenticated %} +
\ No newline at end of file