Skip to content

Commit

Permalink
Merge pull request #6904 from Automattic/fix/learning-mode-premium-te…
Browse files Browse the repository at this point in the history
…mplate-mobile-lateral-padding

Fix learning mode premium template mobile lateral spacing in mobile view
  • Loading branch information
Imran92 committed May 22, 2023
2 parents 29efe1a + c59e1c8 commit fb9349c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions assets/css/sensei-course-theme/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ body {
color: var(--sensei-background-color);
}

.sensei-course-theme__main-content {
padding: 0 24px;
.wp-site-blocks {
padding: 0 var(--content-padding);
}

.sensei-course-theme__main-content {
> * {
max-width: var(--content-size) !important;
margin-left: auto;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/sensei-course-theme/mobile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $breakpoint: 783px;
}


@at-root :root:has(.admin-bar) {
@at-root :root:has(.admin-bar) .sensei-course-theme__sidebar {
// When the admin bar is present, something is applying and extra spacing that is messing the padding calculate, so it require cut the padding by half.
--content-padding: 12px;
}
Expand Down

0 comments on commit fb9349c

Please sign in to comment.