Difference between revisions of "MediaWiki:Common.css"

From Expat Wiki
Jump to navigation Jump to search
(Add img.trustpilot-stars)
(Add arrows to internal links & anchors.)
Line 22: Line 22:
 
     padding-right: 0;
 
     padding-right: 0;
 
}
 
}
 +
 +
/* Link Arrows */
 +
 +
/* External links */
 
.mw-parser-output .external::before {
 
.mw-parser-output .external::before {
 
   content: "↗️ ";
 
   content: "↗️ ";
 
}
 
}
 +
/* Internal links */
 +
.mw-parser-output a[href^="/"]::before {
 +
  content: "➡️ ";
 +
}
 +
.mw-parser-output .mw-editsection a[href^="/"]::before {
 +
  content: "";
 +
}
 +
 +
/* Anchors */
 +
.mw-parser-output a[href^="#"]::before {
 +
  content: "↕️ ";
 +
}
 +
.mw-parser-output .toc a[href^="#"]::before,
 +
.mw-parser-output .reference a[href^="#"]::before,
 +
.mw-parser-output .mw-cite-backlink a[href^="#"]::before {
 +
  content: "";
 +
}
 +
  
 
/* Google Translate gadget */
 
/* Google Translate gadget */

Revision as of 23:42, 28 June 2022

/* CSS placed here will be applied to all skins */

/* Hide Discussion tab. */
li#ca-talk { display: none; }

/* Hide Edit section links. */
.mw-editsection { display:none; }

/* Template:CTA. */
span.cta a {
  display:inline-block;
  padding: 0.5em 1em;
  background: none #36c !important;
  border:#36c;
  color:#fff !important;
  font-weight:bold;
}

/* Replace external link icon with Unicode and move it left. */
.mw-parser-output .external {
    background: none;
    padding-right: 0;
}

/* Link Arrows */

/* External links */
.mw-parser-output .external::before {
  content: "↗️ ";
}
/* Internal links */
.mw-parser-output a[href^="/"]::before {
  content: "➡️ ";
}
.mw-parser-output .mw-editsection a[href^="/"]::before {
  content: "";
}

/* Anchors */
.mw-parser-output a[href^="#"]::before {
  content: "↕️ ";
}
.mw-parser-output .toc a[href^="#"]::before,
.mw-parser-output .reference a[href^="#"]::before,
.mw-parser-output .mw-cite-backlink a[href^="#"]::before {
  content: "";
}


/* Google Translate gadget */
div.goog-te-gadget:before {
  padding: 0.5em 0;
}
div.goog-te-gadget:before {
  content:"Auto-translate to:";
  padding-right: 0.5em;
}

img.trustpilot-stars {
  height: 1em;
}