remove modernizr & usage

pull/8009/head
Thibaud Colas 2022-02-01 01:49:55 +00:00
rodzic 675ece2336
commit fd8277bcf7
5 zmienionych plików z 5 dodań i 22 usunięć

Wyświetl plik

@ -99,11 +99,12 @@
margin-right: 0.2em;
}
// Applies given rules on hover, except for touch screens.
// Relies on feature detection to add a no-touch class on the html element.
// Applies given rules on hover, for devices that support hover.
@mixin hover {
.no-touch &:hover {
@content;
@media (hover: hover) {
a:hover {
@content;
}
}
}

File diff suppressed because one or more lines are too long

Wyświetl plik

@ -10,8 +10,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<script src="{% versioned_static 'wagtailadmin/js/vendor/modernizr-2.6.2.min.js' %}"></script>
<link rel="stylesheet" href="{% versioned_static 'wagtailadmin/css/normalize.css' %}" />
{% block css %}{% endblock %}

Wyświetl plik

@ -1,10 +1,4 @@
$(function () {
// Redirect users that don't support filereader
if (!$('html').hasClass('filereader')) {
document.location.href = window.fileupload_opts.simple_upload_url;
return false;
}
// prevents browser default drag/drop
$(document).on('drop dragover', function (e) {
e.preventDefault();

Wyświetl plik

@ -1,10 +1,4 @@
$(function () {
// Redirect users that don't support filereader
if (!$('html').hasClass('filereader')) {
document.location.href = window.fileupload_opts.simple_upload_url;
return false;
}
// prevents browser default drag/drop
$(document).on('drop dragover', function (e) {
e.preventDefault();