MediaWiki:Common.css

Материал из Русская Len'en Wiki
Перейти к навигации Перейти к поиску

Замечание. Возможно, после сохранения вам придётся очистить кэш своего браузера, чтобы увидеть изменения.

  • Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl-F5 или Ctrl-R (⌘-R на Mac)
  • Google Chrome: Нажмите Ctrl-Shift-R (⌘-Shift-R на Mac)
  • Internet Explorer: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl-F5
  • Opera: Перейдите в Menu → Настройки (Opera → Настройки на Mac), а затем Безопасность → Очистить историю посещений → Кэшированные изображения и файлы
/*Len'en Wiki CSS, used to stylise the wiki*/
/*Main page fixes*/
#interwiki-completelist{font-weight:700}
div#content .printfooter{display:none}
.page-Len_en_Wiki h1.firstHeading{display:none}


/*Highlight clicked reference in blue to help navigation*/
ol.references li:target,sup.reference:target,span.citation:target {background-color:#DEF}

/*Ensure refs in table headers and the like aren't bold or italic*/
sup.reference{
font-weight:400;
font-style:normal
}

/*Styling for citations*/
span.citation,cite{
font-style:normal;
word-wrap:break-word
}

/*For linked citation numbers and document IDs, where the number needn't be shown on a screen or a handheld, but should be included in the printed version*/
@media screen,handheld {
span.citation .printonly {display:none}
}

/* Default skin for navigation boxes */
table.navbox {            /* Navbox container style */
border: 1px solid #534f58;
width: 100%;
margin: auto;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
}

/* Navbox Layout */
table.navbox + table.navbox {  /* Single pixel border between adjacent navboxes */
margin-top: -1px;          /* (doesn't work for IE6, but that's okay)       */
}
.navbox-title,
.navbox-abovebelow,
table.navbox th {
text-align: center;      /* Title and above/below styles */
padding-left: 1em;
padding-right: 1em;
}
.navbox-group {              /* Group style */
white-space: nowrap;
text-align: right;
font-weight: bold;
padding-left: 1em;
padding-right: 1em;
}
.navbox-list {
text-align: left;
}
.collapseButton {          /* 'show'/'hide' buttons created dynamically */
float: right;          /* by the CollapsibleTables javascript in    */
font-weight: normal;   /* [[MediaWiki:Common.js]]are styled here    */
text-align: right;     /* so they can be customised.                */
width: auto;
}
.navbox .collapseButton {  /* In navboxes, the show/hide button balances */
width: 6em;            /* the vde links from [[Template:Tnavbar]],   */
}                          /* so they need to be the same width.         */
.navbox-title, .navbox-above, .navbox-below {
padding-left:1em;
padding-right:1em;
text-align:center;
}

/* Navbox Colors */
.navbox, .navbox-subgroup {
background: #fdfdfd;     /* Background color */
}
.navbox-list {
border-color: #fdfdfd;   /* Must match background color */
}
.navbox-title,
table.navbox th {
background:#ffcece;     /* Level 1 color */
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
background: #ffdddd;     /* Level 2 color */
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
background: #ffdddd;     /* Level 3 color */
}
.navbox-even {
background: #f7f7f7;     /* Even row striping */
}
.navbox-odd {
background: transparent; /* Odd row striping */
}

/* Navbar styling */
.navbar{display:inline;font-size:88%;font-weight:400}
.navbox-title .navbar{float:left;text-align:left;margin-right:.5em}

/*Infobox template style*/
.infobox{
border:1px solid #aaa;
border-spacing:3px;
border-radius:3px;
background-color:#f8f9fa;
color:#000;
margin:.5em 0 .5em 1em;
padding:.2em;
float:right;
clear:right;
font-size:88%;
line-height:1.5em
}

.infobox caption{
font-size:125%;
font-weight:700;
padding:.2em;
text-align:center
}
.infobox td,.infobox th{vertical-align:top}

/*Cell Styles, standard table style throughout the wiki*/
.outcell{
border:1px solid #585858;
border-radius:5px;
border-spacing:7px;
background-color:#FCFCFC;
padding:2px
}
.incell,.incell_top{
background:#FFA6A6;
text-align:center;
font-size:120%
}
.question_cell{
background:#FFCECE;
vertical-align:top;
text-align:left;
font-size:105%;
padding-left:1em
}

/*Styles for Notice templates*/
table.conjecture{
margin:3px 10%;
border-collapse:collapse;
border:1px solid #594672;
background:#B8A4D4;
font-size:12px
}
table.copyright{
padding:.6em .9em;
margin:4px 10%;
border:2px solid #000;
border-radius:9px
}
table.delete{
margin:4px 10%;
border:4px solid #b22222;
background:#FFDBDB
}
table.disclaimer{
margin:0 10%;
border:2px solid #B22222;
border-left:10px solid #B22222;
background:#FFDBDB
}
table.disambig{
clear:both;
margin:.9em 1em;
border-top:1px solid #ccc;
border-bottom:1px solid #ccc;
background:transparent
}
table.hiddencat{
margin:3px 10%;
border-collapse:collapse;
border:1px solid #667468;
background:#CCEFCC;
text-align:center
}

/*Cell sizes for message boxes*/
th.mbox-text,td.mbox-text{
border:none;
padding:.25em .9em;
width:100%
}
td.mbox-image{
border:none;
padding:2px 0 2px .9em;
text-align:center
}

/*Hatnotes and disambiguation notices*/
.dablink{
font-style:italic;
padding-left:2em;
margin-bottom:.5em
}
.dablink i{font-style:normal}

/*Spell Card Table styles*/
.sctable{width:800px;margin:1em;border-radius:4px;border:1px solid #E75B5B;background-color:#FCFCFC}
.sclabel{float:right;border-radius:4px;background-color:#E75B5B;color:#fff;padding:4px;margin:0 4px}
.sccell{padding:2px;width:1%}
.sccell img{border-radius:4px}

/*Headers*/
.mw-headline{
background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPlNlbnJpIEV5ZTwvdGl0bGU+PGNpcmNsZSBjeD0iOCIgY3k9IjgiIHI9IjgiLz48cGF0aCBkPSJtMTMgOGgtMmEzIDMgMCAwIDEtMyAzIDMgMyAwIDAgMS0zLTNoLTJhNSA1IDAgMCAwIDUgNSA1IDUgMCAwIDAgNS01eiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg==);
background-repeat:no-repeat;
background-position:left 75%;
padding-left:22px;
padding-top:9px
}
#toc h2,.toc h2{background-image:none}

/*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 (as long as there are no =headings= on the page, which there shouldn't be according to the MoS).*/
.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}
/*Margins for <ol> and <ul>*/
#content ol,#content ul,#mw_content ol,#mw_content ul{margin-bottom:.5em}

/*Style for UL*/
ul{list-style-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjEzIj48Y2lyY2xlIGN4PSIyLjUiIGN5PSI5LjUiIHI9IjIuNSIvPjwvc3ZnPg==)}

