Bước tới nội dung

MediaWiki:Common.css

Từ Từ nguyên Tiếng Việt
Phiên bản vào lúc 19:42, ngày 23 tháng 4 năm 2025 của Admin (thảo luận | đóng góp)

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 tươ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=Noto+Sans+Khmer);
@import url(https://fonts.googleapis.com/css?family=Noto+Sans+Cham);
body {
    overflow-y: auto;
}
#mw-indicator-mw-helplink, .last-modified-bar, #footer-info-lastmod, .catlinks, .patrollink, #footer-icons, .vector-main-menu-action-opt-out {
    display:none;
}

.mw-rcfilters-ui-cell {
    vertical-align: middle;
}

body {
    font-family: sans-serif,Leelawadee UI,Noto Sans Khmer,Noto Sans Cham,Simsun,Unifont;
}

.vector-body h2 {
    font-size: 1.1em;
    font-family: 'Times';
}

.mw-body h1, .mw-body-content h1, .vector-sticky-header-context-bar-primary {
    font-family: 'Times';
}

ol dl dd {
    font-size: 0.9em;
    font-style: italic;
    min-width: max-content;
    max-width: fit-content;
    page-break-inside: avoid;
}

.mw-parser-output {
    font-size: 1.3em;
}

#globalWrapper {
    font-size: 12pt;
}

#p-logo-text a {
    font-variant: none;
    text-transform: uppercase;
}
.mw-logo-container {
    max-width:unset;
}
a.mw-logo {
    color: black;
}

/* 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;
}

a img {
    max-width: calc(100% - 8px);
    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, Leelawadee UI, Noto Sans Khmer, Noto Sans Cham;
}

rt {
    font-size:60%;
    text-align:center;
}

rb:has(> .notHani) {
    padding-top: 5px;
}
rb:has(> .notHani.nozoom) {
    padding-top: 0;
}

.cognates ruby, .fognates ruby {
    display: inline-block;
    vertical-align: baseline;
}

.cognates ruby.zh {
    display: inline-flex;
    vertical-align: text-bottom;
}

.cognates rt, .fognates rt {
    font-size: calc(0.9 * 0.9em);
    display: inline-block;
}

.fognates rt span:before {
    content: "\0028";
}
.fognates rt span:after {
    content: "\0029";
}

/* External Images */
.img200 img {
width: 200px;
}

.img50 img {
width: 50px;
}

/* Tooltip */
.note {
    cursor: help;
    vertical-align: super;
}

.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;
    justify-items: center;
}
.tttext {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}
.nozoom .ttzoom {
    display: none;
}
.nozoom .tttext {
    border-bottom: none;
}

.ttzoom .nomtext {
    display: block;
    margin: 20px;
    line-height: 0;
}

.ttzoom .nomtext img {
    width: 80px;
    height: 80px;
    vertical-align: text-bottom;
    max-width: unset;
}

.tttext>span>span>img {
    height: 1em;
    width: 1em;
    max-width: unset;
    vertical-align: text-bottom;
    margin-bottom: 2px;
}
.textimg {
    line-height: unset;
}

/* 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,.cognates,.reflist {
    clear: right;
}

.notelistalpha .references>li::marker {
    font-size: smaller;
    font-weight: bold;
    color: darkred;
}

/* Cognates */

.cognates ol>li ol>li {
    list-style: none;
}

.cognates span>ol>li {
    width: 100%;
}

.cognates li li {
    white-space: nowrap;
    width: max-content;
}

.cognates h3 {
    font-size: 1em;
}
.cognates .reference-text {
    display: inline-block;
    max-width: fit-content;
    min-width: max-content;
    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;
}
/* Fognates */
.fognates {
    clear: right;
}

.fognates ol>li ol>li {
    list-style: none;
}

.fognates span>ol>li {
    width: 100%;
}

.fognates li li {
    white-space: nowrap;
    width: max-content;
}

.fognates h3 {
    font-size: 1em;
}
.fognates .reference-text {
    display: inline-block;
    width: calc(100% - 4em);
    vertical-align: top;
}
.fognates .reference-text ol {
    margin-left: 1em!important;
}

.fognates ol.references {
    counter-reset: fc;
    margin-left: .6em!important;
}
.fognates .references>li::marker {
    content: "";
}
.fognates .references>li:before{
    content: "fc" counter(fc,decimal) '. ';
    counter-increment: fc 1;
    display: inline-block;
    margin-right: 5px;
    color: darkred;
    font-weight: bold;
    font-size: smaller;
}

