-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from MITLibraries/gdt-125-redesign-local-nav
Redesign local nav for GDT
- Loading branch information
Showing
3 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.wrap-outer-header-local { | ||
.local-identity { | ||
padding: 1rem 0; | ||
} | ||
|
||
.wrap-header-local { | ||
padding-top: 1rem; | ||
padding-bottom: 1rem; | ||
|
||
.wrap-local-nav { | ||
margin: 0; | ||
|
||
.local-nav { | ||
display: flex; | ||
font-weight: $fw-bold; | ||
|
||
.wrap-gis-links { | ||
text-align: right; | ||
margin-left: auto; | ||
|
||
:first-child:after { | ||
margin: 0 5px; | ||
} | ||
|
||
.nav-item { | ||
padding-left: 5px; | ||
padding-right: 5px; | ||
margin: 0; | ||
text-decoration: underline; | ||
&:hover, | ||
&:active, | ||
&:focus { | ||
transition: all .25s ease-in-out 0s; | ||
color: $brand-primary-accent; | ||
background-color: #fff; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
<div class="wrap-outer-header-local layout-band"> | ||
<div class="wrap-header-local"> | ||
<div class="local-identity"> | ||
<h2 class="title title-site"><a href="/">TIMDEX UI</a></h2> | ||
</div> | ||
<div class="wrap-local-nav"> | ||
<div class="wrap-bar"> | ||
<nav class="local-nav" aria-label="Main menu"> | ||
<%= nav_link_to("Home", root_path) %> | ||
</nav> | ||
<% unless ENV['PLATFORM_NAME'] %> | ||
<div class="local-identity"> | ||
<h2 class="title title-site"><a href="/">TIMDEX UI</a></h2> | ||
</div> | ||
<% end %> | ||
<div class="wrap-local-nav"> | ||
<nav class="local-nav" aria-label="Main menu"> | ||
<%= nav_link_to("Home", root_path) %> | ||
<% if Flipflop.enabled?(:gdt) %> | ||
<div class="wrap-gis-links"> | ||
<%= nav_link_to("GIS at MIT", "https://libraries.mit.edu/gis") %> | ||
<span class="nav-divider" aria-hidden="true">|</span> | ||
<%= nav_link_to("Ask GIS", "https://libraries.mit.edu/ask-gis") %> | ||
</div> | ||
<% end %> | ||
</nav> | ||
</div> | ||
</div> | ||
</div> |