Template:NBox/styles.css: Difference between revisions

From Bulbagarden Archives
Jump to navigationJump to search
(Created page with ".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:600px) { .nbox { margin: auto; } } @...")
 
mNo edit summary
Line 28: Line 28:
}
}


@media (max-width:600px) {
@media (max-width:800px) {
.nbox {
.nbox {
margin: auto;
margin: auto;
Line 34: Line 34:
}
}


@media (min-width:601px) {
@media (min-width:801px) {
.nbox {
.nbox {
width: 80%;
width: 80%;

Revision as of 22:46, 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: auto;
}
}

@media (min-width:801px) {
.nbox {
width: 80%;
}
}

@media (min-width:2000px) {
.nbox {
width: 60%;
}
}