Fix sizing of logo in drawer

This commit is contained in:
squidfunk
2016-12-29 15:03:18 +01:00
parent 5ef3ec7aa3
commit db4a8340d8
6 changed files with 10 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -36,7 +36,7 @@
{% include "partials/fonts.html" %} {% include "partials/fonts.html" %}
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-aa20c49e63.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-368e2db2e3.css">
{% if config.extra.palette %} {% if config.extra.palette %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-0352baa348.palette.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-0352baa348.palette.css">
{% endif %} {% endif %}

View File

@@ -2,7 +2,7 @@
<label class="md-nav__title md-nav__title--site" for="drawer"> <label class="md-nav__title md-nav__title--site" for="drawer">
<i class="md-icon md-nav__icon"> <i class="md-icon md-nav__icon">
{% if config.extra.logo %} {% if config.extra.logo %}
<img src="{{ base_url }}/{{ config.extra.logo }}" width="24" height="24"> <img src="{{ base_url }}/{{ config.extra.logo }}">
{% else %} {% else %}
school school
{% endif %} {% endif %}

View File

@@ -87,6 +87,12 @@
// Icon // Icon
&__icon { &__icon {
@extend %md-icon, %md-icon__button; @extend %md-icon, %md-icon__button;
// Stretch image
img {
width: 100%;
height: auto;
}
} }
// Link inside item // Link inside item

View File

@@ -25,8 +25,7 @@
<label class="md-nav__title md-nav__title--site" for="drawer"> <label class="md-nav__title md-nav__title--site" for="drawer">
<i class="md-icon md-nav__icon"> <i class="md-icon md-nav__icon">
{% if config.extra.logo %} {% if config.extra.logo %}
<img src="{{ base_url }}/{{ config.extra.logo }}" <img src="{{ base_url }}/{{ config.extra.logo }}" />
width="24" height="24" />
{% else %} {% else %}
school school
{% endif %} {% endif %}