_iframe.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. body.iframe-mode {
  2. .main-sidebar {
  3. display: none;
  4. }
  5. .content-wrapper {
  6. margin-left: 0 !important;
  7. margin-top: 0 !important;
  8. padding-bottom: 0 !important;
  9. }
  10. .main-header,
  11. .main-footer {
  12. display: none;
  13. }
  14. }
  15. body.iframe-mode-fullscreen {
  16. overflow: hidden;
  17. }
  18. .content-wrapper {
  19. height: 100%;
  20. &.iframe-mode {
  21. .navbar-nav {
  22. overflow-y: auto;
  23. width: 100%;
  24. .nav-link {
  25. white-space: nowrap;
  26. }
  27. }
  28. .tab-content {
  29. position: relative;
  30. }
  31. .tab-pane + .tab-empty {
  32. display: none;
  33. }
  34. .tab-empty {
  35. width: 100%;
  36. display: flex;
  37. justify-content: center;
  38. align-items: center;
  39. }
  40. .tab-loading {
  41. position: absolute;
  42. top: 0;
  43. left: 0;
  44. width: 100%;
  45. display: none;
  46. background-color: $main-bg;
  47. > div {
  48. display: flex;
  49. justify-content: center;
  50. align-items: center;
  51. width: 100%;
  52. height: 100%;
  53. }
  54. }
  55. iframe {
  56. border: 0;
  57. width: 100%;
  58. height: 100%;
  59. margin-bottom: -8px;
  60. .content-wrapper {
  61. padding-bottom: 0 !important;
  62. }
  63. }
  64. body.iframe-mode-fullscreen & {
  65. position: absolute;
  66. left: 0;
  67. top: 0;
  68. right: 0;
  69. bottom: 0;
  70. margin-left: 0 !important;
  71. height: 100%;
  72. min-height: 100%;
  73. z-index: $zindex-main-sidebar + 10;
  74. }
  75. }
  76. }