More actions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
.template-navpill-background img { |
.template-navpill-background img { |
||
width: |
width: 400px; |
||
height: |
height: 30%; |
||
object-fit: fill; |
object-fit: fill; |
||
transition: 150ms cubic-bezier( 0.215, 0.61, 0.355, 1 ); |
transition: 150ms cubic-bezier( 0.215, 0.61, 0.355, 1 ); |
Revision as of 01:06, 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, #000, transparent);
transition: transform 250ms ease;
}
.template-navpill-background img {
width: 400px;
height: 30%;
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 );
}