Unexpected padding on front page of logged users when Google Site Kit installed
-
When Site Kit by Google plugin installed, there would be unexpected padding to
div.mdc-layout-grid
on front pages(contact form 7 widget embeded) of logined users(there is a admin bar stay on top of their front pages). And it was caused by CSS variables like--mdc-layout-grid-margin-desktop
.Check out screenshots on Imgur
I inspected the css code and found css these variables were all activated.
:root { --mdc-layout-grid-margin-desktop: 24px; --mdc-layout-grid-gutter-desktop: 24px; --mdc-layout-grid-column-width-desktop: 72px; --mdc-layout-grid-margin-tablet: 16px; --mdc-layout-grid-gutter-tablet: 16px; --mdc-layout-grid-column-width-tablet: 72px; --mdc-layout-grid-margin-phone: 16px; --mdc-layout-grid-gutter-phone: 16px; --mdc-layout-grid-column-width-phone: 72px; }
I was frustrated with this for a long time and finally found the reason. How can we fix this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Unexpected padding on front page of logged users when Google Site Kit installed’ is closed to new replies.