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

Develop #4769

Closed
wants to merge 2 commits into from
Closed

Develop #4769

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://ITguy-star.github.io/layout_search-bar-airbnb/)
- [TEST REPORT LINK](https://ITguy-star.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)
33 changes: 23 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,29 @@
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
<form
action="#"
class="search-form search-form--big"
data-qa="big"
>
<input
type="text"
class="search-form__input search-form__input--big"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
</form>

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<form
action="#"
class="search-form search-form--small"
data-qa="small"
>
<input
type="text"
class="search-form__input search-form__input--small"
placeholder="Try “Los Angeles“"
/>
</form>
</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 */
/* #region Fonts */
@font-face {
font-family: 'Avenir Book';
src: url(./fonts/Avenir-Book.ttf);
font-weight: 300;
}

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

/* #endregion */

/* #region Base Styles */

.search-form {
margin-top: 20px;
}

.search-form__input {
width: 100%;
border: 1px solid #e1e7ed;
box-shadow: 0 1px 8px #3d4e611a;
border-radius: 4px;
font-family: 'Avenir Book', Arial, sans-serif;
font-weight: 300;
color: #3d4e61;
box-sizing: border-box;
}

.search-form__input::placeholder {
color: #3d4e61;
}

/* States */
.search-form__input:hover {
box-shadow: 0 3px 8px #3d4e6133;
}

.search-form__input:focus {
font-family: 'Avenir Heavy', Arial, sans-serif;
font-weight: 700;
outline: none;
text-shadow: 0 4px 4px #00000040;
}

/* #endregion */

/* #region Modifiers */

/* Big Form */
.search-form--big {
margin-top: 20px;
}

.search-form__input--big {
height: 70px;
padding-left: 62px;
background: url(images/Search.svg) no-repeat 26px 25px;
background-size: 18px 18px;
font-size: 16px;
line-height: 22px;
}

/* Small Form */
.search-form--small {
margin-top: 20px;
}

.search-form__input--small {
height: 42px;
padding-left: 33px;
background: url(images/Search.svg) no-repeat 13px 15px;
background-size: 10px 10px;
font-size: 14px;
line-height: 20px;
}

/* #endregion */