Skip to content

Commit

Permalink
Fix News Item and Link content type (#15&#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
iRohitSingh committed Jul 15, 2023
1 parent 459e497 commit e81ef07
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/19.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix News Item and Link content type @iRohitSingh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ const NewsItemView = ({ content }) => {
) : (
<span className="day">No date</span>
)}{' '}
<span className="headtitle">| {content?.head_title}</span>
<span className="headtitle">
<span className="pre-headtitle">|</span> {content?.head_title}
</span>
</div>
<RenderBlocks content={content} />
</div>
Expand Down
53 changes: 52 additions & 1 deletion src/theme/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
.contenttype-news-item {
.documentFirstHeading {
margin-top: 0px;
@media only screen and (max-width: 769px) {
margin-bottom: 60px;
}
}
.blocks-group-wrapper {
padding-top: 0px;
Expand All @@ -19,14 +22,30 @@
margin-right: auto;
margin-bottom: 40px;
margin-left: auto;
@media only screen and (max-width: 769px) {
margin-bottom: 20px;
}
.day,
.headtitle {
font-size: 18px;

font-weight: 700;
letter-spacing: 1px;
line-height: 24px;
text-transform: uppercase;
@media only screen and (max-width: 769px) {
font-size: 14px;
line-height: 18px;
}
.pre-headtitle {
@media only screen and (max-width: 769px) {
display: none;
}
}
}
.day {
@media only screen and (max-width: 769px) {
display: none;
}
}
}
}
Expand Down Expand Up @@ -178,3 +197,35 @@
}
}
}

// ### link ###
.contenttype-link {
.content-area {
.container {
@media only screen and (max-width: 769px) {
padding-right: 20px;
padding-left: 20px;
}
}

.documentFirstHeading {
max-width: var(--default-container-width) !important;
margin-right: auto;
margin-left: auto;
@media only screen and (max-width: 769px) {
margin-bottom: 60px;
}
}
p.documentDescription {
margin-bottom: 40px;
@media only screen and (max-width: 769px) {
margin-bottom: 60px;
}
}
p {
max-width: var(--narrow-container-width) !important;
margin-right: auto;
margin-left: auto;
}
}
}

0 comments on commit e81ef07

Please sign in to comment.