mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
CSS fixes for Firefox
This commit is contained in:
parent
9f3dde3957
commit
a1105b81f1
@ -39,9 +39,13 @@ export default (gulp, config, args) => {
|
||||
.pipe(
|
||||
stream({
|
||||
entry: [
|
||||
|
||||
/* Polyfills */
|
||||
"core-js/fn/promise",
|
||||
"custom-event-polyfill",
|
||||
"whatwg-fetch",
|
||||
|
||||
/* Main entry point */
|
||||
"application.js"
|
||||
],
|
||||
output: {
|
||||
|
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/application-4791f8c70f.css
Normal file
1
material/assets/stylesheets/application-4791f8c70f.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
File diff suppressed because one or more lines are too long
@ -36,9 +36,9 @@
|
||||
{% include "partials/fonts.html" %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-fa9357cbe4.css">
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-4791f8c70f.css">
|
||||
{% if config.extra.palette %}
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-4bd030561c.palette.css">
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-0352baa348.palette.css">
|
||||
{% endif %}
|
||||
{% for path in extra_css %}
|
||||
<link rel="stylesheet" href="{{ path }}">
|
||||
|
@ -44,8 +44,9 @@
|
||||
// Color tile
|
||||
button[data-md-color-primary],
|
||||
button[data-md-color-accent] {
|
||||
width: 10.0rem;
|
||||
padding: 0.4rem 0.8rem;
|
||||
width: 13.0rem;
|
||||
margin-bottom: 0.4rem;
|
||||
padding: 2.4rem 0.8rem 0.4rem;
|
||||
transition:
|
||||
background-color 0.25s,
|
||||
opacity 0.25s;
|
||||
|
@ -110,6 +110,16 @@ hr {
|
||||
// If the browser supports calc(), no JavaScript is necessary
|
||||
.csscalc & {
|
||||
min-height: calc(100% - #{5.6rem - 3.0rem});
|
||||
|
||||
// Hack: Firefox doesn't correctly calculate min-height, as it takes the
|
||||
// top margin into account which leads to the container overflowing its
|
||||
// parent. For this reason we use this hack here to target only Firefox
|
||||
// and see if we can find a better solution later.
|
||||
@-moz-document url-prefix() {
|
||||
& {
|
||||
min-height: calc(100% - 5.6rem);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user