Pembaruan UI Menu SK
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
{{-- CSS bersama kolom Tentang (maks 2 baris + Baca selengkapnya + tombol salin). Di-include di dalam <style> tiap sub menu SK. --}}
|
||||
tbody .tentang-teks {
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
transition: height 0.3s ease;
|
||||
}
|
||||
|
||||
tbody .tentang-teks.expanded {
|
||||
display: block;
|
||||
-webkit-line-clamp: unset;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
tbody .tentang-baca {
|
||||
display: inline-block;
|
||||
color: #2563eb;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
tbody .tentang-baca:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
tbody .btn-salin-toggle::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
tbody .dropdown-menu {
|
||||
z-index: 1055;
|
||||
}
|
||||
|
||||
/* Animasi muncul menu salin (pakai properti `translate` agar tidak menimpa `transform` milik Popper) */
|
||||
tbody .dropdown-menu.show {
|
||||
animation: menuSalinMuncul 0.18s ease-out;
|
||||
}
|
||||
|
||||
@keyframes menuSalinMuncul {
|
||||
from {
|
||||
opacity: 0;
|
||||
translate: 0 -6px;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
translate: 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
tbody .btn-salin-toggle {
|
||||
transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
|
||||
}
|
||||
|
||||
tbody .btn-salin-toggle:active {
|
||||
transform: scale(0.88);
|
||||
}
|
||||
|
||||
tbody .dropdown-menu .dropdown-item {
|
||||
transition: background-color 0.15s ease, padding-left 0.15s ease;
|
||||
}
|
||||
|
||||
tbody .dropdown-menu .dropdown-item:hover {
|
||||
padding-left: 1.25rem;
|
||||
}
|
||||
Reference in New Issue
Block a user