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

Improve rendering of foundation link on small devices #1752

Merged
merged 1 commit into from
Jul 28, 2018
Merged
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
6 changes: 5 additions & 1 deletion layouts/css/page-modules/_header.styl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ header

// Special format for external 'Foundation' link in main navigation
.nav-foundation
margin-left 8px
background-color #026e00

&:before
Expand Down Expand Up @@ -62,13 +61,18 @@ header
a:active
padding 0 8px

.nav-foundation
margin-left 8px

@media screen and (max-width: 480px)
header
li
width 50%
float left
padding 0
margin 0
nav
margin 0 20px
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why 20 pixels? Because it fits with the main container’s padding:

a,
a:link,
a:active
Expand Down