MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ===== CategoryTree sidebar ===== */ | |||
/* Root tree */ | |||
#p-categorytree-portlet .CategoryTreeChildren, | #p-categorytree-portlet .CategoryTreeChildren, | ||
.vector-main-menu #p-categorytree-portlet .CategoryTreeChildren { | .vector-main-menu #p-categorytree-portlet .CategoryTreeChildren { | ||
margin | margin: 0 !important; | ||
padding | padding: 0 0 0 18px !important; | ||
border | border: 0 !important; | ||
overflow: visible !important; | overflow: visible !important; | ||
} | } | ||
#p-categorytree-portlet .CategoryTreeItem, | /* Top-level item */ | ||
.vector-main-menu #p-categorytree-portlet .CategoryTreeItem { | #p-categorytree-portlet > .vector-menu-content .CategoryTreeItem, | ||
.vector-main-menu #p-categorytree-portlet > .vector-menu-content .CategoryTreeItem { | |||
position: relative !important; | |||
display: block !important; | |||
margin: 0 !important; | |||
padding: 10px 18px 10px 0 !important; | |||
border-bottom: 1px solid #e7eaf0 !important; | |||
min-height: 20px !important; | |||
} | |||
/* Nested item */ | |||
#p-categorytree-portlet .CategoryTreeChildren .CategoryTreeItem, | |||
.vector-main-menu #p-categorytree-portlet .CategoryTreeChildren .CategoryTreeItem { | |||
position: relative !important; | position: relative !important; | ||
display: block !important; | display: block !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: | padding: 8px 18px 8px 0 !important; | ||
min-height: | border-bottom: 0 !important; | ||
min-height: 20px !important; | |||
} | } | ||
/* Text link */ | |||
#p-categorytree-portlet .CategoryTreeLabel, | #p-categorytree-portlet .CategoryTreeLabel, | ||
.vector-main-menu #p-categorytree-portlet .CategoryTreeLabel { | #p-categorytree-portlet .CategoryTreeLabel a, | ||
.vector-main-menu #p-categorytree-portlet .CategoryTreeLabel, | |||
.vector-main-menu #p-categorytree-portlet .CategoryTreeLabel a { | |||
display: block !important; | display: block !important; | ||
color: #4a5fd2 !important; | |||
line-height: 1. | font-size: 14px !important; | ||
line-height: 1.35 !important; | |||
font-weight: 400 !important; | |||
text-decoration: none !important; | |||
padding-right: 18px !important; | |||
} | } | ||
/* Hover */ | |||
#p-categorytree-portlet .CategoryTreeLabel a:hover, | |||
.vector-main-menu #p-categorytree-portlet .CategoryTreeLabel a:hover { | |||
color: #3c51c4 !important; | |||
text-decoration: none !important; | |||
} | |||
/* Arrow wrapper */ | |||
#p-categorytree-portlet .CategoryTreeBullet, | #p-categorytree-portlet .CategoryTreeBullet, | ||
.vector-main-menu #p-categorytree-portlet .CategoryTreeBullet { | .vector-main-menu #p-categorytree-portlet .CategoryTreeBullet { | ||
position: absolute !important; | position: absolute !important; | ||
right: 0 !important; | right: 0 !important; | ||
top: | top: 11px !important; | ||
width: 14px !important; | width: 14px !important; | ||
height: 14px !important; | height: 14px !important; | ||
| Line 35: | Line 66: | ||
} | } | ||
/* Nested arrow alignment */ | |||
#p-categorytree-portlet .CategoryTreeChildren .CategoryTreeBullet, | |||
.vector-main-menu #p-categorytree-portlet .CategoryTreeChildren .CategoryTreeBullet { | |||
top: 9px !important; | |||
} | |||
/* Remove native icon/text */ | |||
#p-categorytree-portlet .CategoryTreeToggle, | #p-categorytree-portlet .CategoryTreeToggle, | ||
.vector-main-menu #p-categorytree-portlet .CategoryTreeToggle { | .vector-main-menu #p-categorytree-portlet .CategoryTreeToggle { | ||
| Line 45: | Line 83: | ||
line-height: 0 !important; | line-height: 0 !important; | ||
text-indent: -9999px !important; | text-indent: -9999px !important; | ||
overflow: | overflow: hidden !important; | ||
background: none !important; | background: none !important; | ||
border: 0 !important; | border: 0 !important; | ||
| Line 53: | Line 91: | ||
} | } | ||
/* Chevron */ | |||
#p-categorytree-portlet .CategoryTreeToggle::before, | #p-categorytree-portlet .CategoryTreeToggle::before, | ||
.vector-main-menu #p-categorytree-portlet .CategoryTreeToggle::before { | .vector-main-menu #p-categorytree-portlet .CategoryTreeToggle::before { | ||
| Line 64: | Line 103: | ||
transition: transform 0.18s ease !important; | transition: transform 0.18s ease !important; | ||
transform-origin: 50% 50% !important; | transform-origin: 50% 50% !important; | ||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 3.5 L9 7 L5 10.5' fill='none' stroke='%234a5fd2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; | ||
} | } | ||
/* > */ | |||
#p-categorytree-portlet .CategoryTreeToggle[data-ct-state='collapsed']::before, | #p-categorytree-portlet .CategoryTreeToggle[data-ct-state='collapsed']::before, | ||
.vector-main-menu #p-categorytree-portlet .CategoryTreeToggle[data-ct-state='collapsed']::before { | .vector-main-menu #p-categorytree-portlet .CategoryTreeToggle[data-ct-state='collapsed']::before { | ||
| Line 72: | Line 112: | ||
} | } | ||
/* v */ | |||
#p-categorytree-portlet .CategoryTreeToggle[data-ct-state='expanded']::before, | #p-categorytree-portlet .CategoryTreeToggle[data-ct-state='expanded']::before, | ||
.vector-main-menu #p-categorytree-portlet .CategoryTreeToggle[data-ct-state='expanded']::before { | .vector-main-menu #p-categorytree-portlet .CategoryTreeToggle[data-ct-state='expanded']::before { | ||
| Line 77: | Line 118: | ||
} | } | ||
/* No arrow for leaf page */ | |||
#p-categorytree-portlet .CategoryTreePageBullet, | #p-categorytree-portlet .CategoryTreePageBullet, | ||
#p-categorytree-portlet .CategoryTreeEmptyBullet, | #p-categorytree-portlet .CategoryTreeEmptyBullet, | ||
Revision as of 09:10, 12 May 2026
/* ===== CategoryTree sidebar ===== */
/* Root tree */
#p-categorytree-portlet .CategoryTreeChildren,
.vector-main-menu #p-categorytree-portlet .CategoryTreeChildren {
margin: 0 !important;
padding: 0 0 0 18px !important;
border: 0 !important;
overflow: visible !important;
}
/* Top-level item */
#p-categorytree-portlet > .vector-menu-content .CategoryTreeItem,
.vector-main-menu #p-categorytree-portlet > .vector-menu-content .CategoryTreeItem {
position: relative !important;
display: block !important;
margin: 0 !important;
padding: 10px 18px 10px 0 !important;
border-bottom: 1px solid #e7eaf0 !important;
min-height: 20px !important;
}
/* Nested item */
#p-categorytree-portlet .CategoryTreeChildren .CategoryTreeItem,
.vector-main-menu #p-categorytree-portlet .CategoryTreeChildren .CategoryTreeItem {
position: relative !important;
display: block !important;
margin: 0 !important;
padding: 8px 18px 8px 0 !important;
border-bottom: 0 !important;
min-height: 20px !important;
}
/* Text link */
#p-categorytree-portlet .CategoryTreeLabel,
#p-categorytree-portlet .CategoryTreeLabel a,
.vector-main-menu #p-categorytree-portlet .CategoryTreeLabel,
.vector-main-menu #p-categorytree-portlet .CategoryTreeLabel a {
display: block !important;
color: #4a5fd2 !important;
font-size: 14px !important;
line-height: 1.35 !important;
font-weight: 400 !important;
text-decoration: none !important;
padding-right: 18px !important;
}
/* Hover */
#p-categorytree-portlet .CategoryTreeLabel a:hover,
.vector-main-menu #p-categorytree-portlet .CategoryTreeLabel a:hover {
color: #3c51c4 !important;
text-decoration: none !important;
}
/* Arrow wrapper */
#p-categorytree-portlet .CategoryTreeBullet,
.vector-main-menu #p-categorytree-portlet .CategoryTreeBullet {
position: absolute !important;
right: 0 !important;
top: 11px !important;
width: 14px !important;
height: 14px !important;
margin: 0 !important;
padding: 0 !important;
display: block !important;
}
/* Nested arrow alignment */
#p-categorytree-portlet .CategoryTreeChildren .CategoryTreeBullet,
.vector-main-menu #p-categorytree-portlet .CategoryTreeChildren .CategoryTreeBullet {
top: 9px !important;
}
/* Remove native icon/text */
#p-categorytree-portlet .CategoryTreeToggle,
.vector-main-menu #p-categorytree-portlet .CategoryTreeToggle {
display: block !important;
width: 14px !important;
height: 14px !important;
min-width: 14px !important;
min-height: 14px !important;
font-size: 0 !important;
line-height: 0 !important;
text-indent: -9999px !important;
overflow: hidden !important;
background: none !important;
border: 0 !important;
box-shadow: none !important;
cursor: pointer !important;
position: relative !important;
}
/* Chevron */
#p-categorytree-portlet .CategoryTreeToggle::before,
.vector-main-menu #p-categorytree-portlet .CategoryTreeToggle::before {
content: "" !important;
display: block !important;
width: 14px !important;
height: 14px !important;
background-repeat: no-repeat !important;
background-position: center !important;
background-size: 12px 12px !important;
transition: transform 0.18s ease !important;
transform-origin: 50% 50% !important;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 3.5 L9 7 L5 10.5' fill='none' stroke='%234a5fd2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
/* > */
#p-categorytree-portlet .CategoryTreeToggle[data-ct-state='collapsed']::before,
.vector-main-menu #p-categorytree-portlet .CategoryTreeToggle[data-ct-state='collapsed']::before {
transform: rotate(0deg) !important;
}
/* v */
#p-categorytree-portlet .CategoryTreeToggle[data-ct-state='expanded']::before,
.vector-main-menu #p-categorytree-portlet .CategoryTreeToggle[data-ct-state='expanded']::before {
transform: rotate(90deg) !important;
}
/* No arrow for leaf page */
#p-categorytree-portlet .CategoryTreePageBullet,
#p-categorytree-portlet .CategoryTreeEmptyBullet,
.vector-main-menu #p-categorytree-portlet .CategoryTreePageBullet,
.vector-main-menu #p-categorytree-portlet .CategoryTreeEmptyBullet {
display: none !important;
width: 0 !important;
height: 0 !important;
margin: 0 !important;
padding: 0 !important;
}
/* Simple top header style */
body.skin-vector-2022 .vector-header-container,
body.skin-vector-2022 .vector-header,
body.skin-vector-2022 .vector-sticky-header-container,
body.skin-vector-2022 .vector-sticky-header {
background-color: #B5C2CD !important;
border-bottom: 0 !important;
box-shadow: none !important;
}
body.skin-vector-2022 .vector-header {
min-height: 72px !important;
padding: 0 24px !important;
max-width: none !important;
}
body.skin-vector-2022 .mw-logo {
min-height: 72px !important;
display: flex !important;
align-items: center !important;
text-decoration: none !important;
}
body.skin-vector-2022 .mw-logo-wordmark {
color: #fff !important;
font-size: 24px !important;
font-weight: 700 !important;
line-height: 1 !important;
}
body.skin-vector-2022 .mw-logo-icon {
display: none !important;
}
body.skin-vector-2022 #vector-main-menu-dropdown-label,
body.skin-vector-2022 #vector-main-menu-dropdown-label .vector-icon,
body.skin-vector-2022 .vector-user-links a,
body.skin-vector-2022 #lang-switcher,
body.skin-vector-2022 #lang-select {
color: #fff !important;
}
body.skin-vector-2022 #lang-select {
background: transparent !important;
border: 0 !important;
}
/* language select: đóng màu trắng, mở ra chữ đen nền trắng */
body.skin-vector-2022 #lang-select {
color: #fff !important;
background: transparent !important;
border: 0 !important;
}
body.skin-vector-2022 #lang-select option {
color: #202122 !important;
background: #fff !important;
}
body.skin-vector-2022 .vector-dropdown-content a,
body.skin-vector-2022 .vector-dropdown-content a span,
body.skin-vector-2022 .vector-dropdown-content .vector-icon {
color: #202122 !important;
fill: #202122 !important;
}
body.skin-vector-2022 .mw-logo-wordmark,
body.skin-vector-2022 #vector-main-menu-dropdown-label,
body.skin-vector-2022 #vector-main-menu-dropdown-label .vector-icon,
body.skin-vector-2022 .vector-header .vector-user-links-main > div > .vector-menu-content a,
body.skin-vector-2022 .vector-header #p-vector-user-menu-overflow a,
body.skin-vector-2022 .vector-header #pt-login-2 a,
body.skin-vector-2022 #lang-select {
color: #1F2A36 !important;
}
/* =========================
SOJI CUSTOM FOOTER
========================= */
body.has-soji-footer .mw-footer-container {
max-width: none !important;
padding: 0 !important;
margin: 0 !important;
}
body.has-soji-footer #footer,
body.has-soji-footer .printfooter {
display: none !important;
}
.soji-site-footer {
width: 100vw;
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
background: #495970;
color: #edf2f7;
}
.soji-footer-shell {
max-width: 1280px;
margin: 0 auto;
padding: 68px 42px 54px;
}
.soji-footer-grid {
display: grid;
grid-template-columns: 1.5fr 0.9fr 1fr 0.9fr;
gap: 56px;
align-items: start;
}
.soji-footer-col h2 {
margin: 0 0 18px;
color: #fff;
font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
font-size: 17px;
font-weight: 700;
line-height: 1.15;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.soji-footer-col ul {
margin: 0;
padding: 0;
list-style: none;
}
.soji-footer-col li {
margin: 0 0 7px;
}
.soji-footer-link {
display: inline-block;
color: rgba(255, 255, 255, 0.88) !important;
font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
font-size: 15px;
font-weight: 700;
line-height: 1.35;
text-transform: uppercase;
letter-spacing: 0.01em;
text-decoration: none !important;
transition: color 0.18s ease, opacity 0.18s ease;
}
.soji-footer-link:hover {
color: #ffffff !important;
opacity: 1 !important;
text-decoration: none !important;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}
.soji-footer-policy-row .soji-footer-link {
color: rgba(255, 255, 255, 0.88) !important;
}
.soji-footer-policy-row .soji-footer-link:hover {
color: #ffffff !important;
}
.soji-footer-bottom {
margin-top: 34px;
display: grid;
grid-template-columns: 1fr auto;
gap: 42px;
align-items: end;
}
.soji-footer-policy-row {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
margin-bottom: 22px;
}
.soji-footer-sep {
color: rgba(255, 255, 255, 0.45);
font-weight: 700;
}
.soji-footer-copy {
color: rgba(255, 255, 255, 0.8);
font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
font-size: 14px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.soji-footer-actions {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 22px;
}
.soji-footer-subscribe {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
padding: 0 18px;
border: 1px solid rgba(255, 255, 255, 0.6);
border-radius: 6px;
color: #fff;
font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
font-size: 15px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.soji-footer-social {
display: flex;
align-items: center;
gap: 16px;
}
.soji-footer-social-label {
color: #fff;
font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
font-size: 17px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.soji-footer-social-list {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.soji-footer-social-item {
width: 34px;
height: 34px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.82);
color: #495970;
display: inline-flex;
align-items: center;
justify-content: center;
font-family: Arial, sans-serif;
font-size: 12px;
font-weight: 700;
text-transform: lowercase;
}
@media (max-width: 1080px) {
.soji-footer-grid {
grid-template-columns: 1fr 1fr;
gap: 36px;
}
.soji-footer-bottom {
grid-template-columns: 1fr;
gap: 28px;
}
}
@media (max-width: 680px) {
.soji-footer-shell {
padding: 44px 20px 36px;
}
.soji-footer-grid {
grid-template-columns: 1fr;
gap: 28px;
}
.soji-footer-social {
flex-direction: column;
align-items: flex-start;
}
}
.soji-site-footer a.soji-footer-subscribe,
.soji-site-footer a.soji-footer-subscribe:link,
.soji-site-footer a.soji-footer-subscribe:visited,
.soji-site-footer a.soji-footer-subscribe:hover,
.soji-site-footer a.soji-footer-subscribe:active,
.soji-site-footer a.soji-footer-subscribe:focus {
color: #ffffff !important;
text-decoration: none !important;
}
.soji-site-footer a.soji-footer-subscribe {
border-color: rgba(255, 255, 255, 0.6) !important;
background: transparent !important;
}
.soji-site-footer a.soji-footer-subscribe:hover {
color: #ffffff !important;
background: rgba(255, 255, 255, 0.08) !important;
border-color: rgba(255, 255, 255, 0.95) !important;
}
/* Vector 2022: đẩy footer xuống đáy viewport khi page ngắn */
html, body {
height: auto;
margin: 0;
}
.mw-page-container {
display: flex;
flex-direction: column;
min-height: 100vh;
box-sizing: border-box;
}
.mw-page-container-inner {
flex: 1 0 auto;
}
.mw-footer-container,
.mw-footer {
flex-shrink: 0;
margin-top: auto;
}
.custom-breadcrumb {
padding: 8px 0 12px 0;
font-size: 0.9em;
color: #54595d;
border-bottom: 1px solid #eaecf0;
margin-bottom: 1em;
}
.custom-breadcrumb a { color: #3366cc; text-decoration: none; }
.custom-breadcrumb a:hover { text-decoration: underline; }