Skip to content

Commit

Permalink
display file as link
Browse files Browse the repository at this point in the history
  • Loading branch information
vanaigr committed Feb 10, 2024
1 parent 79ee282 commit 910f442
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,16 @@ body {
}

#file-info > .content {
transform: scaleY(0);
will-change: transform; /*chrome bug (some screen resolutions)*/
opacity: 0;
transition: opacity 100ms, transform 0ms 100ms;
transition: opacity 100ms;
}
#file-info[data-visible=true] > .content {
opacity: 1;
transform: scaleY(1);
transition: opacity 100ms, transform 0ms 0ms;
transition: opacity 100ms;
}

#file-type { color: var(--secondary-text-color);; }
#filename {
color: var(--secondary-text-color);
}
#file-type { color: var(--secondary-text-color); }
#filename { color: var(--link-color); }
#delete-file {
background: none;
border: none;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<div class="move-with-border" id="file-info">
<div class="content">
<span id="file-type"></span>
<a href="javascript:;" id="filename" target="_blank"></a>
<a href="javascript:;" id="filename" target="_blank" class="link"></a>
<span id="is-pdf" title="Документ не является PDF-файлом">!</span>
</div>
</div>
Expand Down

0 comments on commit 910f442

Please sign in to comment.