Skip to content

Commit

Permalink
Fix hosting dashboard style bleed, breaking my home layout, etc. (#92559
Browse files Browse the repository at this point in the history
)

* add specificity to generic dashboard styles

* restrict this to the dashboard and overview areas
  • Loading branch information
Addison-Stavlo authored and pull[bot] committed Aug 2, 2024
1 parent 63003bf commit 5198955
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions client/hosting/sites/components/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1118,16 +1118,21 @@
}
}

/* See wp-calypso/client/layout/style.scss for the original style - this is removed on sites dashboard to enable pagination to display properly. */
.layout__primary .preview-hidden {
@include breakpoint-deprecated( ">960px" ) {
padding-bottom: 0 !important;
// Styles need to ensure they do not bleed into other areas of calypso once loaded.
// If we only apply to layout__primary, etc., we will have bleed going from the dashboard to site level calypso.
.is-global-sidebar-visible.is-group-sites-dashboard,
.is-global-sidebar-visible.is-group-sites {
/* See wp-calypso/client/layout/style.scss for the original style - this is removed on sites dashboard to enable pagination to display properly. */
.layout__primary .preview-hidden {
@include breakpoint-deprecated( ">960px" ) {
padding-bottom: 0 !important;
}
}
}

.layout__content {
@include breakpoint-deprecated( "<960px" ) {
padding: 70px 24px 24px calc(var(--sidebar-width-min) + 1px);
.layout__content {
@include breakpoint-deprecated( "<960px" ) {
padding: 70px 24px 24px calc(var(--sidebar-width-min) + 1px);
}
}
}

0 comments on commit 5198955

Please sign in to comment.