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

Module:Navpills/styles.css: Difference between revisions

From AoM Retold
Content deleted Content added
No edit summary
No edit summary
Line 28: Line 28:


.template-navpill-background img {
.template-navpill-background img {
width: 80%;
width: 130%;
height: 50%;
height: 50%;
object-fit: cover;
object-fit: cover;

Revision as of 01:29, 4 October 2024

.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, #000000, transparent);
    transition: transform 250ms ease;
}

.template-navpill-background img {
	width: 130%;
	height: 50%;
	object-fit: cover;
	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: #ffffff;
	text-shadow: -1px 0 .2em #000000, 0 1px .2em #000000, 1px 0 .2em #000000, 0 -1px .2em #000000;
}

.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.