Skip to content

Commit

Permalink
WP Frontend: Use smaller padding when embedded by another window
Browse files Browse the repository at this point in the history
  • Loading branch information
Pookie717 committed Dec 2, 2022
1 parent 8aca439 commit b93ec60
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/wordpress-wasm/wordpress.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
padding: 55px 60px;
}

.is-embedded .fake-window-wrapper {
padding: 15px;
}

.fake-window {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -300,6 +304,9 @@
</style>
</head>
<body class="is-loading">
<script>
if (window.top!=window.self) document.body.classList.add('is-embedded');
</script>

<div id="test-snippets"></div>

Expand Down

0 comments on commit b93ec60

Please sign in to comment.