From 26be76b95c366d7a8c38215a0b885dcf21f2389c Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Fri, 19 Feb 2021 11:21:04 +0100 Subject: [PATCH] Add new CSS specifications for flatpickr input as using altInput - We now use altInput which is the only visible input to the end user. - This input inherits all the classes from the component who instantiated it, but not the `.flatpickr-input` class. - Add more specification to have a beautiful white background with pointer component. --- app/assets/stylesheets/admin/components/date-picker.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/admin/components/date-picker.scss b/app/assets/stylesheets/admin/components/date-picker.scss index 6b251b441f..0590db7599 100644 --- a/app/assets/stylesheets/admin/components/date-picker.scss +++ b/app/assets/stylesheets/admin/components/date-picker.scss @@ -17,7 +17,9 @@ input.datetimepicker { min-width: 12.9em; } -.container input[readonly].flatpickr-input { +.container input[readonly].flatpickr-input, +.container input[readonly].datepicker, +.container input[readonly].datetimepicker { background-color: $white; cursor: pointer; }