Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Character Panel/styles.css: Difference between revisions

Template page
Content deleted Content added
Saarn (talk | contribs)
added background colors
Saarn (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
.infobox-character .infobox-character__image { text-align: center; background: #f4f4f2; }
.infobox-character .infobox-character__image { text-align: center; background: #f4f4f2; }
.infobox-character img { max-width: 100%; height: auto; }
.infobox-character img { max-width: 100%; height: auto; }
.infobox-character td { white-space: pre-line; }


/* Themed panels: a translucent tint over the skin's own surface color,
/* Color themes */
so light and dark mode both work without any theme selectors. */
⚫
.infobox-character--crimson { background: #3b1219; color: #f3e6e8; }
.infobox-character--azure { background: #12243b; color: #e6edf5; }
.infobox-character--crimson,
.infobox-character--verdant { background: #14301f; color: #e6f3ea; }
.infobox-character--azure,
.infobox-character--crimson caption,
.infobox-character--verdant,
.infobox-character--azure caption,
.infobox-character--midnight,
.infobox-character--verdant caption { color: inherit; }
.infobox-character--mekhanite {
background: linear-gradient(var(--cp-tint), var(--cp-tint)), var(--color-surface-1);
}
⚫
.infobox-character--crimson { --cp-tint: rgba(190, 40, 60, 0.22); }
.infobox-character--azure { --cp-tint: rgba(50, 120, 220, 0.22); }
.infobox-character--verdant { --cp-tint: rgba(40, 160, 90, 0.22); }
.infobox-character--midnight { --cp-tint: rgba(120, 70, 200, 0.25); }
.infobox-character--mekhanite { --cp-tint: rgba(176, 124, 84, 0.26); }


@media (max-width: 640px) { .infobox-character { float: none; width: 100%; margin: 0 0 1rem; } }
@media (max-width: 640px) { .infobox-character { float: none; width: 100%; margin: 0 0 1rem; } }
@media print { .infobox-character { background: transparent; color: inherit; } }
@media print { .infobox-character { background: none; } }

Latest revision as of 01:33, 22 October 2026

.infobox-character { float: right; width: 350px; max-width: 100%; margin: 0 0 1rem 1rem; border: 1px solid var(--border-color-base); border-radius: var(--border-radius-medium, 8px); background: var(--color-surface-1); color: var(--color-base); border-collapse: separate; border-spacing: 0; overflow-wrap: anywhere; }
.infobox-character caption { padding: .6rem; font-size: 1.2rem; font-weight: 700; color: var(--color-emphasized); }
.infobox-character th, .infobox-character td { padding: .45rem .6rem; text-align: left; vertical-align: top; }
.infobox-character th { width: 35%; }
.infobox-character .infobox-character__image { text-align: center; background: #f4f4f2; }
.infobox-character img { max-width: 100%; height: auto; }
.infobox-character td { white-space: pre-line; }

/* Themed panels: a translucent tint over the skin's own surface color,
   so light and dark mode both work without any theme selectors. */
.infobox-character--crimson,
.infobox-character--azure,
.infobox-character--verdant,
.infobox-character--midnight,
.infobox-character--mekhanite {
	background: linear-gradient(var(--cp-tint), var(--cp-tint)), var(--color-surface-1);
}
.infobox-character--crimson   { --cp-tint: rgba(190, 40, 60, 0.22); }
.infobox-character--azure     { --cp-tint: rgba(50, 120, 220, 0.22); }
.infobox-character--verdant   { --cp-tint: rgba(40, 160, 90, 0.22); }
.infobox-character--midnight  { --cp-tint: rgba(120, 70, 200, 0.25); }
.infobox-character--mekhanite { --cp-tint: rgba(176, 124, 84, 0.26); }

@media (max-width: 640px) { .infobox-character { float: none; width: 100%; margin: 0 0 1rem; } }
@media print { .infobox-character { background: none; } }