gallery.less 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020
  1. // /**
  2. // * Copyright © Magento, Inc. All rights reserved.
  3. // * See COPYING.txt for license details.
  4. // */
  5. @import 'module/_variables.less'; //Default gallery variables
  6. @import '../../css/source/lib/_lib.less'; // Global lib
  7. @import '../../css/source/_theme.less'; // Theme overrides
  8. @import '../../css/source/_variables.less'; // Local theme variables
  9. @import 'module/_mixins.less'; //Mixins in gallery
  10. @import 'module/_extends.less';
  11. @import 'module/_focus.less';
  12. @import 'module/_fullscreen.less';
  13. .fotorama__zoom-in,
  14. .fotorama__zoom-out {
  15. display: none;
  16. }
  17. .fotorama {
  18. min-width: 1px;
  19. overflow: hidden;
  20. }
  21. .fotorama__wrap {
  22. &:extend(.fotorama-no-select);
  23. -webkit-text-size-adjust: 100%;
  24. direction: ltr;
  25. position: relative;
  26. z-index: 0;
  27. }
  28. .fotorama__wrap--rtl {
  29. .fotorama__stage__frame {
  30. direction: rtl;
  31. }
  32. }
  33. .fotorama__stage,
  34. .fotorama__nav {
  35. max-width: 100%;
  36. overflow: hidden;
  37. position: relative;
  38. }
  39. .fotorama__wrap--pan-y {
  40. -ms-touch-action: pan-y;
  41. }
  42. .fotorama__stage__shaft {
  43. &:extend(.fotorama-stretch);
  44. &:extend(.fotorama-no-tap);
  45. position: relative;
  46. }
  47. .fotorama__wrap {
  48. .fotorama__pointer {
  49. cursor: pointer;
  50. }
  51. .fotorama__grab {
  52. &:extend(.fotorama-grab-cursor);
  53. }
  54. }
  55. .fotorama__wrap--slide {
  56. .fotorama__stage__frame {
  57. opacity: 1 !important;
  58. }
  59. }
  60. .fotorama__grabbing * {
  61. &:extend(.fotorama-grabbing-cursor);
  62. }
  63. .fotorama__stage__frame {
  64. &:extend(.fotorama-no-tap);
  65. &:extend(.fotorama-stretch);
  66. overflow: hidden;
  67. &.fotorama__active {
  68. z-index: 8;
  69. }
  70. }
  71. .fotorama__wrap--fade {
  72. .fotorama__stage__frame {
  73. display: none;
  74. }
  75. .fotorama__stage__frame.fotorama__active,
  76. .fotorama__fade-front,
  77. .fotorama__fade-rear {
  78. display: block;
  79. left: 0;
  80. top: 0;
  81. }
  82. .fotorama__fade-front {
  83. z-index: 8;
  84. }
  85. .fotorama__fade-rear {
  86. z-index: 7;
  87. &.fotorama__active {
  88. z-index: 9;
  89. }
  90. }
  91. .fotorama__stage .fotorama__shadow {
  92. display: none;
  93. }
  94. }
  95. .fotorama__img {
  96. border: none !important;
  97. max-width: inherit;
  98. opacity: 0;
  99. .fotorama__loaded &,
  100. .fotorama__error & {
  101. opacity: 1;
  102. }
  103. }
  104. .fotorama__img--full {
  105. display: none;
  106. }
  107. .fotorama__html {
  108. &:extend(.fotorama-stretch);
  109. }
  110. .fotorama__nav {
  111. &:extend(.fotorama-auto-margin);
  112. &:extend(.fotorama-no-tap);
  113. display: none;
  114. font-size: 0;
  115. line-height: 0;
  116. white-space: nowrap;
  117. z-index: 5;
  118. }
  119. .fotorama__nav__shaft {
  120. &:extend(.fotorama-inline-block);
  121. &:extend(.fotorama-no-tap);
  122. left: 0;
  123. position: relative;
  124. text-align: left;
  125. top: 0;
  126. }
  127. .fotorama__nav__frame {
  128. &:extend(.fotorama-auto-margin);
  129. &:extend(.fotorama-content-box);
  130. &:extend(.fotorama-focus);
  131. &:extend(.fotorama-inline-block);
  132. &:extend(.fotorama-no-tap);
  133. position: relative;
  134. }
  135. .fotorama__nav--dots {
  136. display: block;
  137. text-align: center;
  138. .fotorama__nav__frame {
  139. height: 30px;
  140. width: 18px;
  141. }
  142. .fotorama__nav__frame--thumb,
  143. .fotorama__thumb-border {
  144. display: none;
  145. }
  146. }
  147. .fotorama__nav--thumbs {
  148. display: block;
  149. .fotorama__nav__frame {
  150. padding-left: 0 !important;
  151. &:last-child {
  152. padding-right: 0 !important;
  153. }
  154. }
  155. .fotorama__nav__frame--dot {
  156. display: none;
  157. }
  158. }
  159. .fotorama__active {
  160. .fotorama__dot {
  161. background-color: @active__color;
  162. border-color: @active__color;
  163. }
  164. }
  165. .fotorama__nav__frame {
  166. &.fotorama__active & {
  167. border-width: 3px;
  168. height: 0;
  169. width: 0;
  170. &:after {
  171. left: -3px;
  172. padding: 3px;
  173. top: -3px;
  174. }
  175. }
  176. }
  177. .fotorama__nav__frame:focus & {
  178. &:extend(.fotorama-focus-overlay);
  179. box-shadow: none;
  180. &:after {
  181. left: -1px;
  182. padding: 1px;
  183. top: -1px;
  184. }
  185. }
  186. .fotorama__dot {
  187. border-radius: 6px;
  188. border: 1px solid @color-gray52;
  189. display: block;
  190. height: 4px;
  191. left: 6px;
  192. position: relative;
  193. top: 12px;
  194. width: 4px;
  195. }
  196. .fotorama__thumb {
  197. background-color: @color-gray92;
  198. height: 100%;
  199. overflow: hidden;
  200. position: relative;
  201. width: 100%;
  202. .fotorama__nav__frame:focus & {
  203. &:extend(.fotorama-focus-overlay);
  204. z-index: 2;
  205. }
  206. }
  207. .fotorama__thumb-border {
  208. &:extend(.fotorama-border-box);
  209. &:extend(.fotorama-print-background);
  210. backface-visibility: hidden;
  211. background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.25), rgba(64, 64, 64, 0.1));
  212. border: 1px solid @active__color;
  213. left: 0;
  214. position: absolute;
  215. top: 0;
  216. z-index: 9;
  217. }
  218. .fotorama__caption {
  219. &:extend(.fotorama-gpu);
  220. bottom: 0;
  221. color: @color-black;
  222. font-size: 14px;
  223. left: 0;
  224. line-height: 1.5;
  225. position: absolute;
  226. right: 0;
  227. z-index: 12;
  228. a {
  229. border-bottom: 1px solid;
  230. border-color: fade(@color-black, 0.5);
  231. color: @color-black;
  232. text-decoration: none;
  233. &:hover {
  234. border-color: fade(@color-black, 0.5);
  235. color: @color-black;
  236. }
  237. }
  238. .fotorama__wrap--rtl & {
  239. left: auto;
  240. right: 0;
  241. }
  242. .fotorama__wrap--video &,
  243. .fotorama__wrap--no-captions & {
  244. display: none;
  245. }
  246. }
  247. .fotorama__caption__wrap {
  248. &:extend(.fotorama-border-box);
  249. &:extend(.fotorama-inline-block);
  250. background-color: @color-white;
  251. padding: 5px 10px;
  252. }
  253. .fotorama--hidden {
  254. &:extend(.fotorama-hidden);
  255. }
  256. @keyframes spinner {
  257. 0% {
  258. transform: rotate(0deg);
  259. }
  260. 100% {
  261. transform: rotate(360deg);
  262. }
  263. }
  264. .fotorama__spinner {
  265. .fotorama-abs-center();
  266. }
  267. .fotorama__wrap--css3 {
  268. .fotorama__stage__shaft,
  269. .fotorama__nav__shaft,
  270. .fotorama__thumb-border {
  271. &:extend(.fotorama-transition-for-slide);
  272. }
  273. .fotorama__spinner {
  274. &:extend(.fotorama-gpu);
  275. animation: spinner 24s infinite linear;
  276. }
  277. .fotorama__stage,
  278. .fotorama__nav,
  279. .fotorama__stage__frame {
  280. &:extend(.fotorama-gpu);
  281. }
  282. .fotorama__html {
  283. &:extend(.fotorama-gpu);
  284. transition-duration: @fotorama-duration-time;
  285. transition-property: opacity;
  286. transition-timing-function: linear;
  287. }
  288. }
  289. .fotorama__wrap--video {
  290. .fotorama__stage__shaft,
  291. .fotorama__stage,
  292. .fotorama__stage__frame--video {
  293. &:extend(.fotorama-transform-disabled);
  294. }
  295. .fotorama__stage__frame--video {
  296. .fotorama__img,
  297. .fotorama__html {
  298. &:extend(.fotorama-transform-disabled);
  299. opacity: 0;
  300. }
  301. }
  302. }
  303. .fotorama__select {
  304. &:extend(.fotorama-select);
  305. cursor: auto;
  306. }
  307. .fotorama__no-select {
  308. &:extend(.fotorama-no-select);
  309. }
  310. .fotorama__load {
  311. &:extend(.fotorama-hidden);
  312. }
  313. .fotorama__video {
  314. bottom: 0;
  315. left: 0;
  316. position: absolute;
  317. right: 0;
  318. top: 32px;
  319. z-index: 10;
  320. iframe {
  321. &:extend(.fotorama-stretch);
  322. }
  323. }
  324. @-moz-document url-prefix() {
  325. .fotorama__active {
  326. box-shadow: 0 0 0 transparent;
  327. }
  328. }
  329. .fotorama__arr,
  330. .fotorama__fullscreen-icon,
  331. .fotorama__video-close {
  332. &:extend(.fotorama-no-select);
  333. &:extend(.fotorama-no-tap);
  334. cursor: pointer;
  335. position: absolute;
  336. }
  337. .fotorama__arr {
  338. z-index: @z-index-9;
  339. }
  340. .fotorama__fullscreen-icon,
  341. .fotorama__zoom-out,
  342. .fotorama__zoom-in,
  343. .fotorama__video-close {
  344. z-index: @z-index-10;
  345. }
  346. .fotorama__arr {
  347. &:extend(.fotorama-border-box);
  348. bottom: 0;
  349. position: absolute;
  350. top: 0;
  351. width: @fotorama-arw-size;
  352. .fotorama__arr__arr {
  353. &:extend(.fotorama-sprite);
  354. .fotorama-abs-center();
  355. height: @size-fotorama-block;
  356. width: @size-fotorama-block;
  357. }
  358. }
  359. .fotorama__arr--prev {
  360. left: 0;
  361. .fotorama__arr__arr {
  362. background-position: -@size-fotorama-block -@size-fotorama-block;
  363. }
  364. }
  365. .fotorama__arr--next {
  366. right: 0;
  367. .fotorama__arr__arr {
  368. background-position: (-@size-fotorama-block*2) (-@size-fotorama-block);
  369. }
  370. }
  371. .fotorama__arr--disabled {
  372. *display: none;
  373. cursor: default;
  374. opacity: 0.1;
  375. pointer-events: none;
  376. }
  377. .fotorama__fullscreen-icon {
  378. &:extend(.fotorama-sprite);
  379. background-position: 0 0;
  380. display: none;
  381. height: @size-fotorama-block;
  382. right: 0;
  383. top: 0;
  384. width: @size-fotorama-block;
  385. z-index: @z-index-10;
  386. }
  387. .fotorama--fullscreen-icons {
  388. .fotorama__fullscreen-icon {
  389. display: none;
  390. }
  391. }
  392. .fotorama__fullscreen-icon,
  393. .fotorama__zoom-out,
  394. .fotorama__zoom-in {
  395. &:focus {
  396. &:extend(.fotorama-focus);
  397. }
  398. }
  399. .fotorama--fullscreen {
  400. .fotorama__fullscreen-icon {
  401. background-position: (-@size-fotorama-block) 0;
  402. display: inline-block;
  403. }
  404. }
  405. .fotorama__video-play {
  406. &:extend(.fotorama-sprite);
  407. .fotorama-abs-center();
  408. background-position: (-@size-fotorama-block) (-@size-fotorama-block*2);
  409. height: @size-fotorama-block * 2;
  410. width: @size-fotorama-block * 2;
  411. .fotorama__wrap--css2 &,
  412. .fotorama__wrap--video .fotorama__stage & {
  413. display: none;
  414. }
  415. .fotorama__loaded &,
  416. .fotorama__error &,
  417. .fotorama__nav__frame & {
  418. display: block;
  419. opacity: 1;
  420. }
  421. .fotorama__nav__frame & {
  422. background-position: 0 (-@size-fotorama-block*3);
  423. height: @size-fotorama-block;
  424. width: @size-fotorama-block;
  425. }
  426. }
  427. .fotorama__wrap--no-controls.fotorama__wrap--toggle-arrows {
  428. .fotorama__arr,
  429. .fotorama__fullscreen-icon {
  430. opacity: 0;
  431. &:focus {
  432. opacity: 1;
  433. }
  434. }
  435. }
  436. .fotorama__wrap--toggle-arrows {
  437. &:not(.fotorama__wrap--video) {
  438. .fotorama__video-close {
  439. display: none;
  440. }
  441. }
  442. }
  443. .fotorama__wrap--toggle-arrows {
  444. &.fotorama__wrap--video {
  445. .fotorama__video-close {
  446. opacity: 1;
  447. right: 93px;
  448. top: 97px;
  449. }
  450. }
  451. }
  452. .fotorama__wrap--toggle-arrows {
  453. &:not(.fotorama__wrap--video) {
  454. .fotorama__video-close {
  455. display: none;
  456. }
  457. }
  458. }
  459. .fotorama__wrap--toggle-arrows {
  460. &.fotorama__wrap--video {
  461. .fotorama__video-close {
  462. opacity: 1;
  463. right: 93px;
  464. top: 97px;
  465. }
  466. }
  467. }
  468. .fotorama__wrap--toggle-arrows {
  469. &:not(.fotorama__wrap--video) {
  470. .fotorama__video-close {
  471. display: none;
  472. }
  473. }
  474. }
  475. .fotorama__wrap--toggle-arrows {
  476. &.fotorama__wrap--video {
  477. .fotorama__video-close {
  478. opacity: 1;
  479. right: 93px;
  480. top: 97px;
  481. }
  482. }
  483. }
  484. .fotorama__wrap--video {
  485. .fotorama__arr,
  486. .fotorama__fullscreen-icon {
  487. opacity: 0 !important;
  488. }
  489. }
  490. .fotorama__wrap--css2 {
  491. &.fotorama__wrap--no-controls.fotorama__wrap--toggle-arrows {
  492. .fotorama__arr,
  493. .fotorama__fullscreen-icon {
  494. display: none;
  495. &:focus {
  496. display: block;
  497. }
  498. }
  499. }
  500. &.fotorama__wrap--video {
  501. .fotorama__arr,
  502. .fotorama__fullscreen-icon {
  503. display: none !important;
  504. }
  505. }
  506. }
  507. .fotorama__wrap--css3 {
  508. &.fotorama__wrap--no-controls.fotorama__wrap--slide.fotorama__wrap--toggle-arrows {
  509. .fotorama__fullscreen-icon:not(:focus) {
  510. .fotorama-translate3d(@fotorama-arw-size, -@fotorama-arw-size, 0);
  511. }
  512. .fotorama__arr--prev:not(:focus) {
  513. .fotorama-translate3d(-@fotorama-arw-size * 1.5, 0, 0);
  514. }
  515. .fotorama__arr--next:not(:focus) {
  516. .fotorama-translate3d(@fotorama-arw-size * 1.5, 0, 0);
  517. }
  518. }
  519. &.fotorama__wrap--video {
  520. .fotorama__fullscreen-icon {
  521. .fotorama-translate3d(@fotorama-arw-size, -@fotorama-arw-size, 0) !important;
  522. }
  523. .fotorama__arr--prev {
  524. .fotorama-translate3d(-@fotorama-arw-size * 1.5, 0, 0) !important;
  525. }
  526. .fotorama__arr--next {
  527. .fotorama-translate3d(@fotorama-arw-size * 1.5, 0, 0) !important;
  528. }
  529. }
  530. }
  531. .fotorama__wrap--css3 {
  532. .fotorama__arr:not(:focus),
  533. .fotorama__fullscreen-icon:not(:focus),
  534. .fotorama__video-play:not(:focus),
  535. .fotorama__video-close:not(:focus) {
  536. transition-duration: @fotorama-duration-time;
  537. transition-property: transform, opacity, background-color;
  538. }
  539. }
  540. .fotorama__stage,
  541. .fotorama__nav {
  542. &:before,
  543. &:after {
  544. &:extend(.fotorama-gpu);
  545. background-repeat: no-repeat;
  546. content: '';
  547. display: block;
  548. pointer-events: none;
  549. position: absolute;
  550. text-decoration: none;
  551. z-index: 10;
  552. }
  553. &:before {
  554. left: -10px;
  555. top: -10px;
  556. }
  557. &:after {
  558. right: -10px;
  559. bottom: -10px;
  560. }
  561. &.fotorama__shadows--left:before,
  562. &.fotorama__shadows--right:after {
  563. background-size: 1px 100%, 5px 100%;
  564. bottom: 0;
  565. height: auto;
  566. top: 0;
  567. width: 10px;
  568. }
  569. &.fotorama__shadows--top:before,
  570. &.fotorama__shadows--bottom:after {
  571. background-size: 100% 1px, 100% 5px ;
  572. height:10px;
  573. left: 0;
  574. right:0;
  575. width:auto;
  576. }
  577. &.fotorama__shadows--left:before {
  578. .fotorama-shadow-gradient(0, 50%);
  579. background-position: 0 0, 0 0;
  580. left: 0;
  581. }
  582. &.fotorama__shadows--right:after {
  583. .fotorama-shadow-gradient(100%, 50%);
  584. background-position: 100% 0, 100% 0;
  585. right: 0;
  586. }
  587. &.fotorama__shadows--top:before {
  588. .fotorama-shadow-gradient(50%, 0);
  589. background-position: 0 0, 0 0;
  590. top:0;
  591. }
  592. &.fotorama__shadows--bottom:after {
  593. .fotorama-shadow-gradient(50%, 100%);
  594. background-position: 0 100%, 0 100%;
  595. bottom:0;
  596. }
  597. }
  598. .fotorama--fullscreen .fotorama__stage,
  599. .fotorama--fullscreen .fotorama__nav,
  600. .fotorama__wrap--no-shadows .fotorama__stage,
  601. .fotorama__wrap--no-shadows .fotorama__nav,
  602. .fotorama__wrap--fade .fotorama__stage {
  603. &:before,
  604. &:after {
  605. display: none;
  606. }
  607. }
  608. .fotorama-abs-center() {
  609. .fotorama-translate3d(-50%, -50%, 0);
  610. left: 50%;
  611. position: absolute;
  612. top: 50%;
  613. }
  614. .fotorama__nav-wrap {
  615. .fotorama_vertical_ratio {
  616. .fotorama__img {
  617. .translateY(-50%);
  618. height: auto;
  619. position: absolute;
  620. top: 50%;
  621. width: 100%;
  622. }
  623. }
  624. .fotorama_horizontal_ratio {
  625. .fotorama__img {
  626. .translateX(-50%);
  627. height: 100%;
  628. left: 50%;
  629. position: absolute;
  630. width: auto;
  631. }
  632. }
  633. }
  634. .magnifier-thumb-wrapper {
  635. display: block;
  636. left: 0;
  637. position: relative;
  638. top: 0;
  639. }
  640. .magnifier-lens {
  641. border: solid 1px @color-gray-light2;
  642. left: 0;
  643. overflow: hidden;
  644. position: absolute;
  645. top: 0;
  646. z-index: @z-index-8;
  647. }
  648. .magnify-lens {
  649. background: rgba(255, 255, 255, 0.5);
  650. border: solid 1px @color-gray-light2;
  651. color: @color-white;
  652. left: 0;
  653. position: absolute;
  654. text-align: center;
  655. top: 0;
  656. z-index: @z-index-10;
  657. overflow: hidden;
  658. .magnifier-large {
  659. width: auto;
  660. height: auto;
  661. max-height: none;
  662. max-width: none;
  663. border: none;
  664. position: absolute;
  665. z-index: @z-index-1;
  666. }
  667. }
  668. .magnifier-loader-text {
  669. margin-top: 10px;
  670. }
  671. .magnifier-preview {
  672. bottom: 0;
  673. left: 58%;
  674. overflow: hidden;
  675. padding: 0;
  676. position: absolute;
  677. z-index: 2;
  678. top: 215px;
  679. &:not(.hidden) {
  680. background-color: @color-white;
  681. }
  682. img {
  683. left: 0;
  684. max-width: inherit;
  685. position: absolute;
  686. top: 0;
  687. object-fit: scale-down;
  688. }
  689. }
  690. .fotorama__stage__frame {
  691. text-align: center;
  692. .fotorama__img {
  693. height: auto;
  694. left: 50%;
  695. max-height: 100%;
  696. max-width: 100%;
  697. position: absolute;
  698. top: 50%;
  699. .fotorama-translate3d(-50%, -50%, 0);
  700. transition-duration: @fotorama-fullscreen-zoom-time;
  701. transition-property: width, height, top, left;
  702. vertical-align: middle;
  703. width: auto;
  704. }
  705. }
  706. .magnify-opaque {
  707. opacity: .5;
  708. }
  709. .magnify-hidden {
  710. display: none;
  711. }
  712. .fotorama__nav-wrap--vertical {
  713. &.fotorama__nav-wrap {
  714. display: inline-block;
  715. left: 0;
  716. position: absolute;
  717. top: 0;
  718. }
  719. .fotorama__nav__shaft {
  720. background-color: white;
  721. width: 100%;
  722. .fotorama__nav__frame--thumb {
  723. display: block;
  724. padding-bottom: inherit !important;
  725. }
  726. }
  727. }
  728. .fotorama--fullscreen {
  729. .fotorama__stage__frame {
  730. .fotorama__img {
  731. display: none;
  732. }
  733. .fotorama__img,
  734. .fotorama__img--full {
  735. bottom: 0;
  736. left: 0;
  737. margin: auto;
  738. max-height: inherit;
  739. max-width: inherit;
  740. position: absolute;
  741. right: 0;
  742. top: 0;
  743. }
  744. .fotorama__img--full {
  745. cursor: default;
  746. display: block;
  747. height: auto;
  748. left: 0;
  749. margin: auto;
  750. max-height: 100%;
  751. max-width: 100%;
  752. top: 0;
  753. transition: @fotorama-fullscreen-zoom-time linear;
  754. vertical-align: middle;
  755. width: auto;
  756. &:extend(.fotorama-gpu);
  757. &.fotorama__img--zoommable {
  758. cursor: pointer;
  759. max-height: none;
  760. max-width: none;
  761. transition-property: width, height, bottom, right, top, left;
  762. }
  763. &.fotorama__img--draggable {
  764. cursor: move;
  765. transition-property: none;
  766. }
  767. }
  768. iframe {
  769. left: @fotorama-arw-size;
  770. width: calc(~'100% - @{fotorama-arw-size} * 2');
  771. }
  772. }
  773. }
  774. .fotorama__nav-wrap--horizontal {
  775. .fotorama__thumb__arr--left,
  776. .fotorama__thumb__arr--right {
  777. bottom: 0;
  778. cursor: pointer;
  779. position: absolute;
  780. top: 0;
  781. width: @fotorama-thumb-arrow;
  782. z-index: @z-index-10;
  783. .fotorama__thumb--icon {
  784. .fotorama-abs-center();
  785. width: 100%;
  786. }
  787. }
  788. .fotorama__thumb__arr--left {
  789. left: 0;
  790. }
  791. .fotorama__thumb__arr--right {
  792. right: 0;
  793. }
  794. }
  795. .fotorama__nav-wrap--vertical {
  796. .fotorama__thumb__arr--left,
  797. .fotorama__thumb__arr--right {
  798. cursor: pointer;
  799. height: @fotorama-thumb-arrow;
  800. left: 0;
  801. position: absolute;
  802. right: 0;
  803. z-index: @z-index-10;
  804. .fotorama__thumb--icon {
  805. .fotorama-rotate(90deg);
  806. margin: auto;
  807. width: @fotorama-thumb-arrow;
  808. }
  809. }
  810. .fotorama__thumb__arr--left {
  811. top: 0;
  812. }
  813. .fotorama__thumb__arr--right {
  814. bottom: 0;
  815. }
  816. }
  817. .fotorama__wrap--only-active {
  818. .fotorama__stage,
  819. .fotorama__nav {
  820. max-width: 99999px !important;
  821. }
  822. .fotorama__stage__frame {
  823. visibility: hidden;
  824. }
  825. .fotorama__stage__frame.fotorama__active {
  826. visibility: visible;
  827. }
  828. }
  829. .fotorama__thumb--icon {
  830. &:extend(.fotorama-sprite);
  831. font-size: 0.001px;
  832. padding-bottom: @fotorama-thumb-arrow;
  833. }
  834. .fotorama__thumb__arr--left {
  835. .fotorama__thumb--icon {
  836. background-position: -25px -265px;
  837. }
  838. }
  839. .fotorama__thumb__arr--right {
  840. .fotorama__thumb--icon {
  841. background-position: -25px -350px;
  842. }
  843. }
  844. .magnify-fullimage {
  845. display: none;
  846. }
  847. .fotorama__arr,
  848. .fotorama__thumb__arr {
  849. .fotorama-button-background();
  850. }
  851. .fotorama__wrap:not(.fotorama__wrap--toggle-arrows) {
  852. .fotorama__fullscreen-icon,
  853. .fotorama__zoom-out,
  854. .fotorama__zoom-in{
  855. .fotorama-button-background();
  856. }
  857. }
  858. .fotorama__video-close {
  859. &:extend(.fotorama-sprite);
  860. background-position: (-@fotorama_close_button) 0;
  861. height: @fotorama_close_button;
  862. opacity: 0;
  863. right: 0;
  864. top: 0;
  865. transform: translate3d((@fotorama_close_button), (-@fotorama_close_button), 0);
  866. transition: opacity 0.3s ease-in-out;
  867. width: @fotorama_close_button;
  868. @media all and (max-width: 768px) {
  869. background-position: -100px -20px;
  870. top: 10px;
  871. height: 40px;
  872. width: 40px;
  873. }
  874. &.fotorama-show-control {
  875. opacity: 1;
  876. transform: translate3d(0, -10px, 0);
  877. }
  878. }
  879. // While first time init
  880. .gallery-placeholder {
  881. .loading-mask {
  882. padding: 0 0 50%;
  883. position: static;
  884. }
  885. .loader img {
  886. position: absolute;
  887. }
  888. }
  889. // Styles for spinner in gallery.
  890. .fotorama__spinner {
  891. background-image: url('@{baseDir}../images/loader-1.gif');
  892. bottom: 0;
  893. display: none;
  894. height: @fotorama-spinner-size;
  895. left: 0;
  896. margin: auto;
  897. position: absolute;
  898. right: 0;
  899. top: 0;
  900. width: @fotorama-spinner-size;
  901. z-index: @z-index-1;
  902. &.fotorama__spinner--show {
  903. display: block;
  904. }
  905. }
  906. .fotorama__product-video--loaded {
  907. .fotorama__img, .fotorama__img--full {
  908. display: none !important;
  909. }
  910. }
  911. .fotorama__stage {
  912. .fotorama__arr--shown {
  913. display: block !important;
  914. }
  915. .fotorama__arr--hidden {
  916. display: none !important;
  917. }
  918. }