From bf7afe9c4e21f5fe5090c47b2b6ffc5a03a85815 Mon Sep 17 00:00:00 2001 From: ahmadekhalili Date: Sun, 5 Dec 2021 10:27:52 +0330 Subject: [PATCH] Fixed admin CSS for calendar widget for RTL languages. Thanks Theodore Ni and Shai Berger for reviews. --- django/contrib/admin/static/admin/css/rtl.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/django/contrib/admin/static/admin/css/rtl.css b/django/contrib/admin/static/admin/css/rtl.css index 0447f89382..e0fadcefb0 100644 --- a/django/contrib/admin/static/admin/css/rtl.css +++ b/django/contrib/admin/static/admin/css/rtl.css @@ -175,12 +175,24 @@ fieldset .fieldBox { top: 0; left: auto; right: 10px; + background: url(../img/calendar-icons.svg) 0 -30px no-repeat; +} + +.calendarbox .calendarnav-previous:focus, +.calendarbox .calendarnav-previous:hover { + background-position: 0 -45px; } .calendarnav-next { top: 0; right: auto; left: 10px; + background: url(../img/calendar-icons.svg) 0 0 no-repeat; +} + +.calendarbox .calendarnav-next:focus, +.calendarbox .calendarnav-next:hover { + background-position: 0 -15px; } .calendar caption, .calendarbox h2 {