Skip to content

Commit

Permalink
Improving icons of rotate-actions, stop using external font (rap2hpou…
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Kuznetsov authored Jul 31, 2020
1 parent 8ac2023 commit 9469793
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
Binary file added dist/91ca01537932789056de6f9902446dc1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion dist/vue-picture-swipe.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/vue-picture-swipe.js.map

Large diffs are not rendered by default.

20 changes: 11 additions & 9 deletions src/VuePictureSwipe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@
<div class="pswp__counter"></div>
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

<span class="rotation-wrapper">
<i class="material-icons" v-if=options.rotationOn @click="rotate(-90)">rotate_left</i>
<i class="material-icons" v-if=options.rotationOn @click="rotate(90)">rotate_right</i>
</span>
<button class="pswp__button pswp__button--rotate pswp__button--rotate--left" title="Rotate left" v-if="options.rotationOn" @click="rotate(-90)"></button>
<button class="pswp__button pswp__button--rotate pswp__button--rotate--right" title="Rotate right" v-if="options.rotationOn" @click="rotate(90)"></button>

<button class="pswp__button pswp__button--share" title="Share"></button>
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
Expand Down Expand Up @@ -335,17 +333,21 @@
}
</script>
<style>
@import "https://fonts.googleapis.com/icon?family=Material+Icons";
.pswp__top-bar {
text-align: right;
}
.pswp__caption__center {
text-align: center
}
.rotation-wrapper {
color: white;
position: relative;
top: 10px;
.pswp__button--rotate {
background: url(./icons/rotate.png) 0 0 no-repeat;
background-size: 62px 24px;
}
.pswp__button--rotate--left {
background-position: 8px 10px;
}
.pswp__button--rotate--right {
background-position: -26px 10px;
}
figure {
display: inline;
Expand Down
1 change: 1 addition & 0 deletions src/icons/rotate-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/icons/rotate-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/rotate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9469793

Please sign in to comment.