Skip to content

Add optional global nav class-driven font iconography#122

Merged
Phlow merged 2 commits into
gh-pagesfrom
unknown repository
Dec 4, 2016
Merged

Add optional global nav class-driven font iconography#122
Phlow merged 2 commits into
gh-pagesfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Dec 1, 2016

Copy link
Copy Markdown

Commit name should say it all. I chose class over icon for extensibility and continuity with the footer. Sorry I don't have time to add documentation.

screen shot 2016-12-01 at 3 29 32 pm

screen shot 2016-12-01 at 3 43 14 pm

screen shot 2016-12-01 at 3 44 19 pm

Example use from navigation.yml

- title: Start
  url: "/"
  class: "icon-home"
  side: left

Included with pull

  • Replaces the tree font icon with xing for hacker appeal
  • Also replaces hamburger helper text "Navigation" with "Nav" to support longer site titles

Comment thread _sass/_07_layout.scss
-webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,.2);
box-shadow: 0 2px 3px 0 rgba(0,0,0,.2);

[class^='icon-']:before, [class*=' icon-']:before {

@ghost ghost Dec 1, 2016

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks to @TWiStErRob for this one. Modified from twisterrob.github.io.

@ghost

ghost commented Dec 2, 2016

Copy link
Copy Markdown
Author

FYI tested this on Android and iOS physical devices in addition to emulator. Real device testing reveals a possible bug on iOS devices. Adding screenshots for each case...

@ghost

ghost commented Dec 2, 2016

Copy link
Copy Markdown
Author

Mobile emulator for iPhone 6 in Chrome Dev Tools:

screen shot 2016-12-01 at 3 43 14 pm

Actual experience on iPhone 6 (not 6 Plus) without adjustment to Settings > Accessibility:

screen shot 2016-12-02 at 8 57 06 am

Android experience. Device and settings unknown. Sent from client.

screen shot 2016-12-02 at 8 57 25 am

Not sure what's causing the clipping, but didn't see this bug prior to these changes.

@Phlow

Phlow commented Dec 4, 2016

Copy link
Copy Markdown
Owner

Looks good. But why did you choose the Xing-icon? This is an icon for the biggest German social network for business.

@Phlow Phlow merged commit 6d33ecd into Phlow:gh-pages Dec 4, 2016
<ul class="title-area">
<li class="name">
<h1 class="show-for-small-only"><a href="{{ site.url }}{{ site.baseurl }}" class="icon-xing"> {{ site.title }}</a></h1>
<h1 class="show-for-small-only"><a href="{{ site.url }}{{ site.baseurl }}" class="icon-tree"> {{ site.title }}</a></h1>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

LGTM. Thanks for the heads-up on the German social sharing site.

@Phlow

Phlow commented Dec 4, 2016

Copy link
Copy Markdown
Owner

Yeah, it's Xing.com – it is the big German counterpart of LinkedIn.

rollingrock pushed a commit to rollingrock/joelucky that referenced this pull request Aug 31, 2025
Add optional global nav class-driven font iconography
benchoi93 pushed a commit to choi-seongjin/choi-seongjin.github.io that referenced this pull request Jun 7, 2026
Add optional global nav class-driven font iconography
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant