CSS fixes for Firefox

This commit is contained in:
squidfunk 2016-12-29 11:48:59 +01:00
parent 9f3dde3957
commit a1105b81f1
8 changed files with 21 additions and 6 deletions

View File

@ -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

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

View File

@ -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 }}">

View File

@ -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;

View File

@ -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);
}
}
}
}
}