Browse Source

Merge pull request #350 from MrPaulBlack/fix-engine-description-position

[fix] engine description position in simple theme
Alexandre Flament 3 years ago
parent
commit
ca67f1555a

+ 4 - 1
searx/static/themes/simple/css/searx-rtl.css

@@ -1937,7 +1937,7 @@ td:hover .engine-tooltip,
 }
 }
 #main_preferences th.name .engine-tooltip {
 #main_preferences th.name .engine-tooltip {
   margin-top: 1.8rem;
   margin-top: 1.8rem;
-  left: 20rem;
+  left: calc((100% - 85em) / 2 + 10em);
   max-width: 40rem;
   max-width: 40rem;
 }
 }
 #main_preferences th.name .engine-tooltip .engine-description {
 #main_preferences th.name .engine-tooltip .engine-description {
@@ -1947,6 +1947,9 @@ td:hover .engine-tooltip,
   .preferences_back {
   .preferences_back {
     clear: both;
     clear: both;
   }
   }
+  .engine-tooltip {
+    left: 10em !important;
+  }
 }
 }
 /*
 /*
 * searx, A privacy-respecting, hackable metasearch engine
 * searx, A privacy-respecting, hackable metasearch engine

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


File diff suppressed because it is too large
+ 0 - 0
searx/static/themes/simple/css/searx-rtl.min.css.map


+ 4 - 1
searx/static/themes/simple/css/searx.css

@@ -1937,7 +1937,7 @@ td:hover .engine-tooltip,
 }
 }
 #main_preferences th.name .engine-tooltip {
 #main_preferences th.name .engine-tooltip {
   margin-top: 1.8rem;
   margin-top: 1.8rem;
-  left: 20rem;
+  left: calc((100% - 85em) / 2 + 10em);
   max-width: 40rem;
   max-width: 40rem;
 }
 }
 #main_preferences th.name .engine-tooltip .engine-description {
 #main_preferences th.name .engine-tooltip .engine-description {
@@ -1947,6 +1947,9 @@ td:hover .engine-tooltip,
   .preferences_back {
   .preferences_back {
     clear: both;
     clear: both;
   }
   }
+  .engine-tooltip {
+    left: 10em !important;
+  }
 }
 }
 /*
 /*
 * searx, A privacy-respecting, hackable metasearch engine
 * searx, A privacy-respecting, hackable metasearch engine

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


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


+ 5 - 1
searx/static/themes/simple/src/less/preferences.less

@@ -112,7 +112,7 @@
   th.name {
   th.name {
     .engine-tooltip {
     .engine-tooltip {
       margin-top: 1.8rem;
       margin-top: 1.8rem;
-      left: 20rem;
+      left: calc((100% - 85em) / 2 + 10em);
       max-width: 40rem;
       max-width: 40rem;
 
 
       .engine-description {
       .engine-description {
@@ -126,4 +126,8 @@
   .preferences_back {
   .preferences_back {
     clear: both;
     clear: both;
   }
   }
+
+  .engine-tooltip {
+    left: 10em !important;
+  }
 }
 }

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