MediaWiki:Common.css: Difference between revisions

From CommunityData
No edit summary
No edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 51: Line 51:
     top: 50px;
     top: 50px;
     width: 100%;
     width: 100%;
}
/*
* Allow limiting of which header levels are shown in a TOC;
* <div class="toclimit-3">, for instance, will limit to
* showing ==headings== and ===headings=== but no further.
* Used in [[Template:TOC]]
*/
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
display: none;
}
/*
* Enables suppression of TOC numbering.
* Add "<div class="noautonum">__TOC__</div>" on the page to activate
*/
.noautonum .tocnumber {
display: none;
}
/* Images should be responsive */
.res-box img {
max-width:100%;
height:auto;
}
.mw-content-ltr ol, .mw-content-rtl ol,
.mw-content-ltr ul, .mw-content-rtl ul {
  margin-bottom: 0.5em;
}
}

Latest revision as of 20:04, 15 May 2024

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

.infobox {
    border: 1px solid #a2a9b1;
    border-spacing: 3px;
    background-color: #f8f9fa;
    color: black;
    /* @noflip */
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    /* @noflip */
    float: right;
    /* @noflip */
    clear: right;
    font-size: 88%;
    line-height: 1.5em;
}
.infobox caption {
    font-size: 125%;
    font-weight: bold;
    padding: 0.2em;
}
.infobox td,
.infobox th {
    vertical-align: top;
    /* @noflip */
    text-align: left;
}

/* Community Data Science specific styles */
.cc_navBar {
    width:500px;
    height:80px;
    -webkit-border-radius: 0px 0px 5px 5px;
    -moz-border-radius: 0px 0px 5px 5px;
    border-radius: 0px 0px 5px 5px;
    border:2px solid #A7D7F9;
    background-color:#FFFFFF;
    -webkit-box-shadow: #B3B3B3 1px 1px 1px;
    -moz-box-shadow: #B3B3B3 1px 1px 1px;
    box-shadow: #B3B3B3 1px 1px 1px;
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.cc_navBarContent {
    position: inherit;
    top: 50px;
    width: 100%;
}


/*
 * Allow limiting of which header levels are shown in a TOC;
 * <div class="toclimit-3">, for instance, will limit to
 * showing ==headings== and ===headings=== but no further.
 * Used in [[Template:TOC]]
 */
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
	display: none;
}

/*
 * Enables suppression of TOC numbering. 
 * Add "<div class="noautonum">__TOC__</div>" on the page to activate
*/
.noautonum .tocnumber {
	display: none; 
}

/* Images should be responsive */
.res-box img {
max-width:100%;
height:auto;
}

.mw-content-ltr ol, .mw-content-rtl ol,
.mw-content-ltr ul, .mw-content-rtl ul {

  margin-bottom: 0.5em;
}