Difference between revisions of "MediaWiki:Common.css"

From Baka-Tsuki
Jump to navigation Jump to search
m (adding mirrored style with hover effect for monogatari v18)
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
   
 
/*<pre><nowiki>*/
 
/*<pre><nowiki>*/
/* putting the search box above the rest */
 
#p-search {
 
position:absolute;
 
top:150px;
 
left:0;
 
}
 
 
#p-navigation {
 
clear:left;
 
margin-top:55px;
 
}
 
   
   
Line 103: Line 92:
 
}
 
}
   
  +
/* Monogatari Series volume 18, Zoku-Owarimonogatari */
  +
  +
.mg18-mirrored {
  +
display: inline-block;
  +
}
  +
  +
.mg18-mirrored:not(:hover) {
  +
-webkit-transform: scaleX(-1);
  +
-moz-transform: scaleX(-1);
  +
-ms-transform: scaleX(-1);
  +
transform: scaleX(-1);
  +
unicode-bidi: bidi-override;
  +
direction: rtl;
  +
}
   
 
/*</nowiki></pre>*/
 
/*</nowiki></pre>*/

Latest revision as of 02:30, 6 February 2016

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


/*<pre><nowiki>*/


/* Standard Navigationsleisten, aka box hiding thingy from .de.  Documentation at [[Wikipedia:NavFrame]]. */

div.Boxmerge,
div.NavFrame {
        margin: 0px;
        padding: 4px;
        border: 1px solid #aaa;
        text-align: center;
        border-collapse: collapse;
        font-size: 95%;
}
div.Boxmerge div.NavFrame {
        border-style: none;
        border-style: hidden;
}
div.NavFrame + div.NavFrame {
        border-top-style: none;
        border-top-style: hidden;
}
div.NavPic {
        background-color: #fff;
        margin: 0px;
        padding: 2px;
        float: left;
}
div.NavFrame div.NavHead {
        height: 1.6em;
        font-weight: bold;
        background-color: #ccf;
        position:relative;
}
div.NavFrame p {
        font-size: 100%;
}
div.NavFrame div.NavContent {
        font-size: 100%;
}
div.NavFrame div.NavContent p {
        font-size: 100%;
}
div.NavEnd {
        margin: 0px;
        padding: 0px;
        line-height: 1px;
        clear: both;
}
a.NavToggle {
        position:absolute;
        top:0px;
        right:3px;
        font-weight:normal;
        font-size:smaller;
}

/* When <div class="nonumtoc"> is used on the table of contents, the ToC will display without numbers */
/* From http://en.wikipedia.org/wiki/MediaWiki:Common.css on Feb 15 09 by tlg */
.nonumtoc .tocnumber { display:none; }
.nonumtoc #toc ul,
.nonumtoc .toc ul {
    line-height: 1.5em;
    list-style: none;
    margin: .3em 0 0;
    padding: 0;
}
.nonumtoc #toc ul ul, 
.nonumtoc .toc ul ul { 
    margin: 0 0 0 2em; 
}

/* From http://www.mediawiki.org/wiki/Extension:Google_AdSense_2 on Mar 17 by tlg */
/* Pad Google AdSense box in portlet in sidebar */
#p-googleadsense .pBody {
    padding-top: 5px;
    text-align:  center;
}

table.collapsed tr.collapsible {
        display: none;
}
 
.collapseButton {                /* 'show'/'hide' buttons created dynamically by the               */
        float: right;               /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
        font-weight: normal;        /* are styled here so they can be customised.               */
        text-align: right;
        width: auto;
}

/* Monogatari Series volume 18, Zoku-Owarimonogatari */

.mg18-mirrored {
  display: inline-block;
}

.mg18-mirrored:not(:hover) {
  -webkit-transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
  transform: scaleX(-1);
  unicode-bidi: bidi-override;
  direction: rtl;
}

/*</nowiki></pre>*/