fix date picker on all filter and field using date
This commit is contained in:
@@ -64,6 +64,16 @@ select:focus {
|
||||
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
|
||||
}
|
||||
|
||||
/* Input wrapper isi penuh lebar parent + popper di atas konten lain */
|
||||
.react-datepicker-wrapper,
|
||||
.react-datepicker__input-container {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.react-datepicker-popper {
|
||||
z-index: 50 !important;
|
||||
}
|
||||
|
||||
.react-datepicker__header {
|
||||
background: #f9fafb !important;
|
||||
border-bottom: 1px solid #e5e7eb !important;
|
||||
@@ -132,3 +142,46 @@ select:focus {
|
||||
.react-datepicker__close-icon:hover::after {
|
||||
background-color: #16a34a !important;
|
||||
}
|
||||
|
||||
/* Dropdown bulan / tahun (mode select) */
|
||||
.react-datepicker__month-select,
|
||||
.react-datepicker__year-select {
|
||||
border: 1px solid #e5e7eb !important;
|
||||
border-radius: 0.5rem !important;
|
||||
padding: 2px 4px !important;
|
||||
font-size: 0.8125rem !important;
|
||||
background: #fff !important;
|
||||
}
|
||||
|
||||
/* Pemilih jam (showTimeSelectOnly) */
|
||||
.react-datepicker__time-container {
|
||||
width: 96px !important;
|
||||
}
|
||||
|
||||
.react-datepicker__time-container
|
||||
.react-datepicker__time
|
||||
.react-datepicker__time-box {
|
||||
width: 96px !important;
|
||||
}
|
||||
|
||||
.react-datepicker-time__header {
|
||||
font-weight: 700 !important;
|
||||
color: #1f2937 !important;
|
||||
font-size: 0.8125rem !important;
|
||||
}
|
||||
|
||||
.react-datepicker__time-list-item {
|
||||
font-size: 0.8125rem !important;
|
||||
color: #1f2937 !important;
|
||||
}
|
||||
|
||||
.react-datepicker__time-list-item:hover {
|
||||
background: #dcfce7 !important;
|
||||
color: #15803d !important;
|
||||
}
|
||||
|
||||
.react-datepicker__time-list-item--selected {
|
||||
background: #16a34a !important;
|
||||
color: #fff !important;
|
||||
font-weight: 700 !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user