Skip to content

Commit

Permalink
Merge "Update default OpenStack branding across Horizon"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jan 25, 2017
2 parents 6618821 + 9397311 commit 8ea525c
Show file tree
Hide file tree
Showing 12 changed files with 137 additions and 622 deletions.
8 changes: 4 additions & 4 deletions doc/source/topics/customizing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ If the static root of the theme folder contains an ``img`` directory,
then all images that make use of the {% themable_asset %} templatetag
can be overridden.

These assets include logo.png, splash-logo.png and favicon.ico, however
These assets include logo.svg, splash-logo.svg and favicon.ico, however
overriding the SVG/GIF assets used by Heat within the `dashboard/img` folder
is not currently supported.

Expand All @@ -151,10 +151,10 @@ Simple

If you wish to customize the logo that is used on the splash screen or in the
top navigation bar, then you need to create an ``img`` directory under your
theme's static root directory and place your custom ``logo.png`` or
``logo-splash.png`` within it.
theme's static root directory and place your custom ``logo.svg`` or
``logo-splash.svg`` within it.

If you wish to override the ``logo.png`` using the previous method, and if the
If you wish to override the ``logo.svg`` using the previous method, and if the
image used is larger than the height of the top navigation, then the image will be
constrained to fit within the height of nav. You can customize the height of
the top navigation bar by customizing the SCSS variable: ``$navbar-height``.
Expand Down
2 changes: 1 addition & 1 deletion horizon/templates/auth/_splash.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load themes %}

<div class="text-center">
<img class="splash-logo" src={% themable_asset "img/logo-splash.png" %}>
<img class="splash-logo" src={% themable_asset "img/logo-splash.svg" %}>
</div>
Binary file modified openstack_dashboard/static/dashboard/img/favicon.ico
Binary file not shown.
Binary file not shown.
377 changes: 63 additions & 314 deletions openstack_dashboard/static/dashboard/img/logo-splash.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed openstack_dashboard/static/dashboard/img/logo.png
Binary file not shown.
355 changes: 58 additions & 297 deletions openstack_dashboard/static/dashboard/img/logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
margin-top: $navbar-height*2;

.splash-logo {
padding: $padding-large-horizontal $padding-large-vertical;
max-width: 100%;
margin: $padding-large-horizontal $padding-large-vertical;
max-width: 65%;
}

.help_text {
Expand All @@ -29,4 +29,4 @@
.hz-icon-required {
display: none;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

img {
display: inline-block;
max-height: $navbar-height;
max-height: $navbar-height - $padding-small-vertical*2;
vertical-align: middle;
}
}
Expand Down
2 changes: 1 addition & 1 deletion openstack_dashboard/templates/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
left: 50%;
width: 390px;

background: url("{% static "dashboard/img/logo.png" %}") no-repeat scroll center 35px padding-box rgb(255, 255, 255);
background: url("{% static "dashboard/img/logo.svg" %}") no-repeat scroll center 35px padding-box rgb(255, 255, 255);
border: 1px solid rgb(225, 225, 225);

-webkit-border-radius: 6px;
Expand Down
2 changes: 1 addition & 1 deletion openstack_dashboard/templates/header/_brand.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
{% load themes %}

<a class="navbar-brand" href="{% site_branding_link %}" target="_self">
<img class="openstack-logo" src="{% themable_asset 'img/logo.png' %}" alt="{% site_branding %}">
<img class="openstack-logo" src="{% themable_asset 'img/logo.svg' %}" alt="{% site_branding %}">
</a>
5 changes: 5 additions & 0 deletions releasenotes/notes/bug/1637490-c29444e4eb458087.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
upgrade:
- The logos in Horizon (previously logo-splash.png and logo.png) now
load SVG files instead of PNG. The default logos have been updated
to reflect the new OpenStack branding.

0 comments on commit 8ea525c

Please sign in to comment.