MediaWiki:Common.css: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 1,113: | Line 1,113: | ||
border-bottom: 1px solid var(--ooo-border); | border-bottom: 1px solid var(--ooo-border); | ||
margin-bottom: 16px; | margin-bottom: 16px; | ||
} | |||
.ooo-buildbox .tabber__tabs { | |||
display: flex; | |||
gap: 10px; | |||
margin-bottom: 10px; | |||
} | } | ||
| Line 1,120: | Line 1,126: | ||
margin-right: 8px; | margin-right: 8px; | ||
border-bottom: 2px solid transparent; | border-bottom: 2px solid transparent; | ||
background: #f5f5f5; /* Light background color for tabs */ | |||
transition: background 0.3s ease, color 0.3s ease; | |||
} | } | ||
.ooo-buildbox .tabber__tab:hover { | .ooo-buildbox .tabber__tab:hover { | ||
color: var(--ooo-accent); | color: var(--ooo-accent); | ||
background: #e5e5e5; /* Slight hover effect */ | |||
} | } | ||
.ooo-buildbox .tabber__tab--active { | .ooo-buildbox .tabber__tab--active { | ||
color: var(--ooo-accent); | color: white; /* Active tab text color */ | ||
background: var(--ooo-accent); /* Active tab background */ | |||
border-bottom: 2px solid var(--ooo-accent); | border-bottom: 2px solid var(--ooo-accent); | ||
font-weight: 800; /* Make active tab bolder */ | |||
} | } | ||
/* | /* Mobile Adjustment: Stack tabs vertically on smaller screens */ | ||
@media (max-width: 900px) { | |||
.ooo-buildbox .tabber__tabs { | |||
flex-direction: column; /* Stack tabs vertically */ | |||
.ooo- | align-items: center; | ||
} | |||
.ooo-buildbox .tabber__tab { | |||
width: 100%; /* Full width tabs on mobile */ | |||
text-align: center; | |||
} | |||
} | } | ||