Skip to content

Commit

Permalink
Fixing learn pages article width (#399)
Browse files Browse the repository at this point in the history
* Fixing learn pages article width

* chore: remove unnecessary package

* fix different length for DA and Learn articles

---------

Co-authored-by: Norbert Berenyi <norbert@berenyi.dev>
  • Loading branch information
udvariisti and norbert-berenyi authored Sep 17, 2024
1 parent 377d82d commit af24b2b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/pages/{MarkdownRemark.frontmatter__slug}.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function Template({
<div className='resources-page'>
<main>
<div className={"container"}>
<div className='blog-post new-blog' id={"blog-post"}>
<div className={`blog-post new-blog ${enableSidebar && "learn-post"}`} id={"blog-post"}>
<div className={"inner small"}>
<h1 className={"h2"}>{frontmatter.title}</h1>

Expand Down
32 changes: 21 additions & 11 deletions src/scss/pages/page-resouces.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,36 @@
margin: auto;
max-width: 1140px;

&.new-blog{
padding:0 100px 200px 100px;
font-size:1.25rem;

&.new-blog {
padding: 0 100px 200px 100px;
//font-size: 1.25rem;
font-size: 18px;
@include media-breakpoint-down(lg) {
padding: 0 20px 100px 20px;
font-size:1em;
font-size: 1em;
}

@include media-breakpoint-down(sm) {
padding: 0 0 100px 0;
}

.h4, h4{
margin-top:50px;
.h4,
h4 {
margin-top: 50px;
}

ul{
li{
margin-bottom:10px;
ul {
li {
margin-bottom: 10px;
}
}

&.learn-post {
padding: 0 0px 200px 0px;
max-width: 1300px;

.inner.small {
max-width: 1300px;
}
}
}
Expand All @@ -67,7 +77,7 @@
margin: auto;

&.small {
max-width: 1140px;
max-width: 1300px;
margin: auto;
margin-bottom: 45px;
}
Expand Down

0 comments on commit af24b2b

Please sign in to comment.