Template:NavCard/styles.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
background: #20242b; | background: #20242b; | ||
color: #f5f5f5; | color: #f5f5f5; | ||
transition: border-color 0.2s ease, transform 0.2s ease; | transition: border-color 0.2s ease, | ||
transform 0.2s ease; | |||
} | } | ||
| Line 17: | Line 18: | ||
} | } | ||
.lumi-navcard-image | .lumi-navcard-image { | ||
width: 100%; | |||
aspect-ratio: 16 / 9; | aspect-ratio: 16 / 9; | ||
overflow: hidden; | |||
background: #303640; | background: #303640; | ||
} | } | ||
.lumi-navcard-image { | .lumi-navcard-image a { | ||
display: block; | |||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
} | } | ||
.lumi-navcard-img { | .lumi-navcard-image img { | ||
display: block; | |||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
| Line 61: | Line 64: | ||
margin-top: auto; | margin-top: auto; | ||
padding-top: 12px; | padding-top: 12px; | ||
font-size: 0.8em; | |||
font-weight: 700; | |||
} | } | ||
.lumi-navcard-link a { | .lumi-navcard-link a { | ||
color: #36a9d6; | color: #36a9d6; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
Revision as of 18:47, 13 November 2026
.lumi-navcard {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
border: 1px solid #444;
border-radius: 8px;
background: #20242b;
color: #f5f5f5;
transition: border-color 0.2s ease,
transform 0.2s ease;
}
.lumi-navcard:hover {
border-color: #36a9d6;
transform: translateY(-3px);
}
.lumi-navcard-image {
width: 100%;
aspect-ratio: 16 / 9;
overflow: hidden;
background: #303640;
}
.lumi-navcard-image a {
display: block;
width: 100%;
height: 100%;
}
.lumi-navcard-image img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.lumi-navcard-content {
display: flex;
flex-direction: column;
flex-grow: 1;
padding: 16px;
gap: 8px;
}
.lumi-navcard-title {
font-size: 1.15em;
font-weight: 700;
}
.lumi-navcard-title a {
color: #f5f5f5;
text-decoration: none;
}
.lumi-navcard-description {
color: #b9c0c9;
font-size: 0.9em;
}
.lumi-navcard-link {
margin-top: auto;
padding-top: 12px;
font-size: 0.8em;
font-weight: 700;
}
.lumi-navcard-link a {
color: #36a9d6;
text-decoration: none;
}