Skip to content

Commit

Permalink
use svg logo and icon in header, favicon Xubuntu#3
Browse files Browse the repository at this point in the history
svg images from xubuntu-website-assets are cropped and optimized with svgomg.
  • Loading branch information
PeterTheOne committed May 21, 2020
1 parent 57a9a4e commit ea92d97
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
3 changes: 2 additions & 1 deletion xubuntu-eighteen/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<meta name="author" content="The Xubuntu community" />
<meta name="viewport" content="width=device-width, maximum-scale=1.0, minimum-scale=1.0, initial-scale=1" />

<link rel="icon" type="image/svg+xml" href="<?php echo get_stylesheet_directory_uri( ); ?>/images/xubuntu-icon.svg">
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri( ); ?>/images/xubuntu-icon-16.png">

<?php wp_head( ); ?>
Expand All @@ -19,7 +20,7 @@
<header>
<div id="logo">
<a href="<?php echo home_url( '/' ); ?>">
<img class="light" src="<?php echo get_stylesheet_directory_uri( ); ?>/images/xubuntu-logo-45.png" alt="Xubuntu" />
<img class="light" src="<?php echo get_stylesheet_directory_uri( ); ?>/images/xubuntu-logo.svg" alt="Xubuntu" />
</a>
</div>

Expand Down
7 changes: 7 additions & 0 deletions xubuntu-eighteen/images/xubuntu-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions xubuntu-eighteen/images/xubuntu-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions xubuntu-eighteen/style-600.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ header {
}
#logo a img.light {
display: block;
width: 13.5rem;
}
#logo a::after {
display: none;
Expand Down
4 changes: 2 additions & 2 deletions xubuntu-eighteen/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ header {

padding-right: 30px;

background: transparent url(images/xubuntu-icon-20.png) 100% 50% no-repeat;
background: transparent url(images/xubuntu-icon.svg) 100% 50% / 1.25rem 1.25rem no-repeat;
content: "Xubuntu";

color: #fff;
Expand Down Expand Up @@ -104,7 +104,7 @@ header {

/*
* Main content area
*
*
*/

section#middle {
Expand Down

0 comments on commit ea92d97

Please sign in to comment.