diff --git a/django/contrib/admin/static/admin/css/forms.css b/django/contrib/admin/static/admin/css/forms.css index 9f90adddaa4..599766501d6 100644 --- a/django/contrib/admin/static/admin/css/forms.css +++ b/django/contrib/admin/static/admin/css/forms.css @@ -303,7 +303,7 @@ body.popup .submit-row { padding: 10px 15px; height: 15px; line-height: 15px; - margin: 0 0 0 5px; + margin: 0 5px 5px 0; color: var(--button-fg); } @@ -311,12 +311,14 @@ body.popup .submit-row { .submit-row a.deletelink:hover, .submit-row a.deletelink:active { background: var(--delete-button-hover-bg); + text-decoration: none; } .submit-row a.closelink:focus, .submit-row a.closelink:hover, .submit-row a.closelink:active { background: var(--close-button-hover-bg); + text-decoration: none; } /* CUSTOM FORM FIELDS */ diff --git a/django/contrib/admin/static/admin/css/responsive.css b/django/contrib/admin/static/admin/css/responsive.css index 46c0f289617..4b95e63f154 100644 --- a/django/contrib/admin/static/admin/css/responsive.css +++ b/django/contrib/admin/static/admin/css/responsive.css @@ -829,14 +829,16 @@ input[type="submit"], button { width: 100%; } - .submit-row input, .submit-row input.default, .submit-row a, .submit-row a.closelink { + .submit-row input, .submit-row input.default, .submit-row a { float: none; margin: 0 0 10px; text-align: center; } .submit-row a.closelink { + float: none; padding: 10px 0; + text-align: center; } .submit-row p.deletelink-box {