From 05ce9a22ad59228cfe949c533deab3c986746267 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Fri, 11 Aug 2023 14:33:09 +0300 Subject: [PATCH] 0.0.87 --- static/css/styles.css | 47 ++++++++++++++++++++++++--------------- static/js/user_profile.js | 5 ++++- 2 files changed, 33 insertions(+), 19 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index d75fcee..36b024f 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1145,28 +1145,37 @@ input#id_extra_phone appearance: none; } -/*.info_profile>label{*/ -/* font-family: Inter;*/ -/* font-size: 16px;*/ -/* font-style: normal;*/ -/* font-weight: 500;*/ -/* line-height: 22px;*/ + +.checkbox_cargo_type{ + display: flex; + flex-wrap: wrap; +} +.width{ + width: 90%; +} +.checkbox_cargo_type.width{ + display: flex; + flex-wrap: wrap; +} +.checkbox_cargo_type>div{ + min-width: 300px; +} + + +/*.checkbox_cargo_type>div:nth-child(1){*/ +/* flex-shrink: 1;*/ /*}*/ -/*.checkbox_cargo_type{*/ -/* display: block;*/ -/* !*flex-wrap: wrap;*!*/ +/*.checkbox_cargo_type>div:nth-child(2){*/ +/* flex-shrink: 1;*/ /*}*/ -/*.checkbox_cargo_type>div{*/ -/* column-count: 2;*/ -/* max-width: 330px;*/ -/* width: 100%;*/ -/* margin-bottom: 10px;*/ +/*.checkbox_cargo_type>div:nth-child(3){*/ +/* flex-shrink: 1;*/ /*}*/ -/*.checkbox_cargo_type>div>input{*/ -/* display: block;*/ +/*.checkbox_cargo_type>div:nth-child(4){*/ +/* flex-shrink: 1;*/ /*}*/ -/*.checkbox_cargo_type>div>label{*/ -/* display: block;*/ +/*.checkbox_cargo_type>div:nth-child(5){*/ +/* flex-shrink: 1;*/ /*}*/ @@ -1175,6 +1184,8 @@ input#id_extra_phone + + /*input#id_cargo_type{*/ /* width: 50%;*/ /*}*/ diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 8d484a6..603e7be 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -400,7 +400,10 @@ function OnSelectionChange(el) { // location.href = '/profile' document.querySelector(".info_profile").innerHTML = data.html // - + let checkbox_width = document.querySelector('.checkbox_cargo_type'); + if(checkbox_width.childElementCount === 4){ + checkbox_width.classList.add('width') + } sliderInit(); }