mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 09:20:52 +01:00
Reduced content shift when icons are loading
This commit is contained in:
parent
c736cd9939
commit
581d7c017c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -86,6 +86,7 @@ input {
|
|||||||
direction: ltr; }
|
direction: ltr; }
|
||||||
.md-content__icon, .md-header-nav__button, .md-footer-nav__button, .md-nav__title::before, .md-nav__button, .md-search-result__article--document::before {
|
.md-content__icon, .md-header-nav__button, .md-footer-nav__button, .md-nav__title::before, .md-nav__button, .md-search-result__article--document::before {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
width: 2rem;
|
||||||
margin: 0.2rem;
|
margin: 0.2rem;
|
||||||
padding: 0.4rem;
|
padding: 0.4rem;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
|
File diff suppressed because one or more lines are too long
2
material/assets/stylesheets/app.min.css
vendored
2
material/assets/stylesheets/app.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -43,9 +43,9 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/app.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/app.min.css' | url }}">
|
||||||
{% if palette.primary or palette.accent %}
|
{% if palette.primary or palette.accent %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/app-palette.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/app-palette.min.css' | url }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if palette.primary %}
|
{% if palette.primary %}
|
||||||
{% import "partials/palette.html" as map %}
|
{% import "partials/palette.html" as map %}
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
// Icon rendered as button
|
// Icon rendered as button
|
||||||
&__button {
|
&__button {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
width: #{$md-icon-size + 2 * $md-icon-padding};
|
||||||
margin: $md-icon-margin;
|
margin: $md-icon-margin;
|
||||||
padding: $md-icon-padding;
|
padding: $md-icon-padding;
|
||||||
font-size: $md-icon-size;
|
font-size: $md-icon-size;
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
type="text/css"
|
type="text/css"
|
||||||
href="{{ 'assets/stylesheets/app.css' | url }}"
|
href="{{ 'assets/stylesheets/app.min.css' | url }}"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Extra color palette -->
|
<!-- Extra color palette -->
|
||||||
@ -105,7 +105,7 @@
|
|||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
type="text/css"
|
type="text/css"
|
||||||
href="{{ 'assets/stylesheets/app-palette.css' | url }}"
|
href="{{ 'assets/stylesheets/app-palette.min.css' | url }}"
|
||||||
/>
|
/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user