Skip to content

Commit

Permalink
petit logo pour la version mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
srogier committed Mar 9, 2019
1 parent ba2314b commit 5ee03b1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
1 change: 1 addition & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
{% endif %}

<label for="menu-checkbox" class="toggle-button" data-open="" data-close="" onclick></label>
<img src="/files/theme/logo_simple.png" class="logo-image" alt="{{ site.title }}"/>
</nav>
</header>
11 changes: 11 additions & 0 deletions _sass/layout/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,17 @@
background: none;
}
}

.logo-image {
position: absolute;
display: block;
width: 50px;
height: 50px;
right: 0;
top: 0;
padding: 5px;
}

}

@media screen and (min-width: $md-break-point){
Expand Down
16 changes: 11 additions & 5 deletions _sass/media-queries/_1-medium.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@
text-align: center;
}

.nav-main .blog-logo {
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
width: auto;
.nav-main {
.blog-logo {
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
width: auto;
}

.logo-image {
display: none;
}
}

.nav-main a:not(.blog-logo) {
Expand Down

0 comments on commit 5ee03b1

Please sign in to comment.