Skip to content

Commit

Permalink
Improve the width of outside regions for better responsiveness on sma…
Browse files Browse the repository at this point in the history
…ller screens.
  • Loading branch information
prasanna-lmsace committed Feb 6, 2025
1 parent b44519b commit dcc39d4
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions scss/boost_union/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ body.theme-boost-union-commincourse {
#page .main-inner-outside-left-right .main-inner,
#page .main-inner-outside-left .main-inner,
#page .main-inner-outside-right .main-inner {
max-width: 100%; /* This width makes the content fully expand in responsive view. */
width: auto;
}
}
Expand Down Expand Up @@ -888,9 +889,11 @@ body.theme-boost-union-commincourse {
@include media-breakpoint-only(lg) {
/* Reduced the left region block to maximum width, so the center main content & right block region
align nearer to the left block region */
#theme-block-region-outside-left,
#theme-block-region-outside-right {
max-width: 300px;
.main-inner-outside-left-right {
#theme-block-region-outside-left,
#theme-block-region-outside-right {
max-width: 200px;
}
}

/* Use possible width for the main content */
Expand Down Expand Up @@ -931,10 +934,23 @@ body.theme-boost-union-commincourse {
align-items: center;
}
}
/* Removed the padding on left and right side of the main region content */
body.limitedwidth #page.drawers .main-inner-wrapper .main-inner {
padding-left: 0;
padding-right: 0;
/* Removed the left and right padding from the main content region. */
body.limitedwidth #page.drawers .main-inner-wrapper {
.main-inner {
padding: 0;
margin-bottom: 0;
.header-maxwidth,
div[role="main"] {
padding-left: 0;
padding-right: 0;
padding-bottom: 0;
margin-bottom: 0;
}
}
/* Removed the bottom margin of the right region block. */
#theme-block-region-outside-right {
margin-bottom: 3rem;
}
}
}

Expand All @@ -943,7 +959,7 @@ body.theme-boost-union-commincourse {
/* Padding has been added to the center region block, which contains the left and right regions,
as well as the main content region, to create space between the main content and the window screen. */
body.limitedwidth #page.drawers .main-inner-wrapper {
padding: 0 15px;
padding: 15px;
}
}

Expand Down Expand Up @@ -994,7 +1010,7 @@ body.theme-boost-union-commincourse {
}

/* Additional styling for content width regions to limit the block region size on Moodle pages with limited width. */
body.limitedwidth #theme-block-region-outside-top.theme-block-region-outside-coursecontentwidth,
body.limitedwidth .theme-block-region-outside-coursecontentwidth,
body.limitedwidth .theme-block-region-footer-coursecontentwidth {
max-width: $course-content-maxwidth;
}
Expand Down

0 comments on commit dcc39d4

Please sign in to comment.