jBox.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. /* Global */
  2. .jBox-wrapper {
  3. text-align: left;
  4. z-index: 100000000 !important;
  5. }
  6. .jBox-wrapper,
  7. .jBox-wrapper * {
  8. -webkit-box-sizing: border-box;
  9. box-sizing: border-box;
  10. -webkit-font-smoothing: antialiased;
  11. -moz-osx-font-smoothing: grayscale;
  12. }
  13. .jBox-title,
  14. .jBox-content,
  15. .jBox-container {
  16. position: relative;
  17. word-break: break-word;
  18. }
  19. .jBox-container {
  20. background: #fff;
  21. }
  22. .jBox-content {
  23. padding: 8px 10px;
  24. overflow: auto;
  25. -webkit-transition: opacity .15s;
  26. transition: opacity .15s;
  27. }
  28. /* jBox Tooltip */
  29. .jBox-Tooltip .jBox-container,
  30. .jBox-Mouse .jBox-container {
  31. border-radius: 3px;
  32. box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  33. }
  34. .jBox-Tooltip .jBox-title,
  35. .jBox-Mouse .jBox-title {
  36. padding: 8px 10px 0;
  37. font-weight: bold;
  38. }
  39. .jBox-hasTitle.jBox-Tooltip .jBox-content,
  40. .jBox-hasTitle.jBox-Mouse .jBox-content {
  41. padding-top: 5px;
  42. }
  43. /* Pointer */
  44. .jBox-pointer {
  45. position: absolute;
  46. overflow: hidden;
  47. }
  48. .jBox-pointer-top { top: 0; }
  49. .jBox-pointer-bottom { bottom: 0; }
  50. .jBox-pointer-left { left: 0; }
  51. .jBox-pointer-right { right: 0; }
  52. .jBox-pointer-top,
  53. .jBox-pointer-bottom {
  54. width: 30px;
  55. height: 12px;
  56. }
  57. .jBox-pointer-left,
  58. .jBox-pointer-right {
  59. width: 12px;
  60. height: 30px;
  61. }
  62. .jBox-pointer:after {
  63. content: '';
  64. width: 20px;
  65. height: 20px;
  66. position: absolute;
  67. background: #fff;
  68. -webkit-transform: rotate(45deg);
  69. transform: rotate(45deg);
  70. }
  71. .jBox-pointer-top:after {
  72. left: 5px;
  73. top: 6px;
  74. box-shadow: -1px -1px 4px rgba(0, 0, 0, .2);
  75. }
  76. .jBox-pointer-right:after {
  77. top: 5px;
  78. right: 6px;
  79. box-shadow: 1px -1px 4px rgba(0, 0, 0, .2);
  80. }
  81. .jBox-pointer-bottom:after {
  82. left: 5px;
  83. bottom: 6px;
  84. box-shadow: 1px 1px 4px rgba(0, 0, 0, .2);
  85. }
  86. .jBox-pointer-left:after {
  87. top: 5px;
  88. left: 6px;
  89. box-shadow: -1px 1px 4px rgba(0, 0, 0, .2);
  90. }
  91. /* jBox Modal & jBox Confirm */
  92. .jBox-Modal .jBox-container,
  93. .jBox-Confirm .jBox-container {
  94. border-radius: 3px;
  95. box-shadow: 0 3px 15px rgba(0, 0, 0, .4), 0 0 5px rgba(0, 0, 0, .4);
  96. }
  97. .jBox-Modal .jBox-title,
  98. .jBox-Confirm .jBox-title {
  99. border-radius: 3px 3px 0 0;
  100. padding: 10px 15px;
  101. background: #f4f5f6;
  102. border-bottom: 1px solid #ddd;
  103. text-shadow: 0 1px 0 #fff;
  104. }
  105. .jBox-Modal.jBox-closeButton-title .jBox-title,
  106. .jBox-Confirm.jBox-closeButton-title .jBox-title {
  107. padding-right: 55px;
  108. }
  109. .jBox-Modal.jBox-closeButton-box:before,
  110. .jBox-Confirm.jBox-closeButton-box:before {
  111. box-shadow: 0 3px 15px rgba(0, 0, 0, .4), 0 0 5px rgba(0, 0, 0, .4);
  112. }
  113. /* jBox Modal */
  114. .jBox-Modal .jBox-content {
  115. padding: 12px 15px;
  116. }
  117. .ninja-forms-settings #jBox-overlay .jBox-closeButton,
  118. .ninja-forms-app #jBox-overlay .jBox-closeButton {
  119. display: none;
  120. }
  121. /* jBox Confirm */
  122. .jBox-Confirm .jBox-content {
  123. text-align: center;
  124. padding: 45px 35px;
  125. }
  126. .jBox-Confirm-footer {
  127. border-top: 1px solid #e2e2e2;
  128. background: #fafafa;
  129. border-radius: 0 0 3px 3px;
  130. text-align: center;
  131. padding: 10px 0;
  132. }
  133. .jBox-Confirm-button {
  134. display: inline-block;
  135. cursor: pointer;
  136. font-size: 15px;
  137. line-height: 30px;
  138. height: 30px;
  139. border-radius: 3px;
  140. padding: 0 20px;
  141. -webkit-transition: color .2s, background-color .2s;
  142. transition: color .2s, background-color .2s;
  143. }
  144. .jBox-Confirm-button-cancel {
  145. text-shadow: 0 1px 1px rgba(255, 255, 255, .6);
  146. background: #ddd;
  147. color: #999;
  148. margin-right: 25px;
  149. }
  150. .jBox-Confirm-button-cancel:hover {
  151. background: #ccc;
  152. color: #666;
  153. }
  154. .jBox-Confirm-button-submit {
  155. text-shadow: 0 -1px 1px rgba(0, 0, 0, .2);
  156. background: #5fc04c;
  157. color: #fff;
  158. }
  159. .jBox-Confirm-button-submit:hover {
  160. background: #53a642;
  161. }
  162. .jBox-Confirm-button-cancel:active,
  163. .jBox-Confirm-button-submit:active {
  164. box-shadow: inset 0 1px 3px rgba(0, 0, 0, .26);
  165. }
  166. /* jBox Notice */
  167. .jBox-Notice {
  168. -webkit-transition: margin .2s;
  169. transition: margin .2s;
  170. max-width: 80%;
  171. }
  172. .jBox-Notice .jBox-container {
  173. border-radius: 3px;
  174. box-shadow: 0 0 3px rgba(0, 0, 0, .2);
  175. color: #fff;
  176. text-shadow: 0 -1px 0 #000;
  177. background: #333;
  178. background-image: linear-gradient(to bottom, #444, #222);
  179. }
  180. .jBox-Notice .jBox-content {
  181. border-radius: 3px;
  182. padding: 12px 20px;
  183. }
  184. .jBox-Notice .jBox-title {
  185. padding: 8px 20px 0;
  186. font-weight: bold;
  187. }
  188. .jBox-hasTitle.jBox-Notice .jBox-content {
  189. padding-top: 5px;
  190. }
  191. .jBox-Notice-color .jBox-container {
  192. text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
  193. }
  194. .jBox-Notice-gray .jBox-container {
  195. color: #666;
  196. text-shadow: 0 1px 0 #fff;
  197. background: #f4f4f4;
  198. background-image: linear-gradient(to bottom, #fafafa, #f0f0f0);
  199. }
  200. .jBox-Notice-red .jBox-container {
  201. background: #b02222;
  202. background-image: linear-gradient(to bottom, #ee2222, #b02222);
  203. }
  204. .jBox-Notice-green .jBox-container {
  205. background: #70a800;
  206. background-image: linear-gradient(to bottom, #95cc2a, #70a800);
  207. }
  208. .jBox-Notice-blue .jBox-container {
  209. background: #2b91d9;
  210. background-image: linear-gradient(to bottom, #5abaff, #2b91d9);
  211. }
  212. .jBox-Notice-yellow .jBox-container {
  213. color: #744700;
  214. text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
  215. background: #ffb11f;
  216. background-image: linear-gradient(to bottom, #ffd665, #ffb11f);
  217. }
  218. /* jBox Image */
  219. .jBox-Image {
  220. background: #fff;
  221. padding: 8px 8px 45px;
  222. border-radius: 5px;
  223. }
  224. .jBox-Image .jBox-content {
  225. padding: 0;
  226. width: 100%;
  227. height: 100%;
  228. }
  229. .jBox-image-container {
  230. border-radius: 5px;
  231. background: #fff center center no-repeat;
  232. position: absolute;
  233. width: 100%;
  234. height: 100%;
  235. opacity: 0;
  236. }
  237. .jBox-image-label {
  238. box-sizing: border-box;
  239. position: absolute;
  240. background: #fff;
  241. top: 100%;
  242. left: 0;
  243. width: 100%;
  244. color: #333;
  245. margin-top: -35px;
  246. padding: 0 90px 5px 10px;
  247. border-radius: 0 0 5px 5px;
  248. -webkit-transition: opacity .3s;
  249. transition: opacity .3s;
  250. opacity: 0;
  251. }
  252. .jBox-image-label.active {
  253. opacity: 1;
  254. }
  255. .jBox-image-pointer-next,
  256. .jBox-image-pointer-prev {
  257. position: absolute;
  258. bottom: 0px;
  259. width: 22px;
  260. height: 45px;
  261. background: no-repeat center center url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ijc0LjcgMjI0IDE4LjcgMzIiPg0KPHBhdGggZmlsbD0iIzAwMDAwMCIgZD0iTTkzLDIyNy40TDgwLjQsMjQwTDkzLDI1Mi42YzAuNCwwLjQsMC40LDEuMSwwLDEuNWwtMS42LDEuNmMtMC40LDAuNC0xLDAuNS0xLjUsMEw3NSwyNDAuN2MtMC40LTAuNC0wLjUtMSwwLTEuNWwxNC45LTE0LjljMC40LTAuNCwxLTAuNCwxLjUsMGwxLjYsMS42QzkzLjUsMjI2LjQsOTMuNCwyMjcsOTMsMjI3LjR6Ii8+DQo8L3N2Zz4=);
  262. background-size: 11px auto;
  263. cursor: pointer;
  264. opacity: .6;
  265. -webkit-touch-callout: none;
  266. -webkit-user-select: none;
  267. -moz-user-select: none;
  268. -ms-user-select: none;
  269. user-select: none;
  270. -webkit-transition: opacity .2s;
  271. transition: opacity .2s;
  272. }
  273. .jBox-image-pointer-next:hover,
  274. .jBox-image-pointer-prev:hover {
  275. opacity: 1;
  276. }
  277. .jBox-image-pointer-next {
  278. right: 8px;
  279. -webkit-transform: scaleX(-1);
  280. transform: scaleX(-1);
  281. }
  282. .jBox-image-pointer-prev {
  283. right: 30px;
  284. }
  285. .jBox-image-open #jBox-overlay {
  286. background-color: rgba(0, 0, 0, .86);
  287. }
  288. .jBox-Image.jBox-loading .jBox-container:before {
  289. left: auto;
  290. top: auto;
  291. bottom: -33px;
  292. right: 55px;
  293. margin-top: -9px;
  294. margin-left: -9px;
  295. }
  296. /* Close button */
  297. .jBox-closeButton {
  298. cursor: pointer;
  299. position: absolute;
  300. }
  301. .jBox-closeButton svg {
  302. position: absolute;
  303. top: 50%;
  304. right: 50%;
  305. }
  306. .jBox-closeButton path {
  307. -webkit-transition: fill .2s;
  308. transition: fill .2s;
  309. }
  310. .jBox-closeButton path {
  311. fill: #aaa;
  312. }
  313. .jBox-closeButton:hover path {
  314. fill: #888;
  315. }
  316. .jBox-closeButton:active path {
  317. fill: #666;
  318. }
  319. /* Close button in overlay */
  320. #jBox-overlay .jBox-closeButton {
  321. top: 0;
  322. right: 0;
  323. width: 40px;
  324. height: 40px;
  325. }
  326. #jBox-overlay .jBox-closeButton svg {
  327. width: 20px;
  328. height: 20px;
  329. margin-top: -10px;
  330. margin-right: -10px;
  331. }
  332. #jBox-overlay .jBox-closeButton path {
  333. fill: #d2d4d6;
  334. }
  335. #jBox-overlay .jBox-closeButton:hover path {
  336. fill: #fff;
  337. }
  338. #jBox-overlay .jBox-closeButton:active path {
  339. fill: #b2b4b6;
  340. }
  341. /* Close button in title */
  342. .jBox-closeButton-title .jBox-closeButton {
  343. top: 0;
  344. right: 0;
  345. bottom: 0;
  346. width: 40px;
  347. }
  348. .jBox-closeButton-title .jBox-closeButton svg {
  349. width: 12px;
  350. height: 12px;
  351. margin-top: -6px;
  352. margin-right: -6px;
  353. }
  354. /* Close button in box */
  355. .jBox-closeButton-box .jBox-closeButton {
  356. top: -8px;
  357. right: -10px;
  358. width: 24px;
  359. height: 24px;
  360. background: #fff;
  361. border-radius: 50%;
  362. }
  363. .jBox-closeButton-box .jBox-closeButton svg {
  364. width: 10px;
  365. height: 10px;
  366. margin-top: -5px;
  367. margin-right: -5px;
  368. }
  369. .jBox-hasTitle.jBox-Modal.jBox-closeButton-box .jBox-closeButton {
  370. background: #f4f5f6;
  371. }
  372. .jBox-closeButton-box:before {
  373. content: '';
  374. position: absolute;
  375. top: -8px;
  376. right: -10px;
  377. width: 24px;
  378. height: 24px;
  379. border-radius: 50%;
  380. box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  381. }
  382. .jBox-pointerPosition-top.jBox-closeButton-box:before {
  383. top: 4px;
  384. }
  385. .jBox-pointerPosition-right.jBox-closeButton-box:before {
  386. right: 2px;
  387. }
  388. /* Overlay */
  389. #jBox-overlay {
  390. position: fixed;
  391. top: 0;
  392. left: 0;
  393. width: 100%;
  394. height: 100%;
  395. background: #000;
  396. background-color: rgba(0, 0, 0, .6);
  397. z-index: 99999999 !important;
  398. }
  399. /* Block scrolling */
  400. body[class^="jBox-blockScroll-"],
  401. body[class*=" jBox-blockScroll-"] {
  402. overflow: hidden;
  403. }
  404. /* Draggable */
  405. .jBox-draggable {
  406. cursor: move;
  407. }
  408. /* Spinner */
  409. @keyframes jBoxLoading {
  410. to {transform: rotate(360deg);}
  411. }
  412. @-webkit-keyframes jBoxLoading {
  413. to {-webkit-transform: rotate(360deg);}
  414. }
  415. .jBox-loading .jBox-content {
  416. min-height: 32px;
  417. min-width: 38px;
  418. opacity: 0;
  419. }
  420. .jBox-spinner {
  421. position: absolute;
  422. top: 50%;
  423. left: 50%;
  424. width: 20px;
  425. height: 20px;
  426. margin-top: -10px;
  427. margin-left: -10px;
  428. }
  429. .jBox-spinner:before {
  430. content: 'Loading…';
  431. display: block;
  432. width: 20px;
  433. height: 20px;
  434. text-align: center;
  435. -webkit-box-sizing: border-box;
  436. box-sizing: border-box;
  437. }
  438. .jBox-spinner:not(:required):before {
  439. content: '';
  440. border-radius: 50%;
  441. border: 2px solid rgba(0, 0, 0, .3);
  442. border-top-color: rgba(0, 0, 0, .6);
  443. animation: jBoxLoading .6s linear infinite;
  444. -webkit-animation: jBoxLoading .6s linear infinite;
  445. }
  446. /* IE8 fixes */
  447. .jBox-IE8.jBox-Tooltip .jBox-container,
  448. .jBox-IE8.jBox-Mouse .jBox-container {
  449. border: 1px solid #aaa;
  450. }
  451. .jBox-IE8 .jBox-pointer:after {
  452. display: none;
  453. }
  454. .jBox-IE8 .jBox-pointer {
  455. border: 0;
  456. background: no-repeat url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPJJREFUeNq01l0OwyAIAGAlvY+n8ZJ6Gk/EqqkNtf7ApCQ+LM34iuCmRUQzihjj6FH+kjWL8N4/Ph9GHpiTnC9SwDbhLGyvspSScc71KkOa/HpuuRhIK+psE2pjONouCQg7kBSEXUgC2tHo52mTTBpnaEATWlaYK6MrhIAaceWpOcsCrYp6FV4H/90zTWjUQ/gSevVQq0ecHqoOxWpYoO7p5O9ku2fnVtp7QAik2rsK3fnpWfjynJWpbw+1BkghurrYDjiCptg/4AxaYhJwBbEwDsiB2NgM5EIirAdKIDFGQSmU1+NaIPjJYt2I25vxT4ABAMhWvtle2YvmAAAAAElFTkSuQmCC);
  457. }
  458. .jBox-IE8 .jBox-pointer-top { background-position: center top; }
  459. .jBox-IE8 .jBox-pointer-bottom { background-position: center bottom; }
  460. .jBox-IE8 .jBox-pointer-left { background-position: left center; }
  461. .jBox-IE8 .jBox-pointer-right { background-position: right center; }
  462. .jBox-IE8.jBox-Modal .jBox-container {
  463. border: 3px solid #aaa;
  464. }
  465. /* No SVG support fixes */
  466. .jBox-nosvg .jBox-closeButton:before {
  467. font-family: Verdana, sans-serif;
  468. content: 'x';
  469. text-align: center;
  470. font-size: 18px;
  471. color: #888;
  472. }
  473. /* Progress Bar */
  474. .jBox-content .nf-progress-bar {
  475. height: 20px;
  476. border-radius: 3px;
  477. margin: 25px 0px;
  478. border: 1px solid #1ea9ea;
  479. position: relative;
  480. overflow: hidden;
  481. }
  482. .jBox-content .nf-progress-bar-slider {
  483. height: 20px;
  484. width: 0%;
  485. background-color: #1ea9ea;
  486. transition: width 0.3s;
  487. }
  488. /* Buttons */
  489. .jBox-content .nf-button {
  490. border: 0;
  491. border-radius: 4px;
  492. cursor: pointer;
  493. display: inline-block;
  494. font-size: 17px;
  495. padding: 10px 30px;
  496. text-align: center;
  497. text-decoration: none;
  498. text-transform: uppercase;
  499. appearance: none;
  500. }
  501. .jBox-content .nf-button.primary {
  502. background: #1EA9EA;
  503. border: 1px solid #1EA9EA;
  504. color: #fff;
  505. }
  506. .jBox-content .nf-button.secondary {
  507. background: #fff;
  508. border: 1px solid #1EA9EA;
  509. color: #1EA9EA;
  510. }