Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #137 from SnowdogApps/feature/52198
Browse files Browse the repository at this point in the history
#52198 - Fix fotorama video styles
  • Loading branch information
Aekal authored Apr 17, 2019
2 parents f9c34ef + 336b0a3 commit 21ec6f5
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ All notable changes to this project will be documented in this file.
- wishlist and catalog elements for focus state
- Catalog grid item link class name

### Fixed
- Fotorama video styles

## [1.2.0] - 2019-03-04
### Added
- Support for escape key in dropdown script
Expand Down
42 changes: 42 additions & 0 deletions Magento_Catalog/styles/modules/_fotorama.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,48 @@
}
}

.fotorama-video-container {
cursor: pointer;

&.video-unplayed {
&:after {
content: '';
position: absolute;
top: 12px;
right: 0;
bottom: 0;
left: 0;
width: 100px;
height: 100px;
margin: auto;
opacity: 0.8;
background: url(../Magento_ProductVideo/img/gallery-sprite.png) bottom right;
}

&:hover {
&:after {
opacity: 1;
}
}
}

&.fotorama__product-video--loaded {
.product-video {
display: block;
width: 100%;
height: 100%;
}
}

.product-video {
display: none;
}

.fotorama__img {
pointer-events: none;
}
}

.fotorama__thumb-border {
display: none;
}
Expand Down

0 comments on commit 21ec6f5

Please sign in to comment.