MediaWiki:Common.css: Unterschied zwischen den Versionen
imported>Mami Keine Bearbeitungszusammenfassung |
imported>Yaroneko Neues CSS. Großteil aus dem englischen Wiki übernommen (vor allem für die zukünftige Startseite). Gott stehe mir bei... |
||
| Zeile 1: | Zeile 1: | ||
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ | /* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ | ||
/* Großteil importiert aus dem englischen Wiki */ | |||
/* Wikipedia CSS */ | /* Wikipedia CSS */ | ||
/* <source lang="css"> */ | /* <source lang="css"> */ | ||
/* Main page fixes */ | /* Main page fixes */ | ||
#interwiki-completelist { | #interwiki-completelist { | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
display: none | div#content .printfooter { | ||
display: none; | |||
} | } | ||
.page-Touhou_Wiki h1.firstHeading { | |||
display: none; | |||
} | } | ||
div# | .page-Touhou_Wiki div#siteNotice { | ||
width: 70%; | |||
left: 0; | |||
} | } | ||
/* Edit window toolbar */ | /* Edit window toolbar */ | ||
#toolbar { | #toolbar { | ||
| Zeile 31: | Zeile 29: | ||
margin-bottom: 6px; | margin-bottom: 6px; | ||
} | } | ||
/* Margins for <ol> and <ul> */ | /* Margins for <ol> and <ul> */ | ||
#content ol, #content ul, | #content ol, #content ul, | ||
| Zeile 82: | Zeile 80: | ||
padding: 1px; | padding: 1px; | ||
} | } | ||
/* Navbox Layout */ | /* Navbox Layout */ | ||
table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */ | table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */ | ||
| Zeile 118: | Zeile 116: | ||
text-align:center; | text-align:center; | ||
} | } | ||
/* Navbox Colors */ | /* Navbox Colors */ | ||
.navbox, .navbox-subgroup { | .navbox, .navbox-subgroup { | ||
| Zeile 144: | Zeile 142: | ||
background: transparent; /* Odd row striping */ | background: transparent; /* Odd row striping */ | ||
} | } | ||
/* Infobox template style */ | /* Infobox template style */ | ||
.infobox { | .infobox { | ||
| Zeile 200: | Zeile 198: | ||
border: 0; | border: 0; | ||
border-right: 1px solid #aaa; | border-right: 1px solid #aaa; | ||
} | } | ||
| Zeile 287: | Zeile 246: | ||
padding-bottom: 0; | padding-bottom: 0; | ||
} | } | ||
/* Content in columns with CSS instead of tables [[Template:Columns]] */ | /* Content in columns with CSS instead of tables [[Template:Columns]] */ | ||
| Zeile 407: | Zeile 341: | ||
width: 1px; | width: 1px; | ||
} | } | ||
/* Article message box styles */ | /* Article message box styles */ | ||
table.ambox { | table.ambox { | ||
| Zeile 684: | Zeile 618: | ||
background-color: #0f0; | background-color: #0f0; | ||
} | } | ||
/* suppress missing interwiki image links where #ifexist cannot | /* suppress missing interwiki image links where #ifexist cannot | ||
be used due to high number of requests see .hidden-redlink on | be used due to high number of requests see .hidden-redlink on | ||
http://meta.wikimedia.org/wiki/MediaWiki:Common.css | |||
*/ | */ | ||
.check-icon a.new { | .check-icon a.new { | ||
| Zeile 837: | Zeile 771: | ||
background-color: #FFEFD5; | background-color: #FFEFD5; | ||
} | } | ||
.nowraplinks a, | .nowraplinks a, | ||
.nowraplinks .selflink, | .nowraplinks .selflink, | ||
| Zeile 898: | Zeile 826: | ||
background-color: #fff; | background-color: #fff; | ||
} | } | ||
/* The backgrounds for galleries. */ | /* The backgrounds for galleries. */ | ||
#content .gallerybox div.thumb { | #content .gallerybox div.thumb { | ||
background-color: #F9F9F9; /* Light gray padding */ | background-color: #F9F9F9; /* Light gray padding */ | ||
} | } | ||
/* But not on articles, user pages, portals or with opt-out. */ | /* But not on articles, user pages, portals or with opt-out. */ | ||
.ns-0 .gallerybox .thumb img, | .ns-0 .gallerybox .thumb img, | ||
| Zeile 965: | Zeile 889: | ||
/* </source> */ | /* </source> */ | ||
/* Experimental CSS-based Ruby markup support */ | /* Experimental CSS-based Ruby markup support */ | ||
/* Ruby text*/ | /* Ruby text*/ | ||
ruby { | ruby { | ||
ruby-align: space-around; | |||
display: inline-table; | display: inline-table; | ||
text-align: center; | text-align: center; | ||
| Zeile 978: | Zeile 902: | ||
/* if ruby text contains text only and there are two ruby annotations (one placed above the base and one below) | /* 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 */ | then vertical centering roughly aligns baseline of base with baseline of parent */ | ||
/* border-bottom: solid 1.1em transparent; */ | /* 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) | /* o.75em is height of ruby text (0.5000d7 1.2em = 0.6em) plus space between baseline and text-bottom (about 0.15em) | ||
| Zeile 985: | Zeile 908: | ||
be annihilated using border collapse mechanism) */ | be annihilated using border collapse mechanism) */ | ||
} | } | ||
rt { | |||
text-align: center; | |||
} | |||
/* 'ruby { text-align: center; } does not cascade to rt now */ | |||
ruby > rt, rtc { | ruby > rt, rtc { | ||
display: table-header-group; | display: table-header-group; | ||
} | } | ||
/* used to move first ruby container above the base */ | /* used to move first ruby container above the base */ | ||
/* ruby > rb, rbc, ruby > rt + rt, rtc + rtc { | /* ruby > rb, rbc, ruby > rt + rt, rtc + rtc { | ||
display: table-row; | display: table-row; | ||
} */ | } */ | ||
/* base and second ruby are formatted as table-rows */ | /* base and second ruby are formatted as table-rows */ | ||
ruby > rt + rt, rtc + rtc { | ruby > rt + rt, rtc + rtc { | ||
border-bottom: hidden; | border-bottom: hidden; | ||
} | } | ||
/* if there are two annotations then extra border is no longer necessary and can be annihilated using border collapse mechanism */ | /* if there are two annotations then extra border is no longer necessary and can be annihilated using border collapse mechanism */ | ||
rb, rbc, rt, rtc { | rb, rbc, rt, rtc { | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
/* prohibits line breaks inside ruby text */ | /* prohibits line breaks inside ruby text */ | ||
rtc > rt, rbc > rb { | rtc > rt, rbc > rb { | ||
display: table-cell; | display: table-cell; | ||
} | } | ||
/* used to distribute annotations in table like manner */ | /* used to distribute annotations in table like manner */ | ||
rtc > rt[rbspan] { | rtc > rt[rbspan] { | ||
column-span: | column-span: all; | ||
} | } | ||
/* ruby text may span several cells */ | /* ruby text may span several cells */ | ||
ruby > rt, rtc { | ruby > rt, rtc { | ||
font-size: 0.7em; | font-size: 0.7em; | ||
line-height: 1.2em; | line-height: 1.2em; | ||
letter-spacing: -0.1em; | |||
} | } | ||
/* font-size of ruby text is reduced */ | /* font-size of ruby text is reduced */ | ||
rp { | rp { | ||
display: none; | display: none; | ||
} | } | ||
/* Cell Styles */ | /* Cell Styles */ | ||
/* outcell: dark-blue outer border of table | /* outcell: dark-blue outer border of table | ||
incell: light-blue table cells with various rounded corners */ | incell: light-blue table cells with various rounded corners */ | ||
.outcell { | .outcell { | ||
border: 1px solid #7384B5; | border: 1px solid #7384B5; | ||
| Zeile 1.059: | Zeile 969: | ||
text-align: center; | text-align: center; | ||
font-size: 120%; | font-size: 120%; | ||
} | } | ||
.incell_top { | .incell_top { | ||
| Zeile 1.106: | Zeile 1.015: | ||
} | } | ||
/* | /* 1.23 change: properly position section headers that contain just an external link */ | ||
#toc, | .mw-headline>a.external { | ||
.toc, | padding-left: 22px; | ||
.mw-warning { | } | ||
border: 1px solid # | #toc h2, .toc h2 { | ||
background-image: none; | |||
padding: | } | ||
h1, h2 { | |||
border-bottom-color: #7384B5; | |||
} | |||
.catlinks, .toc, #toc, .mw-warning, div#simpleSearch { | |||
border-color: #7384B5; | |||
} | |||
/* Ensure everything inside a spoiler is blacked out. Without this, links show through. */ | |||
.t_hidetext, .t_hidetext * { | |||
background-color: black; | |||
color: black; | |||
} | |||
.t_hidetext a { | |||
color: black !important; | |||
} | |||
.t_hidetext:hover, .t_hidetext:hover *, .t_hidetext:focus, .t_hidetext:focus * { | |||
color: white !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; | |||
} | |||
/* Force pre tag auto wrap text */ | |||
pre { | |||
white-space: pre-wrap; | |||
} | |||
/* Make Lua text readable */ | |||
.source-lua { | |||
font-size: 1.2em; | |||
} | |||
/* Touhou Wiki Main Page mkIII -- Credit: CSS by Darkslime, Sefam, K; Artwork by Leo Modesto */ | |||
/* Farben sind teilweise angepasst -- Yaroneko*/ | |||
#MainPage { | |||
width: 100%; | |||
padding: 1px 3px 1px 3px; | |||
box-sizing: border-box; | |||
} | |||
#MainPage * { | |||
box-sizing: border-box; | |||
} | |||
#mp-LeftColumn { | |||
float: left; | |||
width: 74.8%; | |||
margin-right: 0.1%; | |||
} | |||
#mp-RightColumn { | |||
float: right; | |||
width: 24.8%; | |||
margin-left: 0.1%; | |||
} | |||
.mp-box { | |||
float: left; | |||
} | |||
.mp-innerBox { | |||
position: relative; | |||
width: 100%; | |||
border: 1px solid #7384B5; | |||
border-radius: 5px 5px 5px 5px; | |||
margin: 3px 1px; | |||
} | |||
.mp-innerBox>div { | |||
margin: 6px; | |||
} | |||
.mp-box.mp-wide { | |||
width: 100%; | |||
} | |||
.mp-wide>.mp-tall { | |||
width: 33%; | |||
padding: 0 3px; | |||
} | |||
.mp-tall>.mp-innerBox { | |||
width: 100%; | |||
min-height: 775px; | |||
max-height: 1495px; | |||
} | |||
#mp-Games { | |||
padding-left: 0; | |||
} | |||
#mp-Music { | |||
} | |||
#mp-PrintWorks { | |||
width: 34%; | |||
padding-right: 0; | |||
} | } | ||
# | |||
. | #mp-Games>.mp-innerBox { | ||
background-color: #FFF4EE; | |||
} | |||
#mp-Music>.mp-innerBox { | |||
background-color: #edffea; | |||
} | |||
#mp-PrintWorks>.mp-innerBox { | |||
background-color: #F4F9FF; | |||
} | |||
#BoxOthers>.mp-innerBox { | |||
clear: left; | |||
padding-top: 5px; | |||
width: 100%; | |||
} | } | ||
. | .mp-innerBox>.mp-header { | ||
text-align: center; | text-align: center; | ||
padding: 2px; | |||
font-size: 120%; | |||
border-radius: 3px 3px 0px 0px; | |||
} | |||
#mp-Games .mp-header { | |||
background-color: #ffca91; | |||
} | |||
#mp-Music .mp-header { | |||
background-color: #acff9e; | |||
} | |||
#mp-PrintWorks .mp-header { | |||
background-color: #9bc8ff; | |||
} | |||
.mp-subBox { | |||
margin-top: 5px; | |||
float: none; | |||
clear: both; | |||
} | |||
#mp-Info { | |||
width: 100%; | |||
} | |||
#mp-Info .mp-content { | |||
margin-top: 0.25em; | |||
margin-bottom: 0.75em; | |||
} | |||
#mp-Info .mp-header { | |||
background-color: #f7eea0; | |||
} | |||
#mp-Info>.mp-innerBox { | |||
background-color: #fffbe5; | |||
} | |||
/* Images by leomodesto */ | |||
.mp-innerBox>.mp-image { | |||
margin: 0; | |||
position: absolute; | |||
right: 0; | |||
} | |||
/* Cirno-Daiyousei (Header) */ | |||
#mp-Welcome .mp-image { | |||
top: -69px; | |||
right: 0px; | |||
width: 152px; | |||
height: 80px; | |||
position: absolute; | |||
background: transparent url("skins/common/images/charsprites.png") 0px 0px no-repeat; | |||
} | |||
#mp-Welcome .mp-image:hover { | |||
background-position: -152px 0px; | |||
} | |||
#mp-Welcome .mp-header { | |||
background-color: #ff8787; | |||
} | |||
#mp-Welcome>.mp-innerBox { | |||
background-color: #fff4f4; | |||
} | |||
/* Lily White (News) */ | |||
#mp-News .mp-header { | |||
background-color: #ecb5ff; | |||
} | |||
#mp-News>.mp-innerBox { | |||
background-color: #f7e2ff; | |||
} | |||
#mp-News .mp-image { | |||
width: 103px; | |||
height: 93px; | |||
right: -10px; | |||
top: -27px; | |||
background: transparent url("skins/common/images/charsprites.png") -201px -81px no-repeat; | |||
} | |||
#mp-News .mp-image.mp-smaller-image { | |||
background: transparent url("skins/common/images/charsprites.png") -151px -164px no-repeat; | |||
width: 74px; | |||
height: 70px; | |||
right: -6px; | |||
} | |||
/* Three Fairies (Body columns, full- and low-resolution) */ | |||
#mp-WorksColumns .mp-image { | |||
right: 0px; | |||
height: 82px; | |||
} | |||
#mp-Games .mp-image { | |||
background: transparent url("skins/common/images/charsprites.png") 0px -81px no-repeat; | |||
top: -12px; | |||
width: 60px; | |||
} | |||
#mp-Music .mp-image { | |||
background: transparent url("skins/common/images/charsprites.png") -60px -81px no-repeat; | |||
top: -14px; | |||
width: 68px; | |||
} | |||
#mp-PrintWorks .mp-image { | |||
background: transparent url("skins/common/images/charsprites.png") -129px -81px no-repeat; | |||
top: -20px; | |||
width: 70px; | |||
} | |||
#mp-WorksColumns .mp-image.mp-smaller-image { | |||
right: 0px; | |||
top: -12px; | |||
height: 60px; | |||
} | |||
#mp-Games .mp-image.mp-smaller-image { | |||
background: transparent url("skins/common/images/charsprites.png") 0px -164px no-repeat; | |||
width: 45px; | |||
} | |||
#mp-Music .mp-image.mp-smaller-image { | |||
background: transparent url("skins/common/images/charsprites.png") -45px -164px no-repeat; | |||
width: 51px; | |||
} | |||
#mp-PrintWorks .mp-image.mp-smaller-image { | |||
background: transparent url("skins/common/images/charsprites.png") -98px -164px no-repeat; | |||
width: 52px; | |||
} | |||
/* --- end main page mkIII */ | |||
/* For positioning icons at top-right, used in Template | |||
"Spoken Article" and "Featured Article" */ | |||
div.topicon { | |||
position: absolute; | |||
top: -2em; | |||
margin-right: -10px; | |||
display: block !important; | |||
} | |||
/* To make CategoryTree listings resemble their big brother a bit more. */ | |||
.CategoryTreeLabelPage { | |||
font-style: normal; | |||
} | |||
.CategoryTreeTag { | |||
column-count: 3; | |||
} | |||
/* Community Portal items */ | |||
.PortalNewsOuter { | |||
background: #ffffff; | |||
width: 100%; | |||
text-align: center; | |||
border-radius: 80px; | |||
border: 10px solid #dbf8ce; | |||
} | |||
.PortalNewsInner { | |||
background: #b5dbc1; | |||
width: 45%; | |||
border-radius: 80px; | |||
font-size: 200%; | |||
color: #285c4d; | |||
} | |||
.NewsBox { | |||
width: 30%; | |||
border-radius: 20px; | |||
border: 3px solid; | |||
padding: 10px; | |||
} | |||
.RoundyLabel { | |||
width:20%; | |||
border-top-right-radius: 15px; | |||
border-bottom-right-radius: 15px; | |||
border: 1px solid; | |||
} | |||
/* Things that should be vsible to sysops and accountcreators by default */ | |||
.sysop-show, .accountcreator-show { | |||
display: none; | |||
} | |||
/* Fix for userpage fairies - since MW 1.22 most styles are stripped from DISPLAYTITLE */ | |||
.user-fairy-pre { | |||
display: block; | |||
width: 96%; | |||
height: 50px; | |||
} | |||
.user-fairy-container { | |||
display: block; | |||
position: relative; | |||
right: 0; | |||
bottom: 0; | |||
} | |||
.user-fairy-image { | |||
display: block; | |||
height: 83px; | |||
right: 0px; | |||
bottom: 3px; | |||
position: absolute; | |||
top: -69px; | |||
width: 152px; | |||
background: transparent url("skins/common/images/charsprites.png") 0px 0px no-repeat; | |||
} | |||
.user-fairy-cirno > * > .user-fairy-image:hover { | |||
background-position: -152px 0px; | |||
} | |||
.user-fairy-lily > .user-fairy-pre { | |||
height: 71px; | |||
} | |||
.user-fairy-lily > * > .user-fairy-image { | |||
top: -90px; | |||
width: 103px; | |||
height: 93px; | |||
background-position: -201px -81px; | |||
} | |||
.user-fairy-sunny > .user-fairy-pre { | |||
height: 46px; | |||
} | |||
.user-fairy-sunny > * > .user-fairy-image { | |||
top: -65px; | |||
width: 60px; | |||
height: 83px; | |||
background-position: 0px -81px; | |||
} | |||
.user-fairy-star > .user-fairy-pre { | |||
height: 57px; | |||
} | |||
.user-fairy-star > * > .user-fairy-image { | |||
top: -76px; | |||
width: 70px; | |||
height: 83px; | |||
background-position: -129px -81px; | |||
} | |||
.user-fairy-luna > * > .user-fairy-image { | |||
top: -69px; | |||
width: 68px; | |||
height: 83px; | |||
background-position: -60px -81px; | |||
} | } | ||
# | |||
/* Sitenotice AutoScroll CSS */ | |||
#scrollDiv{ | |||
width: 100%; | |||
height: 25px; | |||
line-height: 25px; | |||
overflow: hidden | |||
} | } | ||
# | |||
#scrollDiv li{ | |||
height: 25px; | |||
padding-left: 10px; | |||
list-style: none; | |||
} | } | ||
. | /* Custom tab */ | ||
/* Tab image */ | |||
.tab_content_container { | |||
text-align: center; | |||
margin: 0; | |||
padding: 0; | |||
} | } | ||
.tab_content_button { | |||
. | display: inline-block; | ||
padding: 2px; | |||
margin-left: 2px; | |||
- | margin-right: 2px; | ||
background-color: #eee; | |||
text-align: center; | |||
box-shadow: 0 0 3px 0 #000; | |||
cursor: pointer; | |||
} | } | ||
.tab_content_content { | |||
. | padding: 2px; | ||
border: 1px solid black; | |||
padding: 3px; | |||
display: none; | display: none; | ||
} | } | ||
/* | /* Spell Card Info use */ | ||
. | |||
.scwrapper { | |||
width: 800px; | |||
display: grid; | |||
grid-template-columns: auto 1fr; | |||
margin: 1em; | |||
border-radius: 8px; | |||
border: 1px solid #4d7cff; | |||
} | |||
.scimage { | |||
border: 0; | |||
padding: 5px; | |||
} | } | ||
div.scimage img { | |||
. | border-radius: 8px; | ||
} | } | ||
. | |||
.scinfo { | |||
display: grid; | |||
grid-template-columns: 2fr 7fr; | |||
} | } | ||
. | |||
.sclabel { | |||
font-weight: bold; | |||
text-align: right; | |||
padding: 5px; | |||
white-space: nowrap; | |||
} | |||
.sccontent { | |||
padding: 5px; | |||
} | |||
.sclabeltext { | |||
border-radius: 8px; | |||
border: 1px solid none; | |||
background-color: #4d7cff; | |||
color: #ffffff; | |||
padding: 5px; | |||
} | } | ||