Surplus_Up (2DU) 6 лет назад
Родитель
Сommit
1593570830
3 измененных файлов с 5 добавлено и 7 удалено
  1. 1 1
      route/tool/func.py
  2. 2 4
      views/main_css/css/main.css
  3. 2 2
      views/main_css/js/do_open_foot.js

+ 1 - 1
route/tool/func.py

@@ -392,7 +392,7 @@ def other2(data):
     
     js_filter = {
         'load_include.js' : '2',
-        'do_open_foot.js' : '2'
+        'do_open_foot.js' : '3'
     }
     for i_data in os.listdir(os.path.join("views", "main_css", "js")):
         if i_data in js_filter:

+ 2 - 4
views/main_css/css/main.css

@@ -32,15 +32,13 @@ s:hover, strike:hover, del:hover { color: gray; background-color: gainsboro; tex
 #main_table_width_quarter { width: 25%; }
 #redirect { border: 1px solid; padding: 10px; }
 body { word-break: break-all; overflow: auto; }
-hr.main_hr { border: none; }
+hr.main_hr { border: none; margin-top: 8px; margin-bottom: 8px; }
 #include_link { display: none; }
 .foot_plus { background: white; border: 5px solid gainsboro; padding: 5px; width: 300px; height: 300px; position: fixed; top: calc(50% - 150px); right: calc(50% - 150px); display: none; z-index: 100; }
 #toc_title { font-size: 18px; }
 blockquote { background-image: url(/views/acme/img/quote.png); background-position: calc(100% - 10px) 10px; background-repeat: no-repeat; background-size: 25px; }
 #admin_log_search { width: 100px; }
 @media (max-width: 768px) { table { min-width: 100%; }}
-.foot_close { text-align: center; border-top: 5px solid gainsboro; width: 100%; left: 0px; bottom: 0px; position: absolute; height: 20px; }
 @media (max-width: 400px) { .foot_plus { width: 80%; right: calc(100% - 92%); }}
 @media (max-height: 400px) { .foot_plus { height: 80%; top: calc(100% - 92%); }}
-.foot_in { overflow-y: scroll; height: calc(100% - 20px); }
-.foot_close:active, .foot_close:hover { text-decoration: none; }
+.foot_in { overflow-y: scroll; height: calc(100% - 20px); }

+ 2 - 2
views/main_css/js/do_open_foot.js

@@ -12,8 +12,8 @@ function do_open_foot(name) {
         o_data.style.display = 'block';
         o_data.innerHTML += '' + 
             '<div class="foot_in">' + 
-                '<a onclick="do_open_foot(\'' + name + '\')" href="#' + name + '">(Go)</a> ' + g_data.innerHTML + 
-            '</div> <a class="foot_close" onclick="do_open_foot(\'' + name + '\')" href="javascript:void(0);">(X)</a>' + 
+                '<a onclick="do_open_foot(\'' + name + '\')" href="javascript:void(0);">(X)</a> <a onclick="do_open_foot(\'' + name + '\')" href="#' + name + '">(Go)</a> ' + g_data.innerHTML + 
+            '</div>' + 
         '';
     } else {
         o_data.style.display = 'none';