Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
oybek committed Aug 23, 2023
1 parent d0daee8 commit bf782e8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
6 changes: 4 additions & 2 deletions avtokg/search/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@
/>

<label for="price">Цена в $</label>
<input type="number" id="price-min" name="price-min" placeholder="От" />
<input type="number" id="price-max" name="price-max" placeholder="До" />
<div class="input-group">
<input type="number" id="price-min" name="price-min" class="input" placeholder="От" />
<input type="number" id="price-max" name="price-max" class="input" placeholder="До" />
</div>

<label for="city">Город</label>
<select id="city" name="city"></select>
Expand Down
37 changes: 25 additions & 12 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ textarea {
}

input[type="number"] {
width: 49%;
padding: 12px 20px;
width: 100%;
padding: 2vw;
margin: 2vw 0;
display: inline-block;
border: 1px solid #ccc;
Expand All @@ -34,10 +34,6 @@ input[type="number"] {
width: 100%;
}

input[type="submit"]:hover {
background-color: #45a049;
}

div {
border-radius: 1vw;
background-color: #f2f2f2;
Expand Down Expand Up @@ -65,12 +61,6 @@ div {
border-radius: 0 0 6px 6px;
}

.button-group:after {
content: "";
clear: both;
display: table;
}

.button-group button:not(:last-child) {
border-bottom: none; /* Prevent double borders */
}
Expand All @@ -91,3 +81,26 @@ div {
border: 1px solid #aaa;
background-color: #ccc;
}

.input-group {
margin: 0%;
padding: 3% 0%;
width: 100%;
}

.input-group .input {
border-radius: 0;
margin: 0vw;
}

.input-group .input:first-child {
border-radius: 6px 6px 0 0;
}

.input-group .input:last-child {
border-radius: 0 0 6px 6px;
}

.input-group input:not(:last-child) {
border-bottom: none; /* Prevent double borders */
}

0 comments on commit bf782e8

Please sign in to comment.