Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Hide sidebar sections, keep the logo */
/* Target Citizen navigation link for Parts Shop */
#mw-panel > *:not(#p-logo) {
#n-shop,
   display: none;
#n-Parts-Shop,
li[id*="shop"] {
   --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'%3E%3C/path%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'%3E%3C/path%3E%3C/svg%3E");
}
}


#mw-panel {
/* Fallback direct injection if CSS variable isn't mapped by the skin */
  width: auto !important;
#n-shop a,
  height: auto !important;
#n-Parts-Shop a,
   background: none !important;
li[id*="shop"] a {
   padding: 0 !important;
   display: flex;
  overflow: visible !important;
   align-items: center;
}
}


/* Logo stays in the top-left on every page */
#n-shop a::before,
#p-logo {
#n-Parts-Shop a::before,
  position: fixed !important;
li[id*="shop"] a::before {
  top: -32px !important;
   content: "";
  left: 8px !important;
   display: inline-block;
  z-index: 1000 !important;
   min-width: 18px;
  width: 672px !important;
   min-height: 18px;
  height: 176px !important;
   margin-right: 0.75rem;
   overflow: visible !important;
   background-color: currentColor;
}
   -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'%3E%3C/path%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
 
   mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'%3E%3C/path%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
#p-logo a,
   -webkit-mask-size: contain;
#p-logo a span {
   mask-size: contain;
   display: block !important;
   width: 672px !important;
   height: 176px !important;
   background-position: left center !important;
   background-repeat: no-repeat !important;
   background-size: contain !important;
}
 
#p-logo img {
  width: 672px !important;
   height: auto !important;
  max-width: none !important;
  max-height: none !important;
}
 
/* Room for the fixed logo */
#mw-head {
   padding-left: 690px !important;
}
 
#content,
.mw-body,
#footer {
   margin-left: 1em !important;
}
}

Latest revision as of 03:51, 21 September 2026

/* Target Citizen navigation link for Parts Shop */
#n-shop,
#n-Parts-Shop,
li[id*="shop"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'%3E%3C/path%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'%3E%3C/path%3E%3C/svg%3E");
}

/* Fallback direct injection if CSS variable isn't mapped by the skin */
#n-shop a,
#n-Parts-Shop a,
li[id*="shop"] a {
  display: flex;
  align-items: center;
}

#n-shop a::before,
#n-Parts-Shop a::before,
li[id*="shop"] a::before {
  content: "";
  display: inline-block;
  min-width: 18px;
  min-height: 18px;
  margin-right: 0.75rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'%3E%3C/path%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'%3E%3C/path%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}