MediaWiki:Vector.css: Difference between revisions

From aurawatch
Jump to navigation Jump to search
No edit summary
No edit summary
Line 97: Line 97:


/* ok */
/* ok */
/* === Dark, encapsulated thumbnails (Parsoid + legacy) === */
/* Colors */
/* outer frame bg: #2f2f2f, outer border: #444, inner border: #6a6a6a, caption text: #c0c0c0 */
/* Figure = outer box (caption included) */
.mw-parser-output figure[typeof~="mw:File/Thumb"],
.mw-parser-output figure[typeof~="mw:File/Thumb"],
.mw-parser-output figure[typeof~="mw:Image/Thumb"],
.mw-parser-output figure[typeof~="mw:Image/Thumb"],
.mw-parser-output figure[typeof~="mw:File/Frame"],
.mw-parser-output figure[typeof~="mw:File/Frame"],
.mw-parser-output figure[typeof~="mw:Image/Frame"]{
.mw-parser-output figure[typeof~="mw:Image/Frame"] {
   display:inline-block !important;
  /* keep MW's shrink-to-image behavior */
   max-width:100% !important;
   display: inline-block !important;     /* so width = widest child (the image/link) */
   background:#2f2f2f !important;
  width: auto !important;              /* do NOT force 100% */
   border:1px solid #444 !important;     /* darker outer border */
   max-width: 100% !important;
   padding:4px !important;               /* mat */
 
   margin:0 !important;
   background: #2f2f2f !important;
   box-shadow:none !important;
   border: 1px solid #444 !important;
   box-sizing:border-box !important;
   padding: 4px !important;             /* mat between outer & inner border */
   margin: 0 !important;
  box-sizing: border-box !important;
   box-shadow: none !important;
   vertical-align: top;                  /* avoids baseline gaps in rows */
}
 
/* Centered thumbs: keep them narrow, not full width */
.mw-parser-output figure.mw-halign-center[typeof*="mw:"] {
  /* MW sometimes makes centered figures behave like blocks; force shrink */
  display: inline-block !important;
  width: -moz-fit-content !important;  /* Firefox */
  width: fit-content !important;        /* modern browsers */
  margin-left: auto !important;
  margin-right: auto !important;
}
}


/* Inner border around the image wrapper (covers <a> and <span><a>) */
/* Inner border on the clickable wrapper (covers <a> and <span><a>) */
.mw-parser-output figure[typeof*="mw:"] > a:first-child,
.mw-parser-output figure[typeof*="mw:"] > a:first-child,
.mw-parser-output figure[typeof*="mw:"] > span:first-child > a{
.mw-parser-output figure[typeof*="mw:"] > span:first-child > a {
   display:block !important;
  /* default MW uses a block link that fills the figure width = image width */
   line-height:0 !important;             /* removes baseline gap */
   display: block !important;
   background:transparent !important;
   line-height: 0 !important;           /* kill baseline gap under the image */
   border:1px solid #6a6a6a !important; /* darker inner border */
   background: transparent !important;
   padding:0 !important;
   border: 1px solid #6a6a6a !important; /* inner border color */
   box-shadow:none !important;
   padding: 0 !important;
   box-shadow: none !important;
  width: auto !important;              /* never force 100% */
}
}


/* Image element */
/* Image element */
.mw-parser-output figure[typeof*="mw:"] img{
.mw-parser-output figure[typeof*="mw:"] img {
   display:block !important;
   display: block !important;
   max-width:100% !important;
   max-width: 100% !important;
   height:auto !important;
   height: auto !important;
   background:transparent !important;
   background: transparent !important;
   border:0 !important;
   border: 0 !important;
   box-shadow:none !important;
   box-shadow: none !important;
}
}


/* Caption inside the frame */
/* Caption (inside the frame, wraps within image width) */
.mw-parser-output figure[typeof*="mw:"] figcaption{
.mw-parser-output figure[typeof*="mw:"] figcaption {
   display:block !important;
   display: block !important;
   margin:6px 8px 4px !important;
   margin: 6px 8px 4px !important;
   padding:0 !important;
   padding: 0 !important;
   line-height:1.4 !important;
   line-height: 1.4 !important;
   white-space:normal !important;
   white-space: normal !important;
   writing-mode:horizontal-tb !important;
   writing-mode: horizontal-tb !important;
   color:#c0c0c0 !important;
   color: #c0c0c0 !important;
   background:transparent !important;
   background: transparent !important;
   border:0 !important;
   border: 0 !important;
}
}


/* Hide magnify/file-description icon */
/* Hide the “magnify / file description” icon */
.mw-parser-output figure .magnify,
.mw-parser-output figure .magnify,
.mw-parser-output figure a.mw-file-description,
.mw-parser-output figure a.mw-file-description,
.mw-parser-output figure a.mw-file-description::before,
.mw-parser-output figure a.mw-file-description::before,
.mw-parser-output figure a.mw-file-description::after{
.mw-parser-output figure a.mw-file-description::after {
   display:none !important;
   display: none !important;
   content:none !important;
   content: none !important;
   background:none !important;
   background: none !important;
}
}


