“MediaWiki:Common.css”的版本间的差异
来自UtaWiki
| 第240行: | 第240行: | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | } | ||
| − | #uw-mainpage-dyk li { | + | div#uw-mainpage-dyk li { |
display: none; | display: none; | ||
} | } | ||
| + | div#uw-mainpage-lyric dd { | ||
| + | margin: 0; | ||
| + | } | ||
| + | div#uw-mainpage-lyric dt { | ||
| + | font-weight: normal; | ||
| + | font-size: .9em; | ||
| + | margin: 0 0 0 4.44em; | ||
| + | } | ||
| + | |||
div.uw-block-footer { | div.uw-block-footer { | ||
font-size: .85em; | font-size: .85em; | ||
2014年7月18日 (五) 01:55的版本
/* 此处的 CSS 将应用于所有的皮肤 */
@media screen { /* media screen start */
/* font adjust */
html, body {
font-family: Helvetica, Arial, "Noto sans s chinese", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
html {
font-size: 1.2em;
}
pre, code, tt, kbd, samp, .mw-code {
font-family: "Courier New",monospace,Courier;
}
/* lang=ja 日文字体 */
[lang=ja] {
font-family: "Noto sans japanese", "Hiragino Kaku Gothic Pro", "Meiryo", "MS PGothic", sans-serif;
}
/* blockquote */
blockquote {
background: url('/images/8/8c/Quotation.png') left top no-repeat;
min-height: 3em;
margin: 1em 0;
padding: 0 4em;
}
/* table padding adjust */
table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {
padding: 1px 0.5em;
}
/* TOC */
#toc, .toc {
font-size: 85%;
border-radius: 3px;
padding: 2px 7px;
}
/* Infobox */
table.infobox {
float: right;
clear: right;
font-size: 85%;
min-width: 10em;
max-width: 20em;
margin: 0.2em 0 0.5em 1em;
border: 1px solid #aaa;
background-color: #f9f9f9;
text-align: left;
border-radius: 3px;
}
table.infobox th, table.infobox td {
padding: 1px 0.5em;
vertical-align: text-top;
}
table.infobox td:first-child {
min-width: 4em;
}
table.infobox th {
text-align: center;
border-radius: 3px;
font-size: 117%;
}
table.infobox th.subtitle {
font-size: 100%;
font-weight: normal;
}
table.infobox-song th {
background: #60A917;
color: #FFF;
}
table.infobox-artist th {
background: #1BA1E2;
color: #FFF;
}
table.infobox-album th {
background: #F5D79D;
}
table.infobox-timeline {
margin: 0 -.5em;
}
table.infobox-timeline td {
width: 33.3%;
padding: 0;
text-align: center;
border-right: 1px #eee solid;
}
table.infobox-timeline td:last-child {
border-right: none;
}
/* 歌词排版 */
div.lyric {
float: left;
margin: 0 2em 0 0;
}
.poem {
padding: 0.6em 1em 0.5em;
background: #EEE;
border-radius: 3px;
}
div.lyrics::after, div#uw-header-info::after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
#mw-content-text > h2 {
margin-top: 1.5em;
}
dt {
margin-top: .75em;
}
/* Template:Ruby from Wikipedia:ja */
.ruby {
border: none;
display: inline-table;
height: 1em;
line-height: 1;
margin: -.25em 0 0 0;
padding: 0px;
text-align: center;
text-indent: 0px;
vertical-align: text-bottom;
white-space: nowrap;
position: relative;
bottom: 1px;
}
.ruby > .rb {
border: none;
display: table-row-group;
line-height: 1;
margin: 0px;
padding: 0px;
text-align: center;
white-space: nowrap;
speak: none
}
.ruby > .rt {
border: none;
display: table-header-group;
font-size: 0.5em;
line-height: 1.1;
margin: 0px;
padding: 0px;
text-align: center;
white-space: nowrap;
}
.ruby > .rp {
display: none !important;
speak: none
}
} /* media screen end */
/* 隐藏首页元素 */
body.page-首页 #deleteconfirm, body.page-首页 #t-cite, body.page-首页 #footer-info-lastmod, body.action-view.page-首页 #siteSub, body.action-view.page-首页 #contentSub, body.action-view.page-首页 h1.firstHeading, body.action-view.page-首页 #toc {
display: none !important;
}
/* 首页样式 */
div#uw-header {
border: 1px solid #a7d7f9;
border-radius: 8px;
font-size: 85%;
padding: 1em 2em;
display: flex;
align-items: flex-end;
}
div#uw-header-title {
flex: 5;
}
div#uw-header-title > h1 {
border: none;
margin: 0;
}
div#uw-header p {
margin: 0;
}
div#uw-header b {
font-size: 120%;
}
div#uw-header-info {
}
div#uw-content {
display: flex;
margin: 2em 0 0 0;
}
div#uw-left {
flex: 2;
margin-right: 2em;
}
div#uw-right {
flex: 1;
border: 1px solid #ddd;
border-radius: 8px;
padding: .75em;
}
div.uw-left-block > h2, div.uw-right-block > h2, div#mw-content-text > h2 {
border: none;
border-radius: 6px;
background: -webkit-linear-gradient(left, #eee , transparent);
background: -o-linear-gradient(right, #eee, transparent);
background: -moz-linear-gradient(right, #eee, transparent);
background: linear-gradient(to right, #eee , transparent);
padding: .25em .5em;
}
div.uw-left-block > h2, div.uw-right-block > h2 {
font-size: 120%;
margin-left: -.5em;
margin-right: -.5em;
}
div.uw-left-block h3, div.uw-right-block h3 {
font-weight: normal;
font-size: 120%;
}
div#mw-content-text > h2 {
margin-left: -.5em;
margin-right: -.5em;
padding: .5em;
}
div#uw-left > div, div#uw-right > div {
margin-bottom: 2em;
padding: 0 .5em;
}
div#uw-left > div:last-child, div#uw-right > div:last-child {
margin-bottom: 0;
}
div#uw-mainpage-dyk li {
display: none;
}
div#uw-mainpage-lyric dd {
margin: 0;
}
div#uw-mainpage-lyric dt {
font-weight: normal;
font-size: .9em;
margin: 0 0 0 4.44em;
}
div.uw-block-footer {
font-size: .85em;
clear: both;
text-align: right;
}
div.uw-block-footer a {
border-radius: 3px;
color: #666;
padding: 3px 6px;
}
div.uw-block-footer a:hover {
background: #f2f2f2;
text-decoration: none;
}
.divide2 {
width:50%;
float:left;
}
/* ref don't make line-height larger */
sup.reference {
line-height: 100%;
}
sub {
vertical-align: baseline;
line-height: 100%;
}
/* stub message */
div.stub {
display: inline-block;
margin-bottom: 1em;
padding: .3em .85em .1em 2.05em;
border: 1px #aaa solid;
border-radius: 4px;
font-size: 90%;
color: #666;
background: #f4f4f4;
background-image: url('/images/thumb/d/d2/Edit.png/16px-Edit.png');
background-repeat: no-repeat;
background-position-y: center;
background-position-x: .6em;
}
/* clear fix */
.clearfix {
clear: both;
}
/**
* Styling for links generated by [[MediaWiki:Edittools]]
* @source www.mediawiki.org/wiki/Extension:CharInsert#Styling
* @updated 2012-02-29
*/
.mw-charinsert-buttons {
margin-top: 10px;
border: 1px solid #aaaaaa;
padding: 1px;
text-align: left;
font-size: 100%;
}
.mw-charinsert-buttons dt {
display: inline-block;
margin: 0 .25em 0 2em;
min-width: 4em;
overflow: hidden;
}
.mw-charinsert-buttons dd {
display: inline-block;
margin: 0 .2em;
max-width: 60em;
overflow: hidden;
}
.mw-charinsert-buttons a {
color: black;
background: -webkit-linear-gradient(top, #f4f4f4, #e3e3e3) !important;
background: -o-linear-gradient(bottom, #f4f4f4, #e3e3e3) !important;
background: -moz-linear-gradient(bottom, #f4f4f4, #e3e3e3) !important;
background: linear-gradient(to bottom, #f4f4f4, #e3e3e3) !important;
font-weight: normal;
font-size: .9em;
text-decoration: none;
border: thin #999 outset;
border-radius: 3px;
padding: .1em .5em 0em .5em;
display: block;
max-width: 60em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.mw-charinsert-buttons a:hover,
.mw-charinsert-buttons a:active {
background-color: #bcd;
border-style: inset;
}
.client-js .mw-edittools-section {
display: inline;
}
.client-js .mw-edittools-section input[type="button"] {
font-size: 0.9em;
padding-left: 1px;
padding-right: 1px;
margin-left: 1px;
}