MediaWiki:Common.css:修订间差异
外观
文章翻译表样式 |
无编辑摘要 |
||
| (未显示同一用户的11个中间版本) | |||
| 第6行: | 第6行: | ||
.fuzzy { | .fuzzy { | ||
filter: blur(3px); | filter: blur(3px); | ||
text-shadow: 0px 0px 5px white; | text-shadow: 0px 0px 5px white;s | ||
transition: all 0.1s ease-in-out; | transition: all 0.1s ease-in-out; | ||
} | } | ||
| 第133行: | 第133行: | ||
.hlist li li li { | .hlist li li li { | ||
font-size: x-small; | font-size: x-small; | ||
} | |||
/* 无序列表 */ | |||
.plainlist ol, | |||
.plainlist ul { | |||
line-height: inherit; | |||
list-style: none; | |||
margin: 0; | |||
padding: 0; /* Reset Minerva default */ | |||
} | |||
.plainlist ol li, | |||
.plainlist ul li { | |||
margin-bottom: 0; | |||
} | } | ||
/* [[Template:SimpleNavbox]] */ | /* [[Template:SimpleNavbox]] */ | ||
| 第306行: | 第319行: | ||
.article-table { | .article-table { | ||
width: 100%; | width: 100%; | ||
border-spacing: 20px 10px; | |||
} | } | ||
.article-table th: | .article-table th:not([colspan="2"]) { | ||
width: | width: 5%; | ||
text-align: left; | text-align: left; | ||
word-break: keep-all; | word-break: keep-all; | ||
} | |||
.article-table td:nth-child(2):not(:last-child), | |||
.article-table td:nth-child(4) { | |||
width: 45%; | |||
} | } | ||
@media screen and (max-width: 719px) { | @media screen and (max-width: 719px) { | ||
.article-table th { | .article-table th, | ||
.article-table td { | |||
display: block; | display: block; | ||
padding-top: 1em; | padding-top: 1em; | ||
word-break: normal; | word-break: normal; | ||
width: 100% !important; | |||
} | } | ||
} | |||
.article-table .gallerytext { | |||
display: none; | |||
} | |||
/* exlink 设置 favicon 尺寸 */ | |||
.exlink-ico img { | |||
width: 16px; | |||
} | |||
.keep-all { | |||
word-break: keep-all; | |||
} | |||
/* 歌单 */ | |||
.setlist, .tracklist { | |||
width: 100%; | |||
max-width: 600px; | |||
} | |||
.setlist th, .setlist td:last-child, | |||
.tracklist th, .tracklist td:last-child { | |||
padding: 0 0.4em; | |||
} | |||
.setlist td:first-child:not(:last-child), | |||
.tracklist td:first-child:not(:last-child) { | |||
width: 24px; | |||
text-align: center; | |||
vertical-align: top; | |||
} | |||
.setlist td:only-child, | |||
.tracklist td:only-child { | |||
background: #E3E6EA; | |||
} | |||
/* 歌词系列模板 */ | |||
.Lyrics-has-ruby .Lyrics-original, | |||
.Lyrics-has-ruby .Lyrics-translated, | |||
.Lyrics-has-ruby .Lyrics-column { | |||
line-height: 2.1; | |||
} | |||
.Lyrics-no-ruby .Lyrics-original, | |||
.Lyrics-no-ruby .Lyrics-translated, | |||
.Lyrics-no-ruby .Lyrics-column { | |||
vertical-align: top; | |||
} | |||
.Lyrics .Lyrics-original, | |||
.Lyrics .Lyrics-translated { | |||
width: 100%; | |||
display: inline-block; | |||
white-space: pre-wrap; | |||
} | |||
.Lyrics .Lyrics-column { | |||
white-space: pre-wrap; | |||
} | |||
.Lyrics .Lyrics-column-suppressed { | |||
display: inline-block; | |||
} | |||
.Lyrics .Lyrics-column-wrapped { | |||
width: 100%; | |||
display: none; | |||
} | |||
@media all and ( min-width: 720px ) { | |||
.Lyrics { | |||
display: flow-root; | |||
min-width: 480px; | |||
} | |||
.Lyrics-has-translate .Lyrics-original, | |||
.Lyrics-has-translate .Lyrics-translated { | |||
width: 49.85%; | |||
} | |||
} | |||
@media all and ( max-width: 900px ) { | |||
.Lyrics { | |||
min-width: 100%; | |||
} | |||
.Lyrics .Lyrics-column-suppressed { | |||
display: none; | |||
} | |||
.Lyrics .Lyrics-column-wrapped { | |||
display: block; | display: block; | ||
} | } | ||
} | } | ||
.Lyrics-gradient ruby, .Lyrics-gradient rb, .Lyrics-gradient rt { | |||
background: inherit; | |||
} | |||
@media screen and (max-device-width: 720px){ | |||
.Lyrics-original span[title]:not(.NoTitlebox):hover, | |||
.Lyrics-translated span[title]:not(.NoTitlebox):hover, | |||
.Lyrics-column span[title]:not(.NoTitlebox):hover { | |||
position: relative; | |||
} | |||
/* title="全员"自带class="NoTitlebox" */ | |||
.Lyrics-original span[title]:not(.NoTitlebox):hover::before, | |||
.Lyrics-translated span[title]:not(.NoTitlebox):hover::before, | |||
.Lyrics-column span[title]:not(.NoTitlebox):hover::before { | |||
content: attr(title); | |||
position: absolute; | |||
bottom: 100%; | |||
left: 0; | |||
background-color: white; | |||
white-space: nowrap; | |||
font-size: 13px; | |||
text-shadow: none; | |||
border: 1px #666 solid; | |||
box-sizing: border-box; | |||
padding: 1px 2px; | |||
box-shadow: 1px 1px 1px #ccc; | |||
color: black; | |||
} | |||
} | |||
/* 按钮 */ | |||
.photrans-button { | |||
display: flow-root; | |||
margin-bottom: 0.5em; | |||
} | |||
.photrans-button > div { | |||
position: relative; | |||
width: calc(4em + 2ch); | |||
height: 1em; | |||
line-height: 1; | |||
} | |||
.photrans-button > div > span { | |||
position: absolute; | |||
top: 0; | |||
width: 100%; | |||
} | |||
.photrans-button .mw-collapsed { | |||
display: none; /* 移动版提前加载样式 */ | |||
} | |||
/* 歌词 */ | |||
.photrans-button ~ .Lyrics ruby, | |||
.photrans-button ~ .Tabs .Lyrics ruby { | |||
white-space: normal; /* Safari */ | |||
} | |||
.photrans-button ~ .Lyrics rt, | |||
.photrans-button ~ .Tabs .Lyrics rt { | |||
font-size: 0.75em; | |||
font-feature-settings: normal; | |||
-webkit-user-select: none; | |||
user-select: none; | |||
} | |||
.photrans-button ~ .Lyrics ruby > span, | |||
.photrans-button ~ .Tabs .Lyrics ruby > span { | |||
display: inline-block; | |||
font-size: 0; | |||
width: 0; | |||
} | |||
/* 开关注音 */ | |||
.photrans-button + .mw-collapsed ~ .Lyrics rb span, | |||
.photrans-button + .mw-collapsed ~ .Tabs .Lyrics rb span { | |||
letter-spacing: 0 !important; | |||
margin-left: 0 !important; | |||
} | |||
.photrans-button + .mw-collapsed ~ .Lyrics rt > span:first-child, | |||
.photrans-button + .mw-collapsed ~ .Tabs .Lyrics rt > span:first-child, | |||
.photrans-off { | |||
font-size: 0; | |||
} | |||
.photrans-s { | |||
visibility: hidden; | |||
font-size: 1.333em; | |||
} | |||
.mw-collapsed ~ .Lyrics .photrans-off { | |||
font-size: 1em; | |||
} | |||
/*-------------------------< P R O T E C T I O N I C O N >-------------------- | /*-------------------------< P R O T E C T I O N I C O N >-------------------- | ||