Perbaikan Detail SK

This commit is contained in:
Ariyutta
2026-10-27 16:32:34 +07:00
parent 570c8da779
commit 7b8d43ed9b
3 changed files with 106 additions and 40 deletions
+49 -4
View File
@@ -866,8 +866,10 @@ table.dataTable thead th,
.badge {
padding: 5px 9px !important;
font-weight: 600 !important;
border-radius: 6px !important;
border-radius: 50rem !important;
letter-spacing: 0.02em;
--ct-bg-opacity: 0.6 !important;
color: #000 !important;
}
.btn {
@@ -1155,6 +1157,18 @@ main .card:nth-of-type(4) {
transform: translateY(-1px);
}
/* DataTables: hanya tabel yang scroll horizontal (dibungkus .dt-scroll-x oleh JS di layout),
kontrol atas (Show/Search) dan bawah (info/pagination) tidak ikut bergeser */
.dt-scroll-x {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.table-responsive:has(> .dataTables_wrapper) {
overflow-x: hidden;
}
/* Badge Micro-animation */
.badge {
transition: transform 0.18s ease, box-shadow 0.18s ease !important;
@@ -1234,12 +1248,43 @@ main .card:nth-of-type(4) {
box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.28), 0 4px 12px rgba(15, 23, 42, 0.12) !important;
}
@media (max-width: 576px) {
/* Fade in/out halus (dikontrol class .is-visible lewat JS di halaman detail SK) */
#floatingActionBar,
#floatingActionBarBackdrop {
opacity: 0;
visibility: hidden;
transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
#floatingActionBar {
transform: translate(-50%, 12px) !important;
transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s;
}
#floatingActionBar.is-visible,
#floatingActionBarBackdrop.is-visible {
opacity: 1;
visibility: visible;
transition-delay: 0s;
}
#floatingActionBar.is-visible {
transform: translate(-50%, 0) !important;
}
/* Mobile: capsule diletakkan di atas tombol WhatsApp Helpdesk (tinggi tombol 52px) dengan gap 16px */
@media (max-width: 767.98px) {
#floatingActionBar {
bottom: 20px !important;
bottom: 96px !important;
}
#floatingActionBarBackdrop {
height: 90px;
height: 170px;
}
}
@media (max-width: 576px) {
#floatingActionBar {
bottom: 88px !important;
}
}