From 1188b45c20649361ccac79357b6fa9087df611e5 Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 5 Feb 2025 18:47:30 +0300 Subject: [PATCH] 0.0.150 routes --- static/v2/css/blocks/b_search_routes.css | 73 ++++++++++++++++++- static/v2/css/forms.css | 2 + .../v2/css/pages/p_search_route_results.css | 15 ++++ 3 files changed, 87 insertions(+), 3 deletions(-) diff --git a/static/v2/css/blocks/b_search_routes.css b/static/v2/css/blocks/b_search_routes.css index 5296108..5505d07 100644 --- a/static/v2/css/blocks/b_search_routes.css +++ b/static/v2/css/blocks/b_search_routes.css @@ -13,12 +13,79 @@ gap: 5px; [data-type="location"] { &:first-of-type{ - .w_select_country_header{--select-border-radius: 10px 0 0 10px!important;} + .w_select_country_header{ + --select-border-radius: 10px 0 0 10px; + &.closed{ + --select-border-radius: 10px 0 0 10px; + } + } + } + .w_select_country_header{ + --select-border-radius: 0; + &.closed{ + --select-border-radius: 0; + } } - .w_select_country_header{--select-border-radius: 0!important;} } .w_daterangepicker{ - --range-picker-border-radius: 0 10px 10px 0!important; + --range-picker-border-radius: 0 10px 10px 0; + } + .field_container{ + --label-font-size: 14px; + --label-font-weight: 400; + --label-color: #27242499; + } + @media (max-width: 800px) { + grid-template-columns: repeat(2, 1fr); + [data-type="date"], button { + grid-column: span 2; + height: fit-content; + } + .w_daterangepicker{ + --range-picker-border-radius: 0 0 10px 10px; + } + [data-type="location"][data-name="to_city"] { + .w_select_country_header{ + --select-border-radius: 0 10px 0 0; + &.closed{ + --select-border-radius: 0 10px 0 0; + } + } + } + [data-type="location"][data-name="from_city"] { + .w_select_country_header{ + --select-border-radius: 10px 0 0 0; + &.closed{ + --select-border-radius: 10px 0 0 0; + } + } + } + } + @media (max-width: 576px) { + grid-template-columns: 1fr; + [data-type="date"], button { + grid-column: unset; + height: fit-content; + } + .w_daterangepicker{ + --range-picker-border-radius: 0 0 10px 10px; + } + [data-type="location"][data-name="to_city"] { + .w_select_country_header{ + --select-border-radius: 0 0 0 0; + &.closed{ + --select-border-radius: 0 10px 0 0; + } + } + } + [data-type="location"][data-name="from_city"] { + .w_select_country_header{ + --select-border-radius: 10px 10px 0 0; + &.closed{ + --select-border-radius: 10px 10px 0 0; + } + } + } } } button{ diff --git a/static/v2/css/forms.css b/static/v2/css/forms.css index 31fc3d8..62ca68f 100644 --- a/static/v2/css/forms.css +++ b/static/v2/css/forms.css @@ -35,6 +35,7 @@ display: block; color: var(--label-color); font-weight: var(--label-font-weight); + font-size: var(--label-font-size); &:has(div){ display: flex; align-items: center; @@ -53,6 +54,7 @@ font-family: var(--main-font-family), serif; box-sizing: border-box; outline: none; + min-width: 0; &.dropped{ border: none; outline: none; diff --git a/static/v2/css/pages/p_search_route_results.css b/static/v2/css/pages/p_search_route_results.css index 154d28f..aceff2d 100644 --- a/static/v2/css/pages/p_search_route_results.css +++ b/static/v2/css/pages/p_search_route_results.css @@ -17,7 +17,22 @@ width: calc(100dvw - 40px); } } + @media (max-width: 1440px) { + margin-top: 40px; + } + @media (max-width: 992px) { + grid-template-columns: 20px; + } @media (max-width: 800px) { grid-template-columns: 1fr; } + @media (max-width: 768px) { + margin-top: 40px; + } + @media (max-width: 576px) { + margin-top: 77px; + } + @media (max-width: 360px) { + margin-top: 40px; + } } \ No newline at end of file