MediaWiki:Tabs.css: Difference between revisions
Jump to navigation
Jump to search
Created page with " .tab-content { display: none; background: rgba(255,255,255,0.98); border-radius: 20px; border: 2px solid rgba(255, 111, 163, 0.18); box-shadow: 0 6px 24px rgba(255, 79, 145, 0.18); padding: 30px 20px; } .tab-content.active { margin: 0 auto; max-width: 1200px; width: 90%; background: white; border-radius: 16px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); padding: 20px 40px; box-sizing: border-box;..." |
No edit summary |
||
| Line 33: | Line 33: | ||
} | } | ||
.nav-tab { | .nav-tab{ | ||
background: white; | background: white; | ||
border: 2px solid rgba(255, 111, 163, 0.18); | border: 2px solid rgba(255, 111, 163, 0.18); | ||
| Line 138: | Line 138: | ||
animation: fadeIn .25s ease; | animation: fadeIn .25s ease; | ||
} | } | ||
html[data-theme="dark"] .tab-content { background: #121a29 !important; border: 2px solid rgba(159,208,255,.18) !important; box-shadow: 0 6px 24px rgba(123,187,255,.22) !important } | |||
html[data-theme="dark"] .tab-content.active { background: #121a29 !important; box-shadow: 0 4px 10px rgba(123,187,255,.18) !important } | |||
html[data-theme="dark"] .nav-tab{ background: rgba(20,26,38,.92) !important; border-color: rgba(159,208,255,.25) !important; color: #cfe6ff !important; box-shadow: 0 4px 12px rgba(123,187,255,.18) !important } | |||
html[data-theme="dark"] .nav-tab:hover { background: rgba(61,97,146,.22) !important; border-color: rgba(159,208,255,.35) !important; box-shadow: 0 12px 36px rgba(123,187,255,.32) !important } | |||
html[data-theme="dark"] .nav-tab.active { background: linear-gradient(135deg, #274c77, #1b2b41) !important; border-color: transparent !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(123,187,255,.25) !important } | |||
html[data-theme="dark"] .nested-tab { background: linear-gradient(135deg, #274c77 0%, #1b2b41 60%) !important; border-color: rgba(159,208,255,.25) !important; color: #ffffff !important } | |||
html[data-theme="dark"] .nested-tab:hover { background: linear-gradient(135deg, #274c77 0%, #1b2b41 80%) !important; border-color: rgba(159,208,255,.35) !important; box-shadow: 0 8px 24px rgba(123,187,255,.25) !important } | |||
html[data-theme="dark"] .nested-tab.active { background: linear-gradient(135deg, #274c77 0%, #1b2b41 70%) !important; border-color: rgba(159,208,255,.35) !important; color: #ffffff !important } | |||
html[data-theme="dark"] .nested-content { background: #121a29 !important; border: 1px solid rgba(159,208,255,.18) !important } | |||
/* Show nested tabs and content in active parent tabs that have them */ | /* Show nested tabs and content in active parent tabs that have them */ | ||
Revision as of 11:38, 3 December 2025
.tab-content {
display: none;
background: rgba(255,255,255,0.98);
border-radius: 20px;
border: 2px solid rgba(255, 111, 163, 0.18);
box-shadow: 0 6px 24px rgba(255, 79, 145, 0.18);
padding: 30px 20px;
}
.tab-content.active {
margin: 0 auto;
max-width: 1200px;
width: 90%;
background: white;
border-radius: 16px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
padding: 20px 40px;
box-sizing: border-box;
display: block;
animation: fadeIn .35s ease;
}
.nav-tabs {
display: flex;
flex-wrap: wrap;
gap: 8px 8px;
padding: 12px 20px;
list-style: none;
border-bottom: none;
justify-content: center;
margin-bottom: 12px;
}
.nav-tab{
background: white;
border: 2px solid rgba(255, 111, 163, 0.18);
border-radius: 14px;
border-color: rgba(255, 107, 157, 0.5);
padding: 12px 20px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
color: #666;
text-decoration: none;
display: inline-block;
}
.nav-tab:hover {
background: rgba(255, 111, 163, 0.08);
border-color: rgba(255, 111, 163, 0.7);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(255, 111, 163, 0.15);
}
.nav-tab.active {
background: linear-gradient(135deg, #ff4f91, #d02f72);
border-color: rgba(255, 107, 157, 0.9);
color: white;
box-shadow: 0 4px 12px rgba(255, 111, 163, 0.3);
position: relative;
animation: floatUpDown 2.5s ease-in-out infinite;
}
.nav-tab .short-text {
display: none;
}
.nav-tab .full-text {
display: inline;
}
.tab-footer {
display: flex;
justify-content: center;
}
/* [NAVIGATION] NESTED TABS
======================================== */
.nested-tabs {
margin: 16px 0;
padding: 0;
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 6px;
justify-content: center;
}
.nested-tab {
background: linear-gradient(135deg, #ff6b9d 0%, #ffc3e0 40%);
border: 2px solid rgba(255, 111, 163, 0.15);
border-radius: 8px;
border-color: rgba(255, 107, 157, 0.4);
padding: 8px 16px;
cursor: pointer;
transition: all 0.25s ease;
font-weight: 500;
color: black;
text-decoration: none;
font-size: 14px;
}
.nested-tab:hover {
background: linear-gradient(135deg, #ff6b9d 0%, #ffc3e0 60%);
border: 2px solid rgba(255, 111, 163, 0.15);
border-radius: 8px;
border-color: rgba(255, 107, 157, 0.9);
color: #444;
box-shadow: 0 4px 12px rgba(255, 111, 163, 0.3);
}
.nested-tab.active {
background: linear-gradient(135deg, #ff6b9d 0%, #ffc3e0 50%);
border: 2px solid rgba(255, 111, 163, 0.15);
border-radius: 8px;
border-color: rgba(255, 107, 157, 0.8);
color: white;
box-shadow: 0 4px 12px rgba(255, 111, 163, 0.3);
position: relative;
animation: floatUpDown 2.5s ease-in-out infinite;
}
.nested-content {
display: none;
padding: 16px;
background: rgba(255,255,255,0.95);
border-radius: 14px;
margin-top: 8px;
border: 1px solid rgba(255, 111, 163, 0.1);
}
.nested-content.active {
display: block;
animation: fadeIn .25s ease;
}
html[data-theme="dark"] .tab-content { background: #121a29 !important; border: 2px solid rgba(159,208,255,.18) !important; box-shadow: 0 6px 24px rgba(123,187,255,.22) !important }
html[data-theme="dark"] .tab-content.active { background: #121a29 !important; box-shadow: 0 4px 10px rgba(123,187,255,.18) !important }
html[data-theme="dark"] .nav-tab{ background: rgba(20,26,38,.92) !important; border-color: rgba(159,208,255,.25) !important; color: #cfe6ff !important; box-shadow: 0 4px 12px rgba(123,187,255,.18) !important }
html[data-theme="dark"] .nav-tab:hover { background: rgba(61,97,146,.22) !important; border-color: rgba(159,208,255,.35) !important; box-shadow: 0 12px 36px rgba(123,187,255,.32) !important }
html[data-theme="dark"] .nav-tab.active { background: linear-gradient(135deg, #274c77, #1b2b41) !important; border-color: transparent !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(123,187,255,.25) !important }
html[data-theme="dark"] .nested-tab { background: linear-gradient(135deg, #274c77 0%, #1b2b41 60%) !important; border-color: rgba(159,208,255,.25) !important; color: #ffffff !important }
html[data-theme="dark"] .nested-tab:hover { background: linear-gradient(135deg, #274c77 0%, #1b2b41 80%) !important; border-color: rgba(159,208,255,.35) !important; box-shadow: 0 8px 24px rgba(123,187,255,.25) !important }
html[data-theme="dark"] .nested-tab.active { background: linear-gradient(135deg, #274c77 0%, #1b2b41 70%) !important; border-color: rgba(159,208,255,.35) !important; color: #ffffff !important }
html[data-theme="dark"] .nested-content { background: #121a29 !important; border: 1px solid rgba(159,208,255,.18) !important }
/* Show nested tabs and content in active parent tabs that have them */
.tab-content.active .nested-tabs {
display: flex;
visibility: visible;
}
.tab-content.active .nested-content.active {
display: block;
}
/* Hide nested tabs and content in inactive parent tabs */
.tab-content:not(.active) .nested-tabs {
display: none;
}
.tab-content:not(.active) .nested-content {
display: none;
}
.mw-parser-output .nested-tab .short-text {
display: none;
}
.mw-parser-output .nested-tab .full-text {
display: inline;
}
/* ========================================
RESPONSIVE DESIGN
======================================== */
/* Desktop médio: 992px - 1199px */
@media (max-width: 1199px) {
.tab-content {
padding: 25px 18px;
border-radius: 18px;
}
.tab-content.active {
padding: 18px 35px;
border-radius: 14px;
}
.nav-tabs {
padding: 10px 18px;
gap: 6px 6px;
margin-bottom: 10px;
}
.nav-tab {
padding: 10px 18px;
border-radius: 12px;
font-size: 0.9rem;
}
.nav-tab.active {
padding: 10px 18px;
}
}
/* Desktop pequeno: 768px - 991px */
@media (max-width: 991px) {
.tab-content {
padding: 20px 15px;
border-radius: 16px;
}
.tab-content.active {
padding: 15px 30px;
border-radius: 12px;
width: 95%;
}
.nav-tabs {
padding: 8px 15px;
gap: 8px 8px;
margin-bottom: 8px;
justify-content: center;
}
.nav-tab {
padding: 8px 15px;
border-radius: 10px;
font-size: 0.85rem;
flex: 0 0 calc(50% - 4px);
max-width: calc(50% - 4px);
text-align: center;
}
.nav-tab.active {
padding: 8px 15px;
}
}
/* Tablet: 576px - 767px */
@media (max-width: 767px) {
.tab-content {
padding: 18px 12px;
border-radius: 14px;
}
.tab-content.active {
padding: 12px 25px;
border-radius: 10px;
width: 98%;
}
.nav-tabs {
padding: 6px 12px;
gap: 6px 6px;
margin-bottom: 6px;
justify-content: center;
}
.nav-tab {
padding: 6px 12px;
border-radius: 8px;
font-size: 0.8rem;
flex: 0 0 calc(50% - 3px);
max-width: calc(50% - 3px);
text-align: center;
}
.nav-tab.active {
padding: 6px 12px;
}
.nav-tab:hover {
transform: translateY(-1px);
}
}
/* Mobile: até 575px */
@media (max-width: 575px) {
.tab-content {
padding: 15px 10px;
border-radius: 12px;
}
.tab-content.active {
padding: 10px 20px;
border-radius: 8px;
width: 100%;
}
.nav-tabs {
padding: 4px 10px;
gap: 4px 4px;
margin-bottom: 4px;
justify-content: center;
}
.nav-tab {
padding: 5px 8px;
border-radius: 6px;
font-size: 0.7rem;
flex: 0 0 calc(50% - 2px);
max-width: calc(50% - 2px);
text-align: center;
}
.nav-tab.active {
padding: 5px 8px;
}
.nav-tab:hover {
transform: none;
}
}
@keyframes fadeIn {
0% {
opacity: 0;
transform: translateY(10px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes floatUpDown {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-4px);
}
}