User:SnorlaxMonster/Infobox/styles.css: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Created page with ".common-infobox { padding: 4px; display: flex; flex-direction: column; gap: 4px; border-radius: 10px; border: 3px solid rgba(0, 0, 0, 0.35); } @media all and (min-width:720px) { .common-infobox { float: right; width: 400px; } } @media all and (max-width:719px) { .common-infobox { width: auto; } } .common-infobox-title-tall { padding: 3px; text-align: center; background-color: rgba(255, 255, 255, 0.35); border-radius: 10px; } .c...") |
(SnorlaxMonster changed the content model of the page User:SnorlaxMonster/Infobox/styles.css from "CSS" to "Sanitized CSS") Tag: content model change |
(No difference)
|
Revision as of 05:22, 11 March 2024
.common-infobox { padding: 4px; display: flex; flex-direction: column; gap: 4px; border-radius: 10px; border: 3px solid rgba(0, 0, 0, 0.35); } @media all and (min-width:720px) { .common-infobox { float: right; width: 400px; } } @media all and (max-width:719px) { .common-infobox { width: auto; } } .common-infobox-title-tall { padding: 3px; text-align: center; background-color: rgba(255, 255, 255, 0.35); border-radius: 10px; } .common-infobox-title-compact { padding: 3px; text-align: center; background-color: rgba(255, 255, 255, 0.35); border-radius: 10px; display: grid; grid-template-columns: 2fr 1fr; align-items: center; } .common-infobox-title-en { font-size: large; font-weight: bold; grid-row: span 2; } .common-infobox-title-ja { font-size: smaller; font-weight: bold; } .common-infobox-title-trans { font-size: smaller; font-style: italic; } .common-infobox-image { text-align: center; background-color: #FFF; padding-top: 5px; padding-bottom: 2px; border-radius: 10px; } .common-infobox-image-caption { font-size: smaller; } .common-infobox table { /* Undo Minerva table styling */ display: table; border-collapse: separate; margin: unset; } .common-infobox table caption { margin: 0px 20px; text-align: center; color: #FFF; font-weight: bold; background-color: rgba(0, 0, 0, 0.35); border-top-left-radius: 10px; border-top-right-radius: 10px; } .common-infobox table th { padding: 1px; background-color: rgba(255, 255, 255, 0.35); text-align: right; width: 50%; } .common-infobox table td { padding: 1px; background-color: #FFF; } .common-infobox table tr:first-child th:first-child { border-top-left-radius: 5px; } .common-infobox table tr:first-child td:last-child { border-top-right-radius: 5px; } .common-infobox table tr:last-child th:first-child { border-bottom-left-radius: 5px; } .common-infobox table tr:last-child td:last-child { border-bottom-right-radius: 5px; }