MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
============================================================ */ | ============================================================ */ | ||
/* | /* Normal page styling */ | ||
body { | body { | ||
border-top: none !important; | border-top: none !important; | ||
background: #ffffff !important; | |||
} | |||
#content, | |||
.mw-body { | |||
background: #ffffff !important; | |||
} | } | ||
/* | /* Narrow old left column */ | ||
#mw-panel { | #mw-panel { | ||
width: | width: 90px !important; | ||
} | } | ||
| Line 27: | Line 33: | ||
/* Small logo */ | /* Small logo */ | ||
#p-logo { | #p-logo { | ||
width: | width: 70px !important; | ||
height: | height: 70px !important; | ||
left: | left: 12px !important; | ||
top: | top: 8px !important; | ||
overflow: hidden !important; | overflow: hidden !important; | ||
} | } | ||
| Line 36: | Line 42: | ||
#p-logo a, | #p-logo a, | ||
#p-logo .mw-wiki-logo { | #p-logo .mw-wiki-logo { | ||
width: | width: 70px !important; | ||
height: | height: 70px !important; | ||
display: block !important; | display: block !important; | ||
background-size: | background-size: 70px auto !important; | ||
background-position: center center !important; | background-position: center center !important; | ||
background-repeat: no-repeat !important; | background-repeat: no-repeat !important; | ||
} | } | ||
/* | /* Move article page more to the left */ | ||
#content, | #content, | ||
.mw-body, | .mw-body, | ||
| Line 55: | Line 61: | ||
position: absolute !important; | position: absolute !important; | ||
top: 0.45em !important; | top: 0.45em !important; | ||
left: | left: 115px !important; | ||
z-index: 100000 !important; | z-index: 100000 !important; | ||
| Line 126: | Line 132: | ||
#handwiki-topnav .handwiki-dropdown-content a:hover { | #handwiki-topnav .handwiki-dropdown-content a:hover { | ||
background: #eaecf0 !important; | background: #eaecf0 !important; | ||
} | } | ||
Revision as of 17:22, 9 May 2026
/* ============================================================
HandWiki Stage custom Vector layout
- small logo
- old sidebar links hidden
- top roll-down menus beside logo
============================================================ */
/* Normal page styling */
body {
border-top: none !important;
background: #ffffff !important;
}
#content,
.mw-body {
background: #ffffff !important;
}
/* Narrow old left column */
#mw-panel {
width: 90px !important;
}
/* Hide old left sidebar menus, but keep logo */
#mw-panel .portal,
#mw-panel nav,
#mw-panel .vector-menu-portal,
#mw-panel #p-navigation,
#mw-panel #p-tb {
display: none !important;
}
/* Small logo */
#p-logo {
width: 70px !important;
height: 70px !important;
left: 12px !important;
top: 8px !important;
overflow: hidden !important;
}
#p-logo a,
#p-logo .mw-wiki-logo {
width: 70px !important;
height: 70px !important;
display: block !important;
background-size: 70px auto !important;
background-position: center center !important;
background-repeat: no-repeat !important;
}
/* Move article page more to the left */
#content,
.mw-body,
#footer {
margin-left: 45px !important;
}
/* Top header dropdown navigation */
#handwiki-topnav {
position: absolute !important;
top: 0.45em !important;
left: 115px !important;
z-index: 100000 !important;
display: flex !important;
gap: 10px !important;
align-items: flex-start !important;
background: transparent !important;
border: 0 !important;
padding: 0 !important;
margin: 0 !important;
font-size: 13px !important;
}
/* Dropdown container */
#handwiki-topnav .handwiki-dropdown {
position: relative !important;
display: inline-block !important;
}
/* Dropdown button */
#handwiki-topnav .handwiki-dropdown-button {
display: block !important;
min-width: 145px !important;
padding: 4px 10px !important;
border: 1px solid #a2a9b1 !important;
background: #ffffff !important;
color: #0645ad !important;
text-align: left !important;
font-weight: bold !important;
line-height: 1.4 !important;
cursor: pointer !important;
}
/* Dropdown panel */
#handwiki-topnav .handwiki-dropdown-content {
display: none !important;
position: absolute !important;
top: 100% !important;
left: 0 !important;
z-index: 100001 !important;
min-width: 240px !important;
padding: 6px 0 !important;
background: #ffffff !important;
border: 1px solid #a2a9b1 !important;
box-shadow: 0 2px 6px rgba(0,0,0,0.18) !important;
}
/* Show dropdown on hover */
#handwiki-topnav .handwiki-dropdown:hover .handwiki-dropdown-content {
display: block !important;
}
/* Dropdown links */
#handwiki-topnav .handwiki-dropdown-content a {
display: block !important;
padding: 6px 12px !important;
color: #0645ad !important;
text-decoration: none !important;
white-space: nowrap !important;
}
#handwiki-topnav .handwiki-dropdown-content a:hover {
background: #eaecf0 !important;
}