Only apply CSS to descendants of .admindatefilter (#37)

This commit is contained in:
Niek van der Kooy 2019-10-15 10:46:09 +02:00 committed by Dmitriy Sokolov
parent c951b5f27a
commit 80e4e02967
3 changed files with 5 additions and 5 deletions

View File

@ -2,8 +2,8 @@
<h3>{% blocktrans with filter_title=title %}By {{ filter_title }}{% endblocktrans %}</h3>
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/widgets.css' %}">
<style>
.admindatefilter .button, input[type=submit], input[type=button], .submit-row input, a.button,
.admindatefilter .button, input[type=reset] {
.admindatefilter .button, .admindatefilter input[type=submit], .admindatefilter input[type=button], .admindatefilter .submit-row input, .admindatefilter a.button,
.admindatefilter .button, .admindatefilter input[type=reset] {
background: #79aec8;
padding: 4px 5px;
border: none;

View File

@ -2,7 +2,7 @@
<h3>{% blocktrans with filter_title=title %}By {{ filter_title }}{% endblocktrans %}</h3>
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/widgets.css' %}">
<style>
.admindatefilter .button, input[type=reset] {
.admindatefilter .button, .admindatefilter input[type=reset] {
padding: 3px 5px;
color: black;
border: 1px solid #bbb;

View File

@ -2,8 +2,8 @@
<h3>{% blocktrans with filter_title=title %}By {{ filter_title }}{% endblocktrans %}</h3>
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/widgets.css' %}">
<style nonce="{{ spec.request.csp_nonce }}">
.admindatefilter .button, input[type=submit], input[type=button], .submit-row input, a.button,
.admindatefilter .button, input[type=reset] {
.admindatefilter .button, .admindatefilter input[type=submit], .admindatefilter input[type=button], .admindatefilter .submit-row input, .admindatefilter a.button,
.admindatefilter .button, .admindatefilter input[type=reset] {
background: #79aec8;
padding: 4px 5px;
border: none;