Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JITMs: Fix styling to work better with a popular plugin, take 2 #10840

Merged
merged 3 commits into from
Dec 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions scss/jetpack-admin-jitm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,12 @@
}
}

// if JITM appears directly below WordPress "help" menu adjust margins
#screen-meta-links+.jitm-card {
margin: rem( 40px ) 1.5385em 0 auto;
}

.jitm-card {
display: block;
clear: both;
position: relative;
margin: rem( 16px ) 0 0 auto;
margin: rem( 48px ) rem( 20px ) 0 auto;
padding: rem( 16px );
box-sizing: border-box;
background: $white;
Expand Down Expand Up @@ -149,6 +146,16 @@
}
}

// if JITM appears directly below WordPress "help" menu adjust margins
#screen-meta-links+.jitm-card {
margin: rem( 40px ) 1.5385em 0 auto;
}

// if JITM appears directly below WordPress hello dolly adjust margins
#dolly+.jitm-card {
margin: 3rem 1rem 0 auto;
}

// remove right margin for jitms in the editor
.post-php .jitm-card {
margin-right: 0;
Expand Down