Skip to content

Commit

Permalink
Update header to match hugo style guide changes
Browse files Browse the repository at this point in the history
- update logo
- fix header size
- update type and vertical spacing
  • Loading branch information
deronjohnson committed Oct 17, 2017
1 parent dd25aff commit 09bf47f
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 74 deletions.
5 changes: 4 additions & 1 deletion _includes/topnav.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<!-- Mobile Side Navigation -->
<nav class="mobile_expanded">
<div class="close-wrap">
<a class="logo" href="https://www.cockroachlabs.com/" title="Cockroach Labs">
<img src="{{ 'images/CL_Logo_Horizontal.svg' | relative_url }}" width="100%" alt="Cockroach Labs" />
</a>
<div class="hamburger">
<span></span>
<span></span>
Expand Down Expand Up @@ -45,7 +48,7 @@
<div class="container">
<div class="row">
<a class="logo" href="https://www.cockroachlabs.com/" title="Cockroach Labs">
<img src="{{ 'images/CL_Logo_Horizontal.png' | relative_url }}" width="100%" alt="Cockroach Labs" />
<img src="{{ 'images/CL_Logo_Horizontal.svg' | relative_url }}" width="100%" alt="Cockroach Labs" />
</a>

<nav class="desktop" role="navigation">
Expand Down
66 changes: 31 additions & 35 deletions css/customstyles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/customstyles.css.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions css/global/_type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@
letter-spacing: 1.5px;
}

@mixin button-text--heavy--large {
@include avenir_h(15px);
line-height: 25px;
letter-spacing: 1.5px;
}

@mixin caption {
@include avenir_r(14px);
line-height: 20px;
Expand Down
2 changes: 1 addition & 1 deletion css/layouts/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
padding-top: 62px;
width: 100%;
z-index: 1000;
@include groovy(all);
// @include groovy(all);
@include box-shadow(5px, 0, 4px, 0, rgba(0, 0, 0, 0.1));
overflow: auto;

Expand Down
60 changes: 26 additions & 34 deletions css/layouts/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,10 @@ nav.mobile_expanded {
overflow:auto;
display: none;

a:not(.mobile-menu-dropdown__parent-link) {
a:not(.mobile-menu-dropdown__parent-link):not(.logo) {
border-bottom: 1px solid $cl_gray_medium;
@include avenir_h(14px);
line-height: 20px;
@include button-text--heavy--large;
text-transform: uppercase;
letter-spacing: 1.5px;
width:100%;
float:left;
color: $cl_blue;
Expand All @@ -70,8 +68,7 @@ nav.mobile_expanded {
.mobile-menu-dropdown {
width: 100%;
float: left;
@include avenir_h(14px);
letter-spacing: 1.5px;
@include button-text--heavy--large;
color: $cl_blue;
text-transform: uppercase;
padding: 30px 0 30px 20px;
Expand All @@ -84,12 +81,11 @@ nav.mobile_expanded {
a:not(.mobile-menu-dropdown__parent-link) {
position: relative;
display: block;
@include avenir_r(14px);
line-height: 15px;
@include type-caption-3;
letter-spacing: normal;
text-transform: none;
border-bottom: none;
margin-top: 25px;
margin-top: 15px;
padding: 0;
}

Expand All @@ -104,8 +100,9 @@ nav.mobile_expanded {
}

.close-wrap {
height: 62px;
height: 60px;
border-bottom: 1px solid #dadada;
padding: 15px 0 0 15px;
}

.hamburger {
Expand Down Expand Up @@ -159,48 +156,44 @@ nav.mobile_expanded {
}
}

.logo {
width: 180px;
margin-top: 3px;
float:left;
line-height: 20px;
font-size: 0;

@include at-query($screen-sm, $screen-md) {
line-height: 23px;
}

@include at-query($min, $screen-lg) {
width:209px;
}
}

header {
width:100%;
float:left;
padding: 15px;
background: #FFFFFF;
border-bottom: 1px solid $cl_gray_medium;
height: 62px;
height: 60px;

// there is just not enough room once we hit tablet
@include at-query($min, $screen-sm) {
padding: 15px 10px;
}

@include at-query($min, $screen-md) {
height: 71px;
height: 70px;
}

// return to regular padding when there is space
@include at-query($min, $screen-sm + 10px) {
padding: 15px;
}

.logo {
width: 180px;
margin-top: 3px;
float:left;
line-height: 20px;
font-size: 0;

@include at-query($screen-sm, $screen-md) {
line-height: 23px;
}

@include at-query($min, $screen-sm) {
width: 150px;
}

@include at-query($min, $screen-lg) {
width:209px;
}
}

.container {
position: relative;
margin: 0;
Expand Down Expand Up @@ -292,8 +285,7 @@ header {
}

&__info {
@include avenir_r(14px);
line-height: 20px;
@include type-caption-3;
color: #4d4d4d;
text-transform: none;
letter-spacing: normal;
Expand Down
4 changes: 2 additions & 2 deletions css/layouts/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ body.sidenav-open {
@include at-query($max, $screen-md) {
position: fixed;
left: 0;
top: 62px;
top: 60px;
width: 100%;
z-index: 1001;
@include groovy(margin-left);
@include groovy(box-shadow);
}

@include at-query($min, $screen-md) {
top: 71px;
top: 70px;
}

@include at-query($min, $screen-md){
Expand Down
Loading

0 comments on commit 09bf47f

Please sign in to comment.