iframe.css 839 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) Jupyter Development Team.
  3. | Distributed under the terms of the Modified BSD License.
  4. |----------------------------------------------------------------------------*/
  5. .jp-IFrame {
  6. width: 100%;
  7. height: 100%;
  8. }
  9. .jp-IFrame > iframe {
  10. border: none;
  11. }
  12. /*
  13. When drag events occur, `p-mod-override-cursor` is added to the body.
  14. Because iframes steal all cursor events, the following two rules are necessary
  15. to suppress pointer events while resize drags are occuring. There may be a
  16. better solution to this problem.
  17. */
  18. body.p-mod-override-cursor .jp-IFrame {
  19. position: relative;
  20. }
  21. body.p-mod-override-cursor .jp-IFrame:before {
  22. content: '';
  23. position: absolute;
  24. top: 0;
  25. left: 0;
  26. right: 0;
  27. bottom: 0;
  28. background: transparent;
  29. }