Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

masthead consistency with community website #201

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sass/_docbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@
}
.nav-link {
text-align: center;
color: $white;
font-size: 1rem;
&:hover {
color: $light-grey;
}
}
}
10 changes: 5 additions & 5 deletions sass/_nav.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
nav {
background: $black;
background: $pool;
.navbar-toggler {
color: $white;
outline: none;
Expand Down Expand Up @@ -32,21 +32,21 @@ nav {
margin-top: 0.5rem;
}
.navbar-brand {
color: $white;
color: $black;
font-size: 1.2rem;
padding-right: 4px;
&:hover {
color: $pool;
color: $white;
}
}
.nav-item {
padding: 1px 4px;
}
.nav-link {
color: $white;
color: $black;
font-size: 1rem;
&:hover {
color: $pool;
color: $white;
}
}
@media screen and (max-width: 990px) {
Expand Down
14 changes: 14 additions & 0 deletions static/images/community_logo_black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 5 additions & 34 deletions templates/_nav.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,9 @@
<nav class="navbar navbar-expand-md p-1">
<div class="container">
<a href="{{ links.index }}">
<span class="navbar-brand d-flex justify-content-center">
<svg version="1.1"
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
width="28"
height="28"
viewBox="0 0 28 28"
style="enable-background: new 0 0 28 28"
xml:space="preserve"
class="mr-1">
<style type="text/css">
.ansHeader {
fill: #ffffff;
}
</style>
<circle class="ansHeader" cx="14" cy="14" r="13.5" />
<path
d="M20.4,19.3L15,6.4c-0.2-0.4-0.5-0.6-0.8-0.6c-0.4,0-0.7,0.2-0.9,0.6L7.5,20.6h2l2.3-5.8l7,5.6c0.3,0.2,0.5,0.3,0.7,0.3c0.5,0,1-0.4,1-1C20.5,19.6,20.4,19.5,20.4,19.3z M14.2,8.7l3.5,8.6l-5.3-4.1L14.2,8.7z"/>
</svg>
Ansible documentation
<span class="navbar-brand d-flex align-items-center">
<img src="static/images/community_logo_black.svg" width="50px" height="50px" alt="Ansible community logo"/>
<span class="ml-2">Ansible documentation</span>
</span>
</a>
<button
Expand All @@ -43,19 +23,10 @@
<div class="collapse navbar-collapse" id="main-menu">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="https://www.ansible.com/products/automation-platform">Products</a>
<a class="nav-link" href="https://www.ansible.com/blog/">Blog</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.ansible.com/blog">Blog</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.ansible.com/community">Community</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.ansible.com/resources/webinars-training">Webinars and training</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.redhat.com/en/technologies/management/ansible/try-it">Try it now</a>
<a class="nav-link" href="https://forum.ansible.com/">Ansible community forum</a>
</li>
</ul>
</div>
Expand Down