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

layout_search-bar-airbnb #4460

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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://SerhiiSemennikov.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://SerhiiSemennikov.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
33 changes: 23 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,30 @@
href="style.css"
/>
</head>

<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
<form
class="searchbar"
data-qa="big"
>
<input
type="text"
data-qa="keypress"
class="big__searchbar"
placeholder="Try “Los Angeles“"
/>
</form>

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<form
class="searchbar"
data-qa="small"
>
<input
type="text"
data-qa="hover"
class="small__searchbar"
placeholder="Try “Los Angeles“"
/>
</form>
</body>
</html>
90 changes: 90 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,91 @@
/* add styles here */

@font-face {
font-family: AvenirBook;
src: url('fonts/Avenir-Book.ttf');
}

@font-face {
font-family: AvenirHeavy;
src: url('fonts/Avenir-Heavy.ttf');
}

@font-face {
font-family: Avenir;
src: url('fonts/Avenir.ttc');
}

body {
margin: 20px;
}

.searchbar {
margin-top: 20px;
}

input {

Choose a reason for hiding this comment

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

Use only class selector

border: 1px solid #e1e7ed;
box-shadow: 0 1px 8px 0 #3d4e611a;
box-sizing: border-box;
border-radius: 4px;
font-weight: 300;
font-size: 16px;
color: #3d4e61;
}

.big__searchbar {
width: 900px;
height: 70px;
line-height: 22px;
padding-left: 62px;
background-image: url('images/Search.svg');
background-repeat: no-repeat;
background-size: 19px 19px;
background-position: 26px 25px;
}

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

.big__searchbar:focus {
font-family: AvenirHeavy, sans-serif;
box-shadow: 0 4px 4px 0 #53484840;
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
}

.small__searchbar {
height: 42px;
width: 427px;
line-height: 20px;
font-size: 14px;
padding-left: 33px;
background-image: url('images/Search.svg');
background-repeat: no-repeat;
background-size: 11px 11px;
background-position: 13px 15px;
font-weight: 400;
}

.small__searchbar:hover {
box-shadow: 0 3px 8px 0 #3d4e6133;
}

.small__searchbar:focus {
font-family: AvenirHeavy, sans-serif;
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
}

:focus::placeholder {
color: transparent;
}

.big__searchbar::placeholder {
color: #3d4e61;
font-family: Avenir, sans-serif;
}

.small__searchbar::placeholder {
color: #3d4e61;
font-family: Avenir, sans-serif;
}
Loading