Skip to content

Commit

Permalink
Position GlobalNotice absolutely so content isn't pushed down
Browse files Browse the repository at this point in the history
See #5
  • Loading branch information
iandunn committed Feb 6, 2023
1 parent db6b456 commit 00a7507
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
5 changes: 4 additions & 1 deletion settings/src/components/global-notice.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.wporg-2fa__global-notice {
margin-bottom: 20px;
position: absolute;
top: -60px;
right: 0;
z-index: 2;

&.components-snackbar,
.components-snackbar__content {
Expand Down
16 changes: 10 additions & 6 deletions settings/src/style.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
@import '~@wordpress/base-styles/colors';

.wp-block-wporg-two-factor-settings h3 {
font-size: 14px;
clear: none;
}
.wp-block-wporg-two-factor-settings {
position: relative;

.wp-block-wporg-two-factor-settings .components-button {
margin-right: 20px;
h3 {
font-size: 14px;
clear: none;
}

.components-button {
margin-right: 20px;
}
}

.wporg-2fa__navigation {
Expand Down

0 comments on commit 00a7507

Please sign in to comment.