From b3bd165d0184fc64921a204cd2e369c637b59963 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 4 Nov 2022 11:36:21 +0100 Subject: [PATCH 1/2] Fix time picket CSS [SCI-7359] --- .../stylesheets/shared/datetime_picker.scss | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 app/assets/stylesheets/shared/datetime_picker.scss diff --git a/app/assets/stylesheets/shared/datetime_picker.scss b/app/assets/stylesheets/shared/datetime_picker.scss new file mode 100644 index 000000000..ab733896c --- /dev/null +++ b/app/assets/stylesheets/shared/datetime_picker.scss @@ -0,0 +1,37 @@ +.bootstrap-datetimepicker-widget { + .glyphicon-calendar { + margin: 0 !important; + } + + .timepicker-picker { + padding: 0 60px; + + td { + height: initial; + line-height: initial; + + a { + padding: 0; + } + + .timepicker-hour, + .timepicker-minute { + height: initial; + line-height: initial; + padding: 6px 0; + } + } + + .glyphicon-chevron-up, .glyphicon-chevron-down { + align-items: center; + display: flex; + justify-content: center; + height: 100%; + line-height: 1; + } + + .separator { + width: 10px; + } + } +} \ No newline at end of file From 98e87a2f4bba91c8f19a97cd2477f46756f88b46 Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 22 Nov 2022 11:21:44 +0100 Subject: [PATCH 2/2] Fix markup [SCI-7359] --- app/assets/stylesheets/shared/datetime_picker.scss | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/shared/datetime_picker.scss b/app/assets/stylesheets/shared/datetime_picker.scss index ab733896c..9d6721fe8 100644 --- a/app/assets/stylesheets/shared/datetime_picker.scss +++ b/app/assets/stylesheets/shared/datetime_picker.scss @@ -1,6 +1,8 @@ +// scss-lint:disable SelectorDepth NestingDepth + .bootstrap-datetimepicker-widget { .glyphicon-calendar { - margin: 0 !important; + margin: 0; } .timepicker-picker { @@ -22,11 +24,12 @@ } } - .glyphicon-chevron-up, .glyphicon-chevron-down { + .glyphicon-chevron-up, + .glyphicon-chevron-down { align-items: center; display: flex; - justify-content: center; height: 100%; + justify-content: center; line-height: 1; } @@ -34,4 +37,4 @@ width: 10px; } } -} \ No newline at end of file +}