fl-builder-ui-iframe.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. /* @group General
  2. ------------------------------------------------------ */
  3. * {
  4. box-sizing: border-box;
  5. }
  6. html {
  7. height: 100%;
  8. }
  9. body {
  10. background-color: var(--fl-builder-panel-bg-color) !important;
  11. font-family: var(--fl-builder-font-family);
  12. font-size: 12px;
  13. line-height: 14px;
  14. height: 100%;
  15. margin: 0;
  16. }
  17. .fl-builder-edit body {
  18. overflow: hidden !important;
  19. }
  20. /* @group IFrame
  21. ------------------------------------------------------ */
  22. .fl-builder-ui-iframe-wrap {
  23. width: 100%;
  24. height: 100%;
  25. display: flex;
  26. justify-content: center;
  27. line-height: 0;
  28. position: relative;
  29. }
  30. .fl-builder-ui-iframe-canvas {
  31. box-shadow: 0 0 0 1px rgb(0 0 0 / 5%);
  32. height: 100%;
  33. width: 100%;
  34. position: absolute;
  35. left: auto !important;
  36. transform-origin: top center;
  37. }
  38. .fl-builder-ui-iframe {
  39. width: 100%;
  40. height: 100%;
  41. }
  42. .fl-builder-ui-iframe-resizing .fl-builder-ui-iframe,
  43. .fl-builder-draggable-is-dragging .fl-builder-ui-iframe,
  44. .fl-builder-resizable-is-resizing .fl-builder-ui-iframe {
  45. pointer-events: none;
  46. }
  47. /* Fix for draggable iframe mask not removed on touch. */
  48. .fl-builder-ui-iframe-canvas > div:not([class]) {
  49. display: none;
  50. }
  51. .fl-builder-dragging .fl-builder-ui-iframe-canvas > div:not([class]) {
  52. display: block;
  53. }
  54. /* @group IFrame Resize Handles
  55. ------------------------------------------------------ */
  56. .fl-builder-ui-iframe-resize {
  57. --handle-size: 24px;
  58. --grab-bar-size: 48px;
  59. position: absolute;
  60. display: none;
  61. justify-content: center;
  62. align-items: center;
  63. padding: 12px;
  64. }
  65. .fl-builder-ui-iframe-resize div {
  66. background: #d8dce0;
  67. border-radius: 2px;
  68. padding: 2px;
  69. }
  70. .fl-builder-ui-iframe-resize-s {
  71. width: 100%;
  72. cursor: ns-resize;
  73. }
  74. .fl-builder-ui-iframe-resize-s div {
  75. width: var(--grab-bar-size);
  76. }
  77. .fl-builder-ui-iframe-resize-s {
  78. bottom: calc( 0px - var(--handle-size) );
  79. }
  80. .fl-builder-ui-iframe-resize-e,
  81. .fl-builder-ui-iframe-resize-w {
  82. height: 100%;
  83. cursor: ew-resize;
  84. min-width: var(--handle-size);
  85. }
  86. .fl-builder-ui-iframe-resize-e div,
  87. .fl-builder-ui-iframe-resize-w div {
  88. height: var(--grab-bar-size);
  89. }
  90. .fl-builder-ui-iframe-resize-e {
  91. right: calc( 0px - var(--handle-size) );
  92. }
  93. .fl-builder-ui-iframe-resize-w {
  94. left: calc( 0px - var(--handle-size) );
  95. }
  96. /* @group IFrame Toolbar
  97. ------------------------------------------------------ */
  98. .fl-builder-ui-iframe-toolbar {
  99. color: #b3b3b3;
  100. font-size: 14px;
  101. display: none;
  102. align-items: center;
  103. justify-content: center;
  104. height: 60px;
  105. }
  106. .fl-builder-ui-iframe-toolbar .fl-builder-button,
  107. .fl-builder-ui-iframe-toolbar .fl-builder-button:focus,
  108. .fl-builder-ui-iframe-toolbar .fl-builder-button:active {
  109. border-color: transparent !important;
  110. margin: 0 3px;
  111. padding: 0 10px;
  112. }
  113. .fl-builder-ui-iframe-toolbar .fl-builder-button i {
  114. font-size: 16px;
  115. height: 16px;
  116. width: 16px;
  117. }
  118. .fl-builder-ui-iframe-toolbar select {
  119. padding-right: 30px !important;
  120. background-image: url(../img/svg/select-arrow-down-alt2.svg) !important;
  121. background-position: center right 10px !important;
  122. background-repeat: no-repeat !important;
  123. text-align: left !important;
  124. }
  125. /* Breakpoint Select */
  126. .fl-builder-ui-iframe-breakpoint {
  127. margin: 0 12px 0 6px !important;
  128. }
  129. /* Size Inputs */
  130. .fl-builder-ui-iframe-size {
  131. display: flex;
  132. align-items: center;
  133. margin-right: 12px;
  134. }
  135. .fl-builder-ui-iframe-size input,
  136. .fl-builder-ui-iframe-size input:focus {
  137. background: transparent;
  138. border: none;
  139. border-bottom: 1px solid #ccc;
  140. border-radius: 0;
  141. color: #b3b3b3;
  142. font-size: 14px;
  143. line-height: 20px;
  144. padding: 0;
  145. margin: 0 6px;
  146. width: 50px;
  147. }
  148. .fl-builder-ui-iframe-size input:focus {
  149. color: #666;
  150. }
  151. .fl-builder-ui-iframe-scale {
  152. max-width: 90px;
  153. text-overflow: ellipsis;
  154. text-align: left;
  155. }
  156. @media (max-width: 500px) {
  157. .fl-builder-ui-iframe-breakpoint-text,
  158. .fl-builder-ui-iframe-size {
  159. display: none;
  160. }
  161. .fl-builder-ui-iframe-breakpoint {
  162. margin: 0 3px !important;
  163. }
  164. }
  165. /* @group Responsive Editing Mode
  166. ------------------------------------------------------ */
  167. .fl-builder-ui-iframe-responsive-editing .fl-builder-ui-iframe-wrap {
  168. height: calc(100% - 60px);
  169. padding: 0px 40px;
  170. }
  171. .fl-builder-ui-iframe-responsive-editing .fl-builder-ui-iframe-toolbar,
  172. .fl-builder-ui-iframe-responsive-editing .fl-builder-ui-iframe-resize-n,
  173. .fl-builder-ui-iframe-responsive-editing .fl-builder-ui-iframe-resize-s,
  174. .fl-builder-ui-iframe-responsive-editing .fl-builder-ui-iframe-resize-e,
  175. .fl-builder-ui-iframe-responsive-editing .fl-builder-ui-iframe-resize-w {
  176. display: flex;
  177. }