##// END OF EJS Templates
Non-image file icons are inverted on hover
neko259 -
r1673:8d6575ac default
parent child Browse files
Show More
@@ -67,7 +67,7 b' class AbstractViewer:'
67 67 image = FILE_STUB_IMAGE
68 68
69 69 return '<a href="{}">'\
70 '<img src="{}" width="200" height="150"/>'\
70 '<img class="url-image" src="{}" width="200" height="150"/>'\
71 71 '</a>'.format(self.file.url, static(image))
72 72
73 73
@@ -145,5 +145,5 b' class UrlViewer(AbstractViewer):'
145 145 '</div>'.format(self.get_format_view())
146 146 def get_format_view(self):
147 147 return '<a href="{}">' \
148 '<img src="{}" width="200" height="150"/>' \
148 '<img class="url-image" src="{}" width="200" height="150"/>' \
149 149 '</a>'.format(self.url, static(FILE_STUB_URL))
@@ -169,3 +169,7 b' textarea, input {'
169 169 border-bottom: dashed 1px;
170 170 cursor: help;
171 171 }
172
173 .url-image:hover {
174 filter: invert(100%);
175 }
General Comments 0
You need to be logged in to leave comments. Login now