Toggle menu
30
52
1
249
OneSkyVed's Trolleybuses Place Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
TrP Tools logo Groups Shifts Tools Dashboard Wiki

Module:Navpills/styles.css

From OneSkyVed's Trolleybuses Place Wiki
Revision as of 06:43, 4 December 2024 by TickoGrey (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.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; /* Example value for --font-weight-medium */
    line-height: 1.25; /* Example value for --line-height-sm */
    overflow: hidden;
}

.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; /* Example value for --transition-hover */
    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; /* Example value for --space-md */
    display: flex;
    align-items: center;
    color: #333; /* Example value for --color-emphasized */
    text-decoration: none;
    height: 100%;
}

.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: #f0f0f0; /* Example value for --background-color-button-quiet--hover */
}

.template-navpill:active {
    background: #e0e0e0; /* Example value for --background-color-button-quiet--active */
}