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

implemented solution #4344

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@mate-academy/backstop-config": "latest",
"@mate-academy/bemlint": "latest",
"@mate-academy/linthtml-config": "latest",
"@mate-academy/scripts": "^1.7.3",
"@mate-academy/scripts": "^1.8.1",
"@mate-academy/stylelint-config": "latest",
"backstopjs": "6.2.2",
"jest": "^29.7.0",
Expand Down
32 changes: 22 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,28 @@
/>
</head>
<body>
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
<form
class="form"
data-qa="big"
>
<input
class="search-bar search-bar--big"
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
</form>

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

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

body {
font-family: Avenir-Book, sans-serif;
}

.form {
margin-top: 20px;
}

.search-bar {
background-image: url('./images/Search.svg');
background-repeat: no-repeat;
border: 1px solid #e1e7ed;
border-radius: 4px;
box-sizing: border-box;
box-shadow: 0 1px 8px 0 #3d4e611a;
color: #3d4e61;
font-family: inherit;
width: 100%;
}

.search-bar--big {
background-position: 26px;
background-size: 19px;
font-size: 16px;
height: 70px;
padding-left: 62px;
}

.search-bar--small {
background-position: 13px;
background-size: 11px;
color: #3d4e61;
font-size: 14px;
height: 42px;
line-height: 20px;
padding-left: 33px;
}

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

.search-bar:focus {
border-radius: 3px;
box-shadow: 0 4px 4px 0 #00000040;
text-shadow: 0 4px 4px #00000040;
font-weight: 800;
outline: none;
}

.search-bar::placeholder {
color: #3d4e61;
font-family: inherit;
font-size: 16px;
font-weight: 300;
text-shadow: none;
}

.search-bar--small::placeholder {
color: #3d4e61;
font-family: inherit;
font-size: 14px;
font-weight: 300;
text-shadow: none;
}
Loading