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

Commit

Permalink
Merge pull request #550 from zapier/pde-4534.platform-nav-header
Browse files Browse the repository at this point in the history
[PDE-4534] Restyle nav header.
  • Loading branch information
szchenghuang authored Dec 7, 2023
2 parents 745172a + 399e7bf commit e514ea9
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 53 deletions.
10 changes: 5 additions & 5 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<a href="/" id="platform-header__logo"></a>

<ul class="platform-header__links">
<li><a href="https://zapier.com/platform/how-to-build">How to Build</a></li>
<li><a href="https://zapier.com/platform/partner-program">Partner Program</a></li>
<li><a href="/" class="platform-header__selected">Documentation</a></li>
<li><a href="https://community.zapier.com/for-developers-61">Developer Community</a></li>
<li><a href="https://developer.zapier.com/contact">Help</a></li>
<li><a href="https://zapier.com/developer-platform/integrations" class="platform-header__selected">Build integrations</a></li>
<li><a href="https://platform.zapier.com">Docs</a></li>
<li><a href="https://zapier.com/developer-platform/embed-tools">Tools</a></li>
<li><a href="https://zapier.com/developer-platform/partner-program">Partner Program</a></li>
<li><a href="https://zapier.com/developer-platform/resources">Resources</a></li>
</ul>

<div class="search">
Expand Down
34 changes: 17 additions & 17 deletions assets/images/platform-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 15 additions & 31 deletions assets/stylesheets/components/_header.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
.platform-header {
background: $blackwidow;
height: 69px;
background: #2d2e2e;
height: 68px;
position: fixed;
width: 100%;
padding: 0 30px;
display: flex;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-header__links {
font-size: 14px;
font-size: 16px;
display: flex;
align-items: center;
flex-direction: row;
Expand All @@ -21,48 +20,32 @@
margin: 0 0 0 80px;

li {
margin: 0 12px;

&:first-of-type {
margin-left: 0;
}
display: inline-flex;
margin-bottom: 0px;
}

a {
color: rgb(218, 223, 226);
transition: color 0.2s ease-in-out 0s;
position: relative;

&:hover {
color: #fff;
text-decoration: none;
text-shadow: -0.03ex 0 0 #ffffff, 0.03ex 0 0 #ffffff;
}
color: #fffdf9;
border-bottom: 4px solid transparent;
font-weight: 400;
line-height: 24px;
margin: 0 17px;
padding: 21px 3px 17px;
}

.platform-header__selected {
text-shadow: -0.03ex 0 0 #ffffff, 0.03ex 0 0 #ffffff;

&:before {
content: '';
position: absolute;
left: 0;
bottom: -6px;
width: 100%;
height: 2px;
background-color: #ffffff;
}
border-bottom: 4px solid #fffdf9;
}
}

.platform-header__logo {
height: 32px;
height: 33px;
}

a#platform-header__logo {
background: url($baseurl + "/assets/images/platform-logo.svg") no-repeat;
width: 192px;
height: 32px;
height: 33px;
}

.menu-toggle {
Expand Down Expand Up @@ -154,6 +137,7 @@ a#platform-header__logo {
.platform-header {
height: 56px;
padding: 0 20px;
justify-content: space-between;

.search { display: none; }
}
Expand Down

0 comments on commit e514ea9

Please sign in to comment.