lightcase.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. /**
  2. * Lightcase - jQuery Plugin
  3. * The smart and flexible Lightbox Plugin.
  4. *
  5. * @author Cornel Boppart <cornel@bopp-art.com>
  6. * @copyright Author
  7. *
  8. * @version 2.5.0 (11/03/2018)
  9. */
  10. /**
  11. * Lightcase settings
  12. *
  13. * Note: Override default settings for your project without touching this source code by simply
  14. * defining those variables within a SASS map called '$lightcase-custom'.
  15. *
  16. * // Example usage
  17. * $lightcase-custom: (
  18. * 'breakpoint': 768px
  19. * );
  20. */
  21. @font-face {
  22. font-family: 'lightcase';
  23. src: url("../fonts/lightcase.eot?55356177");
  24. src: url("../fonts/lightcase.eot?55356177#iefix") format("embedded-opentype"), url("../fonts/lightcase.woff?55356177") format("woff"), url("../fonts/lightcase.ttf?55356177") format("truetype"), url("../fonts/lightcase.svg?55356177#lightcase") format("svg");
  25. font-weight: normal;
  26. font-style: normal;
  27. }
  28. /* line 12, ../scss/components/fonts/_font-lightcase.scss */
  29. [class*='lightcase-icon-']:before {
  30. font-family: 'lightcase', sans-serif;
  31. font-style: normal;
  32. font-weight: normal;
  33. speak: none;
  34. display: inline-block;
  35. text-decoration: inherit;
  36. width: 1em;
  37. text-align: center;
  38. /* For safety - reset parent styles, that can break glyph codes*/
  39. font-variant: normal;
  40. text-transform: none;
  41. /* fix buttons height, for twitter bootstrap */
  42. line-height: 1em;
  43. /* Uncomment for 3D effect */
  44. /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
  45. }
  46. /* Codes */
  47. /* line 35, ../scss/components/fonts/_font-lightcase.scss */
  48. .lightcase-icon-play:before {
  49. content: '\e800';
  50. }
  51. /* line 36, ../scss/components/fonts/_font-lightcase.scss */
  52. .lightcase-icon-pause:before {
  53. content: '\e801';
  54. }
  55. /* line 37, ../scss/components/fonts/_font-lightcase.scss */
  56. .lightcase-icon-close:before {
  57. content: '\e802';
  58. }
  59. /* line 38, ../scss/components/fonts/_font-lightcase.scss */
  60. .lightcase-icon-prev:before {
  61. content: '\e803';
  62. }
  63. /* line 39, ../scss/components/fonts/_font-lightcase.scss */
  64. .lightcase-icon-next:before {
  65. content: '\e804';
  66. }
  67. /* line 40, ../scss/components/fonts/_font-lightcase.scss */
  68. .lightcase-icon-spin:before {
  69. content: '\e805';
  70. }
  71. /**
  72. * Mixin providing icon defaults to be used on top of font-lightcase.
  73. *
  74. * Example usage:
  75. * @include icon(#e9e9e9)
  76. */
  77. /**
  78. * Mixin providing icon defaults including a hover status to be used
  79. * on top of font-lightcase.
  80. *
  81. * Example usage:
  82. * @include icon-hover(#e9e9e9, #fff)
  83. */
  84. /**
  85. * Provides natural content overflow behavior and scrolling support
  86. * even so for touch devices.
  87. *
  88. * Example usage:
  89. * @include overflow()
  90. */
  91. /**
  92. * Neutralizes/resets dimensions including width, height, position as well as margins,
  93. * paddings and styles. Used to enforce a neutral and unstyled look and behavoir!
  94. *
  95. * Example usage:
  96. * @include clear(true)
  97. *
  98. * @param boolean $important
  99. */
  100. @-webkit-keyframes lightcase-spin {
  101. 0% {
  102. -webkit-transform: rotate(0deg);
  103. -moz-transform: rotate(0deg);
  104. -o-transform: rotate(0deg);
  105. transform: rotate(0deg);
  106. }
  107. 100% {
  108. -webkit-transform: rotate(359deg);
  109. -moz-transform: rotate(359deg);
  110. -o-transform: rotate(359deg);
  111. transform: rotate(359deg);
  112. }
  113. }
  114. @-moz-keyframes lightcase-spin {
  115. 0% {
  116. -webkit-transform: rotate(0deg);
  117. -moz-transform: rotate(0deg);
  118. -o-transform: rotate(0deg);
  119. transform: rotate(0deg);
  120. }
  121. 100% {
  122. -webkit-transform: rotate(359deg);
  123. -moz-transform: rotate(359deg);
  124. -o-transform: rotate(359deg);
  125. transform: rotate(359deg);
  126. }
  127. }
  128. @-o-keyframes lightcase-spin {
  129. 0% {
  130. -webkit-transform: rotate(0deg);
  131. -moz-transform: rotate(0deg);
  132. -o-transform: rotate(0deg);
  133. transform: rotate(0deg);
  134. }
  135. 100% {
  136. -webkit-transform: rotate(359deg);
  137. -moz-transform: rotate(359deg);
  138. -o-transform: rotate(359deg);
  139. transform: rotate(359deg);
  140. }
  141. }
  142. @-ms-keyframes lightcase-spin {
  143. 0% {
  144. -webkit-transform: rotate(0deg);
  145. -moz-transform: rotate(0deg);
  146. -o-transform: rotate(0deg);
  147. transform: rotate(0deg);
  148. }
  149. 100% {
  150. -webkit-transform: rotate(359deg);
  151. -moz-transform: rotate(359deg);
  152. -o-transform: rotate(359deg);
  153. transform: rotate(359deg);
  154. }
  155. }
  156. @keyframes lightcase-spin {
  157. 0% {
  158. -webkit-transform: rotate(0deg);
  159. -moz-transform: rotate(0deg);
  160. -o-transform: rotate(0deg);
  161. transform: rotate(0deg);
  162. }
  163. 100% {
  164. -webkit-transform: rotate(359deg);
  165. -moz-transform: rotate(359deg);
  166. -o-transform: rotate(359deg);
  167. transform: rotate(359deg);
  168. }
  169. }
  170. /* line 1, ../scss/components/modules/_case.scss */
  171. #lightcase-case {
  172. display: none;
  173. position: fixed;
  174. z-index: 2002;
  175. top: 50%;
  176. left: 50%;
  177. font-family: arial, sans-serif;
  178. font-size: 13px;
  179. line-height: 1.5;
  180. text-align: left;
  181. text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  182. }
  183. @media screen and (max-width: 640px) {
  184. /* line 16, ../scss/components/modules/_case.scss */
  185. html[data-lc-type=inline] #lightcase-case, html[data-lc-type=ajax] #lightcase-case {
  186. position: fixed !important;
  187. top: 0 !important;
  188. left: 0 !important;
  189. right: 0 !important;
  190. bottom: 0 !important;
  191. margin: 0 !important;
  192. padding: 55px 0 70px 0;
  193. width: 100% !important;
  194. height: 100% !important;
  195. overflow: auto !important;
  196. }
  197. }
  198. @media screen and (min-width: 641px) {
  199. /* line 4, ../scss/components/modules/_content.scss */
  200. html:not([data-lc-type=error]) #lightcase-content {
  201. position: relative;
  202. z-index: 1;
  203. text-shadow: none;
  204. background-color: #fff;
  205. -webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  206. -moz-box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  207. -o-box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  208. box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  209. -webkit-backface-visibility: hidden;
  210. }
  211. }
  212. @media screen and (min-width: 641px) {
  213. /* line 23, ../scss/components/modules/_content.scss */
  214. html[data-lc-type=image] #lightcase-content, html[data-lc-type=video] #lightcase-content {
  215. background-color: #333;
  216. }
  217. }
  218. /* line 31, ../scss/components/modules/_content.scss */
  219. html[data-lc-type=inline] #lightcase-content, html[data-lc-type=ajax] #lightcase-content, html[data-lc-type=error] #lightcase-content {
  220. -webkit-box-shadow: none;
  221. -moz-box-shadow: none;
  222. -o-box-shadow: none;
  223. box-shadow: none;
  224. }
  225. @media screen and (max-width: 640px) {
  226. /* line 31, ../scss/components/modules/_content.scss */
  227. html[data-lc-type=inline] #lightcase-content, html[data-lc-type=ajax] #lightcase-content, html[data-lc-type=error] #lightcase-content {
  228. position: relative !important;
  229. top: auto !important;
  230. left: auto !important;
  231. width: auto !important;
  232. height: auto !important;
  233. margin: 0 !important;
  234. padding: 0 !important;
  235. border: none !important;
  236. background: none !important;
  237. }
  238. }
  239. /* line 43, ../scss/components/modules/_content.scss */
  240. html[data-lc-type=inline] #lightcase-content .lightcase-contentInner, html[data-lc-type=ajax] #lightcase-content .lightcase-contentInner, html[data-lc-type=error] #lightcase-content .lightcase-contentInner {
  241. -webkit-box-sizing: border-box;
  242. -moz-box-sizing: border-box;
  243. -o-box-sizing: border-box;
  244. box-sizing: border-box;
  245. }
  246. @media screen and (max-width: 640px) {
  247. /* line 43, ../scss/components/modules/_content.scss */
  248. html[data-lc-type=inline] #lightcase-content .lightcase-contentInner, html[data-lc-type=ajax] #lightcase-content .lightcase-contentInner, html[data-lc-type=error] #lightcase-content .lightcase-contentInner {
  249. padding: 15px;
  250. }
  251. /* line 52, ../scss/components/modules/_content.scss */
  252. html[data-lc-type=inline] #lightcase-content .lightcase-contentInner, html[data-lc-type=inline] #lightcase-content .lightcase-contentInner > *, html[data-lc-type=ajax] #lightcase-content .lightcase-contentInner, html[data-lc-type=ajax] #lightcase-content .lightcase-contentInner > *, html[data-lc-type=error] #lightcase-content .lightcase-contentInner, html[data-lc-type=error] #lightcase-content .lightcase-contentInner > * {
  253. width: 100% !important;
  254. max-width: none !important;
  255. }
  256. /* line 59, ../scss/components/modules/_content.scss */
  257. html[data-lc-type=inline] #lightcase-content .lightcase-contentInner > *:not(iframe), html[data-lc-type=ajax] #lightcase-content .lightcase-contentInner > *:not(iframe), html[data-lc-type=error] #lightcase-content .lightcase-contentInner > *:not(iframe) {
  258. height: auto !important;
  259. max-height: none !important;
  260. }
  261. }
  262. @media screen and (max-width: 640px) {
  263. /* line 70, ../scss/components/modules/_content.scss */
  264. html.lightcase-isMobileDevice[data-lc-type=iframe] #lightcase-content .lightcase-contentInner iframe {
  265. overflow: auto;
  266. -webkit-overflow-scrolling: touch;
  267. }
  268. }
  269. @media screen and (max-width: 640px) and (min-width: 641px) {
  270. /* line 74, ../scss/components/modules/_content.scss */
  271. html[data-lc-type=image] #lightcase-content .lightcase-contentInner, html[data-lc-type=video] #lightcase-content .lightcase-contentInner {
  272. line-height: 0.75;
  273. }
  274. }
  275. /* line 82, ../scss/components/modules/_content.scss */
  276. html[data-lc-type=image] #lightcase-content .lightcase-contentInner {
  277. position: relative;
  278. overflow: hidden !important;
  279. }
  280. @media screen and (max-width: 640px) {
  281. /* line 91, ../scss/components/modules/_content.scss */
  282. html[data-lc-type=inline] #lightcase-content .lightcase-contentInner .lightcase-inlineWrap, html[data-lc-type=ajax] #lightcase-content .lightcase-contentInner .lightcase-inlineWrap, html[data-lc-type=error] #lightcase-content .lightcase-contentInner .lightcase-inlineWrap {
  283. position: relative !important;
  284. top: auto !important;
  285. left: auto !important;
  286. width: auto !important;
  287. height: auto !important;
  288. margin: 0 !important;
  289. padding: 0 !important;
  290. border: none !important;
  291. background: none !important;
  292. }
  293. }
  294. @media screen and (min-width: 641px) {
  295. /* line 100, ../scss/components/modules/_content.scss */
  296. html:not([data-lc-type=error]) #lightcase-content .lightcase-contentInner .lightcase-inlineWrap {
  297. padding: 30px;
  298. overflow: auto;
  299. -webkit-box-sizing: border-box;
  300. -moz-box-sizing: border-box;
  301. -o-box-sizing: border-box;
  302. box-sizing: border-box;
  303. }
  304. }
  305. @media screen and (max-width: 640px) {
  306. /* line 117, ../scss/components/modules/_content.scss */
  307. #lightcase-content h1, #lightcase-content h2, #lightcase-content h3, #lightcase-content h4, #lightcase-content h5, #lightcase-content h6, #lightcase-content p {
  308. color: #aaa;
  309. }
  310. }
  311. @media screen and (min-width: 641px) {
  312. /* line 117, ../scss/components/modules/_content.scss */
  313. #lightcase-content h1, #lightcase-content h2, #lightcase-content h3, #lightcase-content h4, #lightcase-content h5, #lightcase-content h6, #lightcase-content p {
  314. color: #333;
  315. }
  316. }
  317. /* line 3, ../scss/components/modules/_error.scss */
  318. #lightcase-case p.lightcase-error {
  319. margin: 0;
  320. font-size: 17px;
  321. text-align: center;
  322. white-space: nowrap;
  323. overflow: hidden;
  324. text-overflow: ellipsis;
  325. color: #aaa;
  326. }
  327. @media screen and (max-width: 640px) {
  328. /* line 3, ../scss/components/modules/_error.scss */
  329. #lightcase-case p.lightcase-error {
  330. padding: 30px 0;
  331. }
  332. }
  333. @media screen and (min-width: 641px) {
  334. /* line 3, ../scss/components/modules/_error.scss */
  335. #lightcase-case p.lightcase-error {
  336. padding: 0;
  337. }
  338. }
  339. /* line 4, ../scss/components/modules/_global.scss */
  340. .lightcase-open body {
  341. overflow: hidden;
  342. }
  343. /* line 8, ../scss/components/modules/_global.scss */
  344. .lightcase-isMobileDevice .lightcase-open body {
  345. max-width: 100%;
  346. max-height: 100%;
  347. }
  348. /* line 1, ../scss/components/modules/_info.scss */
  349. #lightcase-info {
  350. position: absolute;
  351. padding-top: 15px;
  352. }
  353. /* line 9, ../scss/components/modules/_info.scss */
  354. #lightcase-info #lightcase-title,
  355. #lightcase-info #lightcase-caption {
  356. margin: 0;
  357. padding: 0;
  358. line-height: 1.5;
  359. font-weight: normal;
  360. text-overflow: ellipsis;
  361. }
  362. /* line 19, ../scss/components/modules/_info.scss */
  363. #lightcase-info #lightcase-title {
  364. font-size: 17px;
  365. color: #aaa;
  366. }
  367. @media screen and (max-width: 640px) {
  368. /* line 19, ../scss/components/modules/_info.scss */
  369. #lightcase-info #lightcase-title {
  370. position: fixed;
  371. top: 10px;
  372. left: 0;
  373. max-width: 87.5%;
  374. padding: 5px 15px;
  375. background: #333;
  376. }
  377. }
  378. /* line 33, ../scss/components/modules/_info.scss */
  379. #lightcase-info #lightcase-caption {
  380. clear: both;
  381. font-size: 13px;
  382. color: #aaa;
  383. }
  384. /* line 39, ../scss/components/modules/_info.scss */
  385. #lightcase-info #lightcase-sequenceInfo {
  386. font-size: 11px;
  387. color: #aaa;
  388. }
  389. @media screen and (max-width: 640px) {
  390. /* line 45, ../scss/components/modules/_info.scss */
  391. .lightcase-fullScreenMode #lightcase-info {
  392. padding-left: 15px;
  393. padding-right: 15px;
  394. }
  395. /* line 51, ../scss/components/modules/_info.scss */
  396. html:not([data-lc-type=image]):not([data-lc-type=video]):not([data-lc-type=flash]):not([data-lc-type=error]) #lightcase-info {
  397. position: static;
  398. }
  399. }
  400. /* line 1, ../scss/components/modules/_loading.scss */
  401. #lightcase-loading {
  402. position: fixed;
  403. z-index: 9999;
  404. width: 1.123em;
  405. height: auto;
  406. font-size: 38px;
  407. line-height: 1;
  408. text-align: center;
  409. text-shadow: none;
  410. position: fixed;
  411. z-index: 2001;
  412. top: 50%;
  413. left: 50%;
  414. margin-top: -0.5em;
  415. margin-left: -0.5em;
  416. opacity: 1;
  417. font-size: 32px;
  418. text-shadow: 0 0 15px #fff;
  419. -moz-transform-origin: 50% 53%;
  420. -webkit-animation: lightcase-spin 0.5s infinite linear;
  421. -moz-animation: lightcase-spin 0.5s infinite linear;
  422. -o-animation: lightcase-spin 0.5s infinite linear;
  423. animation: lightcase-spin 0.5s infinite linear;
  424. }
  425. /* line 20, ../scss/components/mixins/_presets.scss */
  426. #lightcase-loading, #lightcase-loading:focus {
  427. text-decoration: none;
  428. color: #fff;
  429. -webkit-tap-highlight-color: transparent;
  430. -webkit-transition: color, opacity, ease-in-out 0.25s;
  431. -moz-transition: color, opacity, ease-in-out 0.25s;
  432. -o-transition: color, opacity, ease-in-out 0.25s;
  433. transition: color, opacity, ease-in-out 0.25s;
  434. }
  435. /* line 32, ../scss/components/mixins/_presets.scss */
  436. #lightcase-loading > span {
  437. display: inline-block;
  438. text-indent: -9999px;
  439. }
  440. /* line 2, ../scss/components/modules/_navigation.scss */
  441. a[class*='lightcase-icon-'] {
  442. position: fixed;
  443. z-index: 9999;
  444. width: 1.123em;
  445. height: auto;
  446. font-size: 38px;
  447. line-height: 1;
  448. text-align: center;
  449. text-shadow: none;
  450. outline: none;
  451. cursor: pointer;
  452. }
  453. /* line 20, ../scss/components/mixins/_presets.scss */
  454. a[class*='lightcase-icon-'], a[class*='lightcase-icon-']:focus {
  455. text-decoration: none;
  456. color: rgba(255, 255, 255, 0.6);
  457. -webkit-tap-highlight-color: transparent;
  458. -webkit-transition: color, opacity, ease-in-out 0.25s;
  459. -moz-transition: color, opacity, ease-in-out 0.25s;
  460. -o-transition: color, opacity, ease-in-out 0.25s;
  461. transition: color, opacity, ease-in-out 0.25s;
  462. }
  463. /* line 32, ../scss/components/mixins/_presets.scss */
  464. a[class*='lightcase-icon-'] > span {
  465. display: inline-block;
  466. text-indent: -9999px;
  467. }
  468. /* line 49, ../scss/components/mixins/_presets.scss */
  469. a[class*='lightcase-icon-']:hover {
  470. color: white;
  471. text-shadow: 0 0 15px white;
  472. }
  473. /* line 10, ../scss/components/modules/_navigation.scss */
  474. .lightcase-isMobileDevice a[class*='lightcase-icon-']:hover {
  475. color: #aaa;
  476. text-shadow: none;
  477. }
  478. /* line 17, ../scss/components/modules/_navigation.scss */
  479. a[class*='lightcase-icon-'].lightcase-icon-close {
  480. position: fixed;
  481. top: 15px;
  482. right: 15px;
  483. bottom: auto;
  484. margin: 0;
  485. opacity: 0;
  486. outline: none;
  487. }
  488. /* line 28, ../scss/components/modules/_navigation.scss */
  489. a[class*='lightcase-icon-'].lightcase-icon-prev {
  490. left: 15px;
  491. }
  492. /* line 33, ../scss/components/modules/_navigation.scss */
  493. a[class*='lightcase-icon-'].lightcase-icon-next {
  494. right: 15px;
  495. }
  496. /* line 38, ../scss/components/modules/_navigation.scss */
  497. a[class*='lightcase-icon-'].lightcase-icon-pause, a[class*='lightcase-icon-'].lightcase-icon-play {
  498. left: 50%;
  499. margin-left: -0.5em;
  500. }
  501. @media screen and (min-width: 641px) {
  502. /* line 38, ../scss/components/modules/_navigation.scss */
  503. a[class*='lightcase-icon-'].lightcase-icon-pause, a[class*='lightcase-icon-'].lightcase-icon-play {
  504. opacity: 0;
  505. }
  506. }
  507. @media screen and (max-width: 640px) {
  508. /* line 2, ../scss/components/modules/_navigation.scss */
  509. a[class*='lightcase-icon-'] {
  510. bottom: 15px;
  511. font-size: 24px;
  512. }
  513. }
  514. @media screen and (min-width: 641px) {
  515. /* line 2, ../scss/components/modules/_navigation.scss */
  516. a[class*='lightcase-icon-'] {
  517. bottom: 50%;
  518. margin-bottom: -0.5em;
  519. }
  520. /* line 57, ../scss/components/modules/_navigation.scss */
  521. a[class*='lightcase-icon-']:hover, #lightcase-case:hover ~ a[class*='lightcase-icon-'] {
  522. opacity: 1;
  523. }
  524. }
  525. /* line 1, ../scss/components/modules/_overlay.scss */
  526. #lightcase-overlay {
  527. display: none;
  528. width: 100%;
  529. min-height: 100%;
  530. position: fixed;
  531. z-index: 2000;
  532. top: -9999px;
  533. bottom: -9999px;
  534. left: 0;
  535. background: #333;
  536. }
  537. @media screen and (max-width: 640px) {
  538. /* line 1, ../scss/components/modules/_overlay.scss */
  539. #lightcase-overlay {
  540. opacity: 1 !important;
  541. }
  542. }