« Modèle:Card/styles.css » : différence entre les versions
De ploums
Autres actions
Page créée avec « .template-navpills { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-auto-rows: 3rem; font-size: .8rem; } .template-navpill { position: relative; border: 1px solid var(--border-color-base); border-radius: .5rem; font-weight: bold; line-height: 1.375; overflow: hidden; } .template-navpill-background { position: absolute; inset: 0; } .template-navpill>.template-navpill-background+a { color... » |
Aucun résumé des modifications |
||
| (9 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
.template-navpills { | .template-navpills { | ||
display: grid; | display: grid; | ||
gap: | gap: var(--space-xs); | ||
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); | grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); | ||
grid-auto-rows: | grid-auto-rows: 6rem; | ||
font-size: | font-size: var(--font-size-small); | ||
} | } | ||
| Ligne 10 : | Ligne 10 : | ||
position: relative; | position: relative; | ||
border: 1px solid var(--border-color-base); | border: 1px solid var(--border-color-base); | ||
border-radius: | border-radius: var(--border-radius-medium); | ||
font-weight: | font-weight: var(--font-weight-medium); | ||
line-height: | line-height: var(--line-height-xx-small); | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
| Ligne 19 : | Ligne 19 : | ||
position: absolute; | position: absolute; | ||
inset: 0; | inset: 0; | ||
pointer-events: none; | |||
} | |||
.template-navpill img { | |||
transform: translate(30%, -30%); | |||
width: 100%; | |||
height: auto; | |||
float: right; | |||
} | |||
.template-navpill:hover img { | |||
transform: translate(10%, -35%) scale(.9); | |||
transition: all 300ms; | |||
} | } | ||
.template-navpill>.template-navpill-background+a { | .template-navpill>.template-navpill-background+a { | ||
color: #fff; | color: #fff; | ||
text-shadow: -1px 0 .2em # | text-shadow: -1px 0 .2em #1f1f1f, 0 1px .2em #1f1f1f, 1px 0 .2em #1f1f1f, 0 -1px .2em #1f1f1f; | ||
} | |||
.template-navpill>.template-navpill-background+a.new { | |||
color: #fff; | |||
text-shadow: -1px 0 .2em #e64234, 0 1px .2em #e64234, 1px 0 .2em #e64234, 0 -1px .2em #e64234; | |||
} | |||
.template-navpill>a { | |||
position: relative; | |||
padding: 0 var(--space-md); | |||
display: flex; | |||
align-items: center; | |||
color: var(--color-emphasized); | |||
text-decoration: none; | |||
height: 100% | |||
} | } | ||
Dernière version du 22 juillet 2025 à 12:54
.template-navpills {
display: grid;
gap: var(--space-xs);
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
grid-auto-rows: 6rem;
font-size: var(--font-size-small);
}
.template-navpill {
position: relative;
border: 1px solid var(--border-color-base);
border-radius: var(--border-radius-medium);
font-weight: var(--font-weight-medium);
line-height: var(--line-height-xx-small);
overflow: hidden;
}
.template-navpill-background {
position: absolute;
inset: 0;
pointer-events: none;
}
.template-navpill img {
transform: translate(30%, -30%);
width: 100%;
height: auto;
float: right;
}
.template-navpill:hover img {
transform: translate(10%, -35%) scale(.9);
transition: all 300ms;
}
.template-navpill>.template-navpill-background+a {
color: #fff;
text-shadow: -1px 0 .2em #1f1f1f, 0 1px .2em #1f1f1f, 1px 0 .2em #1f1f1f, 0 -1px .2em #1f1f1f;
}
.template-navpill>.template-navpill-background+a.new {
color: #fff;
text-shadow: -1px 0 .2em #e64234, 0 1px .2em #e64234, 1px 0 .2em #e64234, 0 -1px .2em #e64234;
}
.template-navpill>a {
position: relative;
padding: 0 var(--space-md);
display: flex;
align-items: center;
color: var(--color-emphasized);
text-decoration: none;
height: 100%
}