MediaWiki:Common.css: Perbedaan antara revisi
Tampilan
Tidak ada ringkasan suntingan |
Tidak ada ringkasan suntingan |
||
Baris 1: | Baris 1: | ||
/* ================================ | /* ================================ | ||
🌐 | 🌐 Dropdown Header Menu (Fix Bullet) | ||
================================ */ | ================================ */ | ||
/* | /* Hapus bullet pada li globe */ | ||
.custom-sites-dropdown { | .vector-header-end .vector-user-links .vector-menu-content-list | ||
> li.vector-menu-content-item.vector-dropdown.custom-sites-dropdown { | |||
list-style: none !important; | |||
padding-left: 0 !important; | |||
margin-left: 0 !important; | |||
font-size: 0; /* untuk menyembunyikan teks tambahan bila ada */ | |||
} | } | ||
/* Tombol | /* Hilangkan marker pseudo-element */ | ||
.vector-header-end .vector-user-links .vector-menu-content-list | |||
> li.vector-menu-content-item.vector-dropdown.custom-sites-dropdown::marker { | |||
content: "" !important; | |||
display: none !important; | |||
} | |||
/* Tombol dropdown */ | |||
.custom-sites-dropdown .dropdown-toggle { | .custom-sites-dropdown .dropdown-toggle { | ||
display: inline-flex; | display: inline-flex; | ||
Baris 37: | Baris 48: | ||
border-radius: 8px; | border-radius: 8px; | ||
z-index: 999; | z-index: 999; | ||
opacity: 0; | |||
transform: translateY(-5px); | |||
transition: opacity 0.15s ease, transform 0.15s ease; | |||
} | } | ||
.custom-sites-dropdown.open .dropdown-menu { | .custom-sites-dropdown.open .dropdown-menu { | ||
display: block; | display: block; | ||
opacity: 1; | |||
transform: translateY(0); | |||
} | } | ||
.custom-sites-dropdown .dropdown-menu li { | .custom-sites-dropdown .dropdown-menu li { | ||
margin: 0; | margin: 0; | ||
Baris 60: | Baris 75: | ||
} | } | ||
/* | /* Tampilkan kembali link login/user */ | ||
li#pt-login, | li#pt-login, | ||
li#pt-userpage, | li#pt-userpage, | ||
Baris 84: | Baris 82: | ||
list-style: none; | list-style: none; | ||
font-size: initial !important; | font-size: initial !important; | ||
} | } |
Revisi per 19 Oktober 2025 08.20
/* ================================
🌐 Dropdown Header Menu (Fix Bullet)
================================ */
/* Hapus bullet pada li globe */
.vector-header-end .vector-user-links .vector-menu-content-list
> li.vector-menu-content-item.vector-dropdown.custom-sites-dropdown {
list-style: none !important;
padding-left: 0 !important;
margin-left: 0 !important;
font-size: 0; /* untuk menyembunyikan teks tambahan bila ada */
}
/* Hilangkan marker pseudo-element */
.vector-header-end .vector-user-links .vector-menu-content-list
> li.vector-menu-content-item.vector-dropdown.custom-sites-dropdown::marker {
content: "" !important;
display: none !important;
}
/* Tombol dropdown */
.custom-sites-dropdown .dropdown-toggle {
display: inline-flex;
align-items: center;
cursor: pointer;
font-weight: 600;
color: #0073aa;
text-decoration: none;
padding: 0 0.5em;
}
.custom-sites-dropdown .dropdown-toggle:hover {
text-decoration: underline;
}
/* Isi dropdown */
.custom-sites-dropdown .dropdown-menu {
display: none;
position: absolute;
right: 0;
top: 100%;
background: #fff;
list-style: none;
margin: 0;
padding: 0.5em 0;
min-width: 280px;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
border-radius: 8px;
z-index: 999;
opacity: 0;
transform: translateY(-5px);
transition: opacity 0.15s ease, transform 0.15s ease;
}
.custom-sites-dropdown.open .dropdown-menu {
display: block;
opacity: 1;
transform: translateY(0);
}
.custom-sites-dropdown .dropdown-menu li {
margin: 0;
}
.custom-sites-dropdown .dropdown-menu li a {
display: block;
padding: 0.5em 1em;
color: #202122;
text-decoration: none;
white-space: nowrap;
}
.custom-sites-dropdown .dropdown-menu li a:hover {
background: #f0f0f0;
}
/* Tampilkan kembali link login/user */
li#pt-login,
li#pt-userpage,
li#pt-anonlogin {
display: list-item !important;
list-style: none;
font-size: initial !important;
}