Bladeren bron

[enh] more compact image view

asciimoo 11 jaren geleden
bovenliggende
commit
4ebf8389e8
2 gewijzigde bestanden met toevoegingen van 6 en 4 verwijderingen
  1. 6
    2
      searx/static/css/style.css
  2. 0
    2
      searx/templates/result_templates/images.html

+ 6
- 2
searx/static/css/style.css Bestand weergeven

@@ -84,5 +84,9 @@ a { text-decoration: none; }
84 84
 
85 85
 .invisible { display: none; }
86 86
 
87
-.image_result { float: left; max-width: 250px; margin: 10px; height: 380px; min-width: 250px; }
88
-.image_result img { max-width: 240px; max-height: 320px; border: 2px solid #000000; }
87
+.image_result { float: left; margin: 10px 10px; position: relative;  height: 160px;}
88
+.image_result img { border: 0;  height: 160px;}
89
+.image_result p { margin: 0; padding: 0; }
90
+.image_result p span a { display: none; }
91
+.image_result p span a { color: #FFFFFF; }
92
+.image_result p:hover span a { display: block; position: absolute; bottom: 0; right: 0; padding: 4px; background-color: rgba(0, 0, 0, 0.6); font-size: 0.7em; }

+ 0
- 2
searx/templates/result_templates/images.html Bestand weergeven

@@ -1,8 +1,6 @@
1 1
 <div class="image_result">
2 2
     <p>
3
-        <span class="engines">{{ result.engine }}</span><br />
4 3
         <a href="{{ result.img_src }}"><img src="{{ result.img_src }}" title={{ result.title }}/></a>
5
-        <br />
6 4
         <span class="url"><a href="{{ result.url }}" class="small_font">original context</a></span>
7 5
     </p>
8 6
 </div>