/*Stylise blockquotes*/
blockquote {
  border-left: 10px solid #ff8080;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
}
blockquote p {
  display: inline;
}

/*Prevent line breaks*/
.nowrap{white-space:nowrap}

/*Minimum thumb width*/
.thumbinner{min-width:100px}

/* Ruby text*/
 
ruby {
    display: inline-table;
    text-align: center;
    border-collapse: collapse;
/* border collapse mechanism will be used to adjust vertical alignment */
    vertical-align: bottom;
/* if ruby text contains text only and there are two ruby annotations (one placed above the base and one below) 
then vertical centering roughly aligns baseline of base with baseline of parent */
 
    /* border-bottom: solid 1.1em transparent; */
/* o.75em is height of ruby text (0.5000d7 1.2em = 0.6em) plus space between baseline and text-bottom (about 0.15em) 
this extra border is counter-weight used to restore vertical centering broken by presence of ruby text (in case if 
there is only one ruby annotation, if there are two annotations then counter-weight is no longer necessary and can 
be annihilated using border collapse mechanism) */
}
 
ruby > rt, rtc {
    display: table-header-group;
}
/* used to move first ruby container above the base */
 
/* ruby > rb, rbc, ruby > rt + rt, rtc + rtc {
    display: table-row;
} */
/* base and second ruby are formatted as table-rows */
 
ruby > rt + rt, rtc + rtc {
    border-bottom: hidden;
}
/* if there are two annotations then extra border is no longer necessary and can be annihilated using border collapse mechanism */
 
rb, rbc, rt, rtc {
    white-space: nowrap;
}
/* prohibits line breaks inside ruby text */
 
rtc > rt, rbc > rb {
    display: table-cell;
}
/* used to distribute annotations in table like manner */
 
rtc > rt[rbspan] {
    column-span: attr(rbspan);
}
/* ruby text may span several cells */
 
ruby > rt, rtc {
    font-size: 0.7em;
    line-height: 1.2em;
    letter-spacing: -0.1em;
}
/* font-size of ruby text is reduced */
 
