Template:NBox/styles.css: Difference between revisions
From Bulbagarden Archives
Jump to navigationJump to search
Tag: Undo |
No edit summary |
||
Line 30: | Line 30: | ||
@media (max-width:800px) { | @media (max-width:800px) { | ||
.nbox { | .nbox { | ||
margin: | margin: 10px 5px; | ||
} | } | ||
} | } |
Latest revision as of 23:21, 5 January 2025
.nbox { box-sizing: border-box; margin: 0.5em auto 1em auto; padding: 0.5em 1em; display: grid; grid-template-columns: 60px 1fr; align-content: center; border-radius: 10px; margin-bottom: 3px; } .nboximage { width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; border-radius: 60px; } .nboxtitle { margin-left: 0.5em; padding-bottom: 5px; } .nboxtext { margin-left: 0.5em; } @media (max-width:800px) { .nbox { margin: 10px 5px; } } @media (min-width:801px) { .nbox { width: 80%; } } @media (min-width:2000px) { .nbox { width: 60%; } }