Omphaloskepsis-2/assets/css/components/_item-tile.scss

117 lines
1.9 KiB
SCSS

.link--tile {
text-decoration: none;
box-sizing: border-box;
border: 2px solid transparent;
&:hover {
border-color: $dark;
& .item-tile__title-wrapper {
opacity: 1;
}
}
}
.site-container--section .item-tile.lazy {
background-image: none !important;
}
.item-tile {
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
block-size: 15em;
border: 2px solid $dark;
align-content: center;
position: relative;
@media (prefers-reduced-data: reduce) {
background: none !important;
}
&__series {
margin-block: 0 1em;
margin-inline: auto;
font-size: 1.2em;
top: 0;
}
&__title-wrapper {
display: flex;
flex-direction: column;
background-color: $dark;
opacity: 0.9;
text-align: center;
margin: auto;
width: 80%;
margin-block: auto;
}
&--ohwhatohjeez {
border: 2px solid $ohwhatohjeez;
}
&--oldphaloskepsis {
border: 2px solid $oldphaloskepsis;
}
&--omphaloskepsis {
border: 2px solid $omphaloskepsis;
}
&--heading {
text-align: center;
background-color: $dark;
& .item-tile__header {
font-size: 3em;
}
}
&__banner {
padding-inline: 0.75em;
grid-area: banner;
inline-size: auto;
margin-inline: auto;
border-start-start-radius: 0;
border-start-end-radius: 0;
border-end-end-radius: 10px;
border-end-start-radius: 10px;
text-align: center;
text-decoration: none !important;
line-height: 1.8em;
background-color: #ebebeb;
}
& hgroup {
padding: 1em 0.5em;
& > * {
margin: 0.25lh;
}
}
&__title,
&__subtitle {
color: $light;
margin: 0;
font-weight: normal;
}
&__title {
font-size: 1.4em;
line-height: 1em;
grid-area: tile-title;
align-self: center;
&--long {
font-size: 1em;
}
}
&__subtitle {
font-size: 1em;
grid-area: tile-subtitle;
align-self: start;
}
}