Skip to content

Commit

Permalink
remove max-width and padding for embed, giving control to parent page
Browse files Browse the repository at this point in the history
* part of #322
  • Loading branch information
Aprillion committed Sep 23, 2023
1 parent c077070 commit 1d10957
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/root.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ html {

html.embed {
background: transparent;
padding: var(--paddingSides) 0;
padding: 2px; /* search box outline */
overflow: hidden; /* change height of iframe to avoid nested scroll, see embed-example.html */
}

Expand All @@ -84,6 +84,11 @@ body {
line-height: 1.5;
}

html.embed body {
max-width: unset;
padding: 0;
}

body > div:last-of-type {
min-height: 1px;
}
Expand Down

0 comments on commit 1d10957

Please sign in to comment.