Browse Source

add class for infobox's official url

Marc Abonce Seguin 4 years ago
parent
commit
74270a3fc2

+ 7 - 1
searx/static/themes/oscar/css/logicodev-dark.css

@@ -295,12 +295,18 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not
 .infobox .panel-heading .panel-title {
   font-weight: 700;
 }
+.infobox .header_url {
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  display: block;
+}
 .infobox p {
   font-family: "DejaVu Serif", Georgia, Cambria, "Times New Roman", Times, serif !important;
   font-style: italic;
 }
 .infobox img {
-  max-height: 250px;
+  max-height: "250px";
 }
 .infobox .btn {
   background-color: #007ab8;

File diff suppressed because it is too large
+ 0 - 0
searx/static/themes/oscar/css/logicodev-dark.min.css


+ 7 - 1
searx/static/themes/oscar/css/logicodev.css

@@ -268,12 +268,18 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not
 .infobox .panel-heading .panel-title {
   font-weight: 700;
 }
+.infobox .header_url {
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  display: block;
+}
 .infobox p {
   font-family: "DejaVu Serif", Georgia, Cambria, "Times New Roman", Times, serif !important;
   font-style: italic;
 }
 .infobox img {
-  max-height: 250px;
+  max-height: "250px";
 }
 .infobox .btn {
   background-color: #007ab8;

File diff suppressed because it is too large
+ 0 - 0
searx/static/themes/oscar/css/logicodev.min.css


+ 6 - 0
searx/static/themes/oscar/css/pointhi.css

@@ -167,6 +167,12 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not
 .infobox .infobox_part:last-child {
   margin-bottom: 0;
 }
+.infobox .header_url {
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  display: block;
+}
 .search_categories,
 #categories {
   text-transform: capitalize;

File diff suppressed because it is too large
+ 0 - 0
searx/static/themes/oscar/css/pointhi.min.css


+ 7 - 0
searx/static/themes/oscar/less/logicodev/infobox.less

@@ -8,6 +8,13 @@
         }
     }
 
+    .header_url {
+        white-space: nowrap;
+        overflow: hidden;
+        text-overflow: ellipsis;
+        display: block;
+    }
+
 
     p{
         font-family: "DejaVu Serif", Georgia, Cambria, "Times New Roman", Times, serif !important;

+ 7 - 0
searx/static/themes/oscar/less/pointhi/infobox.less

@@ -12,4 +12,11 @@
     .infobox_part:last-child {
         margin-bottom: 0;
     }
+
+    .header_url {
+        white-space: nowrap;
+        overflow: hidden;
+        text-overflow: ellipsis;
+        display: block;
+    }
 }

+ 1 - 1
searx/templates/oscar/infobox.html

@@ -8,7 +8,7 @@
             {% endfor %}
             </div>
             <h4 class="panel-title"><bdi>{{ infobox.infobox }}</bdi></h4>{{- "" -}}
-            {% for u in infobox.urls %}{% if u.official %} <a href="{{ u.url }}">{{ u.domain }}</a>{% endif %}{% endfor %}
+            {% for u in infobox.urls %}{% if u.official %} <a class="header_url" href="{{ u.url }}">{{ u.url }}</a>{% endif %}{% endfor %}
         </div>
     </div>
     <div class="panel-body">

Some files were not shown because too many files changed in this diff