Template: Blog post/tile.css

No edit summary
No edit summary
Line 18: Line 18:
.blog-post-tile.featured {
.blog-post-tile.featured {
max-width: 415px;
max-width: 415px;
background-color: #ef0000;
background-color: #efefef;
box-shadow: 0 0 15px 4px #ccc;
box-shadow: 0 0 15px 4px #ccc;
}
}

Revision as of 08:27, 21 June 2021

.blog-post-tiles {
    display: flex;
    flex-wrap: wrap;
}
.blog-post-tile {
    flex: 1;
    text-align: left;
    max-width: 270px;
    margin: 0 30px 30px 0;
}
.blog-post-tile .image a {
    display: block;
    position: relative;
    height: 200px;
    width: 270px;
    overflow: hidden;
}
.blog-post-tile.featured {
	max-width: 415px;
	background-color: #efefef;
	box-shadow: 0 0 15px 4px #ccc;
}
.blog-post-tile.featured .image a {
    width: 415px;
}
@media screen and ( max-width: 750px ) {
	.blog-post-tiles {
		display: block;
	}
	.blog-post-tile,
	.blog-post-tile.featured {
		max-width: 100%;
		margin: 1em auto;
	}
	.blog-post-tile .image a,
	.blog-post-tile.featured .image a {
	    width: 100%;
	}
}
.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