jBox.css 11 KB

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