Difference between revisions of "MediaWiki:Common.css"

From DFM Wiki
(Remove float from footer icons.)
 
(31 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
.mw-footer .footer-icons {display:inline-block;float:none;}
 
.mw-footer .footer-icons {display:inline-block;float:none;}
 
.mw-footer {padding-top: 1em;}
 
.mw-footer {padding-top: 1em;}
 +
 +
iframe {border:none;}
 +
 +
/* Tooltips */
 +
 +
.tooltip {
 +
  position: relative;
 +
  display: inline-block;
 +
  border-bottom: 1px dotted black;
 +
}
 +
 +
.tooltip .tooltiptext {
 +
  visibility: hidden;
 +
  width: 20em;
 +
  border:solid 1px grey;
 +
  background-color: #eee;
 +
  padding: 0.4em;
 +
  border-radius: 6px;
 +
  position: absolute;
 +
  z-index: 1;
 +
}
 +
 +
.tooltip:hover .tooltiptext {
 +
  visibility: visible;
 +
}
 +
 +
/* Hide built-in print link*/
 +
#t-print {display:none;}
 +
 +
/* Show only when printing */
 +
@media screen, projection, handheld {
 +
  .printonly { display: none !important; }
 +
}
 +
 +
/* Inline reference numbers */
 +
sup.reference, .mw-ref{
 +
    font-style: normal;
 +
    vertical-align: baseline;
 +
    font-size: inherit;
 +
    top: auto;
 +
}
 +
 +
/* Keep sans serif text for definition lists */
 +
.mw-body dt{
 +
    font-family: inherit;
 +
    font-weight:600;
 +
}
 +
 +
.reference{
 +
    font-size:smaller;
 +
}
 +
 +
/* responsive images: never overflow container */
 +
img {max-width:100%; height:auto;}
 +
 +
 +
.cover img{
 +
    object-fit: cover;
 +
    max-height: inherit;
 +
}
 +
 +
address{
 +
    font-style: normal;
 +
}
 +
 +
.mw-body dd {
 +
    margin-bottom: 1em;
 +
    margin-top: 1em;
 +
}
 +
 +
/* Ajax loading */
 +
.loading{
 +
    background: white url("https://upload.wikimedia.org/wikipedia/commons/f/fc/Herbert_Kickl.gif") center no-repeat;
 +
}
 +
 +
/* Edit section */
 +
.mw-editsection { display:none!important; }
 +
 +
/* horizontal (flat) lists */
 +
 +
/* 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; /* don't trust the note that says margin doesn't work with inline
 +
* removing margin: 0 makes dds have margins again */
 +
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: none;
 +
}
 +
 +
/* Add parentheses around nested lists */
 +
.hlist dd dd:first-child:before,
 +
.hlist dd dt:first-child:before,
 +
.hlist dd li:first-child:before,
 +
.hlist dt dd:first-child:before,
 +
.hlist dt dt:first-child:before,
 +
.hlist dt li:first-child:before,
 +
.hlist li dd:first-child:before,
 +
.hlist li dt:first-child:before,
 +
.hlist li li:first-child:before {
 +
content: " (";
 +
font-weight: normal;
 +
}
 +
 +
.hlist dd dd:last-child:after,
 +
.hlist dd dt:last-child:after,
 +
.hlist dd li:last-child:after,
 +
.hlist dt dd:last-child:after,
 +
.hlist dt dt:last-child:after,
 +
.hlist dt li:last-child:after,
 +
.hlist li dd:last-child:after,
 +
.hlist li dt:last-child:after,
 +
.hlist li li:last-child:after {
 +
content: ")";
 +
font-weight: normal;
 +
}
 +
 +
/* Put ordinals in front of ordered list items */
 +
.hlist ol {
 +
counter-reset: listitem;
 +
}
 +
 +
.hlist ol > li {
 +
counter-increment: listitem;
 +
}
 +
 +
.hlist ol > li:before {
 +
content: " " counter(listitem) "\a0";
 +
}
 +
 +
.hlist dd ol > li:first-child:before,
 +
.hlist dt ol > li:first-child:before,
 +
.hlist li ol > li:first-child:before {
 +
content: " (" counter(listitem) "\a0";
 +
}
 +
 +
/* Unbulleted lists */
 +
.plainlist ol,
 +
.plainlist ul {
 +
line-height: inherit;
 +
list-style: none none;
 +
margin: 0;
 +
}
 +
 +
.plainlist ol li,
 +
.plainlist ul li {
 +
margin-bottom: 0;
 +
}

Latest revision as of 09:40, 11 March 2022

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

li {margin: 0.5em auto;}

body, .mw-footer-container {background: white; color: black;}
.mw-footer-container a:hover, .mw-footer-container a:visited, .mw-footer-container a {color: #3366cc;}

.mw-footer .footer-icons {display:inline-block;float:none;}
.mw-footer {padding-top: 1em;}

iframe {border:none;}

/* Tooltips */

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 20em;
  border:solid 1px grey;
  background-color: #eee;
  padding: 0.4em;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

/* Hide built-in print link*/
#t-print {display:none;}

/* Show only when printing */
@media screen, projection, handheld {
  .printonly { display: none !important; }
}

/* Inline reference numbers */
sup.reference, .mw-ref{
    font-style: normal;
    vertical-align: baseline;
    font-size: inherit;
    top: auto;
}

/* Keep sans serif text for definition lists */
.mw-body dt{ 
    font-family: inherit;
    font-weight:600;
}

.reference{
    font-size:smaller;
}

/* responsive images: never overflow container */
img {max-width:100%; height:auto;}


.cover img{
    object-fit: cover;
    max-height: inherit;
}

address{
    font-style: normal;
}

.mw-body dd {
    margin-bottom: 1em;
    margin-top: 1em;
}

/* Ajax loading */
.loading{
    background: white url("https://upload.wikimedia.org/wikipedia/commons/f/fc/Herbert_Kickl.gif") center no-repeat;
}

/* Edit section */
.mw-editsection { display:none!important; }

/* horizontal (flat) lists */

/* 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; /* don't trust the note that says margin doesn't work with inline
				* removing margin: 0 makes dds have margins again */
	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: none;
}

/* Add parentheses around nested lists */
.hlist dd dd:first-child:before,
.hlist dd dt:first-child:before,
.hlist dd li:first-child:before,
.hlist dt dd:first-child:before,
.hlist dt dt:first-child:before,
.hlist dt li:first-child:before,
.hlist li dd:first-child:before,
.hlist li dt:first-child:before,
.hlist li li:first-child:before {
	content: " (";
	font-weight: normal;
}

.hlist dd dd:last-child:after,
.hlist dd dt:last-child:after,
.hlist dd li:last-child:after,
.hlist dt dd:last-child:after,
.hlist dt dt:last-child:after,
.hlist dt li:last-child:after,
.hlist li dd:last-child:after,
.hlist li dt:last-child:after,
.hlist li li:last-child:after {
	content: ")";
	font-weight: normal;
}

/* Put ordinals in front of ordered list items */
.hlist ol {
	counter-reset: listitem;
}

.hlist ol > li {
	counter-increment: listitem;
}

.hlist ol > li:before {
	content: " " counter(listitem) "\a0";
}

.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
	content: " (" counter(listitem) "\a0";
}

/* Unbulleted lists */
.plainlist ol,
.plainlist ul {
	line-height: inherit;
	list-style: none none;
	margin: 0;
}

.plainlist ol li,
.plainlist ul li {
	margin-bottom: 0;
}