Skip to content

Commit

Permalink
Fix blog page responsive design to work with larger screens
Browse files Browse the repository at this point in the history
  • Loading branch information
RAbeyrathna committed Nov 9, 2023
1 parent 535f615 commit e63a529
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
19 changes: 16 additions & 3 deletions styles/breakpoints/_blog-breakpoints.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
@import "../defaults/colors";

@media only screen and (min-width: 1700px) {
body{
.section-wrapper{
margin-bottom: 25%;
}
}
}


/* Larger Desktop Screens Styling */
@media only screen and (min-width: 1200px) {
@media only screen and (max-width: 1700px) {
body{
.section-wrapper{
margin-bottom: 8%;
}
.blog-post{
min-height: 20vh;
height: 60vh;
Expand Down Expand Up @@ -123,7 +135,6 @@
height: 100%;
.blog-heading{
font-size: 1.2em;
padding: 0px;
margin: 0;
height: 10%;
}
Expand All @@ -133,7 +144,7 @@
.blog-description{
padding: 0%;
font-size: .85em;
height: 40%;
height: 60%;
}
}
}
Expand All @@ -146,6 +157,7 @@
margin:0;
height: 100%;
padding-top: 20px;
padding: 10px 10px;
}
}
}
Expand Down Expand Up @@ -186,6 +198,7 @@
padding: 0;
padding-top: 20px;
height: 30%;
padding-right: 10px;
.blog-heading{
font-size: 1.1em;
padding: 0px;
Expand Down
15 changes: 12 additions & 3 deletions styles/pages/blog.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@ body, form, fieldset, ol, ul, li, h1, h2, h3, h4, h5, h6, p {
font-weight: 500;
}

@media only screen and (min-width: 1700px) {
body .section-wrapper {
margin-bottom: 25%;
}
}
/* Larger Desktop Screens Styling */
@media only screen and (min-width: 1200px) {
@media only screen and (max-width: 1700px) {
body .section-wrapper {
margin-bottom: 8%;
}
body .blog-post {
min-height: 20vh;
height: 60vh;
Expand Down Expand Up @@ -120,7 +128,6 @@ body, form, fieldset, ol, ul, li, h1, h2, h3, h4, h5, h6, p {
}
body .blog-post .blog-content .blog-heading {
font-size: 1.2em;
padding: 0px;
margin: 0;
height: 10%;
}
Expand All @@ -130,7 +137,7 @@ body, form, fieldset, ol, ul, li, h1, h2, h3, h4, h5, h6, p {
body .blog-post .blog-content .blog-description {
padding: 0%;
font-size: 0.85em;
height: 40%;
height: 60%;
}
body .single {
margin-bottom: 20px;
Expand All @@ -143,6 +150,7 @@ body, form, fieldset, ol, ul, li, h1, h2, h3, h4, h5, h6, p {
margin: 0;
height: 100%;
padding-top: 20px;
padding: 10px 10px;
}
}
/* Phone to Tablet Styles */
Expand Down Expand Up @@ -179,6 +187,7 @@ body, form, fieldset, ol, ul, li, h1, h2, h3, h4, h5, h6, p {
padding: 0;
padding-top: 20px;
height: 30%;
padding-right: 10px;
}
body .blog-post .blog-content .blog-heading {
font-size: 1.1em;
Expand Down

0 comments on commit e63a529

Please sign in to comment.