/* ---- Legacy (non-Parsoid) thumbs ---- */
/* ---- LEGACY (non-Parsoid) .thumb markup ---- */
.mw-parser-output .thumb .thumbinner{
 
   background:#2f2f2f !important;
.mw-parser-output .thumb .thumbinner {
   border:1px solid #444 !important;
   background: #2f2f2f !important;
   padding:4px !important;
   border: 1px solid #444 !important;
   line-height:0 !important;
   padding: 4px !important;
   width:auto !important;
   line-height: 0 !important;
   width: auto !important;              /* keep shrink-to-image */
  box-sizing: border-box !important;
}
}
.mw-parser-output .thumb .thumbinner a.image{
 
   display:block !important;
.mw-parser-output .thumb .thumbinner a.image {
   border:1px solid #6a6a6a !important;
   display: block !important;
   padding:0 !important;
   border: 1px solid #6a6a6a !important;
}
   padding: 0 !important;
.mw-parser-output .thumb img.thumbimage{
  display:block !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
.mw-parser-output .thumb .thumbcaption{
  margin:6px 8px 4px !important;
  background:transparent !important;
  border:0 !important;
  color:#c0c0c0 !important;
}
}


/* --- prevent full-width thumbnail boxes (Parsoid/VE) --- */
.mw-parser-output .thumb img.thumbimage {
.mw-parser-output figure[typeof*="mw:"] {
   display: block !important;
   display: inline-block !important;  /* figure shrinks to its contents */
   background: transparent !important;
   width: auto !important;
  border: 0 !important;
   max-width: 100% !important;         /* still responsive on narrow screens */
  box-shadow: none !important;
   height: auto !important;
   max-width: 100% !important;
}
}


.mw-parser-output figure[typeof*="mw:"] > a:first-child,
.mw-parser-output .thumb .thumbcaption {
.mw-parser-output figure[typeof*="mw:"] > span:first-child > a {
  margin: 6px 8px 4px !important;
   display: inline-block !important;   /* NOT block, so it doesn't stretch */
  background: transparent !important;
   width: auto !important;
   border: 0 !important;
   line-height: 0 !important;         /* keeps the bottom gap gone */
   color: #c0c0c0 !important;
   line-height: 1.4 !important;
  white-space: normal !important;
}
}



Revision as of 13:31, 18 September 2025

div.vectorTabs ul li#ca-history {
    display: none;
}
.vector-menu-tabs-legacy li {
    background-color: transparent !important;
    color: #72777d;
    cursor: pointer;
}
.new.mw-list-item {
    background-color: transparent !important;
}
.new.mw-list-item a {
    background-color: transparent !important;
    color: #72777d;
    cursor: pointer;
    font-size: 0.8em;
}
.ca-talk {
    background-color: transparent !important;
    color: #72777d;
    cursor: pointer;
    font-size: 0.8em;
}
.vector-menu-portal .vector-menu-content li a,
.vector-menu-portal .vector-menu-content li a:visited {
    color: #72777d;
}
/* Additional rules to ensure transparency */
.vector-menu-tabs,
.vector-menu-tabs ul,
.vector-menu-tabs li,
.vector-menu-tabs a,
.vector-menu-tabs-legacy,
.vector-menu-tabs-legacy ul,
.vector-menu-tabs-legacy li,
.vector-menu-tabs-legacy a,
#p-namespaces,
#p-namespaces li,
#p-namespaces a,
#ca-nstab-main,
#ca-talk,
.vector-tab-noicon,
.mw-list-item-js {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
}


.vector-menu-portal,
#mw-panel,
.vector-menu-portal .vector-menu-content {
    background-color: #202020 !important; /* Dark gray color similar to the first image */
}

.vector-menu-portal .vector-menu-heading {
    color: #cccccc;  /* Light gray for headers */
}

/* For the links */
.vector-menu-portal .vector-menu-content a {
    color: #3366bb;  /* Blue color for links */
}

/* Remove any borders that might be present */
.vector-menu-portal {
    border: none !important;
}


body {
    background-image: url('https://i.imgur.com/nBW7bEJ.png') !important;
    background-color: rgba(0, 0, 0, 0.6) !important; /* Semi-transparent black */
    background-blend-mode: overlay !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-size: cover !important;
}


#ca-view a, #ca-edit a, #ca-history a {
  color: inherit !important;
  background-color: transparent !important;
}

.mw-parser-output figure .magnify,
.mw-parser-output figure a.mw-file-description,
.mw-parser-output figure a.mw-file-description::before,
.mw-parser-output figure a.mw-file-description::after,
.mw-parser-output .thumb .thumbcaption .magnify {
  display: none !important;
  content: none !important;
  background: none !important;
}


