Template:LinkTile/styles.css: Difference between revisions
Template page
More actions
m JacksonTheMaster moved page Template:Portal Tile/styles.css to Template:LinkTile/styles.css without leaving a redirect |
No edit summary |
||
| Line 23: | Line 23: | ||
.tile-icon { | .tile-icon { | ||
font-size: | font-size: 3em; | ||
line-height: 1; | line-height: 1; | ||
margin-bottom: var(--space-xs); | margin-bottom: var(--space-xs); | ||
| Line 29: | Line 29: | ||
.tile-icon img { | .tile-icon img { | ||
width: | width: 70px; | ||
height: | height: 70px; | ||
object-fit: contain; | object-fit: contain; | ||
} | } | ||
Latest revision as of 23:35, 11 March 2026
/* Template:Portal_Tile/styles.css */
.small-portal-tile {
position: relative; /* needed for tile-link overlay */
background: var(--color-surface-2);
border: 3px solid var(--accent-color-base);
border-radius: var(--border-radius-medium);
overflow: hidden;
transition: all 0.15s ease;
text-align: center;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: var(--space-sm) var(--space-xs);
}
.small-portal-tile:hover {
transform: translateY(-3px);
box-shadow: var(--box-shadow-small);
}
.tile-icon {
font-size: 3em;
line-height: 1;
margin-bottom: var(--space-xs);
}
.tile-icon img {
width: 70px;
height: 70px;
object-fit: contain;
}
.tile-title {
font-weight: bold;
color: inherit;
}
/* invisible overlay making the whole card clickable */
.tile-link {
position: absolute;
inset: 0;
display: block;
z-index: 1;
}
.small-portal-tile a {
text-decoration: none;
color: inherit;
}
.small-portal-tile p {
position: absolute;
inset: 0;
margin: 0;
font-size: 0;
line-height: 0;
}