Toggle menu
3K
1.9K
8
24.1K
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/styles.css: Difference between revisions

Template page
No edit summary
Tag: Reverted
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
.infobox{
.infobox{
float:right;
float: right;
text-align: left;  
text-align: left;  
background-color:#7d413e;
background-color: #c0392b;
border-spacing: 5px;
border-spacing: 5px;
border: 1px solid #72777d;
border: 1px solid #1e1600;
margin: 0 0 1em 1em;
margin: 0 0 1em 1em;
width:350px;
width: 350px;
}
}


.infobox-image {
.infobox-image {
text-align:center;
text-align:center;
object-fit: cover;
background-color: transparent;
padding: 6px 0;
}
 
.infobox-image img {
width: 250px;
height: auto;
display: block;
margin: 0 auto;
background-color: transparent;
}
}


.ib-dos2-character {
.ib-dos2-character {
border-spacing: 2px 5px;
border-spacing: 2px 5px;
background-color: #1e1600;
}
}


.infobox-label {
.infobox-label {
vertical-align: top;
vertical-align: top;
color: #f4d03f;
font-weight: bold;
}
.infobox-data {
color: #1e1600;
background-color: transparent;
}
/* ID row: both label and data in red */
/*.ib-dos2-id .infobox-label,*/
/*.ib-dos2-id .infobox-data {*/
/* color: #c0392b;*/
/*}*/
.ib-dos2-character .infobox-above {
text-align: center;
background: linear-gradient(180deg, #761F17 0%, #900D09 100%); /* keep */
color: #1e1600; /* change to your yellow */
font-size: 1.1em;
font-weight: bold;
letter-spacing: 0.05em;
border-bottom: 1px solid #1e1600; /* match text */
padding: 6px;
}
}


.ib-dos2-character .infobox-above,
.ib-dos2-character .infobox-header {
.ib-dos2-character .infobox-header {
text-align:center;
text-align: center;
background: #e77a64;
background: linear-gradient(180deg, #761F17 0%, #900D09 100%); /* keep */
color: #1e1600; /* change to your yellow */
border-top: 1px solid #1e1600;
border-bottom: 1px solid #1e1600;
letter-spacing: 0.05em;
padding: 4px;
}
 
/* Center the tabber tabs */
.ib-dos2-character .tabber__tabs {
display: flex;
justify-content: center;
color: #1e1600;
}
 
.ib-dos2-character .tabber__tab {
color: #f4d03f;
border-bottom: 2px solid transparent;
}
 
.ib-dos2-character .tabber__tab--active {
color: #f4d03f;
border-bottom: 2px solid #1e1600;
}
 
/* Ensure all table cells inside the infobox inherit the dark gold background */
.ib-dos2-character td,
.ib-dos2-character th,
.ib-dos2-character tr {
background-color: transparent;
}
 
/* Stats table inside tabber */
.ib-dos2-character .tabber__panel table {
color: #f4d03f;
width: 100%;
background-color: transparent;
}
 
.ib-dos2-character .tabber__panel table th {
color: #f4d03f;
/*#1e1600;*/
text-align: left;
font-weight: normal;
padding: 2px 4px;
}
 
.ib-dos2-character .tabber__panel table th,
.ib-dos2-character .tabber__panel table td {
color: #f4d03f;
/*#1e1600;*/
}
 
/* Caret — bracket hidden via font-size:0 on parent */
.ib-dos2-character .mw-collapsible-toggle {
    font-size: 0;
}
 
/* Caret points DOWN when collapsed */
.ib-dos2-character .mw-collapsible-toggle::after {
    content: "▼";
    display: inline-block;
    font-size: 14px;
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}
 
 
/* Caret flips UP when expanded */
.ib-dos2-character .mw-collapsible:not(.mw-collapsed) .mw-collapsible-toggle::after {
    transform: rotate(180deg);
}
 
.ib-dos2-character .mw-collapsible-toggle .mw-collapsible-text {
    display: none;
}
 
.ib-dos2-character .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 .dos2-technical-header {
    color: #f4d03f;
    letter-spacing: 0.05em;
    display: inline;
}
 
.ib-dos2-character .dos2-technical-block .mw-collapsible-content {
    background: #c0392b;
    padding: 4px 8px;
    text-align: left;
    color: #1e1600;
}
 
@media screen {
html.skin-theme-clientpref-night .ib-dos2-character .infobox-above,
html.skin-theme-clientpref-night .ib-dos2-character .infobox-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 .infobox-above,
html.skin-theme-clientpref-os .ib-dos2-character .infobox-header {
background: linear-gradient(180deg, #3d1a00 0%, #2a1200 100%);
color: #c0392b;
}
}
 
html.skin-theme-clientpref-night .infobox {
background-color: #1e1600;
border-color: #8b1a1a;
}
 
html.skin-theme-clientpref-night .ib-dos2-character td,
html.skin-theme-clientpref-night .ib-dos2-character th,
html.skin-theme-clientpref-night .ib-dos2-character tr {
background-color: transparent;
color: #e8dfc0;
}
 
html.skin-theme-clientpref-night .infobox-label {
color: #c0392b;
}
 
html.skin-theme-clientpref-night .infobox-data {
color: #e8dfc0;
}
 
html.skin-theme-clientpref-night .ib-dos2-id .infobox-label,
html.skin-theme-clientpref-night .ib-dos2-id .infobox-data {
color: #c0392b;
}
 
html.skin-theme-clientpref-night .ib-dos2-character .infobox-above {
background: linear-gradient(180deg, #3d1a00 0%, #1e1600 100%);
color: #c0392b;
}
 
html.skin-theme-clientpref-night .ib-dos2-character .infobox-header {
background: linear-gradient(180deg, #3d1a00 0%, #2a1200 100%);
color: #c0392b;
}
 
html.skin-theme-clientpref-night .ib-dos2-character .dos2-technical-block {
background: linear-gradient(180deg, #3d1a00 0%, #2a1200 100%);
}
 
html.skin-theme-clientpref-night .ib-dos2-character .dos2-technical-block .mw-collapsible-content {
background: #1e1600;
color: #e8dfc0;
}
}


/* light background for transparent images */
html.skin-theme-clientpref-night .ib-dos2-character .tabber__panel table {
.ib-dos2-character .infobox-image img {
background-color: transparent;
background-color: transparent;
color: #e8dfc0;
}
html.skin-theme-clientpref-night .ib-dos2-character .tabber__panel table th {
color: #c0392b;
}
html.skin-theme-clientpref-night .ib-dos2-character .tabber__panel table th,
html.skin-theme-clientpref-night .ib-dos2-character .tabber__panel table td {
color: #f4d03f;
}
}

Latest revision as of 18:02, 26 March 2026

.infobox{
	float: right;
	text-align: left; 
	background-color: #c0392b;
	border-spacing: 5px;
	border: 1px solid #1e1600;
	margin: 0 0 1em 1em;
	width: 350px;
}

.infobox-image {
	text-align:center;
	background-color: transparent;
	padding: 6px 0;
}

.infobox-image img {
	width: 250px;
	height: auto;
	display: block;
	margin: 0 auto;
	background-color: transparent;
}

.ib-dos2-character {
	border-spacing: 2px 5px;
	background-color: #1e1600;
}

.infobox-label {
	vertical-align: top;
	color: #f4d03f;
	font-weight: bold;
}

.infobox-data {
	color: #1e1600;
	background-color: transparent;
}

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

.ib-dos2-character .infobox-above {
	text-align: center;
	background: linear-gradient(180deg, #761F17 0%, #900D09 100%); /* keep */
	color: #1e1600; /* change to your yellow */
	font-size: 1.1em;
	font-weight: bold;
	letter-spacing: 0.05em;
	border-bottom: 1px solid #1e1600; /* match text */
	padding: 6px;
}

.ib-dos2-character .infobox-header {
	text-align: center;
	background: linear-gradient(180deg, #761F17 0%, #900D09 100%); /* keep */
	color: #1e1600; /* change to your yellow */
	border-top: 1px solid #1e1600;
	border-bottom: 1px solid #1e1600;
	letter-spacing: 0.05em;
	padding: 4px;
}

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

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

.ib-dos2-character .tabber__tab--active {
	color: #f4d03f;
	border-bottom: 2px solid #1e1600;
}

/* Ensure all table cells inside the infobox inherit the dark gold background */
.ib-dos2-character td,
.ib-dos2-character th,
.ib-dos2-character tr {
	background-color: transparent;
}

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

.ib-dos2-character .tabber__panel table th {
	color: #f4d03f;
	/*#1e1600;*/
	text-align: left;
	font-weight: normal;
	padding: 2px 4px;
}

.ib-dos2-character .tabber__panel table th,
.ib-dos2-character .tabber__panel table td {
	color: #f4d03f;
	/*#1e1600;*/
}

/* Caret — bracket hidden via font-size:0 on parent */
.ib-dos2-character .mw-collapsible-toggle {
    font-size: 0;
}

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


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

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

.ib-dos2-character .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 .dos2-technical-header {
    color: #f4d03f;
    letter-spacing: 0.05em;
    display: inline;
}

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

@media screen {
	html.skin-theme-clientpref-night .ib-dos2-character .infobox-above,
	html.skin-theme-clientpref-night .ib-dos2-character .infobox-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 .infobox-above,
	html.skin-theme-clientpref-os .ib-dos2-character .infobox-header {
		background: linear-gradient(180deg, #3d1a00 0%, #2a1200 100%);
		color: #c0392b;
	}
}

html.skin-theme-clientpref-night .infobox {
	background-color: #1e1600;
	border-color: #8b1a1a;
}

html.skin-theme-clientpref-night .ib-dos2-character td,
html.skin-theme-clientpref-night .ib-dos2-character th,
html.skin-theme-clientpref-night .ib-dos2-character tr {
	background-color: transparent;
	color: #e8dfc0;
}

html.skin-theme-clientpref-night .infobox-label {
	color: #c0392b;
}

html.skin-theme-clientpref-night .infobox-data {
	color: #e8dfc0;
}

html.skin-theme-clientpref-night .ib-dos2-id .infobox-label,
html.skin-theme-clientpref-night .ib-dos2-id .infobox-data {
	color: #c0392b;
}

html.skin-theme-clientpref-night .ib-dos2-character .infobox-above {
	background: linear-gradient(180deg, #3d1a00 0%, #1e1600 100%);
	color: #c0392b;
}

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

html.skin-theme-clientpref-night .ib-dos2-character .dos2-technical-block {
	background: linear-gradient(180deg, #3d1a00 0%, #2a1200 100%);
}

html.skin-theme-clientpref-night .ib-dos2-character .dos2-technical-block .mw-collapsible-content {
	background: #1e1600;
	color: #e8dfc0;
}

html.skin-theme-clientpref-night .ib-dos2-character .tabber__panel table {
	background-color: transparent;
	color: #e8dfc0;
}

html.skin-theme-clientpref-night .ib-dos2-character .tabber__panel table th {
	color: #c0392b;
}

html.skin-theme-clientpref-night .ib-dos2-character .tabber__panel table th,
html.skin-theme-clientpref-night .ib-dos2-character .tabber__panel table td {
	color: #f4d03f;
}