fl-lightbox.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. @keyframes fl-lightbox-zoom {
  2. from {
  3. transform: scale(.4);
  4. }
  5. to {
  6. transform: scale(1);
  7. }
  8. }
  9. .fl-lightbox-wrap {
  10. bottom: 0;
  11. display: none;
  12. left: 0;
  13. overflow: auto;
  14. padding: 4px;
  15. position: fixed;
  16. right: 0;
  17. top: 46px;
  18. z-index: 100010;
  19. -webkit-backface-visibility: hidden;
  20. -webkit-transform: translateZ(0);
  21. pointer-events: none;
  22. }
  23. .fl-lightbox-mask {
  24. background: #000;
  25. bottom: 0;
  26. left: 0;
  27. opacity: 0.7;
  28. filter: alpha(opacity = 70);
  29. position: fixed;
  30. right: 0;
  31. top: 0;
  32. z-index: 100010;
  33. pointer-events: auto;
  34. }
  35. .fl-lightbox {
  36. background: #F5F7F9;
  37. border-radius: 4px;
  38. box-shadow: rgba(0,0,0,1) 0 4px 30px;
  39. -moz-box-shadow: rgba(0,0,0,1) 0 4px 30px;
  40. -webkit-box-shadow: rgba(0,0,0,1) 0 4px 30px;
  41. position: relative;
  42. display: flex;
  43. z-index: 100011;
  44. transform-origin: center;
  45. animation-name: fl-lightbox-zoom;
  46. animation-duration: .25s;
  47. pointer-events: auto;
  48. }
  49. .fl-lightbox.fl-lightbox-prevent-animation {
  50. animation-duration: 0s;
  51. -moz-animation-duration: 0s;
  52. -webkit-animation-duration: 0s;
  53. -o-animation-duration: 0s;
  54. }
  55. .fl-lightbox *:not(i) {
  56. color: #333;
  57. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  58. font-size: 13px;
  59. line-height: 16px;
  60. text-decoration: none;
  61. text-transform: none;
  62. }
  63. .fl-lightbox *,
  64. .fl-lightbox *:before,
  65. .fl-lightbox *:after {
  66. -webkit-box-sizing: content-box;
  67. -moz-box-sizing: content-box;
  68. box-sizing: content-box;
  69. }
  70. .fl-lightbox .fl-nanoscroller-pane {
  71. bottom: 4px;
  72. right: 4px;
  73. width: 8px;
  74. }
  75. .fl-lightbox .fa {
  76. font-family: FontAwesome !important;
  77. }
  78. .fl-lightbox .dashicons {
  79. font-family: dashicons;
  80. }
  81. .fl-lightbox.ui-draggable {
  82. box-shadow: rgba(0, 0, 0, 0.2) 0 7px 30px;
  83. -moz-box-shadow: rgba(0, 0, 0, 0.2) 0 7px 30px;
  84. -webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 7px 30px;
  85. }
  86. /* Resizable */
  87. .fl-builder-resizable-is-resizing .fl-lightbox-wrap,
  88. .fl-builder-draggable-is-dragging .fl-lightbox-wrap {
  89. pointer-events: auto;
  90. }
  91. .fl-lightbox-resizable {
  92. height: 500px;
  93. width: 380px;
  94. }
  95. @media ( max-width: 500px ) {
  96. .fl-lightbox-resizable {
  97. left: 0 !important;
  98. right: 0 !important;
  99. top: 0 !important;
  100. height: 100% !important;
  101. width: 100% !important;
  102. }
  103. .fl-lightbox-resizable .ui-resizable-handle {
  104. display: none !important;
  105. }
  106. .fl-lightbox.ui-draggable .fl-lightbox-header {
  107. cursor: default !important;
  108. }
  109. .fl-lightbox-controls {
  110. display: none;
  111. }
  112. }
  113. /* Resizable - Full Style */
  114. .fl-lightbox-width-full {
  115. left: 0 !important;
  116. right: 0 !important;
  117. top: 0 !important;
  118. height: 100% !important;
  119. width: 100% !important;
  120. }
  121. .fl-lightbox-width-full .fl-lightbox-header {
  122. cursor: inherit !important;
  123. }
  124. /* Lightbox Controls */
  125. .fl-lightbox-controls {
  126. position: absolute;
  127. right: 10px;
  128. top: 10px;
  129. z-index: 5;
  130. }
  131. .fl-lightbox-controls .fa {
  132. color: #bdbdbd;
  133. font-size: 14px;
  134. padding: 5px;
  135. }
  136. .fl-lightbox-controls .fa:hover {
  137. color: #aaaaaa;
  138. cursor: pointer;
  139. }
  140. /* Header */
  141. .fl-lightbox-header-wrap {
  142. background:white;
  143. border-top-left-radius: 4px;
  144. border-top-right-radius: 4px;
  145. border-bottom: 2px solid #eaeaea;
  146. }
  147. .fl-lightbox-header {
  148. position: relative;
  149. }
  150. .fl-lightbox-header h1 {
  151. color: #333 !important;
  152. font-size: 20px !important;
  153. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
  154. font-weight: 600 !important;
  155. margin: 0 !important;
  156. padding: 14px 28px 15px !important;
  157. padding-right: 34px !important;
  158. text-align: left!important;
  159. display: flex;
  160. flex-direction: row;
  161. align-items: center;
  162. line-height: 1.1;
  163. }
  164. .fl-lightbox.ui-draggable .fl-lightbox-header {
  165. cursor: move;
  166. }
  167. .fl-lightbox-header h1 .fl-builder-badge {
  168. margin-left: 10px;
  169. }
  170. /* Content */
  171. .fl-lightbox-content-wrap,
  172. .fl-lightbox-content {
  173. display: flex;
  174. flex-direction: column;
  175. flex: 1 100%;
  176. height: 100%;
  177. max-width: 100%;
  178. }
  179. /* Footer */
  180. .fl-lightbox-footer {
  181. box-sizing: border-box;
  182. display: flex;
  183. flex-direction: row;
  184. justify-content: flex-end;
  185. flex: 0 0;
  186. flex-basis: 44px;
  187. padding: 4px;
  188. text-align: right;
  189. }
  190. .fl-lightbox-footer .fl-builder-button {
  191. height: 36px;
  192. margin-left: 5px !important;
  193. flex: 0 0 0%;
  194. justify-content: center;
  195. }
  196. .fl-lightbox-width-slim .fl-lightbox-footer {
  197. justify-content: stretch;
  198. padding: 4px 5px;
  199. }
  200. .fl-lightbox-width-slim .fl-lightbox-footer .fl-builder-button {
  201. flex: 1 1 100%;
  202. display: block;
  203. text-align: center;
  204. }
  205. .fl-lightbox-width-slim .fl-lightbox-footer .fl-builder-button:first-child {
  206. margin-left:0 !important;
  207. }
  208. /* Tables */
  209. .fl-lightbox table,
  210. .fl-lightbox tr,
  211. .fl-lightbox th,
  212. .fl-lightbox td {
  213. border: none;
  214. }