MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
HandWiki Stage custom Vector layout | HandWiki Stage custom Vector layout | ||
Clean version | Clean responsive version | ||
- small logo | - small logo | ||
- old sidebar hidden | - old sidebar hidden | ||
- article moved left | - article moved left | ||
- Portal menu left, green | |||
- Portal | - Sources menu left, yellow/orange | ||
- Sources | - Tools menu right, yellow-to-green gradient | ||
============================================================ */ | ============================================================ */ | ||
| Line 62: | Line 62: | ||
/* ============================================================ | /* ============================================================ | ||
Top | Top navigation positions | ||
============================================================ */ | ============================================================ */ | ||
/* Left menus: Portal + Sources */ | |||
#handwiki-topnav { | #handwiki-topnav { | ||
position: absolute !important; | position: absolute !important; | ||
| Line 80: | Line 81: | ||
margin: 0 !important; | margin: 0 !important; | ||
font-size: 14px !important; | font-size: clamp(12px, 0.9vw, 14px) !important; | ||
} | } | ||
/* | /* Right menu: Tools */ | ||
#handwiki-topnav .handwiki-dropdown { | #handwiki-rightnav { | ||
position: absolute !important; | |||
top: 0.45em !important; | |||
right: 430px !important; | |||
z-index: 100000 !important; | |||
display: flex !important; | |||
align-items: flex-start !important; | |||
background: transparent !important; | |||
border: 0 !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
font-size: clamp(12px, 0.9vw, 14px) !important; | |||
} | |||
/* ============================================================ | |||
Shared dropdown structure | |||
============================================================ */ | |||
#handwiki-topnav .handwiki-dropdown, | |||
#handwiki-rightnav .handwiki-dropdown { | |||
position: relative !important; | position: relative !important; | ||
display: inline-block !important; | display: inline-block !important; | ||
} | } | ||
/* Shared dropdown | /* Shared dropdown buttons */ | ||
#handwiki-topnav .handwiki-dropdown-button { | #handwiki-topnav .handwiki-dropdown-button, | ||
#handwiki-rightnav .handwiki-dropdown-button { | |||
display: block !important; | display: block !important; | ||
min-width: | |||
min-width: clamp(105px, 9vw, 150px) !important; | |||
max-width: 18vw !important; | |||
padding: 5px 12px !important; | padding: 5px 12px !important; | ||
| Line 101: | Line 127: | ||
line-height: 1.4 !important; | line-height: 1.4 !important; | ||
cursor: pointer !important; | cursor: pointer !important; | ||
white-space: nowrap !important; | |||
overflow: hidden !important; | |||
text-overflow: ellipsis !important; | |||
} | } | ||
/* | /* Button colors */ | ||
#handwiki-topnav .handwiki-portal-menu .handwiki-dropdown-button { | #handwiki-topnav .handwiki-portal-menu .handwiki-dropdown-button { | ||
background: #00756b !important; | background: #00756b !important; | ||
| Line 109: | Line 139: | ||
} | } | ||
#handwiki-topnav .handwiki-sources-menu .handwiki-dropdown-button { | #handwiki-topnav .handwiki-sources-menu .handwiki-dropdown-button { | ||
background: #f6b23b !important; | background: #f6b23b !important; | ||
| Line 115: | Line 144: | ||
} | } | ||
/* | #handwiki-rightnav .handwiki-tools-menu .handwiki-dropdown-button { | ||
#handwiki-topnav .handwiki-dropdown-content { | background: linear-gradient(90deg, #f6b23b 0%, #00756b 100%) !important; | ||
color: #ffffff !important; | |||
} | |||
/* Shared dropdown panel */ | |||
#handwiki-topnav .handwiki-dropdown-content, | |||
#handwiki-rightnav .handwiki-dropdown-content { | |||
display: none !important; | display: none !important; | ||
position: absolute !important; | position: absolute !important; | ||
top: 100% !important; | top: 100% !important; | ||
z-index: 100001 !important; | z-index: 100001 !important; | ||
width: | width: clamp(220px, 18vw, 285px) !important; | ||
max-height: calc(100vh - 90px) !important; | |||
overflow-y: auto !important; | |||
padding: 0 0 10px 0 !important; | padding: 0 0 10px 0 !important; | ||
| Line 130: | Line 167: | ||
border: 1px solid #c8ccd1 !important; | border: 1px solid #c8ccd1 !important; | ||
box-shadow: 0 3px 8px rgba(0,0,0,0.22) !important; | box-shadow: 0 3px 8px rgba(0,0,0,0.22) !important; | ||
} | |||
/* Left menus open from left */ | |||
#handwiki-topnav .handwiki-dropdown-content { | |||
left: 0 !important; | |||
} | |||
/* Right menu opens from right */ | |||
#handwiki-rightnav .handwiki-dropdown-content { | |||
right: 0 !important; | |||
} | } | ||
/* Show panel on hover */ | /* Show panel on hover */ | ||
#handwiki-topnav .handwiki-dropdown:hover .handwiki-dropdown-content { | #handwiki-topnav .handwiki-dropdown:hover .handwiki-dropdown-content, | ||
#handwiki-rightnav .handwiki-dropdown:hover .handwiki-dropdown-content { | |||
display: block !important; | display: block !important; | ||
} | } | ||
/* ============================================================ | |||
Dropdown panel content | |||
============================================================ */ | |||
/* Panel title */ | /* Panel title */ | ||
#handwiki-topnav .handwiki-menu-title { | #handwiki-topnav .handwiki-menu-title, | ||
#handwiki-rightnav .handwiki-menu-title { | |||
padding: 10px 8px 7px 8px !important; | padding: 10px 8px 7px 8px !important; | ||
font-size: 16px !important; | font-size: clamp(14px, 1vw, 16px) !important; | ||
text-align: center !important; | text-align: center !important; | ||
color: #000000 !important; | color: #000000 !important; | ||
} | } | ||
/* | /* Internal colored bands */ | ||
#handwiki-topnav .handwiki-menu-band { | #handwiki-topnav .handwiki-menu-band, | ||
#handwiki-rightnav .handwiki-menu-band { | |||
padding: 7px 8px !important; | padding: 7px 8px !important; | ||
margin: 0 0 6px 0 !important; | margin: 0 0 6px 0 !important; | ||
| Line 154: | Line 208: | ||
text-align: center !important; | text-align: center !important; | ||
font-size: 16px !important; | font-size: clamp(14px, 1vw, 16px) !important; | ||
} | } | ||
| Line 161: | Line 215: | ||
background: #f6b23b !important; | background: #f6b23b !important; | ||
color: #000000 !important; | color: #000000 !important; | ||
} | |||
/* Tools inner band */ | |||
#handwiki-rightnav .handwiki-menu-band-gradient, | |||
#handwiki-rightnav .handwiki-menu-band { | |||
background: linear-gradient(90deg, #f6b23b 0%, #00756b 100%) !important; | |||
color: #ffffff !important; | |||
} | } | ||
/* Section headings */ | /* Section headings */ | ||
#handwiki-topnav .handwiki-menu-section { | #handwiki-topnav .handwiki-menu-section, | ||
#handwiki-rightnav .handwiki-menu-section { | |||
margin: 8px 0 4px 0 !important; | margin: 8px 0 4px 0 !important; | ||
padding: 6px 8px 4px 8px !important; | padding: 6px 8px 4px 8px !important; | ||
| Line 174: | Line 236: | ||
} | } | ||
/* | /* Dropdown links */ | ||
#handwiki-topnav .handwiki-dropdown-content a { | #handwiki-topnav .handwiki-dropdown-content a, | ||
#handwiki-rightnav .handwiki-dropdown-content a { | |||
display: block !important; | display: block !important; | ||
padding: 4px 8px !important; | padding: 4px 8px !important; | ||
| Line 181: | Line 244: | ||
color: #0645ad !important; | color: #0645ad !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
white-space: | |||
white-space: normal !important; | |||
overflow-wrap: anywhere !important; | |||
background: transparent !important; | background: transparent !important; | ||
} | } | ||
#handwiki-topnav .handwiki-dropdown-content a:hover { | #handwiki-topnav .handwiki-dropdown-content a:hover, | ||
#handwiki-rightnav .handwiki-dropdown-content a:hover { | |||
background: #eaecf0 !important; | background: #eaecf0 !important; | ||
} | } | ||
/* Bold links, like Main page */ | /* Bold links, like Main page */ | ||
#handwiki-topnav .handwiki-dropdown-content a.handwiki-menu-bold { | #handwiki-topnav .handwiki-dropdown-content a.handwiki-menu-bold, | ||
#handwiki-rightnav .handwiki-dropdown-content a.handwiki-menu-bold { | |||
font-weight: bold !important; | font-weight: bold !important; | ||
color: #000000 !important; | color: #000000 !important; | ||
} | |||
/* ============================================================ | |||
Smaller screens | |||
============================================================ */ | |||
@media screen and (max-width: 1100px) { | |||
#handwiki-rightnav { | |||
right: 220px !important; | |||
} | |||
#handwiki-topnav .handwiki-dropdown-button, | |||
#handwiki-rightnav .handwiki-dropdown-button { | |||
min-width: 115px !important; | |||
max-width: 140px !important; | |||
} | |||
} | |||
@media screen and (max-width: 900px) { | |||
#handwiki-topnav { | |||
top: 3.2em !important; | |||
left: 80px !important; | |||
} | |||
#handwiki-rightnav { | |||
top: 3.2em !important; | |||
right: 12px !important; | |||
} | |||
#content, | |||
.mw-body, | |||
#footer { | |||
margin-top: 2.2em !important; | |||
} | |||
} | |||
/* General green side frame for all pages */ | |||
.mw-body, | |||
#content { | |||
box-sizing: border-box; | |||
border-left: 6px solid #00796b; | |||
border-right: 6px solid #00796b; | |||
/* inside spacing */ | |||
padding-left: 18px; | |||
padding-right: 18px; | |||
/* outside spacing, so the right green line does not touch the screen edge */ | |||
margin-right: 1cm; | |||
} | |||
/* Enlarge old Vector / MediaWiki sidebar logo */ | |||
#p-logo { | |||
width: 180px !important; | |||
height: 180px !important; | |||
} | |||
#p-logo a, | |||
#p-logo .mw-wiki-logo { | |||
width: 180px !important; | |||
height: 180px !important; | |||
background-size: contain !important; | |||
background-repeat: no-repeat !important; | |||
background-position: center center !important; | |||
} | |||
/* Give the sidebar enough room for the larger logo */ | |||
#mw-panel { | |||
padding-top: 180px !important; | |||
} | |||
.mw-logo | |||
#p-logo | |||
#mw-panel padding-top: 180px | |||
/* ScholarlyWiki top-left logo FINAL */ | |||
#p-logo { | |||
position: fixed !important; | |||
top: 0px !important; | |||
left: 0px !important; | |||
width: 135px !important; | |||
height: 135px !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
z-index: 99999 !important; | |||
} | |||
/* ScholarlyWiki top-left logo FINAL */ | |||
#p-logo { | |||
position: fixed !important; | |||
top: -4px !important; | |||
left: -6px !important; | |||
width: 150px !important; | |||
height: 150px !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
z-index: 99999 !important; | |||
} | |||
/* ScholarlyWiki top-left logo FINAL */ | |||
#p-logo { | |||
position: absolute !important; | |||
top: -4px !important; | |||
left: -6px !important; | |||
width: 150px !important; | |||
height: 150px !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
z-index: 99999 !important; | |||
} | |||
#p-logo a, | |||
#p-logo .mw-wiki-logo { | |||
display: block !important; | |||
width: 150px !important; | |||
height: 150px !important; | |||
background-size: contain !important; | |||
background-repeat: no-repeat !important; | |||
background-position: top left !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | |||
#mw-panel { | |||
padding-top: 0 !important; | |||
} | } | ||
Latest revision as of 00:24, 14 May 2026
/* ============================================================
HandWiki Stage custom Vector layout
Clean responsive version
- small logo
- old sidebar hidden
- article moved left
- Portal menu left, green
- Sources menu left, yellow/orange
- Tools menu right, yellow-to-green gradient
============================================================ */
/* Basic cleanup */
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 left */
#content,
.mw-body,
#footer {
margin-left: 45px !important;
}
/* ============================================================
Top navigation positions
============================================================ */
/* Left menus: Portal + Sources */
#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: clamp(12px, 0.9vw, 14px) !important;
}
/* Right menu: Tools */
#handwiki-rightnav {
position: absolute !important;
top: 0.45em !important;
right: 430px !important;
z-index: 100000 !important;
display: flex !important;
align-items: flex-start !important;
background: transparent !important;
border: 0 !important;
padding: 0 !important;
margin: 0 !important;
font-size: clamp(12px, 0.9vw, 14px) !important;
}
/* ============================================================
Shared dropdown structure
============================================================ */
#handwiki-topnav .handwiki-dropdown,
#handwiki-rightnav .handwiki-dropdown {
position: relative !important;
display: inline-block !important;
}
/* Shared dropdown buttons */
#handwiki-topnav .handwiki-dropdown-button,
#handwiki-rightnav .handwiki-dropdown-button {
display: block !important;
min-width: clamp(105px, 9vw, 150px) !important;
max-width: 18vw !important;
padding: 5px 12px !important;
border: 1px solid #a2a9b1 !important;
text-align: left !important;
font-weight: bold !important;
line-height: 1.4 !important;
cursor: pointer !important;
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
}
/* Button colors */
#handwiki-topnav .handwiki-portal-menu .handwiki-dropdown-button {
background: #00756b !important;
color: #ffffff !important;
}
#handwiki-topnav .handwiki-sources-menu .handwiki-dropdown-button {
background: #f6b23b !important;
color: #000000 !important;
}
#handwiki-rightnav .handwiki-tools-menu .handwiki-dropdown-button {
background: linear-gradient(90deg, #f6b23b 0%, #00756b 100%) !important;
color: #ffffff !important;
}
/* Shared dropdown panel */
#handwiki-topnav .handwiki-dropdown-content,
#handwiki-rightnav .handwiki-dropdown-content {
display: none !important;
position: absolute !important;
top: 100% !important;
z-index: 100001 !important;
width: clamp(220px, 18vw, 285px) !important;
max-height: calc(100vh - 90px) !important;
overflow-y: auto !important;
padding: 0 0 10px 0 !important;
background: #f8f9fa !important;
border: 1px solid #c8ccd1 !important;
box-shadow: 0 3px 8px rgba(0,0,0,0.22) !important;
}
/* Left menus open from left */
#handwiki-topnav .handwiki-dropdown-content {
left: 0 !important;
}
/* Right menu opens from right */
#handwiki-rightnav .handwiki-dropdown-content {
right: 0 !important;
}
/* Show panel on hover */
#handwiki-topnav .handwiki-dropdown:hover .handwiki-dropdown-content,
#handwiki-rightnav .handwiki-dropdown:hover .handwiki-dropdown-content {
display: block !important;
}
/* ============================================================
Dropdown panel content
============================================================ */
/* Panel title */
#handwiki-topnav .handwiki-menu-title,
#handwiki-rightnav .handwiki-menu-title {
padding: 10px 8px 7px 8px !important;
font-size: clamp(14px, 1vw, 16px) !important;
text-align: center !important;
color: #000000 !important;
}
/* Internal colored bands */
#handwiki-topnav .handwiki-menu-band,
#handwiki-rightnav .handwiki-menu-band {
padding: 7px 8px !important;
margin: 0 0 6px 0 !important;
background: #00756b !important;
color: #ffffff !important;
text-align: center !important;
font-size: clamp(14px, 1vw, 16px) !important;
}
/* Sources inner band */
#handwiki-topnav .handwiki-menu-band-orange {
background: #f6b23b !important;
color: #000000 !important;
}
/* Tools inner band */
#handwiki-rightnav .handwiki-menu-band-gradient,
#handwiki-rightnav .handwiki-menu-band {
background: linear-gradient(90deg, #f6b23b 0%, #00756b 100%) !important;
color: #ffffff !important;
}
/* Section headings */
#handwiki-topnav .handwiki-menu-section,
#handwiki-rightnav .handwiki-menu-section {
margin: 8px 0 4px 0 !important;
padding: 6px 8px 4px 8px !important;
border-top: 2px solid #c8ccd1 !important;
color: #000000 !important;
font-weight: bold !important;
}
/* Dropdown links */
#handwiki-topnav .handwiki-dropdown-content a,
#handwiki-rightnav .handwiki-dropdown-content a {
display: block !important;
padding: 4px 8px !important;
color: #0645ad !important;
text-decoration: none !important;
white-space: normal !important;
overflow-wrap: anywhere !important;
background: transparent !important;
}
#handwiki-topnav .handwiki-dropdown-content a:hover,
#handwiki-rightnav .handwiki-dropdown-content a:hover {
background: #eaecf0 !important;
}
/* Bold links, like Main page */
#handwiki-topnav .handwiki-dropdown-content a.handwiki-menu-bold,
#handwiki-rightnav .handwiki-dropdown-content a.handwiki-menu-bold {
font-weight: bold !important;
color: #000000 !important;
}
/* ============================================================
Smaller screens
============================================================ */
@media screen and (max-width: 1100px) {
#handwiki-rightnav {
right: 220px !important;
}
#handwiki-topnav .handwiki-dropdown-button,
#handwiki-rightnav .handwiki-dropdown-button {
min-width: 115px !important;
max-width: 140px !important;
}
}
@media screen and (max-width: 900px) {
#handwiki-topnav {
top: 3.2em !important;
left: 80px !important;
}
#handwiki-rightnav {
top: 3.2em !important;
right: 12px !important;
}
#content,
.mw-body,
#footer {
margin-top: 2.2em !important;
}
}
/* General green side frame for all pages */
.mw-body,
#content {
box-sizing: border-box;
border-left: 6px solid #00796b;
border-right: 6px solid #00796b;
/* inside spacing */
padding-left: 18px;
padding-right: 18px;
/* outside spacing, so the right green line does not touch the screen edge */
margin-right: 1cm;
}
/* Enlarge old Vector / MediaWiki sidebar logo */
#p-logo {
width: 180px !important;
height: 180px !important;
}
#p-logo a,
#p-logo .mw-wiki-logo {
width: 180px !important;
height: 180px !important;
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: center center !important;
}
/* Give the sidebar enough room for the larger logo */
#mw-panel {
padding-top: 180px !important;
}
.mw-logo
#p-logo
#mw-panel padding-top: 180px
/* ScholarlyWiki top-left logo FINAL */
#p-logo {
position: fixed !important;
top: 0px !important;
left: 0px !important;
width: 135px !important;
height: 135px !important;
margin: 0 !important;
padding: 0 !important;
z-index: 99999 !important;
}
/* ScholarlyWiki top-left logo FINAL */
#p-logo {
position: fixed !important;
top: -4px !important;
left: -6px !important;
width: 150px !important;
height: 150px !important;
margin: 0 !important;
padding: 0 !important;
z-index: 99999 !important;
}
/* ScholarlyWiki top-left logo FINAL */
#p-logo {
position: absolute !important;
top: -4px !important;
left: -6px !important;
width: 150px !important;
height: 150px !important;
margin: 0 !important;
padding: 0 !important;
z-index: 99999 !important;
}
#p-logo a,
#p-logo .mw-wiki-logo {
display: block !important;
width: 150px !important;
height: 150px !important;
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: top left !important;
margin: 0 !important;
padding: 0 !important;
}
#mw-panel {
padding-top: 0 !important;
}