##// 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 image = FILE_STUB_IMAGE
67 image = FILE_STUB_IMAGE
68
68
69 return '<a href="{}">'\
69 return '<a href="{}">'\
70 '<img src="{}" width="200" height="150"/>'\
70 '<img class="url-image" src="{}" width="200" height="150"/>'\
71 '</a>'.format(self.file.url, static(image))
71 '</a>'.format(self.file.url, static(image))
72
72
73
73
@@ -145,5 +145,5 b' class UrlViewer(AbstractViewer):'
145 '</div>'.format(self.get_format_view())
145 '</div>'.format(self.get_format_view())
146 def get_format_view(self):
146 def get_format_view(self):
147 return '<a href="{}">' \
147 return '<a href="{}">' \
148 '<img src="{}" width="200" height="150"/>' \
148 '<img class="url-image" src="{}" width="200" height="150"/>' \
149 '</a>'.format(self.url, static(FILE_STUB_URL))
149 '</a>'.format(self.url, static(FILE_STUB_URL))
@@ -169,3 +169,7 b' textarea, input {'
169 border-bottom: dashed 1px;
169 border-bottom: dashed 1px;
170 cursor: help;
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