rp {
    display: none;
}

/*Ensure everything inside a spoiler is blacked out. Without this, links show through.*/
.t_hidetext,.t_hidetext * {background-color:#000;color:#000}
.t_hidetext a{color:#000!important}
.t_hidetext:hover,.t_hidetext:hover *,.t_hidetext:focus,.t_hidetext:focus * {color:#fff!important}
.t_hidetext:hover a{color:#30A0EF!important}
.t_hidetext:hover a:visited{color:#7084DA!important}
.t_hidetext:hover a.new{color:#ED6A6A!important}
.t_hidetext:hover a.new:visited{color:#ED9999!important}
.t_hidetext:hover a.extiw{color:#47C!important}
.t_hidetext:hover a.extiw:visited{color:#969!important}

/*Key design*/
kbd{border:1px solid #080808;border-radius:2px;box-shadow:1px 1px 2px #9f9f9f;background-color:#262626;background-image:linear-gradient(to top,#080808,#303030,#080808);padding:1px 3px;color:#f5f5f5;font-family:inherit;font-size:.85em}.win{background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4OCA4OCI+PHBhdGggZD0ibTAgMTIuNGwzNS43LTQuOSAwIDM0LjQgLTM1LjcgMC4yIDAtMjkuOHptMzUuNyAzMy41bDAgMzQuNSAtMzUuNy00LjkgMC0yOS44IDM1LjYgMC4yem00LjMtMzlsNDcuMy02LjkgMCA0MS41IC00Ny4zIDAuNCAwLTM1em00Ny4zIDM5LjNsMCA0MS4zIC00Ny4zLTYuNyAtMC4xLTM0LjcgNDcuNCAwLjF6IiBmaWxsPSIjZmZmIi8+PC9zdmc+);background-repeat:no-repeat;background-position:left 45%;padding-left:16px;background-size:12px}

/*Icon for Touhou Wiki links*/
.thwiki{
background-image:url(http://images.shoutwiki.com/lenen/2/2c/Thwiki.svg);
background-repeat:no-repeat;
background-position:right;
padding-right:14px;
background-size:12px
}

/*SelectBar object*/
.selectbar{float:left;background:#fff;border:#373737 solid 1px;width:48px;height:3px}

/*Things that should be vsible to sysops and accountcreators by default*/
.sysop-show,.accountcreator-show {display:none}

/*Sitenotice AutoScroll CSS*/
#scrollDiv{
width:100%;
height:25px;
line-height:25px;
overflow:hidden
}
#scrollDiv li{
height:25px;
padding-left:10px;
list-style:none
}

/*Sidebar icons*/
#n-UWoM-Forum{
background-image:url(http://images.shoutwiki.com/lenen/a/a6/UWoMForum.png);
background-repeat:no-repeat;
padding-left:19px!important
}
#n-UWoM-Discord{
background-image:url(http://images.shoutwiki.com/lenen/d/dd/Discord.png);
background-repeat:no-repeat;
padding-left:19px!important
}
#n-Trick-Nostalgie{
padding-left:19px!important
}
#n-JynX\.27s-Blog-\.28JP\.29{
background-image:url(http://images.shoutwiki.com/lenen/6/64/BlogIcon.png);
background-repeat:no-repeat;
padding-left:19px!important
}
#n-JynX\.27s-Twitter-\.28JP\.29,#n-Rei\.27s-Twitter-\.28JP\.29{
background-image:url(http://images.shoutwiki.com/lenen/f/f7/Twitter.png);
background-repeat:no-repeat;
padding-left:19px!important
}
#n-JynX\.27s-YouTube-\.28JP\.29{
background-image:url(https://upload.wikimedia.org/wikipedia/commons/0/09/YouTube_full-color_icon_%282017%29.svg);
background-repeat:no-repeat;
padding-left:19px!important;
background-size:16px
}
#n-Len\.27en-Wiki-\.28JP\.29,#n-Motoneta-Wiki-\.28JP\.29{
background-image:url(http://images.shoutwiki.com/lenen/6/6e/Atwiki.png);
background-repeat:no-repeat;
padding-left:19px!important
}

/*Polls*/
div.ajaxpoll{
width:auto!important;
border:1px solid #999!important;
border-radius:5px
}
.ajaxpoll{
width:100%!important;
border:1px solid #999!important
}
.ajaxpoll .ajaxpoll-misc{
margin-bottom:0!important;
font-size:80%!important
}
.ajaxpoll .ajaxpoll-info{
margin-top:0!important;
font-size:80%!important
}