Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search bar #4320

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ ___

❗️ Replace `<your_account>` with your Github username and copy the links to `Pull Request` description:

- [DEMO LINK](https://<your_account>.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://<your_account>.github.io/layout_search-bar-airbnb/report/html_report/)
- [DEMO LINK](https:///DmytroPAvlichenko.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https:///DmytroPAvlichenko.github.io/layout_search-bar-airbnb/report/html_report/)

❗️ Copy this `Checklist` to the `Pull Request` description after links, and put `- [x]` before each point after you checked it.

Expand Down
38 changes: 27 additions & 11 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,32 @@
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<div class="large">
<img
class="large__imeges"
src="images/Search.svg"
alt="icons"
/>
<input
class="large__text search__text"
type="text"
data-qa="big"
data="keypress"
placeholder="Try “Los Angeles“"
/>
</div>
<div class="serch">
<img
class="serch__images"
src="images/Search.svg"
alt="icons"
/>
<input
class="small__text search__text"
type="text"
data-qa="small"
placeholder="Try “Los Angeles“"
/>
</div>
</body>
</html>
82 changes: 81 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,81 @@
/* add styles here */
@font-face {
font-family: Avenir;
src: url(fonts/Avenir-Book.ttf);
src: url(fonts/Avenir-Heavy.ttf);
src: url(fonts/Avenir.ttc);
}

* {
font-family: Avenir, Arial, Helvetica, sans-serif;
font-weight: 300px;
box-sizing: border-box;
}

body {
margin-top: 0;
}

.large {
display: flex;
position: relative;
}

.large__imeges {
position: absolute;
width: 19px;
height: 19px;
top: 50%;
left: 26px;
color: #687c94;
}

.large__text {
width: 100%;
height: 70px;
font-size: 16px;
color: #3d4e61;
margin-top: 20px;
padding-left: 62px;

}

.search__text{
border: 1px solid #e1e7ed;
border-radius: 4px;
}
Comment on lines +43 to +44

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this styles can be defined to one general selector which both of inputs have.


.serch {
display: flex;
position: relative;
}

::placeholder {
color: #3d4e61;
}

.small__text {
width: 100%;
height: 42px;
font-size: 14px;
color: #3d4e61;
margin-top: 20px;
padding-left: 33px;
}

.serch__images {
position: absolute;
width: 11px;
height: 11px;
color: #687c94;
top: 57%;
left: 13px;
}

.large__text:hover {
box-shadow: 4px 4px #00000040;
}

.large__text:focus {
box-shadow: 4px 4px #00000040;
text-shadow: 2px 2px #00000040;
}
Loading