MediaWiki:Common.css: Perbedaan antara revisi
Tidak ada ringkasan suntingan |
Tidak ada ringkasan suntingan |
||
Baris 1: | Baris 1: | ||
/* | /* ================================ | ||
/* | 🌐 CUSTOM DROPDOWN MENU HEADER | ||
================================ */ | |||
/* Wrapper dropdown */ | |||
.custom-sites-dropdown { | .custom-sites-dropdown { | ||
position: relative; | position: relative; | ||
} | } | ||
/* Tombol globe */ | |||
.custom-sites-dropdown .dropdown-toggle { | .custom-sites-dropdown .dropdown-toggle { | ||
display: inline-flex; | |||
align-items: center; | |||
cursor: pointer; | cursor: pointer; | ||
font-weight: 600; | font-weight: 600; | ||
Baris 17: | Baris 23: | ||
} | } | ||
/* Isi dropdown */ | |||
.custom-sites-dropdown .dropdown-menu { | .custom-sites-dropdown .dropdown-menu { | ||
display: none; | display: none; | ||
Baris 36: | Baris 43: | ||
} | } | ||
/* Item dropdown */ | |||
.custom-sites-dropdown .dropdown-menu li { | .custom-sites-dropdown .dropdown-menu li { | ||
margin: 0; | margin: 0; | ||
Baris 48: | Baris 56: | ||
} | } | ||
. | .custom-sites-dropdown .dropdown-menu li a:hover { | ||
background: #f0f0f0; | |||
} | } | ||
/* ================================ | |||
🧼 Hapus bullet (tanda titik) | |||
================================ */ | |||
.vector-header-end .vector-user-links .vector-menu-content-list > li.custom-sites-dropdown { | |||
list-style: none !important; | |||
padding-left: 0 !important; | |||
margin-left: 0 !important; | |||
font-size: 0; /* hanya untuk sembunyikan teks jika ada */ | |||
} | |||
.vector-header-end .vector-user-links .vector-menu-content-list > li.custom-sites-dropdown::marker { | |||
content: "" !important; | |||
display: none !important; | |||
.vector-header-end .vector-user-links .vector-menu-content-list > li.custom- | |||
content: none !important; | |||
} | } | ||
/* ================================ | |||
/* | 🔐 Tampilkan kembali link login/user | ||
================================ */ | |||
li#pt-login, | li#pt-login, | ||
li#pt-userpage, | li#pt-userpage, | ||
Baris 67: | Baris 83: | ||
display: list-item !important; | display: list-item !important; | ||
list-style: none; | list-style: none; | ||
font-size: initial !important; | |||
} | |||
/* ================================ | |||
(Opsional) Animasi dropdown ringan | |||
================================ */ | |||
.custom-sites-dropdown .dropdown-menu { | |||
opacity: 0; | |||
transform: translateY(-5px); | |||
transition: opacity 0.15s ease, transform 0.15s ease; | |||
} | |||
.custom-sites-dropdown.open .dropdown-menu { | |||
opacity: 1; | |||
transform: translateY(0); | |||
} | } |