MediaWiki:Common.css: Difference between revisions

imported>Fire
Undo revision 4865 by Fire (talk)
 
No edit summary
Line 1: Line 1:
/* azu add 2021/2/4 */
/* azu add 2021/2/4 */
/* .geo-default { display: inline }
/* .geo-default { display: inline }
Line 5: Line 6:
.geo-dms { display: inline } */
.geo-dms { display: inline } */


img {
.mw-redirect { color: #006633;}
  max-width:250px;
.mw-redirect:visited { color: #009900;}
  height:auto;
.mw-redirect:hover { color: #990000;}
}
.mw-redirect:active { color: #990000;}




/* Reset italic styling set by user agent */
img {
cite,
    max-width:250px;
dfn {
    height:auto;
font-style: inherit;
  }
}
 
 
 
/* Straight quote marks for <q> */
  /* Reset italic styling set by user agent */
q {
  cite,
quotes: '"' '"' "'" "'";
  dfn {
}
      font-style: inherit;
 
  }
/* Avoid collision of blockquote with floating elements by swapping margin and padding */
 
blockquote {
  /* Straight quote marks for <q> */
overflow: hidden;
  q {
margin: 1em 0;
      quotes: '"' '"' "'" "'";
padding: 0 40px;
  }
}
 
 
  /* Avoid collision of blockquote with floating elements by swapping margin and padding */
/* Consistent size for <small>, <sub> and <sup> */
  blockquote {
small {
      overflow: hidden;
font-size: 85%;
      margin: 1em 0;
}
      padding: 0 40px;
 
  }
.mw-body-content sub,
 
.mw-body-content sup,
  /* Consistent size for <small>, <sub> and <sup> */
span.reference /* for Parsoid */ {
  small {
font-size: 80%;
      font-size: 85%;
}
  }
 
 
/* Same spacing for indented and unindented paragraphs on talk pages */
  .mw-body-content sub,
.ns-talk .mw-body-content dd {
  .mw-body-content sup,
margin-top: 0.4em;
  span.reference /* for Parsoid */ {
margin-bottom: 0.4em;
      font-size: 80%;
}
  }
 
 
/* Main page fixes */
  /* Same spacing for indented and unindented paragraphs on talk pages */
#interwiki-completelist {
  .ns-talk .mw-body-content dd {
font-weight: bold;
      margin-top: 0.4em;
}
      margin-bottom: 0.4em;
 
  }
/* Reduce page jumps by hiding collapsed/dismissed content */
 
.client-js .mw-special-Watchlist #watchlist-message,
  /* Main page fixes */
.client-js .NavFrame.collapsed .NavContent,
  #interwiki-completelist {
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child) {
      font-weight: bold;
display: none;
  }
}
 
 
  /* Reduce page jumps by hiding collapsed/dismissed content */
/* Adds padding above Watchlist announcements where new recentchanges/watchlist filters are enabled */
  .client-js .mw-special-Watchlist #watchlist-message,
.mw-rcfilters-enabled .mw-specialpage-summary {
  .client-js .NavFrame.collapsed .NavContent,
margin-top: 1em;
  .client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child) {
}
      display: none;
 
  }
/* Hide charinsert base for those not using the gadget */
 
#editpage-specialchars {
  /* Adds padding above Watchlist announcements where new recentchanges/watchlist filters are enabled */
display: none;
  .mw-rcfilters-enabled .mw-specialpage-summary {
}
      margin-top: 1em;
 
  }
/* Highlight linked elements (such as clicked references) in blue */
 
body.action-info .mw-body-content :target,
  /* Hide charinsert base for those not using the gadget */
.citation:target {
  #editpage-specialchars {
background-color: #def;  /* Fallback */
      display: none;
background-color: rgba(0, 127, 255, 0.133);
  }
}
 
 
  /* Highlight linked elements (such as clicked references) in blue */
/* Styling for citations. Breaks long urls, etc., rather than overflowing box */
  body.action-info .mw-body-content :target,
.citation {
  .citation:target {
word-wrap: break-word;
      background-color: #def;  /* Fallback */
}
      background-color: rgba(0, 127, 255, 0.133);
 
  }
/* Make the list of references smaller */
 
/* Keep in sync with Template:Refbegin/styles.css */
  /* Styling for citations. Breaks long urls, etc., rather than overflowing box */
ol.references,
  .citation {
div.reflist {
      word-wrap: break-word;
font-size: 90%;            /* Default font-size */
  }
margin-bottom: 0.5em;
 
}
  /* Make the list of references smaller */
 
  /* Keep in sync with Template:Refbegin/styles.css */
div.reflist ol.references {
  ol.references,
font-size: 100%;          /* Reset font-size when nested in div.reflist */
  div.reflist {
margin-bottom: 0;          /* Avoid double margin when nested in div.reflist */
      font-size: 90%;            /* Default font-size */
list-style-type: inherit;  /* Enable custom list style types */
      margin-bottom: 0.5em;
}
  }
 
 
/* Reset top margin for lists embedded in columns */
  div.reflist ol.references {
div.columns {
      font-size: 100%;          /* Reset font-size when nested in div.reflist */
margin-top: 0.3em;
      margin-bottom: 0;          /* Avoid double margin when nested in div.reflist */
}
      list-style-type: inherit; 
 
div.columns dl,
div.columns ol,
div.columns ul {
margin-top: 0;
}
 
/* Avoid elements breaking between columns */
/* See also Template:No col break */
div.columns li,
div.columns dd {
page-break-inside: avoid; /* Removed from CSS in favor of break-inside c. 2020 */
break-inside: avoid-column;
}
 
/* Style for horizontal lists (separator following item).
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
  @revision 8 (2016-05-21)
  @author [[User:Edokter]]
*/
.hlist dl,
.hlist ol,
.hlist ul {
margin: 0;
padding: 0;
}
 
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
margin: 0;
display: inline;
}
 
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl,
.hlist dl ol,
.hlist dl ul,
.hlist ol dl,
.hlist ol ol,
.hlist ol ul,
.hlist ul dl,
.hlist ul ol,
.hlist ul ul {
display: inline;
}
 
/* Hide empty list items */
.hlist .mw-empty-li {
display: none;
}
 
/* Generate interpuncts */
.hlist dt:after {
content: ": ";
}
 
/**
* Note hlist style usage differs in Minerva and is defined in core as well!
* Please check Minerva desktop (and Minerva.css) when changing
* See https://phabricator.wikimedia.org/T213239
*/
.hlist dd:after,
.hlist li:after {
content: " · ";
font-weight: bold;
}
 
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
content