-
Notifications
You must be signed in to change notification settings - Fork 4k
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
im trying #4540
base: master
Are you sure you want to change the base?
im trying #4540
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 |
---|---|---|
|
@@ -16,17 +16,28 @@ | |
href="style.css" | ||
/> | ||
</head> | ||
<body> | ||
<input | ||
type="text" | ||
data-qa="keypress" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
<body class="body"> | ||
<form | ||
data-qa="big" | ||
action="#" | ||
> | ||
<input | ||
class="search_input_big form" | ||
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 class name |
||
type="text" | ||
data-qa="keypress" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
Comment on lines
+24
to
+29
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 |
||
</form> | ||
|
||
<input | ||
type="text" | ||
data-qa="hover" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
<form | ||
data-qa="small" | ||
action="#" | ||
> | ||
<input | ||
class="search_input_small form" | ||
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 class name |
||
type="text" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
Comment on lines
+35
to
+40
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 |
||
</form> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,101 @@ | ||
/* add styles here */ | ||
@font-face { | ||
font-family: Avenir; | ||
src: url('./fonts/Avenir-Book.ttf'); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
|
||
@font-face { | ||
font-family: Avenir; | ||
src: url('./fonts/Avenir-Heavy.ttf'); | ||
font-weight: bold; | ||
font-style: normal; | ||
} | ||
|
||
@font-face { | ||
font-family: Avenir; | ||
src: url('./fonts/Avenir.ttc'); | ||
font-weight: 400; | ||
font-style: normal; | ||
} | ||
|
||
.body { | ||
font-family: Avenir, Arial, Helvetica, sans-serif; | ||
} | ||
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. Remember to use fallback fonts - alternative font-family in case the main one doesn't work. It is usually a good practice to provide a list of similar fonts that the browser can fall back to in case the primary font fails to load. This ensures that your website will still look good, even if the font files are not available for some reason. 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. Don't use tag names for styling (except |
||
|
||
.form { | ||
font-family: Avenir, Arial, Helvetica, sans-serif; | ||
display: block; | ||
margin-top: 20px; | ||
outline: none; | ||
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. Be consistent with your margins (Add only top or bottom, but not both). To avoid potential margin collapse. Here you've added a |
||
color: #3d4e61; | ||
border: 1px solid #e1e7ed; | ||
border-radius: 4px; | ||
box-shadow: 0 1px 8px 0 #3d4e611a; | ||
width: 100%; | ||
box-sizing: border-box; | ||
} | ||
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. Don't fix container size (if there is no such a requirement). Let the content size dictate it. To avoid overflow or accidental scroll bar. Here, you have set the width of the |
||
|
||
.search_input_big { | ||
font-size: 16px; | ||
background: url(images/Search.svg) no-repeat; | ||
background-size: 19px; | ||
box-sizing: border-box; | ||
background-position: 26px center; | ||
padding-left: 62px; | ||
height: 70px; | ||
background-color: #ffff; | ||
} | ||
|
||
.search_input_small { | ||
font-size: 14px; | ||
box-shadow: 0 1px 8px 0 #3d4e611a; | ||
background: url(images/Search.svg) no-repeat 13px center/11px 11px; | ||
height: 42px; | ||
padding-left: 33px; | ||
} | ||
|
||
.form::placeholder { | ||
color: #3d4e61; | ||
} | ||
|
||
.form:focus { | ||
background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%); | ||
background-image: url(images/Search.svg); | ||
background-repeat: no-repeat; | ||
background-size: contain; | ||
text-shadow: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25)); | ||
} | ||
|
||
.form:hover { | ||
box-shadow: 0 3px 8px 0 #3d4e6133; | ||
background-image: url(images/Search.svg); | ||
background-repeat: no-repeat; | ||
background-position: 26px center; | ||
} | ||
|
||
.search_input_big:focus { | ||
text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); | ||
background: | ||
url(images/Search.svg) no-repeat 26px 25px/19px 19px, | ||
linear-gradient(180deg, transparent, #f6f6f7); | ||
} | ||
|
||
.search_input_big:hover { | ||
background-color: #ffff; | ||
box-shadow: 0 3px 8px 0 #3d4e6133; | ||
} | ||
|
||
.search_input_small:focus { | ||
border: 1px solid #e1e7ed; | ||
text-shadow: none; | ||
background: | ||
url(images/Search.svg) no-repeat 13px center/11px 11px, | ||
linear-gradient(180deg, transparent, #f6f6f7); | ||
} | ||
|
||
.search_input_small:hover { | ||
box-shadow: 0 3px 8px 0 #3d4e6133; | ||
text-shadow: none; | ||
background-position: 13px; | ||
} |
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 class name
body
doesn't represent the meaning of the content. Consider using a more descriptive class name that represents the role or purpose of the element in the context of the interface.