-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 #4738
base: master
Are you sure you want to change the base?
add task solution #4738
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm test | ||
- name: Upload HTML report(backstop data) | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: report | ||
path: backstop_data |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,23 +10,37 @@ | |
http-equiv="X-UA-Compatible" | ||
content="ie=edge" | ||
/> | ||
|
||
<title>Document</title> | ||
|
||
<link | ||
rel="stylesheet" | ||
href="style.css" | ||
/> | ||
</head> | ||
<body> | ||
<input | ||
type="text" | ||
data-qa="keypress" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
<form | ||
class="search search__big" | ||
data-qa="big" | ||
> | ||
Comment on lines
+22
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
<input | ||
class="search__input search__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 search__small" | ||
data-qa="small" | ||
> | ||
Comment on lines
+34
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to the previous form, this |
||
<input | ||
class="search__input search__input-small" | ||
type="text" | ||
data-qa="hover" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
</form> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,76 @@ | ||
/* add styles here */ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
:root { | ||
--box-shadow: rgba(61, 78, 97, 0.1); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
--hover-shadow: rgba(61, 78, 97, 0.2); | ||
--border: #e1e7ed; | ||
--placeholder: #3d4e61; | ||
} | ||
|
||
@font-face { | ||
font-family: Avenir; | ||
src: url(fonts/Avenir-Book.ttf) format('truetype'); | ||
font-weight: 300; | ||
} | ||
|
||
@font-face { | ||
font-family: Avenir; | ||
src: url(fonts/Avenir-Heavy.ttf) format('truetype'); | ||
font-weight: bold; | ||
} | ||
|
||
.search { | ||
margin-top: 20px; | ||
} | ||
|
||
.search:hover { | ||
box-shadow: 0 4px 4px 0 var(--hover-shadow); | ||
} | ||
|
||
.search__big { | ||
height: 70px; | ||
} | ||
|
||
.search__small { | ||
height: 42px; | ||
} | ||
|
||
.search__input { | ||
width: 100%; | ||
height: 100%; | ||
font-family: Avenir, sans-serif; | ||
font-weight: 300; | ||
border: 1px solid var(--border); | ||
border-radius: 4px; | ||
background-image: url(images/Search.svg); | ||
background-repeat: no-repeat; | ||
box-shadow: 0 1px 8px 0 var(--box-shadow); | ||
} | ||
|
||
.search__input-big { | ||
background-size: 19px 19px; | ||
background-position: 26px center; | ||
padding-left: 62px; | ||
font-size: 16px; | ||
} | ||
|
||
.search__input-small { | ||
background-size: 11px 11px; | ||
background-position: 13px center; | ||
padding-left: 33px; | ||
font-size: 14px; | ||
} | ||
|
||
.search__input::placeholder { | ||
color: var(--placeholder); | ||
} | ||
|
||
.search__input:focus { | ||
font-family: Avenir, sans-serif; | ||
font-weight: 700; | ||
outline: none; | ||
box-shadow: 0 4px 4px 0 var(--hover-shadow); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
<form>
tag is incorrectly self-closing. In HTML, form elements should not be self-closing. Ensure to open and close the<form>
tag properly.