Template:Main Page navigation/styles.css: Difference between revisions

Template page
Content added Content deleted
No edit summary
(moving navbutton css to navbutton)
 
(4 intermediate revisions by the same user not shown)
Line 15: Line 15:
overflow-x: scroll;
overflow-x: scroll;
}
}
}

/*
* Citizen skin
*/
body.skin-citizen .mp-nav-button {
background-color: var(--color-surface-2);
border: 1px solid var(--color-surface-3);
border-radius: var(--border-radius--medium);
}

body.skin-citizen .mp-nav-button:hover {
background-color: var(--color-surface-3);
border: 1px solid var(--color-surface-4);
transition: 0.15s ease-in-out;
}

body.skin-citizen .mp-nav-button a {
color: var(--color-base);
}
}

Latest revision as of 02:32, 6 February 2023

.mp-navigation {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(12em, auto));
}

/* 
 * Different screen sizes
 */
@media only screen and (max-width: 576px) {
	.mp-navigation {
		grid-template-columns: repeat(3, 12em) !important;
		grid-template-rows: repeat(5, 3em);
		overflow-x: scroll;
	}
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.