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 task solution #4432

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

<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<form
action="#"
data-qa="small"
>
<input
class="serch-bar serch-bar--small"
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
</form>
</body>
</html>
73 changes: 72 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,72 @@
/* add styles here */
* {
box-sizing: border-box;
}

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

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

.serch-bar {
display: flex;
flex-direction: column;
margin-top: 20px;
font-family: Avenir, sans-serif;
width: 100%;
border: 1px solid #e1e7ed;
border-radius: 4px;
}

.serch-bar::placeholder {
color: #3d4e61;
}

.serch-bar:active {
font-family: Avenir-bold, sans-serif;
outline: none;

Choose a reason for hiding this comment

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

You can set main font family to the html or body tag

Copy link
Author

Choose a reason for hiding this comment

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

You can set main font family to the html or body tag

Вони чомусь не наслідувались, хіба треба було прописувати через inherit

}

.serch-bar--big {
height: 70px;
padding-left: 62px;
background: url(./images/Search.svg) no-repeat left 26px center / 19px;
font-size: 16px;
box-shadow: 0 1px 8px 0 #3d4e611a;
}

.serch-bar--big:hover {
box-shadow: 0 4px 4px 0 #00000040;
}

.serch-bar--big:focus {
background:
url(./images/Search.svg) no-repeat left 26px center / 19px 19px,
linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
text-shadow: 0 4px 4px 0 #00000040;
}

.serch-bar--small {
height: 42px;
padding-left: 33px;
background: url(./images/Search.svg) no-repeat left 13px center / 11px 11px;
font-family: Avenir, sans-serif;
font-size: 14px;
box-shadow: 0 1px 8px 0 #3d4e611a;
}

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

.serch-bar--small:focus {
background:
url(./images/Search.svg) no-repeat left 13px center / 11px,
linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
}
Loading