feat: add news detail design
This commit is contained in:
@@ -7,3 +7,14 @@ a {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
}
|
||||
|
||||
figure {
|
||||
border-radius: 1rem;
|
||||
overflow: hidden;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,6 +156,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* Show header button only on desktop */
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
.news-detail__title {
|
||||
max-width: 900px;
|
||||
margin: auto;
|
||||
margin-bottom: 2rem;
|
||||
font-size: 3rem;
|
||||
text-align: left;
|
||||
|
||||
@media (min-width: $breakpoint-md) {
|
||||
font-size: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
.news-detail__main-image {
|
||||
max-width: 900px;
|
||||
margin: auto;
|
||||
margin-bottom: 2rem;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
.news-detail__teaser {
|
||||
max-width: 900px;
|
||||
margin: auto;
|
||||
margin-bottom: 2rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.news-detail__bodytext {
|
||||
max-width: 900px;
|
||||
margin: auto;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.news-detail__content-elements {
|
||||
max-width: 900px;
|
||||
margin: auto;
|
||||
|
||||
margin-bottom: 2rem;
|
||||
|
||||
.container {
|
||||
padding: 0;
|
||||
}
|
||||
> * {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.news-detail__gallery {
|
||||
margin-top: 2rem;
|
||||
|
||||
&--grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 1rem;
|
||||
|
||||
.news-detail__gallery-item {
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.news-detail__gallery--grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.news-detail__gallery--grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user