MediaWiki:CustomTabs.css: Difference between revisions

From Zombie Panic! Official Wiki
Jump to navigation Jump to search
Created page with ".custom-tabs { display: flex; flex-direction: row; gap: 5px; width: 100%; margin: 5px 0; flex-wrap: wrap; justify-content: space-evenly; } .custom-tabs > span { border-radius: 4px; display: flex; align-items: center; text-align: center; justify-content: center; flex: 1; transition: .25s; } .custom-tabs a, .custom-tabs .selflink, .custom-tabs span.new { display: flex; width: 100%; height: 100%; padding: 8px 10px; border-radius: 4px; align-items: cent..."
 
(No difference)

Latest revision as of 09:03, 10 June 2025

.custom-tabs {
	display: flex;
	flex-direction: row;
	gap: 5px;
	width: 100%;
	margin: 5px 0;
	flex-wrap: wrap;
	justify-content: space-evenly;
}

.custom-tabs > span {
	border-radius: 4px;
	display: flex;
	align-items: center;
	text-align: center;
	justify-content: center;
	flex: 1;
	transition: .25s;
}

.custom-tabs a,
.custom-tabs .selflink,
.custom-tabs span.new {
	display: flex;
	width: 100%;
	height: 100%;
	padding: 8px 10px;
	border-radius: 4px;
	align-items: center;
	text-align: center;
	justify-content: center;
}

/* Mobile 2 column format */
.skin-fandommobile div.custom-tabs {
	display: grid;
	grid-template-columns: repeat(2, 50%);
	grid-auto-flow: row;
	flex-wrap: wrap;
}

.skin-fandommobile .custom-tabs a,
.skin-fandommobile .custom-tabs .selflink,
.skin-fandommobile .custom-tabs span.new {
	font-size: 90%;
}

/* Select colors based on class type */
.custom-tabs-default {
    --active-tab-color: var(--custom-tabs-default-active-color);
    --active-tab-background-color: var(--custom-tabs-default-active-bg);
    --inactive-tab-color: var(--custom-tabs-default-inactive-color);
    --inactive-tab-background-color: var(--custom-tabs-default-inactive-bg);
    --inactive-tab-hover-color: var(--custom-tabs-default-inactive-hover-color);
    --inactive-tab-hover-background-color: var(--custom-tabs-default-inactive-hover-bg);
}
.custom-tabs-secondary, .custom-tabs-language {
    --active-tab-color: var(--custom-tabs-secondary-active-color);
    --active-tab-background-color: var(--custom-tabs-secondary-active-bg);
    --inactive-tab-color: var(--custom-tabs-secondary-inactive-color);
    --inactive-tab-background-color: var(--custom-tabs-secondary-inactive-bg);
    --inactive-tab-hover-color: var(--custom-tabs-secondary-inactive-hover-color);
    --inactive-tab-hover-background-color: var(--custom-tabs-secondary-inactive-hover-bg);
}
.custom-tabs-tertiary {
    --active-tab-color: var(--custom-tabs-tertiary-active-color);
    --active-tab-background-color: var(--custom-tabs-tertiary-active-bg);
    --inactive-tab-color: var(--custom-tabs-tertiary-inactive-color);
    --inactive-tab-background-color: var(--custom-tabs-tertiary-inactive-bg);
    --inactive-tab-hover-color: var(--custom-tabs-tertiary-inactive-hover-color);
    --inactive-tab-hover-background-color: var(--custom-tabs-tertiary-inactive-hover-bg);
}
/* [[Template:Bizarre Brigade Tabs]] Color Scheme */
.custom-tabs-bb {
	--active-tab-background-color: #6c46bd;
	--active-tab-color: #000;
	--inactive-tab-background-color: #423068;
	--inactive-tab-color: var(--theme-page-text-color);
	--inactive-tab-hover-background-color: #6c46bd;
	--inactive-tab-hover-color: var(--theme-page-text-color);
}
/* [[Template:Snake Duel Tabs]] Color Scheme */
.custom-tabs-sd {
	--active-tab-background-color: #ffbb08;
	--active-tab-color: var(--custom-tabs-default-inactive-color);
	--inactive-tab-background-color: #ffb40d;
	--inactive-tab-color: #000000;
	--inactive-tab-hover-background-color: #ffbb08;
	--inactive-tab-hover-color: #000000;
}
/* [[Template:Soul Hounds III Tabs]] Color Scheme */
.custom-tabs-sh {
	--active-tab-background-color: #e73137;
	--active-tab-color: var(--custom-tabs-default-inactive-color);
	--inactive-tab-background-color: #e37175;
	--inactive-tab-color: #000000;
	--inactive-tab-hover-background-color: #e73137;
	--inactive-tab-hover-color: #000000;
}
/* [[Template:Arpeggio Fault Tabs]] Color Scheme */
.custom-tabs-af {
	--active-tab-background-color: #e4f3ff;
	--active-tab-color: var(--custom-tabs-default-inactive-color);
	--inactive-tab-background-color: #b9cee3;
	--inactive-tab-color: #000000;
	--inactive-tab-hover-background-color: #e4f3ff;
	--inactive-tab-hover-color: #000000;
}
/* [[Template:Lost Void Tabs]] Color Scheme */
.custom-tabs-lv {
	--active-tab-background-color: #ef88a2;
	--active-tab-color: var(--custom-tabs-default-inactive-color);
	--inactive-tab-background-color: #b92c4bc7;
	--inactive-tab-color: #000000;
	--inactive-tab-hover-background-color: #ef88a2;
	--inactive-tab-hover-color: #000000;
}
/* Apply Color Scheme */
.custom-tabs span.active-tab {
	background-color: var(--active-tab-background-color);
}

.custom-tabs span.active-tab strong {
	color: var(--active-tab-color);
}

.custom-tabs span.active-tab a:not(.new) {
	color: var(--active-tab-color);
	font-weight: bold;
}

.custom-tabs span.inactive-tab {
	background: var(--inactive-tab-background-color);
}

.custom-tabs span.inactive-tab a:not(.new) {
	color: var(--inactive-tab-color);
}

.custom-tabs span.inactive-tab:hover {
	background: var(--inactive-tab-hover-background-color);
}

.custom-tabs span.inactive-tab:hover a:not(.new) {
	color: var(--inactive-tab-hover-color);
}

/* Tab Sections */
.custom-tabs-section-header {
	padding-bottom: 10px;
	font-weight: 600;
}

.custom-tabs-section {
	border-radius: 5px;
	margin-bottom: 8px;
	padding: 15px;
}

.custom-tabs-section-default {
	background: var(--theme-page-text-mix-color-95);
	border: 1px solid var(--theme-color-4);
}

.custom-tabs-section-bb {
	background: #3561c714;
	border: 2px solid #2383c359;
}

.custom-tabs-section-sd {
	background: #56ebf01f;
	border: 2px solid #56ebf05c;
}

.custom-tabs-section-sh {
	background: #43039326;
	border: 2px solid #611fb18a;
}

.custom-tabs-section-af {
	background: #c1616d45;
	border: 2px solid #c1616dd6;
}

.custom-tabs-section-lv {
	background: #3a2fb736;
	border: 2px solid #3a2fb7c9;
}