ol.references > li:not(:first-child) {
    border-top: solid 1px lightgray;
}

/* Reference */

sup[id*="cite_ref-ref"] a, .note {
    color: gray;
    font-weight: normal;
    font-size: x-small;
}

/* Maybe */
.maybe {
    color:gray;
    cursor: help;
}

.maybe:hover {
    color:#444;
}

.thumbinner.vright {
    width: unset!important;
}
.enlarge {
    clear: right;
    float: right;
    cursor: pointer;
}
.own {
    color: slateblue;
}
.own:hover {
    color: darkslateblue;
}
/* Quote block */
.quote {
    border-left: 4px solid #eaecf0;
    padding: 8px 32px;
    margin-bottom: 0.5em;
    margin-inline-end:40px;
    margin-inline-start:40px;
    display: flow-root;
}
.qsource {
    float: right;
}

/* Footer */
@media screen and (min-width: 1000px){
.mw-footer-container {
    grid-area: footer;
    display: block;
    vertical-align: bottom;
}
.mw-footer ul {
    margin: 0 auto;
    height: fit-content;
    width: fit-content;
}
.mw-page-container-inner {
    min-height: 100vh; /* Make page full vh for footer to stay at bottom of screen */
}
}

/* Inline notes */
.inlinenote {
    color: darkcyan;
    font-size: smaller;
    font-weight: bold;
}

/* Syntax highlighter */
#wpTextbox0, #wpTextbox1 {
    padding-left: 1px!important;
}

/* Br */
.brwithspace {
    display: block; 
    content: ' '; 
    margin-top: 10px;
}
.brwithspace {
    display: block; 
    content: ' '; 
}

/* Audio */
.mw-tmh-player.audio {
    height: 20px !important;
    width: 20px !important;
    --inline-controls-bar-height: 20px !important;
    vertical-align: text-bottom;
}
.video-js {
    position: static;
}
.mw-file-element.video-js {
    height: 20px !important;
    width: 20px !important;
    color: #000;
    background: rgba(0, 0, 0, 0);
}

.video-js .vjs-control-bar {
    height: 20px !important;
    background: rgba(0, 0, 0, 0);
}

.vjs-button > .vjs-icon-placeholder:before {
    font-size: 20px !important;
    line-height: 20px !important;
}

.video-js .vjs-control {
    width: 20px !important;
}

.video-js .vjs-subs-caps-button, .mw-tmh-duration {
    display: none;
}
.vjs-icon-replay:before, .video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before, .vjs-icon-play:before, .video-js .vjs-play-control .vjs-icon-placeholder:before, .video-js .vjs-big-play-button .vjs-icon-placeholder:before {
    content: "\f107";
}

.mw-tmh-player.audio .mw-tmh-play:hover .mw-tmh-play-icon, .mw-tmh-player.audio .mw-tmh-play:focus .mw-tmh-play-icon, .mw-tmh-player.audio .mw-tmh-play:active .mw-tmh-play-icon {
    background-color: rgba(0, 0, 0, 0);
}

.mw-tmh-player.audio .mw-tmh-play .mw-tmh-play-icon {
    background: rgba(0, 0, 0, 0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20px' viewBox='0 -960 960 960' width='20px' fill='%23000'%3E%3Cpath d='M560-131v-82q90-26 145-100t55-168q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 127-78 224.5T560-131ZM120-360v-240h160l200-200v640L280-360H120Zm440 40v-322q47 22 73.5 66t26.5 96q0 51-26.5 94.5T560-320ZM400-606l-86'/%3E%3C/svg%3E") no-repeat center;
}

*:not(.thumbinner) > .video-js.video-js:not(.vjs-fullscreen) {
    vertical-align: text-bottom;
}

/* Word Connectors */
con {
    font-weight: normal
}

/* Arrow */
arrow {
    font-family: serif;
}

/* 68 indent */
span.luc {
    text-indent: 1em;
    display: inline-block;
}

/* Example list style */
dd:has(br.brwithspace)::before {
    display: none;
}

ol dl dd::before {
    content: "";
    height: 5px;
    background-color: black;
    width: 5px;
    display: block;
    bottom: -1em;
    position: relative;
    right: 1em;
}