More actions
Created page with ".template-navpills { display: grid; gap: 0.25rem; →Example value for --space-xs: grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-auto-rows: 3rem; font-size: 0.875rem; →Example value for --font-size-small: } .template-navpill { position: relative; border: 1px solid #ccc; →Example value for --border-color-base: border-radius: 0.375rem; →Example value for --border-radius-medium: font-weight: 500; /* Exa..." |
No edit summary |
||
| Line 1: | Line 1: | ||
.template-navpills { | .template-navpills { | ||
display: grid; | display: grid; | ||
gap: 0. | gap: 0.5rem; /* Adjusted for better spacing */ | ||
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); | grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); | ||
grid-auto-rows: 3rem; | grid-auto-rows: 3rem; | ||
font-size: | font-size: 1rem; /* Slightly increased for better visibility */ | ||
} | } | ||
.template-navpill { | .template-navpill { | ||
position: relative; | position: relative; | ||
border: 1px solid # | border: 1px solid #444; /* A lighter border to increase visibility */ | ||
border-radius: 0. | border-radius: 0.5rem; /* Adjusted for a softer look */ | ||
font-weight: | font-weight: 600; /* Bold text for better readability */ | ||
line-height: 1. | line-height: 1.5; /* Improved line-height for text */ | ||
overflow: hidden; | overflow: hidden; | ||
background-color: #121212; /* Dark background for contrast */ | |||
} | } | ||
| Line 33: | Line 34: | ||
height: 100%; | height: 100%; | ||
object-fit: cover; | object-fit: cover; | ||
transition: transform 250ms ease; | transition: transform 250ms ease; | ||
transition-property: transform; | transition-property: transform; | ||
} | } | ||
| Line 47: | Line 48: | ||
.template-navpill > a { | .template-navpill > a { | ||
position: relative; | position: relative; | ||
padding: 0 | padding: 0 1.5rem; /* Increased padding for better spacing */ | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
color: # | color: #fff; /* Bright text for strong contrast */ | ||
text-decoration: none; | text-decoration: none; | ||
height: 100%; | height: 100%; | ||
justify-content: center; /* Centers text horizontally */ | |||
} | } | ||
| Line 61: | Line 63: | ||
.template-navpill:hover { | .template-navpill:hover { | ||
background: # | background: #1e1e1e; /* Slightly lighter background on hover */ | ||
} | } | ||
.template-navpill:active { | .template-navpill:active { | ||
background: # | background: #2a2a2a; /* Subtle darkening on active state */ | ||
} | } | ||
Revision as of 07:07, 4 December 2024
.template-navpills {
display: grid;
gap: 0.5rem; /* Adjusted for better spacing */
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
grid-auto-rows: 3rem;
font-size: 1rem; /* Slightly increased for better visibility */
}
.template-navpill {
position: relative;
border: 1px solid #444; /* A lighter border to increase visibility */
border-radius: 0.5rem; /* Adjusted for a softer look */
font-weight: 600; /* Bold text for better readability */
line-height: 1.5; /* Improved line-height for text */
overflow: hidden;
background-color: #121212; /* Dark background for contrast */
}
.template-navpill-background {
position: absolute;
inset: 0;
}
.template-navpill-background:after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(to right, #000, transparent);
transition: transform 250ms ease;
}
.template-navpill-background img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 250ms ease;
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 1.5rem; /* Increased padding for better spacing */
display: flex;
align-items: center;
color: #fff; /* Bright text for strong contrast */
text-decoration: none;
height: 100%;
justify-content: center; /* Centers text horizontally */
}
.template-navpill > .template-navpill-background + a {
color: #fff;
text-shadow: -1px 0 0.2em #000, 0 1px 0.2em #000, 1px 0 0.2em #000, 0 -1px 0.2em #000;
}
.template-navpill:hover {
background: #1e1e1e; /* Slightly lighter background on hover */
}
.template-navpill:active {
background: #2a2a2a; /* Subtle darkening on active state */
}