MediaWiki:Common.css
Giao diện
Chú ý: Sau khi lưu trang, có thể bạn sẽ phải xóa bộ nhớ đệm của trình duyệt để xem các thay đổi.
- Firefox / Safari: Nhấn giữ phím Shift trong khi nhấn Tải lại (Reload), hoặc nhấn tổ hợp Ctrl-F5 hay Ctrl-R (⌘R trên Mac).
- Google Chrome: Nhấn tổ hợp Ctrl-Shift-R (⇧⌘R trên Mac).
- Edge: Nhấn giữ phím Ctrl trong khi nhấn Làm mới (Refresh), hoặc nhấn tổ hợp Ctrl-F5.
/* Mã CSS đặt ở đây sẽ áp dụng cho mọi giao diện */
@import url(https://fonts.googleapis.com/css?family=Khmer);
@import url(https://fonts.googleapis.com/css?family=Noto+Sans+Cham);
#mw-indicator-mw-helplink, .last-modified-bar, #footer-info-lastmod, .catlinks {
display:none;
}
.mw-rcfilters-ui-cell {
vertical-align: middle;
}
body {
font-family: sans-serif, Khmer, Noto Sans Cham, Simsun;
}
.vector-body h2 {
font-size: 1.1em;
font-family: 'Times';
}
.mw-body h1, .mw-body-content h1 {
font-family: 'Times';
}
ol dl dd {
font-size: 0.9em;
font-style: italic;
}
.mw-parser-output {
font-size: 1.3em;
}
#globalWrapper {
font-size: 12pt;
}
#p-logo-text a {
font-variant: none;
text-transform: uppercase;
}
/* link color */
.mw-parser-output a.extiw:visited {
color: #36b;
}
/* nobr template */
.nobr { white-space:nowrap; }
/* External links */
/* a[href^="http"]:after {
content: " " url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIpJREFUeNqEkIEJwCAMBGPpEs7hHK6hY+gauoZr6Bo6RtqEWkxb6EMQnuM/USEirIoxSmOKwDkhBEwp4VPkb4801Xun9xW4e+9FldYarLUvkBPPOp4JGWOgtSaSt6VWQKUU9nPOEiSIgAmNMdadFTjn7utqrXwh6fLvH9nXhamW5ksMnpfDnw4BBgBfunO056MmqAAAAABJRU5ErkJggg==);
}
.mw-parser-output a.external, .link-https {
background-image: none;
padding-right: 0px;
}
*/
/* gal template */
@media (min-width:801px) {
li.multimg {
width: 32%;
}
div.thumbinner {
width: 100%!important;
max-width: 302px;
}
.thumbimage {
width: calc(100% - 2px);
height: auto;
}
.alignright {
text-align: right;
}
}
div.tright {
margin: 0.5em 0.4em 1.3em 0.4em;
}
.content .thumbcaption, .mw-content-ltr>ul, .mw-category-group ul {
text-align: left!important;
}
/* list indent 0 */
ol li ul {
margin: 0.3em 0 0 0!important;
}
.mw-content-ltr ol, .mw-content-rtl .mw-content-ltr ol {
margin: 0.3em 0 0 1.6em!important;
}
/* Ruby text */
ruby {
display: inline-flex;
flex-direction: column-reverse;
line-height: 1.1em;
text-align: center;
vertical-align: text-bottom;
}
.notHani {
font-family: sans-serif, Khmer, Noto Sans Cham;
}
rt {
font-size:60%;
}
rb:has(> .notHani) {
padding-top: 5px;
}
.cognates ruby {
display: inline-block;
vertical-align: baseline;
}
.cognates rt {
font-size: calc(0.9 * 0.9em);
display: inline-block;
}
/* External Images */
.img200 img {
width: 200px;
}
.img50 img {
width: 50px;
}
/* Tooltip */
.note {
color: #777;
text-decoration-line: underline;
text-decoration-style: dotted;
text-decoration-thickness: 1px;
cursor: help;
vertical-align: super;
font-size: x-small;
}
.message.note, .maybe.note {
display: none;
}
/* Zoom text */
.tttext:hover .ttzoom {
visibility: visible;
opacity: 1;
}
.Hani .tttext .ttzoom {
font-family: Kaiti, Simsun;
}
.ttzoom {
visibility: hidden;
background-color: #fff;
color: #000;
text-align: center;
border-radius: 6px;
position: absolute;
z-index: 1;
left: 100%;
bottom: -100%;
margin-left: 10px;
transition: opacity 0.3s;
opacity: 0;
padding: 10px;
border: black solid 1px;
font-size: 80px;
line-height: 1.5em;
align-items: center;
font-weight: normal;
min-width: 1.5em;
white-space: nowrap;
}
.tttext {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
}
.nozoom .ttzoom {
display: none;
}
.nozoom .tttext {
border-bottom: none;
}
/* Strikethrough */
del {
text-decoration-color: red;
text-decoration-thickness: 2px;
text-decoration-style: double;
}
/* Note */
.notelistalpha > div > ol > li {
list-style: lower-alpha;
}
.notelistalpha ul li {
list-style: disc;
}
.notelistalpha li {
list-style: none;
}
.references {
font-size: 0.9em;
}
.reference a {
color: darkred;
font-weight: bold;
}
.notes {
clear: right;
}
.notelistalpha .references>li::marker {
font-size: smaller;
font-weight: bold;
color: darkred;
}
/* Cognates */
.cognates {
clear: right;
}
.cognates ol>li ol>li {
list-style: none;
}
.cognates li li {
white-space: nowrap;
width: max-content;
}
.cognates h3 {
font-size: 1em;
}
.cognates .reference-text {
display: inline-block;
width: calc(100% - 4em);
vertical-align: top;
}
.cognates .reference-text ol {
margin-left: 1em!important;
}
.cognates ol.references {
counter-reset: cg;
margin-left: .6em!important;
}
.cognates .references>li::marker {
content: "";
}
.cognates .references>li:before{
content: "cg" counter(cg,decimal) '. ';
counter-increment: cg 1;
display: inline-block;
margin-right: 5px;
color: darkred;
font-weight: bold;
font-size: smaller;
}
/* Maybe */
.maybe {
opacity: .7;
cursor: help;
}
.maybe:hover {
opacity: 1;
}
.thumbinner.vright {
width: unset!important;
}
.enlarge {
clear: right;
float: right;
cursor: pointer;
}
/* Quote block */
.quote {
border-left: 4px solid #eaecf0;
padding: 8px 32px;
margin-inline-end:40px;
margin-inline-start:40px;
display: flow-root;
}
.qsource {
float: right;
}