จากวิกิพีเดีย สารานุกรมเสรี
.wp-container {
width: 100%;
overflow: hidden;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Thonburi, 'SF Thonburi', Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.wp-container * {
box-sizing: border-box;
}
.wp-hero {
display: block;
position: relative;
height: 500px;
width: 100%;
overflow: hidden;
}
.wp-hero img {
position: absolute;
width: 110%;
height: auto;
z-index: -1;
}
.wp-hero .wp-hero-title {
font-size: 3.5rem;
color: #fff;
}
.wp-hero .wp-hero-content {
max-width: 500px;
position: absolute;
bottom: 2rem;
padding: 2rem;
left: 0;
color: #fff;
}
.wp-hero .wp-hero-content a {
text-decoration: none;
color: #fff;
}
.wp-content .wp-article {
display: flex;
flex-direction: row-reverse;
}
.wp-content .wp-article.text-left {
flex-direction: row;
}
.wp-content .wp-article .wp-article-text {
flex: 40%;
padding: 1.5rem 1rem 1rem 1rem;
max-width: 300px;
resize: horizontal;
}
.wp-content .wp-article .wp-article-image {
flex: auto;
overflow: hidden;
position: relative;
color: #fff;
}
.wp-content .wp-article .wp-article-image em {
z-index: 2;
font-size: 1.5rem;
line-height: 1.5em;
display: inline-block;
}
.wp-content .wp-article .wp-article-image strong {
z-index: 2;
font-size: 2.5rem;
line-height: 1.3em;
display: block;
}
.wp-content .wp-article .wp-article-titles {
position: absolute;
bottom: 2rem;
left: 1.5rem;
}
.wp-content .wp-article .wp-article-image > a {
position: absolute;
height: 100%;
}
.wp-content .wp-article .wp-article-image img {
height: 100%;
width: auto;
min-width: 534px;
}
.wp-content .wp-article .wp-article-text span:last-child {
display: block;
text-align: right;
margin-top: .2rem;
font-weight: bold;
}
/* Small devices (phones, 768px and down) */
@media only screen and (max-width: 768px) {
.wp-hero .wp-hero-content {
width: 100%;
max-width: none;
}
.wp-hero img {
width: auto;
height: 100%;
}
.wp-content .wp-article, .wp-content .wp-article.text-left {
flex-direction: column-reverse;
}
.wp-content .wp-article .wp-article-text {
flex: auto;
padding: .5rem 1.5rem;
max-width: none;
}
.wp-content .wp-article .wp-article-image {
flex: auto;
overflow: hidden;
position: relative;
color: #fff;
height: 300px;
}
.wp-content .wp-article .wp-article-image > a {
position: absolute;
height: 100%;
}
.wp-content .wp-article .wp-article-image img {
height: auto;
max-width: none;
width: 100%;
min-width: 585px;
}
}