Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
🎨 bring back the view site link (#727)
Browse files Browse the repository at this point in the history
no issue
- brings "view site" link back to the bottom of the nav bar
  • Loading branch information
JohnONolan authored and kevinansfield committed Jun 1, 2017
1 parent d2a7466 commit 9e3f55d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions app/styles/layouts/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,25 @@ body > .ember-view:not(.default-liquid-destination) {
stroke: var(--darkgrey);
}

.gh-nav-foot-sitelink {
display: flex;
justify-content: center;
align-items: center;
height: 46px;
border-top: color(var(--lightgrey) l(-1%)) 1px solid;
text-align: center;
font-size: 1.2rem;
line-height: 1em;
font-weight: 300;
color: color(var(--midgrey) l(+5%));
}

.gh-nav-foot-sitelink svg {
width: 13px;
margin-left: 5px;
fill: color(var(--midgrey) l(+5%));
}

/* Mobile Nav Menu (Slides out)
/* ---------------------------------------------------------- */

Expand Down
4 changes: 3 additions & 1 deletion app/templates/components/gh-nav-menu.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
{{/dropdown.trigger}}
{{#dropdown.content class="gh-nav-menu-dropdown"}}
<ul class="dropdown-menu dropdown-triangle-top" role="menu" {{action dropdown.actions.close on="click" preventDefault=false}}>
<li role="presentation"><a href="{{config.blogUrl}}/" target="_blank">View site</a></li>
<li role="presentation">{{#link-to "about" classNames="gh-nav-menu-about dropdown-item js-nav-item" role="menuitem" tabindex="-1"}}{{inline-svg "store"}} About Ghost{{/link-to}}</li>
<li class="divider"></li>
<li role="presentation">{{#link-to "team.user" session.user.slug classNames="dropdown-item user-menu-profile js-nav-item" role="menuitem" tabindex="-1"}}{{inline-svg "user-circle"}} Your Profile{{/link-to}}</li>
Expand Down Expand Up @@ -57,4 +56,7 @@
</ul>
{{/if}}
</section>
<footer class="gh-nav-foot">
<a class="gh-nav-foot-sitelink" href="{{config.blogUrl}}/" target="_blank">View site {{inline-svg "external"}}</a>
</footer>
<div class="gh-autonav-toggle" {{action "openAutoNav" on="mouseEnter"}}></div>

0 comments on commit 9e3f55d

Please sign in to comment.