Toggle menu
2.9K
1.9K
8
23.4K
Divinity Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox dos2 character test/styles.css

Template page
Revision as of 16:07, 19 March 2026 by Minimoomoo (talk | contribs)
.infoboxtest {
	float: right;
	text-align: left;
	background-color: #1e1600;       /* DOS2 dark gold base */
	border-spacing: 5px;
	border: 1px solid #8b1a1a;
	margin: 0 0 1em 1em;
	width: 350px;
}

.infoboxtest-image {
	text-align: center;
	object-fit: cover;
}

.infoboxtest-image img {
	width: 250px;
	height: auto;
}

.ib-dos2-character-test {
	border-spacing: 2px 5px;
}

.infoboxtest-label {
	vertical-align: top;
	color: #c0392b;
	font-weight: bold;
}

.infoboxtest-data {
	color: #e8dfc0;
}

/* ID row: both label and data in red */
.ib-dos2-id .infoboxtest-label,
.ib-dos2-id .infoboxtest-data {
	color: #c0392b;
}

.ib-dos2-character-test .infoboxtest-above {
	text-align: center;
	background: linear-gradient(180deg, #3d1a00 0%, #1e1600 100%);   /* warm gold gradient */
	color: #c0392b;
	font-size: 1.1em;
	font-weight: bold;
	letter-spacing: 0.05em;
	border-bottom: 1px solid #8b1a1a;
	padding: 6px;
}

.ib-dos2-character-test .infoboxtest-header {
	text-align: center;
	background: linear-gradient(180deg, #3d1a00 0%, #2a1200 100%);   /* warm gold gradient */
	color: #c0392b;
	border-top: 1px solid #8b1a1a;
	border-bottom: 1px solid #8b1a1a;
	letter-spacing: 0.05em;
	padding: 4px;
}

/* Center the tabber tabs */
.ib-dos2-character-test .tabber__tabs {
	display: flex;
	justify-content: center;
}

.ib-dos2-character-test .tabber__tab {
	color: #c0392b;
	border-bottom: 2px solid transparent;
}

.ib-dos2-character-test .tabber__tab--active {
	color: #e74c3c;
	border-bottom: 2px solid #c0392b;
}

/* light background for transparent images */
.ib-dos2-character-test .infoboxtest-image img {
	background-color: transparent;
}

/* Stats table inside tabber */
.ib-dos2-character-test .tabber__panel table {
	color: #e8dfc0;
	width: 100%;
}

.ib-dos2-character-test .tabber__panel table th {
	color: #c0392b;
	text-align: left;
	font-weight: normal;
	padding: 2px 4px;
}

/* Hide bracket characters — zero out the toggle anchor's own font size,
   then restore it only on the ::after caret pseudo-element */
.ib-dos2-character-test .mw-collapsible-toggle {
    font-size: 0;
}

/* Caret points DOWN when collapsed */
.ib-dos2-character-test .mw-collapsible-toggle::after {
    content: "▼";
    display: inline-block;
    font-size: 14px;            /* explicit px so it ignores the parent font-size:0 */
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

/* Caret flips UP when expanded */
.ib-dos2-character-test .mw-collapsible:not(.mw-collapsed) .mw-collapsible-toggle::after {
    transform: rotate(180deg);
}

.ib-dos2-character-test .mw-collapsible-toggle .mw-collapsible-text {
    display: none;
}

.ib-dos2-character-test .dos2-technical-block {
    border-top: 1px solid #8b1a1a;
    border-bottom: 1px solid #8b1a1a;
    background: linear-gradient(180deg, #3d1a00 0%, #2a1200 100%);
    padding: 4px;
    text-align: center;
    cursor: pointer;
}

.ib-dos2-character-test .dos2-technical-header {
    color: #c0392b;
    letter-spacing: 0.05em;
    display: inline;
}

.ib-dos2-character-test .dos2-technical-block .mw-collapsible-content {
    background: #1e1600;
    padding: 4px 8px;
    text-align: left;
    color: #e8dfc0;
}

@media screen {
	html.skin-theme-clientpref-night .ib-dos2-character-test .infoboxtest-above,
	html.skin-theme-clientpref-night .ib-dos2-character-test .infoboxtest-header {
		background: linear-gradient(180deg, #3d1a00 0%, #2a1200 100%);
		color: #c0392b;
	}
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .ib-dos2-character-test .infoboxtest-above,
	html.skin-theme-clientpref-os .ib-dos2-character-test .infoboxtest-header {
		background: linear-gradient(180deg, #3d1a00 0%, #2a1200 100%);
		color: #c0392b;
	}
}