Browse Source

fix issue

tags/v1.22.11.2^2
zhoupzh 3 years ago
parent
commit
994737ffaa
2 changed files with 38 additions and 38 deletions
  1. +0
    -38
      templates/repo/view_file.tmpl
  2. +38
    -0
      web_src/less/vendor/fancyapp.less

+ 0
- 38
templates/repo/view_file.tmpl View File

@@ -1,42 +1,4 @@
<style>
img {
cursor: zoom-in;
}

.fancybox__container {
--fancybox-bg: rgba(193, 201, 210, 0.7);
}

.fancybox-zoomOut {
animation: 0.2s ease-in-out fancybox-zoomOut both;
}

.fancybox-zoomIn {
animation: 0.25s ease-in-out fancybox-zoomIn both;
}

@keyframes fancybox-zoomIn {
from {
opacity: 0;
transform: scale3d(0.8, 0.8, 0.8);
}

100% {
opacity: 1;
}
}

@keyframes fancybox-zoomOut {
from {
opacity: 1;
}

to {
opacity: 0;
transform: scale3d(0.8, 0.8, 0.8);
}
}
</style>
<div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content gallery">
<h4 class="file-header ui top attached header">
<div class="file-header-left">


+ 38
- 0
web_src/less/vendor/fancyapp.less View File

@@ -751,3 +751,41 @@ body:not(.is-using-mouse) .fancybox__container :focus {
.fancybox__container.has-slideshow .fancybox__button--slideshow g:nth-child(2) {
display: block;
}

.gallery img {
cursor: zoom-in;
}

.fancybox__container {
--fancybox-bg: rgba(193, 201, 210, 0.7);
}

.fancybox-zoomOut {
animation: 0.2s ease-in-out fancybox-zoomOut both;
}

.fancybox-zoomIn {
animation: 0.25s ease-in-out fancybox-zoomIn both;
}

@keyframes fancybox-zoomIn {
from {
opacity: 0;
transform: scale3d(0.8, 0.8, 0.8);
}

100% {
opacity: 1;
}
}

@keyframes fancybox-zoomOut {
from {
opacity: 1;
}

to {
opacity: 0;
transform: scale3d(0.8, 0.8, 0.8);
}
}

Loading…
Cancel
Save