-
Notifications
You must be signed in to change notification settings - Fork 6.3k
solution: complete moyo header layout #7747
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
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 |
|---|---|---|
| @@ -1,3 +1,66 @@ | ||
| :root { | ||
| --main-blue: #00acdc; | ||
| } | ||
|
|
||
| body { | ||
| margin: 0; | ||
| font-family: Roboto, 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. The PR description must include your demo/test links and the copied Checklist block. Please add and complete these exactly as required. Quoting the checklist items that are not satisfied in the PR description:
Action: update your Pull Request description — include the DEMO and TEST REPORT links with your GitHub username in place of |
||
| font-size: 14px; | ||
| } | ||
|
|
||
| .header { | ||
| padding: 0 50px; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: space-between; | ||
| } | ||
|
|
||
| .logo { | ||
| display: flex; | ||
| margin-right: 30px; | ||
| } | ||
|
|
||
| .nav__list { | ||
| list-style: none; | ||
| padding: 0; | ||
| margin: 0; | ||
| display: flex; | ||
| } | ||
|
|
||
| .nav__item:not(:last-child) { | ||
| margin-right: 20px; | ||
| } | ||
|
|
||
| .nav__link { | ||
| color: #000; | ||
| text-transform: uppercase; | ||
| text-decoration: none; | ||
| font-weight: 500; | ||
| height: 60px; | ||
| display: flex; | ||
| align-items: center; | ||
| position: relative; | ||
| transition: color 0.3s; | ||
| font-size: 12px; | ||
| line-height: 14px; | ||
| } | ||
|
xundseth marked this conversation as resolved.
|
||
|
|
||
| .nav__link:hover { | ||
| color: var(--main-blue); | ||
| } | ||
|
|
||
| .nav__link.is-active { | ||
| color: var(--main-blue); | ||
| } | ||
|
|
||
| .nav__link.is-active::after { | ||
| content: ''; | ||
| position: absolute; | ||
| right: 0; | ||
| bottom: 0; | ||
| left: 0; | ||
| width: 100%; | ||
| height: 4px; | ||
| background-color: var(--main-blue); | ||
| border-radius: 8px; | ||
| } | ||
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.
This violates checklist item: "Lines of code have 80 chars max". The Google Fonts block is too long on the single attribute line. Also follow the checklist guidance: "If the HTML element has long attribute values or number of attributes is more than 2 - start each one, including the first, on the new line with 2-space indentation related to tag. Tag’s closing bracket should be on the same level as opening one." Wrap/split the long tag (or its attributes) so no physical line exceeds 80 characters (for example put each attribute on its own indented line and ensure the long URL line stays under 80 chars).