MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* HandWiki Stage top | /* ============================================================ | ||
HandWiki Stage custom Vector layout | |||
- small logo | |||
- old sidebar links hidden | |||
- top roll-down menus beside logo | |||
============================================================ */ | |||
/* Remove | /* Remove test/debug styling */ | ||
body { | body { | ||
border-top: none !important; | border-top: none !important; | ||
} | } | ||
/* | /* Keep the left logo column narrow */ | ||
#mw-panel { | |||
width: 105px !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: 75px !important; | |||
height: 75px !important; | |||
left: 14px !important; | |||
top: 10px !important; | |||
overflow: hidden !important; | |||
} | |||
#p-logo a, | |||
#p-logo .mw-wiki-logo { | |||
width: 75px !important; | |||
height: 75px !important; | |||
display: block !important; | |||
background-size: 75px auto !important; | |||
background-position: center center !important; | |||
background-repeat: no-repeat !important; | |||
} | |||
/* Keep article clear of logo column */ | |||
#content, | |||
.mw-body, | |||
#footer { | |||
margin-left: 105px !important; | |||
} | |||
/* Top header dropdown navigation */ | |||
#handwiki-topnav { | #handwiki-topnav { | ||
position: absolute !important; | position: absolute !important; | ||
top: 0. | top: 0.45em !important; | ||
left: | left: 125px !important; | ||
z-index: 100000 !important; | z-index: 100000 !important; | ||
display: flex !important; | display: flex !important; | ||
gap: 10px !important; | gap: 10px !important; | ||
align-items: flex-start !important; | align-items: flex-start !important; | ||
background: transparent !important; | background: transparent !important; | ||
border: 0 !important; | border: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
font-size: 13px !important; | font-size: 13px !important; | ||
} | } | ||
| Line 31: | Line 79: | ||
#handwiki-topnav .handwiki-dropdown-button { | #handwiki-topnav .handwiki-dropdown-button { | ||
display: block !important; | display: block !important; | ||
min-width: 145px !important; | |||
padding: 4px 10px !important; | |||
border: 1px solid #a2a9b1 !important; | border: 1px solid #a2a9b1 !important; | ||
background: #ffffff !important; | background: #ffffff !important; | ||
color: #0645ad !important; | color: #0645ad !important; | ||
text-align: left !important; | text-align: left !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
line-height: 1.4 !important; | |||
cursor: pointer !important; | cursor: pointer !important; | ||
} | } | ||
| Line 45: | Line 95: | ||
#handwiki-topnav .handwiki-dropdown-content { | #handwiki-topnav .handwiki-dropdown-content { | ||
display: none !important; | display: none !important; | ||
position: absolute !important; | position: absolute !important; | ||
top: 100% !important; | top: 100% !important; | ||
left: 0 !important; | left: 0 !important; | ||
z-index: 100001 !important; | z-index: 100001 !important; | ||
min-width: | |||
min-width: 240px !important; | |||
padding: 6px 0 !important; | |||
background: #ffffff !important; | background: #ffffff !important; | ||
border: 1px solid #a2a9b1 !important; | border: 1px solid #a2a9b1 !important; | ||
box-shadow: 0 2px 6px rgba(0,0,0,0.18) !important; | box-shadow: 0 2px 6px rgba(0,0,0,0.18) !important; | ||
} | } | ||
| Line 65: | Line 118: | ||
display: block !important; | display: block !important; | ||
padding: 6px 12px !important; | padding: 6px 12px !important; | ||
color: #0645ad !important; | |||
text-decoration: none !important; | text-decoration: none !important; | ||
white-space: nowrap !important; | white-space: nowrap !important; | ||
| Line 71: | Line 126: | ||
#handwiki-topnav .handwiki-dropdown-content a:hover { | #handwiki-topnav .handwiki-dropdown-content a:hover { | ||
background: #eaecf0 !important; | background: #eaecf0 !important; | ||
} | } | ||
Revision as of 17:14, 9 May 2026
/* ============================================================
HandWiki Stage custom Vector layout
- small logo
- old sidebar links hidden
- top roll-down menus beside logo
============================================================ */
/* Remove test/debug styling */
body {
border-top: none !important;
}
/* Keep the left logo column narrow */
#mw-panel {
width: 105px !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: 75px !important;
height: 75px !important;
left: 14px !important;
top: 10px !important;
overflow: hidden !important;
}
#p-logo a,
#p-logo .mw-wiki-logo {
width: 75px !important;
height: 75px !important;
display: block !important;
background-size: 75px auto !important;
background-position: center center !important;
background-repeat: no-repeat !important;
}
/* Keep article clear of logo column */
#content,
.mw-body,
#footer {
margin-left: 105px !important;
}
/* Top header dropdown navigation */
#handwiki-topnav {
position: absolute !important;
top: 0.45em !important;
left: 125px !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;
}