mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Merge pull request #556 from return42/fix-tooltip
[simple theme] fix tooltip and improve background of an transparent image in the !images results
This commit is contained in:
		
						commit
						0311eba538
					
				
					 9 changed files with 16 additions and 16 deletions
				
			
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -784,7 +784,7 @@ template { | ||||||
|   --color-result-search-url-font: #000; |   --color-result-search-url-font: #000; | ||||||
|   --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); |   --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); | ||||||
|   --color-result-image-span-font: #fff; |   --color-result-image-span-font: #fff; | ||||||
|   --color-result-image-background: #000bbb; |   --color-result-image-background: #fff; | ||||||
|   --color-settings-tr-hover: #f7f7f7; |   --color-settings-tr-hover: #f7f7f7; | ||||||
|   --color-settings-engine-description-font: #909090; |   --color-settings-engine-description-font: #909090; | ||||||
|   --color-result-detail-font: #fff; |   --color-result-detail-font: #fff; | ||||||
|  | @ -875,7 +875,7 @@ template { | ||||||
|     --color-result-detail-loader-borderleft: rgba(0, 0, 0, 0); |     --color-result-detail-loader-borderleft: rgba(0, 0, 0, 0); | ||||||
|     --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); |     --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); | ||||||
|     --color-result-image-span-font: #fff; |     --color-result-image-span-font: #fff; | ||||||
|     --color-result-image-background: #8af; |     --color-result-image-background: #222; | ||||||
|     --color-settings-tr-hover: #2d2d2d; |     --color-settings-tr-hover: #2d2d2d; | ||||||
|     --color-settings-engine-description-font: #909090; |     --color-settings-engine-description-font: #909090; | ||||||
|     --color-toolkit-badge-font: #fff; |     --color-toolkit-badge-font: #fff; | ||||||
|  | @ -959,7 +959,7 @@ template { | ||||||
|   --color-result-detail-loader-borderleft: rgba(0, 0, 0, 0); |   --color-result-detail-loader-borderleft: rgba(0, 0, 0, 0); | ||||||
|   --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); |   --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); | ||||||
|   --color-result-image-span-font: #fff; |   --color-result-image-span-font: #fff; | ||||||
|   --color-result-image-background: #8af; |   --color-result-image-background: #222; | ||||||
|   --color-settings-tr-hover: #2d2d2d; |   --color-settings-tr-hover: #2d2d2d; | ||||||
|   --color-settings-engine-description-font: #909090; |   --color-settings-engine-description-font: #909090; | ||||||
|   --color-toolkit-badge-font: #fff; |   --color-toolkit-badge-font: #fff; | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -784,7 +784,7 @@ template { | ||||||
|   --color-result-search-url-font: #000; |   --color-result-search-url-font: #000; | ||||||
|   --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); |   --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); | ||||||
|   --color-result-image-span-font: #fff; |   --color-result-image-span-font: #fff; | ||||||
|   --color-result-image-background: #000bbb; |   --color-result-image-background: #fff; | ||||||
|   --color-settings-tr-hover: #f7f7f7; |   --color-settings-tr-hover: #f7f7f7; | ||||||
|   --color-settings-engine-description-font: #909090; |   --color-settings-engine-description-font: #909090; | ||||||
|   --color-result-detail-font: #fff; |   --color-result-detail-font: #fff; | ||||||
|  | @ -875,7 +875,7 @@ template { | ||||||
|     --color-result-detail-loader-borderleft: rgba(0, 0, 0, 0); |     --color-result-detail-loader-borderleft: rgba(0, 0, 0, 0); | ||||||
|     --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); |     --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); | ||||||
|     --color-result-image-span-font: #fff; |     --color-result-image-span-font: #fff; | ||||||
|     --color-result-image-background: #8af; |     --color-result-image-background: #222; | ||||||
|     --color-settings-tr-hover: #2d2d2d; |     --color-settings-tr-hover: #2d2d2d; | ||||||
|     --color-settings-engine-description-font: #909090; |     --color-settings-engine-description-font: #909090; | ||||||
|     --color-toolkit-badge-font: #fff; |     --color-toolkit-badge-font: #fff; | ||||||
|  | @ -959,7 +959,7 @@ template { | ||||||
|   --color-result-detail-loader-borderleft: rgba(0, 0, 0, 0); |   --color-result-detail-loader-borderleft: rgba(0, 0, 0, 0); | ||||||
|   --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); |   --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); | ||||||
|   --color-result-image-span-font: #fff; |   --color-result-image-span-font: #fff; | ||||||
|   --color-result-image-background: #8af; |   --color-result-image-background: #222; | ||||||
|   --color-settings-tr-hover: #2d2d2d; |   --color-settings-tr-hover: #2d2d2d; | ||||||
|   --color-settings-engine-description-font: #909090; |   --color-settings-engine-description-font: #909090; | ||||||
|   --color-toolkit-badge-font: #fff; |   --color-toolkit-badge-font: #fff; | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -68,7 +68,7 @@ | ||||||
|   // Images Colors |   // Images Colors | ||||||
|   --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); |   --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); | ||||||
|   --color-result-image-span-font: #fff; |   --color-result-image-span-font: #fff; | ||||||
|   --color-result-image-background: #000bbb; |   --color-result-image-background: #fff; | ||||||
|   /// Settings Colors |   /// Settings Colors | ||||||
|   --color-settings-tr-hover: #f7f7f7; |   --color-settings-tr-hover: #f7f7f7; | ||||||
|   --color-settings-engine-description-font: darken(#dcdcdc, 30%); |   --color-settings-engine-description-font: darken(#dcdcdc, 30%); | ||||||
|  | @ -176,7 +176,7 @@ | ||||||
|   // Images Colors |   // Images Colors | ||||||
|   --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); |   --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); | ||||||
|   --color-result-image-span-font: #fff; |   --color-result-image-span-font: #fff; | ||||||
|   --color-result-image-background: #8af; |   --color-result-image-background: #222; | ||||||
|   /// Settings Colors |   /// Settings Colors | ||||||
|   --color-settings-tr-hover: #2d2d2d; |   --color-settings-tr-hover: #2d2d2d; | ||||||
|   --color-settings-engine-description-font: darken(#dcdcdc, 30%); |   --color-settings-engine-description-font: darken(#dcdcdc, 30%); | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| <article class="result result-images {% if result['category'] %}category-{{ result['category'] }}{% endif %}">{{- "" -}} | <article class="result result-images {% if result['category'] %}category-{{ result['category'] }}{% endif %}">{{- "" -}} | ||||||
|         <a {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} href="{{ result.img_src }}">{{- "" -}} |         <a {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} href="{{ result.img_src }}">{{- "" -}} | ||||||
|                 <img class="image_thumbnail" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} src="{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}" loading="lazy" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}">{{- "" -}} |                 <img class="image_thumbnail" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} src="{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}" loading="lazy" alt="{{ result.title|striptags }}">{{- "" -}} | ||||||
|                 <span class="title">{{ result.title|striptags }}</span>{{- "" -}} |                 <span class="title">{{ result.title|striptags }}</span>{{- "" -}} | ||||||
|         </a>{{- "" -}} |         </a>{{- "" -}} | ||||||
|         <div class="detail">{{- "" -}} |         <div class="detail">{{- "" -}} | ||||||
|  | @ -9,9 +9,9 @@ | ||||||
|                 <a class="result-detail-next" href="#">{{ icon('chevron-right') }}</a>{{- "" -}} |                 <a class="result-detail-next" href="#">{{ icon('chevron-right') }}</a>{{- "" -}} | ||||||
|                 <a class="result-images-source" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} href="{{ result.img_src }}"> |                 <a class="result-images-source" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} href="{{ result.img_src }}"> | ||||||
|                         {%- if result.thumbnail_src -%} |                         {%- if result.thumbnail_src -%} | ||||||
|                                 <img src="" data-src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}"> |                                 <img src="" data-src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}"> | ||||||
|                         {%- else -%} |                         {%- else -%} | ||||||
|                                 <img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" loading="lazy" title="{{ result.title|striptags }}"> |                                 <img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" loading="lazy"> | ||||||
|                         {%- endif -%} |                         {%- endif -%} | ||||||
|                 </a>{{- "" -}} |                 </a>{{- "" -}} | ||||||
|                 <div class="result-images-labels">{{- "" -}} |                 <div class="result-images-labels">{{- "" -}} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Markus Heiser
						Markus Heiser