Skip to content

Commit

Permalink
Merge pull request #50 from ulaharbmg/JS-321
Browse files Browse the repository at this point in the history
JS-321: Remove margin for zoom buttons in fullscreen
  • Loading branch information
uharbachou1 committed Nov 24, 2015
2 parents ec77114 + 5625f14 commit 89271f7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 27 deletions.
4 changes: 2 additions & 2 deletions lib/web/mage/gallery/gallery.less
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,8 @@
&:extend(.fotorama-sprite);
background-position: 0 0;
height: @size-fotorama-block;
right: 2px;
top: 2px;
right: 0;
top: 0;
width: @size-fotorama-block;
z-index: @z-index-10;
display: none;
Expand Down
37 changes: 17 additions & 20 deletions lib/web/mage/gallery/module/_focus.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,24 @@

.fotorama__fullscreen-icon:focus,
.fotorama__zoom-out:focus,
.fotorama__zoom-in:focus {
box-shadow:@focus__box-shadow;
}

.fotorama__arr:focus {
.fotorama__zoom-in:focus,
.fotorama__arr:focus,
.fotorama__arr:focus,
.fotorama__stage__shaft:focus,
.fotorama__nav__frame--thumb:focus .fotorama__thumb,
.fotorama__nav__frame--dot:focus .fotorama__dot {
box-shadow: none;
}

.fotorama__arr:focus:after,
.fotorama__stage__shaft:focus:after,
.fotorama__nav__frame--thumb:focus .fotorama__thumb:after,
.fotorama__nav__frame--dot:focus .fotorama__dot:after{
box-shadow: @focus__box-shadow;
border-radius: inherit;
content: '';
position: absolute;
left: 3px;
top: 3px;
bottom: 3px;
right: 3px;
z-index: 10;
&:after {
content: '';
border-radius: inherit;
position: absolute;
top: @fotorama-inner-box-shadow;
right: @fotorama-inner-box-shadow;
left: @fotorama-inner-box-shadow;
bottom: @fotorama-inner-box-shadow;
box-shadow: @focus__box-shadow;
z-index: @z-index-10;
}
}

.fotorama__nav__frame--thumb:focus,
Expand Down
9 changes: 4 additions & 5 deletions lib/web/mage/gallery/module/_fullscreen.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
right: 0 !important;
top: 0 !important;
width: 100% !important;
height: 100% !important;
z-index: @z-index-10 !important;
&:extend(.fotorama-gpu);
.fotorama__wrap {
Expand All @@ -35,19 +34,19 @@

}
.fotorama__zoom-out {
top: 83px;
top: 80px;
&:extend(.fotorama-sprite);
background-position: 0 (-@size-fotorama-block) !important;
&.fotorama__zoom-out--disabled {
display: none
display: none;
}
}
.fotorama__zoom-in {
top: 2px;
top: 0;
&:extend(.fotorama-sprite);
background-position: 0 0 !important;
&.fotorama__zoom-in--disabled {
display: none
display: none;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions lib/web/mage/gallery/module/_variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
@size-fotorama-block: 80px;
@fotorama-thumb-arrow: 30px;
@fotorama-fullscreen-zoom-time: 0.3s;
@fotorama-inner-box-shadow: 3px;

0 comments on commit 89271f7

Please sign in to comment.