mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fix source repository SVG sizing in IE/Edge
This commit is contained in:
parent
4ed0b1328f
commit
3f5957bd01
1
material/assets/stylesheets/application-d20f29caab.css
Normal file
1
material/assets/stylesheets/application-d20f29caab.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -36,7 +36,7 @@
|
||||
{% include "partials/fonts.html" %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-fbfbf18e7f.css">
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-d20f29caab.css">
|
||||
{% if config.extra.palette %}
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-4bd030561c.palette.css">
|
||||
{% endif %}
|
||||
|
@ -10,9 +10,11 @@
|
||||
{% endif %}
|
||||
<a href="{{ config.repo_url }}" title="Go to repository" class="md-source" data-md-source="{{ repo_type }}">
|
||||
{% if repo_type %}
|
||||
<svg class="md-source__icon">
|
||||
<use xlink:href="#{{ repo_type }}" x="12" y="12" width="24" height="24"></use>
|
||||
</svg>
|
||||
<div class="md-source__icon">
|
||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||
<use xlink:href="#{{ repo_type }}" width="24" height="24"></use>
|
||||
</svg>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="md-source__repository">
|
||||
{{ config.repo_name }}
|
||||
|
@ -88,6 +88,13 @@
|
||||
vertical-align: middle;
|
||||
fill: $md-color-white;
|
||||
|
||||
// Align SVG, do not scale, as this will incur strange formatting bugs
|
||||
// in Internet Explorer and Edge
|
||||
svg {
|
||||
margin-top: 1.2rem;
|
||||
margin-left: 1.2rem;
|
||||
}
|
||||
|
||||
// Correct alignment, if icon is present
|
||||
+ .md-source__repository {
|
||||
margin-left: -4.4rem;
|
||||
|
@ -39,10 +39,11 @@
|
||||
<a href="{{ config.repo_url }}" title="Go to repository" class="md-source"
|
||||
data-md-source="{{ repo_type }}">
|
||||
{% if repo_type %}
|
||||
<svg class="md-source__icon">
|
||||
<use xlink:href="#{{ repo_type }}" x="12" y="12"
|
||||
width="24" height="24"></use>
|
||||
</svg>
|
||||
<div class="md-source__icon">
|
||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||
<use xlink:href="#{{ repo_type }}" width="24" height="24"></use>
|
||||
</svg>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="md-source__repository">
|
||||
{{ config.repo_name }}
|
||||
|
Loading…
Reference in New Issue
Block a user