fix: prevent external CSS from breaking Cal.com embed (#22778)
* fix: added block display to .cal-embed * fixed the iframe color-scheme to unset and bg transparent * removed forced CSS * changes reverted from iframe * Add comments and remove background transparent as it is still not needed --------- Co-authored-by: Anik Dhabal Babu <[email protected]> Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
1 file changed
+5
@@ -6,4 +6,9 @@
|
|||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
/**
|
||||||
|
* Following properties are added to ensure that the embedding page isn't able to affect these properties
|
||||||
|
*/
|
||||||
|
display: block !important; /* A website made all iframes' display flex breaking the embed */
|
||||||
|
color-scheme: unset !important; /* A website had explicitly set color-scheme to something for all iframes */
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user