Skip to content

Commit

Permalink
Minimal but raw code modifications to support header menu
Browse files Browse the repository at this point in the history
  • Loading branch information
agongdai committed Jul 22, 2015
1 parent 6c09e98 commit 8eb4297
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 1 deletion.
Binary file added source/images/logo-no-header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion source/layouts/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,17 @@ under the License.
<%= image_tag('navbar.png') %>
</span>
</a>
<div class="rc-dpw-nav">
<div class="logo"><%= image_tag "logo.png" %></div>
<ul class="menus">
<li><a href="">OVERVIEW</a></li>
<li class="active"><a class="menu-link" href="">API & DOCS</a></li>
<li><a href="">SUPPORT & FAQS</a></li>
<li><a href="">APP GALLERY</a></li>
<li><a href="">BLOG</a></li>
</ul>
</div>
<div class="tocify-wrapper">
<%= image_tag "logo.png" %>
<% if language_tabs %>
<div class="lang-selector">
<% language_tabs.each do |lang| %>
Expand Down
70 changes: 70 additions & 0 deletions source/stylesheets/screen.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -625,3 +625,73 @@ html, body {
margin-top: $main-padding;
}
}

.rc-dpw-nav {
position: fixed;
top: 0;
height: 125px;
width: 100%;
background-color: white;
z-index: 100;
.logo {
line-height: 62px;
height: 62px;
border-bottom: 1px solid #dcdcdc;
}
.menus {
line-height: 62px;
height: 62px;
border-bottom: 1px solid #dcdcdc;
margin: 0;
padding: 0;
li {
font-size: 1.2em;
display: inline-block;
margin: 0;
padding: 0;
margin-left: 20px;
a {
color: #585858;
text-decoration: none;
}
}
li.active .menu-link {
color: #0073ae;
font-weight: bold;
}
li.active .menu-link:before, li.active .menu-link:after {
bottom: -1px;
left: 165px;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
li.active .menu-link:before {
border-color: rgba(194,225,245,0);
border-bottom-color: #cdcdcd;
border-width: 8px;
margin-left: -8px;
}
li.active .menu-link:after {
border-color: rgba(136,183,213,0);
border-bottom-color: #f9f9f9;
border-width: 7px;
margin-left: -7px;
}
}
}

.tocify-wrapper {
top: 125px;
}

.page-wrapper {
padding-top: 125px;
}

.page-wrapper .lang-selector {
top: 125px;
}

0 comments on commit 8eb4297

Please sign in to comment.