Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Navpills/styles.css

From AoM Retold
Revision as of 01:03, 4 October 2024 by Adam (talk | contribs)
.template-navpills {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
    grid-auto-rows: 3rem;
    font-size: 0.875rem;
}

.template-navpill {
	position: relative;
	border: 1px solid rgba( 0, 0, 0, 0.08 );
    border-radius: 8px;
    font-weight: 500;
    line-height: 1.375rem;
    overflow: hidden;
}

.template-navpill-background {
	position: absolute;
}

.template-navpill-background:after {
	content: '';
    position: absolute;
    background: linear-gradient(to right, #000, transparent);
    transition: transform 250ms ease;
}

.template-navpill-background img {
	width: 100%;
	height: 100%;
	object-fit: fill;
	transition: 150ms cubic-bezier( 0.215, 0.61, 0.355, 1 );
    transition-property: transform;
}

.template-navpill:hover .template-navpill-background::after {
    transform: translateX( -100% );
}

.template-navpill:hover .template-navpill-background img {
	transform: scale( 1.1 );
}

.template-navpill > a {
	position: relative;
	padding: 0 1rem;
    display: flex;
    align-items: center;
    color: var( --color-emphasized );
    text-decoration: none;
	height: 100%;
}

.template-navpill > .template-navpill-background + a {
	color: #fff;
	text-shadow: -1px 0 .2em #000, 0 1px .2em #000, 1px 0 .2em #000, 0 -1px .2em #000;
}

.template-navpill:hover {
    background: var( --background-color-button-quiet--hover );
}

.template-navpill:active {
    background: var( --background-color-button-quiet--active );
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies. We only use cookie to make the site function and save your preferences, nothing else.