Jump to content

User:Perryprog/Userpage layout/styles.css

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Perryprog (talk | contribs) at 20:27, 19 November 2020 (Properly center news class and add margin-top for consistency). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
.grid-container {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-rows: auto;
	gap: 10px 10px;
	margin-top: 10px; /* For consistency with other elements above */
	grid-template-areas:
    ". ub1 ub2 ."
    ". news news .";
    justify-items: center;
}

@media (max-width: 720px) {
	.grid-container {
		grid-template-areas:
		"ub1"
		"ub2"
		"news";
	}
}

.ub1 { grid-area: ub1; }

.ub2 { grid-area: ub2; }

.news {
	grid-area: news;
}

.news > .vertical-navbox {
	/* Nessessary as we are overriding inline styles */
	float: none !important;
	margin: initial !important;
}