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
 
(25 intermediate revisions by the same user not shown)
Line 11: Line 11:
border: 1px solid rgba( 0, 0, 0, 0.08 );
border: 1px solid rgba( 0, 0, 0, 0.08 );
border-radius: 8px;
border-radius: 8px;
border-color: #f8d688;
font-weight: 500;
font-weight: 500;
line-height: 1.375rem;
line-height: 1.375rem;
Line 18: Line 19:
.template-navpill-background {
.template-navpill-background {
position: absolute;
position: absolute;
inset:0;
}
}


Line 23: Line 25:
content: '';
content: '';
position: absolute;
position: absolute;
inset: 0;
background: linear-gradient(to right, #000, transparent);
background: linear-gradient(to right, #db892b9e, transparent);
transition: transform 250ms ease;
transition: transform 250ms ease;
}
}
Line 29: Line 32:
.template-navpill-background img {
.template-navpill-background img {
width: 100%;
width: 100%;
height: 50%;
height: 100%;
object-fit: fill;
object-fit: cover;
transition: 150ms cubic-bezier( 0.215, 0.61, 0.355, 1 );
transition: 150ms cubic-bezier( 0.215, 0.61, 0.355, 1 );
transition-property: transform;
transition-property: transform;
Line 54: Line 57:


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



Latest revision as of 02:59, 29 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;
    border-color: #f8d688;
    font-weight: 500;
    line-height: 1.375rem;
    overflow: hidden;
}

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

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

.template-navpill-background img {
	width: 100%;
	height: 100%;
	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.