prettyPhoto.scss 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. /**
  2. * prettyPhoto.scss
  3. * Styles for the prettyPhoto lightbox script. Includes a custom WooCommerce theme.
  4. * http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/
  5. */
  6. /**
  7. * Imports
  8. */
  9. @import 'mixins';
  10. @import 'variables';
  11. @import 'fonts';
  12. /**
  13. * Mixins
  14. */
  15. @mixin button() {
  16. border-radius: 100%;
  17. height: 1em;
  18. width: 1em;
  19. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  20. background-color: #444;
  21. color: #fff !important;
  22. font-size: 16px !important;
  23. line-height: 1em;
  24. @include transition();
  25. &:hover {
  26. background-color: #000;
  27. }
  28. }
  29. /**
  30. * Custom WooCommerce prettyPhoto theme
  31. */
  32. div.pp_woocommerce {
  33. .pp_content_container {
  34. background: #fff;
  35. border-radius: 3px;
  36. box-shadow: 0 1px 30px rgba(0, 0, 0, 0.25);
  37. padding: 20px 0;
  38. @include clearfix();
  39. }
  40. .pp_loaderIcon {
  41. @include loader();
  42. }
  43. div.ppt {
  44. color: black;
  45. }
  46. .pp_gallery {
  47. ul {
  48. li {
  49. a {
  50. border: 1px solid rgba(0, 0, 0, 0.5);
  51. background: #fff;
  52. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  53. border-radius: 2px;
  54. display: block;
  55. &:hover {
  56. border-color: #000;
  57. }
  58. }
  59. &.selected {
  60. a {
  61. border-color: #000;
  62. }
  63. }
  64. }
  65. }
  66. }
  67. .pp_previous,
  68. .pp_next {
  69. &::before {
  70. @include button();
  71. font-family: 'WooCommerce';
  72. content: '\e00b';
  73. text-indent: 0;
  74. display: none;
  75. position: absolute;
  76. top: 50%;
  77. margin-top: -10px;
  78. text-align: center;
  79. }
  80. &:hover {
  81. &::before {
  82. display: block;
  83. }
  84. }
  85. }
  86. .pp_previous {
  87. &::before {
  88. left: 1em;
  89. }
  90. }
  91. .pp_next {
  92. &::before {
  93. right: 1em;
  94. font-family: 'WooCommerce';
  95. content: '\e008';
  96. }
  97. }
  98. .pp_details {
  99. margin: 0;
  100. padding-top: 1em;
  101. }
  102. .pp_nav,
  103. .pp_description {
  104. font-size: 14px;
  105. }
  106. .pp_nav,
  107. .pp_nav p,
  108. .pp_play,
  109. .pp_nav .pp_pause,
  110. .pp_arrow_previous,
  111. .pp_arrow_next {
  112. margin: 0;
  113. }
  114. .pp_nav {
  115. margin-right: 1em;
  116. position: relative;
  117. }
  118. .pp_close {
  119. @include button();
  120. top: -0.5em;
  121. right: -0.5em;
  122. font-size: 1.618em !important;
  123. &::before {
  124. font-family: 'WooCommerce';
  125. content: '\e013';
  126. display: block;
  127. position: absolute;
  128. top: 0;
  129. left: 0;
  130. right: 0;
  131. bottom: 0;
  132. text-align: center;
  133. text-indent: 0;
  134. }
  135. }
  136. .pp_arrow_previous,
  137. .pp_arrow_next {
  138. @include button();
  139. position: relative;
  140. margin-top: -1px;
  141. &::before {
  142. font-family: 'WooCommerce';
  143. content: '\e00b';
  144. display: block;
  145. position: absolute;
  146. top: 0;
  147. left: 0;
  148. right: 0;
  149. bottom: 0;
  150. text-align: center;
  151. text-indent: 0;
  152. }
  153. }
  154. .pp_arrow_previous {
  155. margin-right: 0.5em;
  156. }
  157. .pp_arrow_next {
  158. margin-left: 0.5em;
  159. &::before {
  160. content: '\e008';
  161. }
  162. }
  163. a.pp_expand,
  164. a.pp_contract {
  165. @include button();
  166. right: auto;
  167. left: -0.5em;
  168. top: -0.5em;
  169. font-size: 1.618em !important;
  170. &::before {
  171. font-family: 'WooCommerce';
  172. content: '\e005';
  173. display: block;
  174. position: absolute;
  175. top: 0;
  176. left: 0;
  177. right: 0;
  178. bottom: 0;
  179. text-align: center;
  180. text-indent: 0;
  181. }
  182. }
  183. a.pp_contract {
  184. &::before {
  185. content: '\e004';
  186. }
  187. }
  188. #respond {
  189. margin: 0;
  190. width: 100%;
  191. background: none;
  192. border: none;
  193. padding: 0;
  194. .form-submit {
  195. margin-top: 0;
  196. float: none;
  197. }
  198. }
  199. .pp_inline {
  200. padding: 0!important;
  201. }
  202. }
  203. // RTL support
  204. .rtl {
  205. div.pp_woocommerce {
  206. .pp_content_container {
  207. text-align: right;
  208. }
  209. }
  210. }
  211. @media only screen and (max-width: 768px) {
  212. div.pp_woocommerce {
  213. left: 5% !important;
  214. right: 5% !important;
  215. box-sizing: border-box;
  216. width: 90% !important;
  217. .pp_gallery,
  218. .pp_previous,
  219. .pp_next,
  220. .pp_expand,
  221. .pp_contract {
  222. display: none !important;
  223. }
  224. .pp_arrow_previous,
  225. .pp_arrow_next,
  226. .pp_close {
  227. height: 44px;
  228. width: 44px;
  229. font-size: 44px;
  230. line-height: 44px;
  231. &::before {
  232. font-size: 44px;
  233. }
  234. }
  235. .pp_description {
  236. display: none !important;
  237. }
  238. .pp_details {
  239. width: 100% !important;
  240. }
  241. }
  242. .pp_content {
  243. width: 100% !important;
  244. #pp_full_res {
  245. & > img {
  246. width: 100% !important;
  247. height: auto !important;
  248. }
  249. }
  250. }
  251. .currentTextHolder {
  252. line-height: 3;
  253. }
  254. }
  255. /**
  256. * Default prettyPhoto css
  257. * Do not edit!
  258. */
  259. div.pp_pic_holder a:focus {
  260. outline: none;
  261. }
  262. div.pp_overlay {
  263. background: #000;
  264. display: none;
  265. left: 0;
  266. position: absolute;
  267. top: 0;
  268. width: 100%;
  269. z-index: 9999;
  270. }
  271. div.pp_pic_holder {
  272. display: none;
  273. position: absolute;
  274. width: 100px;
  275. z-index: 10000;
  276. }
  277. .pp_top {
  278. height: 20px;
  279. position: relative;
  280. }
  281. * html .pp_top {
  282. padding: 0 20px;
  283. }
  284. .pp_top .pp_left {
  285. height: 20px;
  286. left: 0;
  287. position: absolute;
  288. width: 20px;
  289. }
  290. .pp_top .pp_middle {
  291. height: 20px;
  292. left: 20px;
  293. position: absolute;
  294. right: 20px;
  295. }
  296. * html .pp_top .pp_middle {
  297. left: 0;
  298. position: static;
  299. }
  300. .pp_top .pp_right {
  301. height: 20px;
  302. left: auto;
  303. position: absolute;
  304. right: 0;
  305. top: 0;
  306. width: 20px;
  307. }
  308. .pp_content {
  309. height: 40px;
  310. min-width: 40px;
  311. }
  312. * html .pp_content {
  313. width: 40px;
  314. }
  315. .pp_fade {
  316. display: none;
  317. }
  318. .pp_content_container {
  319. position: relative;
  320. text-align: left;
  321. width: 100%;
  322. }
  323. .pp_content_container .pp_left {
  324. padding-left: 20px;
  325. }
  326. .pp_content_container .pp_right {
  327. padding-right: 20px;
  328. }
  329. .pp_content_container .pp_details {
  330. float: left;
  331. margin: 10px 0 2px;
  332. }
  333. .pp_description {
  334. display: none;
  335. margin: 0;
  336. }
  337. .pp_social {
  338. float: left;
  339. margin: 0;
  340. }
  341. .pp_social .facebook {
  342. float: left;
  343. margin-left: 5px;
  344. width: 55px;
  345. overflow: hidden;
  346. }
  347. .pp_social .twitter {
  348. float: left;
  349. }
  350. .pp_nav {
  351. clear: right;
  352. float: left;
  353. margin: 3px 10px 0 0;
  354. }
  355. .pp_nav p {
  356. float: left;
  357. margin: 2px 4px;
  358. white-space: nowrap;
  359. }
  360. .pp_nav .pp_play,
  361. .pp_nav .pp_pause {
  362. float: left;
  363. margin-right: 4px;
  364. text-indent: -10000px;
  365. }
  366. a.pp_arrow_previous,
  367. a.pp_arrow_next {
  368. display: block;
  369. float: left;
  370. height: 15px;
  371. margin-top: 3px;
  372. text-indent: -100000px;
  373. width: 14px;
  374. }
  375. .pp_hoverContainer {
  376. position: absolute;
  377. top: 0;
  378. width: 100%;
  379. z-index: 2000;
  380. }
  381. .pp_gallery {
  382. display: none;
  383. left: 50%;
  384. margin-top: -50px;
  385. position: absolute;
  386. z-index: 10000;
  387. }
  388. .pp_gallery div {
  389. float: left;
  390. overflow: hidden;
  391. position: relative;
  392. }
  393. .pp_gallery ul {
  394. float: left;
  395. height: 35px;
  396. margin: 0 0 0 5px;
  397. padding: 0;
  398. position: relative;
  399. white-space: nowrap;
  400. }
  401. .pp_gallery ul a {
  402. border: 1px #000 solid;
  403. border: 1px rgba(0, 0, 0, 0.5) solid;
  404. display: block;
  405. float: left;
  406. height: 33px;
  407. overflow: hidden;
  408. }
  409. .pp_gallery ul a:hover,
  410. .pp_gallery li.selected a {
  411. border-color: #fff;
  412. }
  413. .pp_gallery ul a img {
  414. border: 0;
  415. }
  416. .pp_gallery li {
  417. display: block;
  418. float: left;
  419. margin: 0 5px 0 0;
  420. padding: 0;
  421. }
  422. .pp_gallery li.default a {
  423. display: block;
  424. height: 33px;
  425. width: 50px;
  426. }
  427. .pp_gallery li.default a img {
  428. display: none;
  429. }
  430. .pp_gallery .pp_arrow_previous,
  431. .pp_gallery .pp_arrow_next {
  432. margin-top: 7px !important;
  433. }
  434. a.pp_next {
  435. display: block;
  436. float: right;
  437. height: 100%;
  438. text-indent: -10000px;
  439. width: 49%;
  440. }
  441. a.pp_previous {
  442. display: block;
  443. float: left;
  444. height: 100%;
  445. text-indent: -10000px;
  446. width: 49%;
  447. }
  448. a.pp_expand,
  449. a.pp_contract {
  450. cursor: pointer;
  451. display: none;
  452. height: 20px;
  453. position: absolute;
  454. right: 30px;
  455. text-indent: -10000px;
  456. top: 10px;
  457. width: 20px;
  458. z-index: 20000;
  459. }
  460. a.pp_close {
  461. position: absolute;
  462. right: 0;
  463. top: 0;
  464. display: block;
  465. text-indent: -10000px;
  466. }
  467. .pp_bottom {
  468. height: 20px;
  469. position: relative;
  470. }
  471. * html .pp_bottom {
  472. padding: 0 20px;
  473. }
  474. .pp_bottom .pp_left {
  475. height: 20px;
  476. left: 0;
  477. position: absolute;
  478. width: 20px;
  479. }
  480. .pp_bottom .pp_middle {
  481. height: 20px;
  482. left: 20px;
  483. position: absolute;
  484. right: 20px;
  485. }
  486. * html .pp_bottom .pp_middle {
  487. left: 0;
  488. position: static;
  489. }
  490. .pp_bottom .pp_right {
  491. height: 20px;
  492. left: auto;
  493. position: absolute;
  494. right: 0;
  495. top: 0;
  496. width: 20px;
  497. }
  498. .pp_loaderIcon {
  499. display: block;
  500. height: 24px;
  501. left: 50%;
  502. margin: -12px 0 0 -12px;
  503. position: absolute;
  504. top: 50%;
  505. width: 24px;
  506. }
  507. #pp_full_res .pp_inline {
  508. text-align: left;
  509. }
  510. div.ppt {
  511. color: #fff !important;
  512. font-weight: 700;
  513. display: none;
  514. font-size: 17px;
  515. margin: 0 0 5px 15px;
  516. z-index: 9999;
  517. }