forked from izu/student-web-if-development-kit
fix(tapops): perbaiki overflow date input di mobile dengan layout kolom dan lebar fleksibel
This commit is contained in:
@@ -715,11 +715,11 @@ a.btn-action-outline:hover {
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Stack start/end date pickers vertically to avoid overflow */
|
||||||
.date-range-inputs {
|
.date-range-inputs {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: 1fr auto 1fr;
|
flex-direction: column;
|
||||||
align-items: center;
|
gap: 6px;
|
||||||
gap: 8px;
|
|
||||||
border: none;
|
border: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -728,13 +728,13 @@ a.btn-action-outline:hover {
|
|||||||
.date-range-inputs .input-wrapper {
|
.date-range-inputs .input-wrapper {
|
||||||
background: #f8fafc;
|
background: #f8fafc;
|
||||||
border: 1px solid #e2e8f0;
|
border: 1px solid #e2e8f0;
|
||||||
padding: 10px 14px;
|
padding: 10px 12px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.date-range-inputs .input-wrapper:focus-within {
|
.date-range-inputs .input-wrapper:focus-within {
|
||||||
@@ -743,16 +743,38 @@ a.btn-action-outline:hover {
|
|||||||
box-shadow: 0 0 0 3px rgba(0, 49, 80, 0.08);
|
box-shadow: 0 0 0 3px rgba(0, 49, 80, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Custom date input fills the wrapper width */
|
||||||
|
.custom-date-input {
|
||||||
|
width: 100%;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* DD / MM stay compact; YYYY stretches to fill remaining space */
|
||||||
|
.date-dd, .date-mm {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
width: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.date-yyyy {
|
||||||
|
flex: 1;
|
||||||
|
width: auto;
|
||||||
|
min-width: 44px;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
.date-part {
|
.date-part {
|
||||||
font-size: 0.82rem;
|
font-size: 0.82rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* S/D label between pickers becomes a small inline tag */
|
||||||
.range-divider {
|
.range-divider {
|
||||||
font-size: 0.75rem;
|
font-size: 0.68rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
color: #94a3b8;
|
color: #94a3b8;
|
||||||
padding: 0 4px;
|
padding: 3px 10px;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
text-align: center;
|
||||||
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select-wrapper,
|
.select-wrapper,
|
||||||
@@ -801,6 +823,21 @@ a.btn-action-outline:hover {
|
|||||||
Responsive — Phone (≤480px)
|
Responsive — Phone (≤480px)
|
||||||
=========================================== */
|
=========================================== */
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.date-dd, .date-mm {
|
||||||
|
width: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.date-yyyy {
|
||||||
|
min-width: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.date-calendar-btn {
|
||||||
|
padding-left: 4px;
|
||||||
|
font-size: 0.82rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* ===========================================
|
/* ===========================================
|
||||||
Pagination
|
Pagination
|
||||||
=========================================== */
|
=========================================== */
|
||||||
|
|||||||
Reference in New Issue
Block a user