Template:LinkTile/styles.css
Template page
More actions
/* 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;
}