MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 242: | Line 242: | ||
padding: 14px !important; | padding: 14px !important; | ||
} | } | ||
} | |||
/* ===== STICKY SIDEBAR (desktop only) ===== */ | |||
@media screen and (min-width: 1000px) { | |||
.mw-sidebar, | |||
#vector-main-menu-pinned-container, | |||
.vector-main-menu-pinned-container { | |||
position: sticky !important; | |||
top: 0 !important; | |||
max-height: 100vh !important; | |||
overflow-y: auto !important; | |||
overflow-x: hidden !important; | |||
} | |||
/* Hide scrollbar but keep functionality */ | |||
#vector-main-menu-pinned-container::-webkit-scrollbar { | |||
width: 4px; | |||
} | |||
#vector-main-menu-pinned-container::-webkit-scrollbar-thumb { | |||
background: #ccc; | |||
border-radius: 4px; | |||
} | |||
} | |||
/* ===== HIDE TRANSLATE FROM TOOLS MENU ===== */ | |||
#p-tb #t-uls, | |||
#p-tb li:has(a[href*="Special:Translate"]) { | |||
display: none !important; | |||
} | |||
/* ===== TRANSLATE IN SIDEBAR STYLING ===== */ | |||
#p-sidebar-translate { | |||
margin-top: 4px !important; | |||
} | |||
#p-sidebar-translate .vector-menu-heading { | |||
display: none !important; | |||
} | |||
#sidebar-translate-link { | |||
display: flex !important; | |||
align-items: center !important; | |||
gap: 6px !important; | |||
padding: 6px 10px !important; | |||
color: #2e7d32 !important; | |||
font-weight: 600 !important; | |||
font-size: 13px !important; | |||
text-decoration: none !important; | |||
border-radius: 4px !important; | |||
transition: background 0.2s !important; | |||
} | |||
#sidebar-translate-link:hover { | |||
background: #e8f5e9 !important; | |||
color: #1b5e20 !important; | |||
} | } | ||