Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
MediaWiki help
Creopedia
Search
Search
Appearance
Log in
Personal tools
Log in
View source for Module:InfoboxLua/styles.css
Module
Discussion
English
Read
View source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
View source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
←
Module:InfoboxLua/styles.css
.t-infobox { width: 100%; margin-left: 16px; margin-bottom: 16px; font-size: 0.875rem; line-height: 1.375; background: var(--background-color-neutral-subtle); border: 1px solid var(--border-color-base); border-radius: 2px; overflow: hidden; float: right; } .t-infobox-content { display: flex; flex-direction: column; row-gap: 16px; padding-bottom: 12px; } /* Header Component */ .t-infobox-image-container { position: relative; } .t-infobox-image-overlay { position: absolute; top: 0; left: 0; right: 0; } .t-infobox-image { display: grid; place-content: center; min-height: 160px; } .t-infobox-header-content { margin-top: 12px; } .t-infobox-title { font-size: 1.25rem; font-weight: 600; font-family: var(--cp-font-family-heading); color: var(--color-emphasized); } /* Section Component */ .t-infobox-section-label { margin-bottom: 12px; border-top: 1px solid var(--border-color-base); padding-top: 12px; font-size: 1rem; font-weight: 600; font-family: var(--cp-font-family-heading); color: var(--color-emphasized); } .t-infobox-section-items { --t-infobox-section-columns-span: span var(--infobox-section-columns); --t-infobox-section-grid-template-columns: repeat( var(--infobox-section-columns), 1fr ); display: grid; grid-template-columns: var(--t-infobox-section-grid-template-columns); gap: 12px; } .t-infobox-section-subsections { margin-inline: -12px; } .t-infobox-section-subsections .tabber { /* Compensate for the top padding of the tab buttons */ margin-top: -0.75em; } .t-infobox-section-subsections .tabber__header { margin-inline: -0.5em; /* Compensate for the side padding of the tab buttons */ box-shadow: none; /* Hide the bottom border in Tabber to reduce visual clutter */ } .t-infobox-section-subsections .tabber__header, .t-infobox-section-subsections .tabber__panel { padding-inline: 12px; } .t-infobox-section-subsections .tabber__tab { /* Swap margin and padding so that the indicator is aligned */ margin-inline: 0.5em; padding-inline: 0; } .t-infobox-section-subsections .tabber__panel > .t-infobox-section { padding-inline: 0; } .t-infobox-section-subsections .tabber__panel > .t-infobox-section > .t-infobox-section-items:first-child { padding-top: 12px; } .t-infobox-section-subsections .tabber__panel > .t-infobox-section > .t-infobox-section-items:last-child { padding-bottom: 12px; } /* Item Component */ .t-infobox-item-label { color: var(--color-subtle); font-family: var(--cp-font-family-heading); } .t-infobox-header-content, .t-infobox-section { padding-inline: 12px; } .t-infobox-item { display: flex; flex-direction: column; gap: 2px; } /* Item Card Component */ .t-infobox-item-card.t-infobox-item { margin-top: -4px; grid-column: var(--t-infobox-section-columns-span); border: 1px solid var(--border-color-base); border-radius: 2px; padding: 12px; background: var(--background-color-base); } .t-infobox-item-card-label { margin-bottom: 12px; font-weight: 600; font-size: 1rem; font-family: var(--cp-font-family-heading); } .t-infobox-item-card-items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .t-infobox-item:not(.t-infobox-item-card) + .t-infobox-item-card { margin-top: 8px; } /* * Effects and Notes, built by Module:Effect. * * These live here rather than in Module:Item/Components/Infobox/styles.css * because the item infobox is the only one that injects a stylesheet of its * own. The trait, ability and move infoboxes render through * Module:InfoboxLua alone, so a rule kept next to the item styles would leave * their lists with MediaWiki's default 1.6em indent and no note colour. * * Both lists sit inside a card that is already padded, so the default indent * pushes them visibly out of line with the card label above them. The margin * is reset and a smaller indent set, leaving just enough room for the bullet. */ .t-infobox-effects, .t-infobox-notes { margin: 0; padding-left: 1.25em; list-style: disc; } .t-infobox-effects li + li, .t-infobox-notes li + li { margin-top: 4px; } /* * Notes explain the effects listed above rather than adding to them, so they * are set back a shade to keep the Effects list as the thing read first. */ .t-infobox-notes { color: var(--color-subtle); } @media only screen and (max-width: 639px) { .t-infobox { margin-inline: auto; float: none; } }
Return to
Module:InfoboxLua/styles.css
.