MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 4: | Line 4: | ||
======================================== */ | ======================================== */ | ||
/*** | /* NAVIGATION MENU - TABLE OF CONTENTS | ||
---------------------------------------- | |||
SECTION 1: VARIABLES [search: variables, colors, spacing, css-vars] | |||
SECTION 2: SIDEBAR STYLES [search: sidebar, mw-panel, navigation] | |||
SECTION 3: LOGO AREA [search: logo, p-logo, wiki-logo] | |||
SECTION 4: PORTALS [search: portals, vector-menu-portal] | |||
SECTION 5: HEADINGS [search: headings, collapsible, vector-menu-heading] | |||
SECTION 6: INDICATORS [search: indicators, open-close, arrows] | |||
SECTION 7: LISTS & CONTENT [search: lists, collapsible-content, menu-items] | |||
SECTION 8: SCROLLBAR [search: scrollbar, webkit-scrollbar] | |||
SECTION 9: CONTENT SPACING [search: spacing, margins, desktop] | |||
SECTION 10: RESPONSIVENESS [search: responsive, media-queries, mobile] | |||
SECTION 11: MOBILE MENU [search: hamburger, mobile-menu, sidebar-mobile] | |||
SECTION 12: HEADER TABS [search: header, tabs, vector-tabs] | |||
SECTION 13: USER MENU [search: user-menu, personal-menu, account] | |||
---------------------------------------- */ | |||
/* ========================================================================== | |||
SECTION 1: VARIABLES (UNIFIED) [variables, colors, spacing, css-vars] | |||
========================================================================== */ | |||
:root { | :root { | ||
/* Sidebar */ | |||
--cora-vl-primary: var(--primary-pink, #ff6b9d); | --cora-vl-primary: var(--primary-pink, #ff6b9d); | ||
--cora-vl-accent: var(--accent-pink, #ff8fb0); | --cora-vl-accent: var(--accent-pink, #ff8fb0); | ||
| Line 21: | Line 39: | ||
--cora-vl-space-md: 12px; | --cora-vl-space-md: 12px; | ||
--cora-vl-space-lg: 18px; | --cora-vl-space-lg: 18px; | ||
/* Header tabs */ | |||
--cora-hd-radius: 10px; | |||
--cora-hd-shadow: 0 2px 8px rgba(0,0,0,0.05); | |||
--cora-hd-shadow-hover: 0 8px 30px rgba(255, 107, 157, 0.3); | |||
--cora-hd-border: rgba(255, 107, 157, 0.22); | |||
--cora-hd-grad: linear-gradient(135deg, #ff6b9d 0%, #ffc3e0 100%); | |||
} | } | ||
/* ======================================== | /* ========================================================================== | ||
VECTOR LEGACY SIDEBAR STYLES | SECTION 2: VECTOR LEGACY SIDEBAR STYLES [sidebar, mw-panel, navigation] | ||
======================================== */ | ========================================================================== */ | ||
body.skin-vector-legacy #mw-panel { | body.skin-vector-legacy #mw-panel { | ||
background: rgba(255, 255, 255, 0.8); | |||
border-right: 2px solid var(--cora-vl-border); | border-right: 2px solid var(--cora-vl-border); | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.3) inset; | |||
padding: var(--cora-vl-space-lg) 0; | padding: var(--cora-vl-space-lg) 0; | ||
border-radius: var(--cora-vl-radius); | border-radius: var(--cora-vl-radius); | ||
} | } | ||
/* Header top-right Menu */ | |||
body.skin-vector-legacy | |||
#pt-userpage a, | |||
#pt-mytalk a, | |||
#pt-preferences a, | |||
#pt-watchlist a, | |||
#pt-mycontris a, | |||
#pt-logout a { | |||
color: #ff73a9 !important; | |||
text-decoration: none !important; | |||
display: inline-block !important; | |||
padding: 10px !important; | |||
border-radius: 10px !important; | |||
border-left: 3px solid transparent !important; | |||
transition: color .2s ease, background-color .2s ease, border-color .2s ease, padding .2s ease !important; | |||
} | |||
body.skin-vector-legacy | |||
#pt-userpage a:hover, | |||
#pt-mytalk a:hover, | |||
#pt-preferences a:hover, | |||
#pt-watchlist a:hover, | |||
#pt-mycontris a:hover, | |||
#pt-logout a:hover { | |||
color: #fff !important; | |||
background-color: var(--cora-vl-primary) !important; | |||
border-color: var(--cora-vl-primary) !important; | |||
padding: 7px 9px !important; | |||
border-radius: 10px !important; | |||
border-left: 3px solid transparent !important; | |||
transition: color .2s ease, background-color .2s ease, border-color .2s ease, padding .2s ease !important; | |||
} | } | ||
/* ========================================================================== | |||
SECTION 3: LOGO AREA [logo, p-logo, wiki-logo] | |||
========================================================================== */ | |||
body.skin-vector-legacy #p-logo { margin: 0 var(--cora-vl-space-md) var(--cora-vl-space-lg); } | |||
body.skin-vector-legacy #p-logo a { | body.skin-vector-legacy #p-logo a { | ||
display: block; | display: block; | ||
| Line 55: | Line 111: | ||
} | } | ||
/* | /* ========================================================================== | ||
SECTION 4: PORTALS [portals, vector-menu-portal] | |||
========================================================================== */ | |||
body.skin-vector-legacy #mw-panel .vector-menu-portal, | body.skin-vector-legacy #mw-panel .vector-menu-portal, | ||
body.skin-vector-legacy #mw-panel .portal { | body.skin-vector-legacy #mw-panel .portal { | ||
| Line 63: | Line 121: | ||
background: #fff; | background: #fff; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
/* ========================================================================== | |||
SECTION 5: HEADINGS [headings, collapsible, vector-menu-heading] | |||
/* | ========================================================================== */ | ||
body.skin-vector-legacy #mw-panel .vector-menu-portal .vector-menu-heading, | body.skin-vector-legacy #mw-panel .vector-menu-portal .vector-menu-heading, | ||
body.skin-vector-legacy #mw-panel .portal h3 { | body.skin-vector-legacy #mw-panel .portal h3 { | ||
| Line 86: | Line 142: | ||
transition: background 0.3s ease, transform 0.2s ease; | transition: background 0.3s ease, transform 0.2s ease; | ||
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.3) inset; | box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.3) inset; | ||
} | } | ||
body.skin-vector-legacy #mw-panel .vector-menu-portal .vector-menu-heading:hover, | body.skin-vector-legacy #mw-panel .vector-menu-portal .vector-menu-heading:hover, | ||
body.skin-vector-legacy #mw-panel .portal h3:hover { | body.skin-vector-legacy #mw-panel .portal h3:hover { | ||
| Line 96: | Line 149: | ||
} | } | ||
/* | /* ========================================================================== | ||
SECTION 6: INDICATORS [indicators, open-close, arrows] | |||
========================================================================== */ | |||
body.skin-vector-legacy #mw-panel .vector-menu-portal .vector-menu-heading::after, | body.skin-vector-legacy #mw-panel .vector-menu-portal .vector-menu-heading::after, | ||
body.skin-vector-legacy #mw-panel .portal h3::after { | body.skin-vector-legacy #mw-panel .portal h3::after { | ||
| Line 107: | Line 162: | ||
transition: transform 0.3s ease; | transition: transform 0.3s ease; | ||
} | } | ||
body.skin-vector-legacy #mw-panel .vector-menu-portal.collapsed .vector-menu-heading::after, | body.skin-vector-legacy #mw-panel .vector-menu-portal.collapsed .vector-menu-heading::after, | ||
body.skin-vector-legacy #mw-panel .portal.collapsed h3::after { | body.skin-vector-legacy #mw-panel .portal.collapsed h3::after { | ||
| Line 114: | Line 167: | ||
} | } | ||
/* | /* ========================================================================== | ||
SECTION 7: LISTS & CONTENT [lists, collapsible-content, menu-items] | |||
========================================================================== */ | |||
body.skin-vector-legacy #mw-panel .vector-menu-content ul, | body.skin-vector-legacy #mw-panel .vector-menu-content ul, | ||
body.skin-vector-legacy #mw-panel .portal .body ul { | body.skin-vector-legacy #mw-panel .portal .body ul { | ||
| Line 122: | Line 177: | ||
} | } | ||
body.skin-vector-legacy #mw-panel .vector-menu-content, | body.skin-vector-legacy #mw-panel .vector-menu-content, | ||
body.skin-vector-legacy #mw-panel .portal .body { | body.skin-vector-legacy #mw-panel .portal .body { | ||
| Line 138: | Line 192: | ||
padding: 0; | padding: 0; | ||
} | } | ||
body.skin-vector-legacy #mw-panel .vector-menu-portal.collapsed, | body.skin-vector-legacy #mw-panel .vector-menu-portal.collapsed, | ||
body.skin-vector-legacy #mw-panel .portal.collapsed { | body.skin-vector-legacy #mw-panel .portal.collapsed { margin-bottom: var(--cora-vl-space-sm); } | ||
} | |||
body.skin-vector-legacy #mw-panel .vector-menu-portal.collapsed .vector-menu-heading, | body.skin-vector-legacy #mw-panel .vector-menu-portal.collapsed .vector-menu-heading, | ||
body.skin-vector-legacy #mw-panel .portal.collapsed h3 { | body.skin-vector-legacy #mw-panel .portal.collapsed h3 { | ||
| Line 152: | Line 200: | ||
} | } | ||
/* Items and links */ | |||
body.skin-vector-legacy #mw-panel .vector-menu-content li, | body.skin-vector-legacy #mw-panel .vector-menu-content li, | ||
body.skin-vector-legacy #mw-panel .portal .body li { | body.skin-vector-legacy #mw-panel .portal .body li { border-bottom: 1px solid #f3e2ea; } | ||
} | |||
body.skin-vector-legacy #mw-panel .vector-menu-content li:last-child, | body.skin-vector-legacy #mw-panel .vector-menu-content li:last-child, | ||
body.skin-vector-legacy #mw-panel .portal .body li:last-child { | body.skin-vector-legacy #mw-panel .portal .body li:last-child { border-bottom: 0; } | ||
} | |||
body.skin-vector-legacy #mw-panel .vector-menu-content a, | body.skin-vector-legacy #mw-panel .vector-menu-content a, | ||
body.skin-vector-legacy #mw-panel .portal .body a { | body.skin-vector-legacy #mw-panel .portal .body a { | ||
color: var(--cora-vl-primary); | |||
display: block; | display: block; | ||
padding: 8px 14px; | padding: 8px 14px; | ||
text-decoration: none; | text-decoration: none; | ||
border-radius: 10px; | |||
border-left: 3px solid transparent; | border-left: 3px solid transparent; | ||
transition: color .2s ease, background-color .2s ease, border-color .2s ease, padding .2s ease; | transition: color .2s ease, background-color .2s ease, border-color .2s ease, padding .2s ease; | ||
| Line 173: | Line 218: | ||
body.skin-vector-legacy #mw-panel .vector-menu-content a:hover, | body.skin-vector-legacy #mw-panel .vector-menu-content a:hover, | ||
body.skin-vector-legacy #mw-panel .portal .body a:hover { | body.skin-vector-legacy #mw-panel .portal .body a:hover { | ||
color: | |||
color: #fa4abf ; | |||
background: #fff5fb; | background: #fff5fb; | ||
border-left-color: var(--cora-vl-primary); | border-left-color: var(--cora-vl-primary); | ||
| Line 179: | Line 225: | ||
} | } | ||
/* | /* ========================================================================== | ||
SECTION 8: SCROLLBAR [scrollbar, webkit-scrollbar] | |||
========================================================================== */ | |||
body.skin-vector-legacy #mw-panel::-webkit-scrollbar { width: 6px; } | body.skin-vector-legacy #mw-panel::-webkit-scrollbar { width: 6px; } | ||
body.skin-vector-legacy #mw-panel::-webkit-scrollbar-track { background: #ffe6f0; } | body.skin-vector-legacy #mw-panel::-webkit-scrollbar-track { background: #ffe6f0; } | ||
| Line 185: | Line 233: | ||
body.skin-vector-legacy #mw-panel::-webkit-scrollbar-thumb:hover { background: var(--cora-vl-primary); } | body.skin-vector-legacy #mw-panel::-webkit-scrollbar-thumb:hover { background: var(--cora-vl-primary); } | ||
/* | /* ========================================================================== | ||
SECTION 9: CONTENT SPACING [spacing, margins, desktop] | |||
========================================================================== */ | |||
@media (min-width: 1025px) { | @media (min-width: 1025px) { | ||
body.skin-vector-legacy #content, | body.skin-vector-legacy #content, | ||
| Line 191: | Line 241: | ||
} | } | ||
/* | /* ========================================================================== | ||
SECTION 10: RESPONSIVENESS [responsive, media-queries, mobile] | |||
========================================================================== */ | |||
@media (max-width: 1024px) { | @media (max-width: 1024px) { | ||
body.skin-vector-legacy #content, | body.skin-vector-legacy #content, | ||
| Line 197: | Line 249: | ||
} | } | ||
/* | /* ========================================================================== | ||
SECTION 11: MOBILE MENU [hamburger, mobile-menu, sidebar-mobile] | |||
========================================================================== */ | |||
.mobile-hamburger-menu { | .mobile-hamburger-menu { | ||
display: none; | display: none; | ||
| Line 218: | Line 272: | ||
padding: 0; | padding: 0; | ||
} | } | ||
.mobile-hamburger-menu:hover { | .mobile-hamburger-menu:hover { | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3); | box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3); | ||
} | } | ||
.mobile-hamburger-menu span { | .mobile-hamburger-menu span { | ||
display: block; | display: block; | ||
| Line 233: | Line 285: | ||
transform-origin: center; | transform-origin: center; | ||
} | } | ||
.mobile-hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); } | |||
.mobile-hamburger-menu.active span:nth-child(1) { | .mobile-hamburger-menu.active span:nth-child(2) { opacity: 0; } | ||
.mobile-hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); } | |||
} | |||
.mobile-hamburger-menu.active span:nth-child(2) { | |||
} | |||
.mobile-hamburger-menu.active span:nth-child(3) { | |||
} | |||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
/* Show hamburger menu on mobile */ | /* Show hamburger menu on mobile */ | ||
.mobile-hamburger-menu { | .mobile-hamburger-menu { display: flex; } | ||
/* Sidebar mobile behavior */ | /* Sidebar mobile behavior */ | ||
| Line 271: | Line 312: | ||
content: ''; | content: ''; | ||
position: fixed; | position: fixed; | ||
top: 0; | top: 0; left: 0; right: 0; bottom: 0; | ||
background: rgba(0, 0, 0, 0.5); | background: rgba(0, 0, 0, 0.5); | ||
z-index: 999; | z-index: 999; | ||
| Line 286: | Line 324: | ||
width: 56px; height: 56px; padding: 0; display: block; | width: 56px; height: 56px; padding: 0; display: block; | ||
border-radius: var(--cora-vl-radius-sm); | border-radius: var(--cora-vl-radius-sm); | ||
background-color: var(--cora-vl-bg-2); | background-color: var(--cora-vl-bg-2); | ||
background-repeat: no-repeat; background-position: center; background-size: contain; | background-repeat: no-repeat; background-position: center; background-size: contain; | ||
| Line 293: | Line 330: | ||
} | } | ||
/* When sidebar is opened, return the logo to the panel */ | /* When sidebar is opened, return the logo to the panel */ | ||
body.skin-vector-legacy #mw-panel.mobile-open #p-logo { position: relative; left: auto; top: auto; margin: 0 var(--cora-vl-space-md) var(--cora-vl-space-lg); } | body.skin-vector-legacy #mw-panel.mobile-open #p-logo { | ||
position: relative; left: auto; top: auto; | |||
margin: 0 var(--cora-vl-space-md) var(--cora-vl-space-lg); | |||
} | |||
body.skin-vector-legacy #mw-panel.mobile-open #p-logo a { | body.skin-vector-legacy #mw-panel.mobile-open #p-logo a { | ||
width: auto; height: auto; padding: var(--cora-vl-space-md); | width: auto; height: auto; padding: var(--cora-vl-space-md); | ||
background-size: contain; | background-size: contain; | ||
} | } | ||
} | } | ||
| Line 305: | Line 345: | ||
} | } | ||
/* ========================================================================== | |||
/* ======================================== | SECTION 12: HEADER TABS [header, tabs, vector-tabs] | ||
========================================================================== */ | |||
#p-views{ | |||
======================================== */ | background: #fff !important; | ||
} | |||
#searchInput, | |||
Input::placeholder{ | |||
color: var(--primary-pink) !important; | |||
} | } | ||
/* Base | /* Base styling for all buttons */ | ||
#ca-view a, | |||
#ca-viewsource a, | |||
#ca-ve-edit a, | |||
display: inline- | #ca-edit a, | ||
#ca-history a, | |||
#p-cactions .vector-menu-heading , | |||
#ca-delete a, | |||
#ca-move a, | |||
#ca-protect a { | |||
display: inline-flex !important; | |||
align-items: center !important; | |||
gap: 6px !important; | |||
padding: 8px 12px !important; | padding: 8px 12px !important; | ||
margin: 4px 6px 0 0 !important; | margin: 4px 6px 0 0 !important; | ||
| Line 337: | Line 381: | ||
} | } | ||
/* | /* Hide text while keeping link clickable */ | ||
#ca-watch a, | |||
#ca-unwatch a { | |||
font-size: 0; /* esconde o texto sem sumir com o botão */ | |||
width: 24px; /* largura do botão */ | |||
height: 24px; /* altura do botão */ | |||
padding: 0; /* remove padding extra */ | |||
border-radius: 50%; /* deixa redondo */ | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | |||
/* Empty Star Icon */ | |||
#ca-watch a { | |||
content: ""; | |||
display: block; | |||
width: 16px; | |||
height: 16px; | |||
background-image: url("http://localhost/wiki/images/2/28/EmptyPinkStar.png"); | |||
background-size: contain; | |||
background-repeat: no-repeat; | |||
border-radius: var(--cora-hd-radius) !important; | |||
} | |||
/* Full Star Icon */ | |||
#ca-unwatch a { | |||
content: ""; | |||
display: block; | |||
width: 16px; | |||
height: 16px; | |||
background-image: url("http://localhost/wiki/images/c/cc/FullPinkStar.png"); | |||
background-size: contain; | |||
background-repeat: no-repeat; | |||
border-radius: var(--cora-hd-radius) !important; | |||
} | |||
/* Hover */ | |||
#ca-view a:hover, | |||
#ca-viewsource a:hover, | |||
#ca-edit a:hover, | |||
#ca-history a:hover, | |||
#ca-watch a:hover, | |||
#ca-unwatch a:hover, | |||
#p-cactions .vector-menu-heading:hover, | |||
#ca-delete a:hover, | |||
#ca-move a:hover, | |||
#ca-protect a:hover { | |||
transform: translateY(-2px) !important; | transform: translateY(-2px) !important; | ||
color: var(--dark-pink, #d63384) !important; | color: var(--dark-pink, #d63384) !important; | ||
| Line 347: | Line 434: | ||
} | } | ||
/* Active | |||
/* Active button styling (e.g. current tab) */ | |||
#ca-view.selected a, | |||
#ca-viewsource.selected a, | |||
#ca-edit.selected a, | |||
#ca-ve-edit.selected a, | |||
#ca-history.selected a, | |||
#ca-watch.selected a, | |||
#ca-unwatch.selected a, | |||
#ca-more.selected a { | |||
background: var(--cora-hd-grad) !important; | background: var(--cora-hd-grad) !important; | ||
color: #fff !important; | color: #fff !important; | ||
| Line 357: | Line 450: | ||
} | } | ||
/* | /* Remove mw Buttons */ | ||
#pt-anontalk, | |||
display: | #pt-anoncontribs, | ||
#ca-talk, | |||
#ca-nstab-main, | |||
padding: | #ca-nstab-mediawiki { | ||
margin: 4px | display: none !important; | ||
border-radius: var(--cora- | } | ||
background: | |||
color: var(--primary- | /* Remove mw header LI background and border */ | ||
#ca-talk, | |||
font-weight: | #ca-nstab-main, | ||
#ca-nstab-mediawiki, | |||
box-shadow: var(--cora- | #ca-view, | ||
transition: transform . | #ca-edit, | ||
#ca-ve-edit, | |||
#ca-history, | |||
#ca-watch, | |||
#ca-unwatch, | |||
#ca-more { | |||
background: none !important; | |||
border: none !important; | |||
padding: 0 !important; | |||
margin: 0 4px !important; /* espaço entre os botões */ | |||
box-shadow: none !important; | |||
} | |||
---------------------- | |||
/* Container style */ | |||
body.skin-vector-legacy #p-personal { | |||
position: relative; | |||
max-width: 220px; | |||
font-family: sans-serif; | |||
background: var(--cora-vl-bg); | |||
border: 1px solid var(--cora-vl-border); | |||
border-radius: var(--cora-vl-radius); | |||
box-shadow: var(--cora-vl-shadow); | |||
padding: 10px; | |||
} | |||
/* User Menu Collapsible Styles */ | |||
body.skin-vector-legacy .user-menu-container { | |||
position: fixed; | |||
top: 120px; | |||
right: 0; | |||
background: transparent; | |||
z-index: 1000; | |||
overflow: visible; | |||
display: flex; | |||
flex-direction: row; | |||
} | |||
/* ========================================================================== | |||
SECTION 13: USER MENU [user-menu, personal-menu, account] | |||
========================================================================== */ | |||
body.skin-vector-legacy .user-menu-header { | |||
display: flex; | |||
align-items: center; | |||
padding: 6px 12px ; | |||
top: 2; | |||
right: 0; | |||
position: fixed; | |||
color: var(--cora-vl-primary); | |||
background: #fff; | |||
cursor: pointer; | |||
user-select: none; | |||
transition: background 0.3s ease; | |||
border-radius: var(--cora-vl-radius) 0 0 var(--cora-vl-radius); | |||
white-space: nowrap; | |||
font-weight: bold; | |||
height: auto; | |||
writing-mode: horizontal-tb; | |||
box-shadow: var(--cora-vl-shadow); | |||
border: 1px solid var(--cora-vl-border); | |||
flex-direction: row; | |||
} | |||
body.skin-vector-legacy .user-menu-header:hover { | |||
background: #ffebf5; | |||
} | |||
body.skin-vector-legacy .user-menu-header::after { | |||
content: ""; | |||
display: inline-block; | |||
width: 25px; | |||
height: 25px; | |||
font-weight: bold; | |||
background-image: url("http://localhost/wiki/images/9/97/LeftArrow.png"); | |||
background-size: contain; | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
position: relative; | |||
margin-left: 6px; | |||
transition: transform 0.3s ease; | |||
} | |||
body.skin-vector-legacy .user-menu-container.expanded .user-menu-header::after { | |||
transform: rotate(180deg); | |||
} | |||
body.skin-vector-legacy .user-menu-content { | |||
position: absolute; | |||
top: 0; | |||
right: 100%; | |||
background: var(--cora-vl-bg); | |||
border: 1px solid var(--cora-vl-border); | |||
border-radius: var(--cora-vl-radius); | |||
box-shadow: var(--cora-vl-shadow); | |||
padding: 10px; | |||
width: 0; | |||
overflow: hidden; | |||
opacity: 0; | |||
transition: width 0.4s ease, opacity 0.3s ease; | |||
display: flex; | |||
flex-direction: column; | |||
} | |||
body.skin-vector-legacy .user-menu-container.expanded .user-menu-content { | |||
width: 180px; | |||
opacity: 1; | |||
} | |||
body.skin-vector-legacy .user-menu-list { | |||
list-style: none; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
body.skin-vector-legacy .user-menu-list li { | |||
margin: 5px 0; | |||
white-space: nowrap; | |||
border-bottom: 1px solid #f3e2ea; | |||
} | |||
body.skin-vector-legacy .user-menu-list li:last-child { | |||
border-bottom: none; | |||
} | } | ||
body.skin-vector-legacy | |||
body.skin-vector-legacy .user-menu-list a { | |||
color: var(-- | display: block; | ||
border- | color: var(--cora-vl-primary); | ||
text-decoration: none; | |||
padding: 8px 10px; | |||
border-radius: var(--cora-vl-radius-sm); | |||
border-left: 3px solid transparent; | |||
transition: background 0.3s ease, padding-left 0.3s ease, color 0.3s ease; | |||
} | } | ||
body.skin-vector-legacy .user-menu-list a:hover { | |||
background: #fff5fb; | |||
color: #fa4abf; | |||
padding-left: 18px; | |||
border-left-color: var(--cora-vl-primary); | |||
} | |||
/* Adjust the position of menu items in the vertical menu */ | |||
body.skin-vector-legacy .user-menu-content li { | |||
margin: 5px 0; | |||
white-space: nowrap; | |||
} | |||
/* | /* Item styles */ | ||
body.skin-vector-legacy #p-personal li { | |||
margin: 4px 0; | |||
border-bottom: 1px solid #f3e2ea; | |||
} | } | ||
body.skin-vector-legacy #p-personal li:last-child { | |||
body.skin-vector-legacy # | border-bottom: none; | ||
border- | |||
} | } | ||
/* | /* Link styles */ | ||
body.skin-vector-legacy #p-personal a { | |||
display: block; | |||
color: var(--cora-vl-primary); | |||
text-decoration: none; | |||
padding: 6px 10px; | |||
border-radius: var(--cora-vl-radius-sm); | |||
border-left: 3px solid transparent; | |||
transition: background 0.3s ease, padding-left 0.3s ease, color 0.3s ease; | |||
} | } | ||
. | body.skin-vector-legacy #p-personal a:hover { | ||
background: #fff5fb; | |||
color: #fa4abf; | |||
padding-left: 18px; | |||
border-left-color: var(--cora-vl-primary); | |||
} | } | ||
Revision as of 22:46, 20 August 2025
/* ========================================
CORA TO WIKI - VECTOR LEGACY SPECIFIC STYLES
Styles specific to Vector Legacy 2010 skin
======================================== */
/* NAVIGATION MENU - TABLE OF CONTENTS
----------------------------------------
SECTION 1: VARIABLES [search: variables, colors, spacing, css-vars]
SECTION 2: SIDEBAR STYLES [search: sidebar, mw-panel, navigation]
SECTION 3: LOGO AREA [search: logo, p-logo, wiki-logo]
SECTION 4: PORTALS [search: portals, vector-menu-portal]
SECTION 5: HEADINGS [search: headings, collapsible, vector-menu-heading]
SECTION 6: INDICATORS [search: indicators, open-close, arrows]
SECTION 7: LISTS & CONTENT [search: lists, collapsible-content, menu-items]
SECTION 8: SCROLLBAR [search: scrollbar, webkit-scrollbar]
SECTION 9: CONTENT SPACING [search: spacing, margins, desktop]
SECTION 10: RESPONSIVENESS [search: responsive, media-queries, mobile]
SECTION 11: MOBILE MENU [search: hamburger, mobile-menu, sidebar-mobile]
SECTION 12: HEADER TABS [search: header, tabs, vector-tabs]
SECTION 13: USER MENU [search: user-menu, personal-menu, account]
---------------------------------------- */
/* ==========================================================================
SECTION 1: VARIABLES (UNIFIED) [variables, colors, spacing, css-vars]
========================================================================== */
:root {
/* Sidebar */
--cora-vl-primary: var(--primary-pink, #ff6b9d);
--cora-vl-accent: var(--accent-pink, #ff8fb0);
--cora-vl-bg: rgba(255,255,255,0.96);
--cora-vl-bg-2: #fff0f7;
--cora-vl-border: rgba(255, 107, 157, 0.25);
--cora-vl-border-2: #f7d6e6;
--cora-vl-shadow: 0 6px 20px rgba(255, 107, 157, 0.15);
--cora-vl-radius: 14px;
--cora-vl-radius-sm: 10px;
--cora-vl-space-xs: 4px;
--cora-vl-space-sm: 8px;
--cora-vl-space-md: 12px;
--cora-vl-space-lg: 18px;
/* Header tabs */
--cora-hd-radius: 10px;
--cora-hd-shadow: 0 2px 8px rgba(0,0,0,0.05);
--cora-hd-shadow-hover: 0 8px 30px rgba(255, 107, 157, 0.3);
--cora-hd-border: rgba(255, 107, 157, 0.22);
--cora-hd-grad: linear-gradient(135deg, #ff6b9d 0%, #ffc3e0 100%);
}
/* ==========================================================================
SECTION 2: VECTOR LEGACY SIDEBAR STYLES [sidebar, mw-panel, navigation]
========================================================================== */
body.skin-vector-legacy #mw-panel {
background: rgba(255, 255, 255, 0.8);
border-right: 2px solid var(--cora-vl-border);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
padding: var(--cora-vl-space-lg) 0;
border-radius: var(--cora-vl-radius);
}
/* Header top-right Menu */
body.skin-vector-legacy
#pt-userpage a,
#pt-mytalk a,
#pt-preferences a,
#pt-watchlist a,
#pt-mycontris a,
#pt-logout a {
color: #ff73a9 !important;
text-decoration: none !important;
display: inline-block !important;
padding: 10px !important;
border-radius: 10px !important;
border-left: 3px solid transparent !important;
transition: color .2s ease, background-color .2s ease, border-color .2s ease, padding .2s ease !important;
}
body.skin-vector-legacy
#pt-userpage a:hover,
#pt-mytalk a:hover,
#pt-preferences a:hover,
#pt-watchlist a:hover,
#pt-mycontris a:hover,
#pt-logout a:hover {
color: #fff !important;
background-color: var(--cora-vl-primary) !important;
border-color: var(--cora-vl-primary) !important;
padding: 7px 9px !important;
border-radius: 10px !important;
border-left: 3px solid transparent !important;
transition: color .2s ease, background-color .2s ease, border-color .2s ease, padding .2s ease !important;
}
/* ==========================================================================
SECTION 3: LOGO AREA [logo, p-logo, wiki-logo]
========================================================================== */
body.skin-vector-legacy #p-logo { margin: 0 var(--cora-vl-space-md) var(--cora-vl-space-lg); }
body.skin-vector-legacy #p-logo a {
display: block;
background-color: var(--cora-vl-bg-2);
border: 1px solid var(--cora-vl-border-2);
border-radius: var(--cora-vl-radius);
padding: var(--cora-vl-space-md);
transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body.skin-vector-legacy #p-logo a:hover {
transform: translateY(-2px);
border-color: var(--cora-vl-primary);
box-shadow: 0 8px 24px rgba(255, 107, 157, 0.18);
}
/* ==========================================================================
SECTION 4: PORTALS [portals, vector-menu-portal]
========================================================================== */
body.skin-vector-legacy #mw-panel .vector-menu-portal,
body.skin-vector-legacy #mw-panel .portal {
margin: 1px;
border: 1px solid var(--cora-vl-border-2);
border-radius: var(--cora-vl-radius);
background: #fff;
overflow: hidden;
}
/* ==========================================================================
SECTION 5: HEADINGS [headings, collapsible, vector-menu-heading]
========================================================================== */
body.skin-vector-legacy #mw-panel .vector-menu-portal .vector-menu-heading,
body.skin-vector-legacy #mw-panel .portal h3 {
margin: 0;
padding: 10px 12px;
font-size: 0.92em;
font-weight: 700;
letter-spacing: .3px;
color: #ffffff !important;
background: linear-gradient(135deg, var(--cora-vl-primary), var(--cora-vl-accent));
border-bottom: 1px solid var(--cora-vl-border-2);
text-shadow: 0 1px 2px rgb(0, 0, 0) !important;
cursor: pointer;
user-select: none;
position: relative;
transition: background 0.3s ease, transform 0.2s ease;
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}
body.skin-vector-legacy #mw-panel .vector-menu-portal .vector-menu-heading:hover,
body.skin-vector-legacy #mw-panel .portal h3:hover {
background: linear-gradient(135deg, var(--cora-vl-accent), var(--cora-vl-primary));
transform: translateY(-1px);
}
/* ==========================================================================
SECTION 6: INDICATORS [indicators, open-close, arrows]
========================================================================== */
body.skin-vector-legacy #mw-panel .vector-menu-portal .vector-menu-heading::after,
body.skin-vector-legacy #mw-panel .portal h3::after {
content: '▼';
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
font-size: 0.8em;
transition: transform 0.3s ease;
}
body.skin-vector-legacy #mw-panel .vector-menu-portal.collapsed .vector-menu-heading::after,
body.skin-vector-legacy #mw-panel .portal.collapsed h3::after {
transform: translateY(-50%) rotate(-90deg);
}
/* ==========================================================================
SECTION 7: LISTS & CONTENT [lists, collapsible-content, menu-items]
========================================================================== */
body.skin-vector-legacy #mw-panel .vector-menu-content ul,
body.skin-vector-legacy #mw-panel .portal .body ul {
list-style: none;
margin: 0;
padding: var(--cora-vl-space-xs) 0;
}
body.skin-vector-legacy #mw-panel .vector-menu-content,
body.skin-vector-legacy #mw-panel .portal .body {
max-height: none;
overflow: hidden;
transition: max-height 0.4s ease, opacity 0.3s ease;
opacity: 1;
}
/* Collapsed state */
body.skin-vector-legacy #mw-panel .vector-menu-portal.collapsed .vector-menu-content,
body.skin-vector-legacy #mw-panel .portal.collapsed .body {
max-height: 0 !important;
opacity: 0;
padding: 0;
}
body.skin-vector-legacy #mw-panel .vector-menu-portal.collapsed,
body.skin-vector-legacy #mw-panel .portal.collapsed { margin-bottom: var(--cora-vl-space-sm); }
body.skin-vector-legacy #mw-panel .vector-menu-portal.collapsed .vector-menu-heading,
body.skin-vector-legacy #mw-panel .portal.collapsed h3 {
border-bottom: none;
border-radius: var(--cora-vl-radius);
}
/* Items and links */
body.skin-vector-legacy #mw-panel .vector-menu-content li,
body.skin-vector-legacy #mw-panel .portal .body li { border-bottom: 1px solid #f3e2ea; }
body.skin-vector-legacy #mw-panel .vector-menu-content li:last-child,
body.skin-vector-legacy #mw-panel .portal .body li:last-child { border-bottom: 0; }
body.skin-vector-legacy #mw-panel .vector-menu-content a,
body.skin-vector-legacy #mw-panel .portal .body a {
color: var(--cora-vl-primary);
display: block;
padding: 8px 14px;
text-decoration: none;
border-radius: 10px;
border-left: 3px solid transparent;
transition: color .2s ease, background-color .2s ease, border-color .2s ease, padding .2s ease;
}
body.skin-vector-legacy #mw-panel .vector-menu-content a:hover,
body.skin-vector-legacy #mw-panel .portal .body a:hover {
color: #fa4abf ;
background: #fff5fb;
border-left-color: var(--cora-vl-primary);
padding-left: 18px;
}
/* ==========================================================================
SECTION 8: SCROLLBAR [scrollbar, webkit-scrollbar]
========================================================================== */
body.skin-vector-legacy #mw-panel::-webkit-scrollbar { width: 6px; }
body.skin-vector-legacy #mw-panel::-webkit-scrollbar-track { background: #ffe6f0; }
body.skin-vector-legacy #mw-panel::-webkit-scrollbar-thumb { background: var(--cora-vl-accent); border-radius: 3px; }
body.skin-vector-legacy #mw-panel::-webkit-scrollbar-thumb:hover { background: var(--cora-vl-primary); }
/* ==========================================================================
SECTION 9: CONTENT SPACING [spacing, margins, desktop]
========================================================================== */
@media (min-width: 1025px) {
body.skin-vector-legacy #content,
body.skin-vector-legacy .mw-body { margin-left: 220px; }
}
/* ==========================================================================
SECTION 10: RESPONSIVENESS [responsive, media-queries, mobile]
========================================================================== */
@media (max-width: 1024px) {
body.skin-vector-legacy #content,
body.skin-vector-legacy .mw-body { margin-left: 190px; }
}
/* ==========================================================================
SECTION 11: MOBILE MENU [hamburger, mobile-menu, sidebar-mobile]
========================================================================== */
.mobile-hamburger-menu {
display: none;
position: fixed;
top: 20px;
left: 20px;
z-index: 1002;
width: 50px;
height: 50px;
background: linear-gradient(135deg, var(--cora-vl-primary), var(--cora-vl-accent));
border: none;
border-radius: var(--cora-vl-radius);
cursor: pointer;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 4px;
box-shadow: var(--cora-vl-shadow);
transition: transform .3s ease, box-shadow .3s ease;
padding: 0;
}
.mobile-hamburger-menu:hover {
transform: translateY(-2px);
box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3);
}
.mobile-hamburger-menu span {
display: block;
width: 25px;
height: 3px;
background: white;
border-radius: 2px;
transition: transform .3s ease, opacity .3s ease;
transform-origin: center;
}
.mobile-hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-hamburger-menu.active span:nth-child(2) { opacity: 0; }
.mobile-hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
@media (max-width: 768px) {
/* Show hamburger menu on mobile */
.mobile-hamburger-menu { display: flex; }
/* Sidebar mobile behavior */
body.skin-vector-legacy #mw-panel {
transform: translateX(-100%);
transition: transform .3s ease;
position: fixed;
z-index: 1000;
height: 100vh;
width: 220px;
overflow-y: auto;
overflow-x: hidden;
}
body.skin-vector-legacy #mw-panel.mobile-open { transform: translateX(0); }
body.skin-vector-legacy #content,
body.skin-vector-legacy .mw-body { margin-left: 0; }
/* Add overlay when sidebar is open */
body.sidebar-open::before {
content: '';
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
opacity: 1;
transition: opacity .3s ease;
}
/* Sidebar peek tab with image (Vector Legacy only) */
body.skin-vector-legacy #p-logo { position: absolute; top: 12px; left: calc(100% + 12px); margin: 0; z-index: 1001; }
body.skin-vector-legacy #p-logo a {
width: 56px; height: 56px; padding: 0; display: block;
border-radius: var(--cora-vl-radius-sm);
background-color: var(--cora-vl-bg-2);
background-repeat: no-repeat; background-position: center; background-size: contain;
border: 1px solid var(--cora-vl-border-2);
box-shadow: 0 8px 20px rgba(255, 107, 157, 0.22);
}
/* When sidebar is opened, return the logo to the panel */
body.skin-vector-legacy #mw-panel.mobile-open #p-logo {
position: relative; left: auto; top: auto;
margin: 0 var(--cora-vl-space-md) var(--cora-vl-space-lg);
}
body.skin-vector-legacy #mw-panel.mobile-open #p-logo a {
width: auto; height: auto; padding: var(--cora-vl-space-md);
background-size: contain;
}
}
/* High contrast fallback */
@media (prefers-contrast: more) {
body.skin-vector-legacy #mw-panel .vector-menu-content a:hover { text-decoration: underline; }
}
/* ==========================================================================
SECTION 12: HEADER TABS [header, tabs, vector-tabs]
========================================================================== */
#p-views{
background: #fff !important;
}
#searchInput,
Input::placeholder{
color: var(--primary-pink) !important;
}
/* Base styling for all buttons */
#ca-view a,
#ca-viewsource a,
#ca-ve-edit a,
#ca-edit a,
#ca-history a,
#p-cactions .vector-menu-heading ,
#ca-delete a,
#ca-move a,
#ca-protect a {
display: inline-flex !important;
align-items: center !important;
gap: 6px !important;
padding: 8px 12px !important;
margin: 4px 6px 0 0 !important;
border-radius: var(--cora-hd-radius) !important;
background: rgba(255,255,255,0.92) !important;
color: var(--primary-pink, #ff6b9d) !important;
border: 2px solid transparent !important;
font-weight: 700 !important;
text-decoration: none !important;
box-shadow: var(--cora-hd-shadow) !important;
transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease !important;
}
/* Hide text while keeping link clickable */
#ca-watch a,
#ca-unwatch a {
font-size: 0; /* esconde o texto sem sumir com o botão */
width: 24px; /* largura do botão */
height: 24px; /* altura do botão */
padding: 0; /* remove padding extra */
border-radius: 50%; /* deixa redondo */
display: inline-flex;
align-items: center;
justify-content: center;
}
/* Empty Star Icon */
#ca-watch a {
content: "";
display: block;
width: 16px;
height: 16px;
background-image: url("http://localhost/wiki/images/2/28/EmptyPinkStar.png");
background-size: contain;
background-repeat: no-repeat;
border-radius: var(--cora-hd-radius) !important;
}
/* Full Star Icon */
#ca-unwatch a {
content: "";
display: block;
width: 16px;
height: 16px;
background-image: url("http://localhost/wiki/images/c/cc/FullPinkStar.png");
background-size: contain;
background-repeat: no-repeat;
border-radius: var(--cora-hd-radius) !important;
}
/* Hover */
#ca-view a:hover,
#ca-viewsource a:hover,
#ca-edit a:hover,
#ca-history a:hover,
#ca-watch a:hover,
#ca-unwatch a:hover,
#p-cactions .vector-menu-heading:hover,
#ca-delete a:hover,
#ca-move a:hover,
#ca-protect a:hover {
transform: translateY(-2px) !important;
color: var(--dark-pink, #d63384) !important;
border-color: var(--cora-hd-border) !important;
box-shadow: var(--cora-hd-shadow-hover) !important;
}
/* Active button styling (e.g. current tab) */
#ca-view.selected a,
#ca-viewsource.selected a,
#ca-edit.selected a,
#ca-ve-edit.selected a,
#ca-history.selected a,
#ca-watch.selected a,
#ca-unwatch.selected a,
#ca-more.selected a {
background: var(--cora-hd-grad) !important;
color: #fff !important;
border-color: transparent !important;
box-shadow: var(--cora-hd-shadow-hover) !important;
}
/* Remove mw Buttons */
#pt-anontalk,
#pt-anoncontribs,
#ca-talk,
#ca-nstab-main,
#ca-nstab-mediawiki {
display: none !important;
}
/* Remove mw header LI background and border */
#ca-talk,
#ca-nstab-main,
#ca-nstab-mediawiki,
#ca-view,
#ca-edit,
#ca-ve-edit,
#ca-history,
#ca-watch,
#ca-unwatch,
#ca-more {
background: none !important;
border: none !important;
padding: 0 !important;
margin: 0 4px !important; /* espaço entre os botões */
box-shadow: none !important;
}
----------------------
/* Container style */
body.skin-vector-legacy #p-personal {
position: relative;
max-width: 220px;
font-family: sans-serif;
background: var(--cora-vl-bg);
border: 1px solid var(--cora-vl-border);
border-radius: var(--cora-vl-radius);
box-shadow: var(--cora-vl-shadow);
padding: 10px;
}
/* User Menu Collapsible Styles */
body.skin-vector-legacy .user-menu-container {
position: fixed;
top: 120px;
right: 0;
background: transparent;
z-index: 1000;
overflow: visible;
display: flex;
flex-direction: row;
}
/* ==========================================================================
SECTION 13: USER MENU [user-menu, personal-menu, account]
========================================================================== */
body.skin-vector-legacy .user-menu-header {
display: flex;
align-items: center;
padding: 6px 12px ;
top: 2;
right: 0;
position: fixed;
color: var(--cora-vl-primary);
background: #fff;
cursor: pointer;
user-select: none;
transition: background 0.3s ease;
border-radius: var(--cora-vl-radius) 0 0 var(--cora-vl-radius);
white-space: nowrap;
font-weight: bold;
height: auto;
writing-mode: horizontal-tb;
box-shadow: var(--cora-vl-shadow);
border: 1px solid var(--cora-vl-border);
flex-direction: row;
}
body.skin-vector-legacy .user-menu-header:hover {
background: #ffebf5;
}
body.skin-vector-legacy .user-menu-header::after {
content: "";
display: inline-block;
width: 25px;
height: 25px;
font-weight: bold;
background-image: url("http://localhost/wiki/images/9/97/LeftArrow.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
position: relative;
margin-left: 6px;
transition: transform 0.3s ease;
}
body.skin-vector-legacy .user-menu-container.expanded .user-menu-header::after {
transform: rotate(180deg);
}
body.skin-vector-legacy .user-menu-content {
position: absolute;
top: 0;
right: 100%;
background: var(--cora-vl-bg);
border: 1px solid var(--cora-vl-border);
border-radius: var(--cora-vl-radius);
box-shadow: var(--cora-vl-shadow);
padding: 10px;
width: 0;
overflow: hidden;
opacity: 0;
transition: width 0.4s ease, opacity 0.3s ease;
display: flex;
flex-direction: column;
}
body.skin-vector-legacy .user-menu-container.expanded .user-menu-content {
width: 180px;
opacity: 1;
}
body.skin-vector-legacy .user-menu-list {
list-style: none;
margin: 0;
padding: 0;
}
body.skin-vector-legacy .user-menu-list li {
margin: 5px 0;
white-space: nowrap;
border-bottom: 1px solid #f3e2ea;
}
body.skin-vector-legacy .user-menu-list li:last-child {
border-bottom: none;
}
body.skin-vector-legacy .user-menu-list a {
display: block;
color: var(--cora-vl-primary);
text-decoration: none;
padding: 8px 10px;
border-radius: var(--cora-vl-radius-sm);
border-left: 3px solid transparent;
transition: background 0.3s ease, padding-left 0.3s ease, color 0.3s ease;
}
body.skin-vector-legacy .user-menu-list a:hover {
background: #fff5fb;
color: #fa4abf;
padding-left: 18px;
border-left-color: var(--cora-vl-primary);
}
/* Adjust the position of menu items in the vertical menu */
body.skin-vector-legacy .user-menu-content li {
margin: 5px 0;
white-space: nowrap;
}
/* Item styles */
body.skin-vector-legacy #p-personal li {
margin: 4px 0;
border-bottom: 1px solid #f3e2ea;
}
body.skin-vector-legacy #p-personal li:last-child {
border-bottom: none;
}
/* Link styles */
body.skin-vector-legacy #p-personal a {
display: block;
color: var(--cora-vl-primary);
text-decoration: none;
padding: 6px 10px;
border-radius: var(--cora-vl-radius-sm);
border-left: 3px solid transparent;
transition: background 0.3s ease, padding-left 0.3s ease, color 0.3s ease;
}
body.skin-vector-legacy #p-personal a:hover {
background: #fff5fb;
color: #fa4abf;
padding-left: 18px;
border-left-color: var(--cora-vl-primary);
}