/* ok */
.mw-parser-output figure[typeof~="mw:File/Thumb"],
.mw-parser-output figure[typeof~="mw:Image/Thumb"],
.mw-parser-output figure[typeof~="mw:File/Frame"],
.mw-parser-output figure[typeof~="mw:Image/Frame"] {
  /* keep MW's shrink-to-image behavior */
  display: inline-block !important;     /* so width = widest child (the image/link) */
  width: auto !important;               /* do NOT force 100% */
  max-width: 100% !important;

  background: #2f2f2f !important;
  border: 1px solid #444 !important;
  padding: 4px !important;              /* mat between outer & inner border */
  margin: 0 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  vertical-align: top;                  /* avoids baseline gaps in rows */
}

/* Centered thumbs: keep them narrow, not full width */
.mw-parser-output figure.mw-halign-center[typeof*="mw:"] {
  /* MW sometimes makes centered figures behave like blocks; force shrink */
  display: inline-block !important;
  width: -moz-fit-content !important;   /* Firefox */
  width: fit-content !important;        /* modern browsers */
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Inner border on the clickable wrapper (covers <a> and <span><a>) */
.mw-parser-output figure[typeof*="mw:"] > a:first-child,
.mw-parser-output figure[typeof*="mw:"] > span:first-child > a {
  /* default MW uses a block link that fills the figure width = image width */
  display: block !important;
  line-height: 0 !important;            /* kill baseline gap under the image */
  background: transparent !important;
  border: 1px solid #6a6a6a !important; /* inner border color */
  padding: 0 !important;
  box-shadow: none !important;
  width: auto !important;               /* never force 100% */
}

/* Image element */
.mw-parser-output figure[typeof*="mw:"] img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Caption (inside the frame, wraps within image width) */
.mw-parser-output figure[typeof*="mw:"] figcaption {
  display: block !important;
  margin: 6px 8px 4px !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  writing-mode: horizontal-tb !important;
  color: #c0c0c0 !important;
  background: transparent !important;
  border: 0 !important;
}

/* Hide the “magnify / file description” icon */
.mw-parser-output figure .magnify,
.mw-parser-output figure a.mw-file-description,
.mw-parser-output figure a.mw-file-description::before,
.mw-parser-output figure a.mw-file-description::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* ---- LEGACY (non-Parsoid) .thumb markup ---- */

.mw-parser-output .thumb .thumbinner {
  background: #2f2f2f !important;
  border: 1px solid #444 !important;
  padding: 4px !important;
  line-height: 0 !important;
  width: auto !important;               /* keep shrink-to-image */
  box-sizing: border-box !important;
}

.mw-parser-output .thumb .thumbinner a.image {
  display: block !important;
  border: 1px solid #6a6a6a !important;
  padding: 0 !important;
}

.mw-parser-output .thumb img.thumbimage {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  height: auto !important;
  max-width: 100% !important;
}

.mw-parser-output .thumb .thumbcaption {
  margin: 6px 8px 4px !important;
  background: transparent !important;
  border: 0 !important;
  color: #c0c0c0 !important;
  line-height: 1.4 !important;
  white-space: normal !important;
}

/* end */


/* Sidebar (left) navigation link colors — Vector (new) + Vector legacy */

/* normal state */
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a,
.skin-vector-legacy #mw-panel .portal .body li a {
  color: #8BB9E0 !important;       /* light blue */
  background: transparent !important;
  text-decoration: none !important;
}

/* visited */
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a:visited,
.skin-vector-legacy #mw-panel .portal .body li a:visited {
  color: #74A8D4 !important;       /* keep blue, not purple */
}

/* hover & focus */
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a:hover,
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a:focus,
.skin-vector-legacy #mw-panel .portal .body li a:hover,
.skin-vector-legacy #mw-panel .portal .body li a:focus {
  color: #BFD9F2 !important;       /* brighter on hover */
  text-decoration: underline !important;
}

/* active (mouse down) */
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a:active,
.skin-vector-legacy #mw-panel .portal .body li a:active {
  color: #E6F2FF !important;
}

.mw-body, .mw-body-content, .mw-parser-output {
  font-size: 16px !important;      /* was ~14–15px */
  line-height: 1.6 !important;
}

/* Sidebar / left nav */
#mw-panel,
#mw-panel .vector-menu-portal .vector-menu-content {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* TOC, captions, small UI text */
.toc, .thumbcaption, .catlinks,
.mw-ui-message, .mw-message-box {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* Code blocks / preformatted */
pre, code, kbd, samp, .mw-code {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* Tabs (Read / View source / History) & top menus */
#mw-head .vectorTabs li a,
.vector-menu-tabs a,
.vector-menu-tabs-legacy a {
  font-size: 15px !important;
}

/* Make sure headings scale nicely (relative to new base) */
.mw-body h1 { font-size: 2.0em !important; }
.mw-body h2 { font-size: 1.6em !important; }
.mw-body h3 { font-size: 1.35em !important; }
.mw-body h4 { font-size: 1.15em !important; }

/* Optional: slightly smaller on narrow screens */
@media (max-width: 768px) {
  .mw-body, .mw-body-content, .mw-parser-output { font-size: 16px !important; }
}