Template: Blog post/tile.css

No edit summary
No edit summary
Line 6: Line 6:
     flex: 1;
     flex: 1;
     text-align: center;
     text-align: center;
     max-width: 270px;
     max-width: 285px;
     margin: 15px;
     margin: 0 15px 30px 0;
}
}
.blog-post-tile .image a {
.blog-post-tile .image a {
display: block;
display: block;
position: relative;
position: relative;
     height: 270px;
     height: 200px;
     width: 270px;
     width: 285px;
     overflow: hidden;
     overflow: hidden;
}
}
.blog-post-tile.featured {
.blog-post-tile.featured {
max-width: 440px;
max-width: 430px;
background-color: #fff7e5;
background-color: #fff7e5;
}
}
.blog-post-tile.featured .image a {
.blog-post-tile.featured .image a {
     width: 440px;
     width: 430px;
}
}
.blog-post-tile .image a img {
.blog-post-tile .image a img {

Revision as of 07:22, 20 May 2021

.blog-post-tiles {
    display: flex;
    flex-wrap: wrap;
}
.blog-post-tile {
    flex: 1;
    text-align: center;
    max-width: 285px;
    margin: 0 15px 30px 0;
}
.blog-post-tile .image a {
	display: block;
	position: relative;
    height: 200px;
    width: 285px;
    overflow: hidden;
}
.blog-post-tile.featured {
	max-width: 430px;
	background-color: #fff7e5;
}
.blog-post-tile.featured .image a {
    width: 430px;
}
.blog-post-tile .image a img {
    display: block;
    position: absolute;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}
.blog-post-tile .title {
    font-size: larger;
}
.blog-post-tile .title a {
    color: inherit;
    font-weight: bolder;
}
.blog-post-tile .date {
    font-size: smaller;
}
.blog-post-tile .description {
    text-align: left;
}
Discuss this page