mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fix race condition when loading styles within the widget
This commit is contained in:
@@ -6,5 +6,5 @@ var inIframe = function () {
|
||||
}
|
||||
};
|
||||
if (inIframe()) {
|
||||
document.body.classList.add('in-iframe');
|
||||
document.documentElement.classList.add('in-iframe');
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.in-iframe .page-header, .in-iframe .page-header-links {
|
||||
display: none;
|
||||
}
|
||||
body.in-iframe {
|
||||
.in-iframe body {
|
||||
background: white !important;
|
||||
}
|
||||
.in-iframe .main-box {
|
||||
|
||||
Reference in New Issue
Block a user