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

add solution #4612

Open
wants to merge 1 commit 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
12 changes: 6 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ ___

❗️ 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://AndriiBruss.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://AndriiBruss.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.

- [ ] Icon implemented using background-image CSS property
- [ ] Inputs are written inside of 'form' tag with correctly passed attributes
- [ ] All `Typical Mistakes` from `BEM` lesson theory are checked.
- [ ] Code follows all the [Code Style Rules ❗️](./checklist.md)
- [x] Icon implemented using background-image CSS property
- [x] Inputs are written inside of 'form' tag with correctly passed attributes
- [x] All `Typical Mistakes` from `BEM` lesson theory are checked.
- [x] Code follows all the [Code Style Rules ❗️](./checklist.md)
31 changes: 21 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,27 @@
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
<form
class="search-bar search-bar--big"
data-qa="big"
>
<input
class="search-bar__input search-bar__input--big"
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
</form>

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<form
class="search-bar search-bar--small"
data-qa="small"
>
<input
class="search-bar__input search-bar__input--small"
type="search"
placeholder="Try “Los Angeles“"
/>
</form>
</body>
</html>
93 changes: 92 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,92 @@
/* add styles here */
@font-face {
font-family: Avenir;
src: url(fonts/Avenir-Book.ttf);
font-style: normal;
font-weight: 300;
}

@font-face {
font-family: Avenir;
src: url(fonts/Avenir-Heavy.ttf);
font-style: normal;
font-weight: 800;
}

body {
color: #3d4e61;
font-family: Avenir, sans-serif;
}

.search-bar {
box-sizing: border-box;
border: 1px solid #e1e7ed;
border-radius: 4px;
width: 100%;
margin-top: 20px;
box-shadow: 0 1px 8px #3d4e611a;
}

.search-bar__logo {
width: 19px;
height: 19px;
padding-left: 26px;
top: 25px;
}

.search-bar__logo--small {
width: 11px;
height: 11px;
padding-left: 13px;
top: 15px;
}

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

.search-bar__input {
box-sizing: border-box;
background-image: url(images/Search.svg);
background-repeat: no-repeat;
border: none;
width: 100%;
font-family: inherit;
}

.search-bar__input::placeholder {
color: #3d4e61;
font-size: 16px;
}

.search-bar__input:focus {
color: #3d4e61;
outline: none;
font-weight: 800;
}

.search-bar__input--small::placeholder {
font-size: 14px;
font-weight: 400;
}

.search-bar__input--small {
background-position: 13px;
background-size: 11px 11px;
padding: 11px 33px;
}

.search-bar__input--big {
background-position: 26px;
background-size: 19px 19px;
padding: 26px 62px 22px;
}

.search-bar--big {
height: 70px;
box-shadow: 0 1px 8px #3d4e611a;
}

.search-bar--small {
text-shadow: 0 4px 4px #00000040;
height: 42px;
}
Loading