From 25ef1c4eb7caf52cad6c3d28693cd9108dfab456 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sun, 3 Nov 2019 22:31:39 +0000 Subject: [PATCH] Bug 23956: Replace famfamfam calendar icon in staff client with CSS data-url This patch modifies the staff client CSS so that the backround image for datepicker input fields is defined as a data-url rather than a reference to an image file. To test, apply the patch and regenerate the staff client CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client). - In the staff client, view any form which includes a datepicker-styled input. For instance, patron entry: date of birth, expiry; Aquisitions -> Late orders -> Filter results. - Confirm that the calendar icon looks correct. Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index 2ffaef1a78..98046b3dd3 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -391,7 +391,7 @@ input { } &.hasDatepicker { - background-image: url("../img/famfamfam/silk/calendar.png"); + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAT0lEQVQ4jWNgoAZYd/LVf3IwigGkAuwGLE4hDg9eA4il8RqADVdtLYVjZLVEuwDZAKJcgKxh+zkyXIBuI8lhgG4jOqZdLJACMAygKDNRAgBj9qOB+rWnhAAAAABJRU5ErkJggg=="); background-position-x: right; background-position-y: center; background-repeat: no-repeat; -- 2.11.0