From f50949dae6464a98bba7f4d5b7565e5fe774e514 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sat, 30 May 2020 17:56:01 +0800 Subject: [PATCH] Update tfo_mdtr.php --- theme/tfo_mdtr.php | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/theme/tfo_mdtr.php b/theme/tfo_mdtr.php index 6c17215..e286954 100644 --- a/theme/tfo_mdtr.php +++ b/theme/tfo_mdtr.php @@ -2,7 +2,7 @@ <?php echo $pretitle; if ($_SERVER['base_disk_path']!=$_SERVER['base_path']) { if (getConfig('diskname')!='') $diskname = getConfig('diskname'); else $diskname = $_SERVER['disktag']; echo ' - ' . $diskname; } ?> - <?php echo $_SERVER['sitename'];?> - + @@ -16,9 +16,9 @@ ion-icon{font-size:16px;vertical-align:middle} ::selection{background-color:rgba(200,200,200,0.6)} input{cursor:pointer;padding: 0 8px;height:24px;font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:16px;background-color:transparent;color:#24292e} - input:hover{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);} + input:focus{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);} textarea{font-weight:bold;border:1px solid rgba(27,31,35,0);transition-duration: 0.3s;border-radius:6px;background-color:transparent;color:#24292e} - textarea:hover{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);} + textarea:focus{background:rgba(3,102,214,0.6);color:#FFF;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);} .changelanguage{position:absolute;right:5px;} .title{text-shadow:0 1px 15px rgba(27,31,35,1);text-decoration:none;transition-duration: 0.3s;border:1px solid rgba(27,31,35,0);text-align:center;letter-spacing:1px;height: 10px;margin:1rem auto;padding: 16px 16px;white-space:nowrap;overflow:hidden;width:fit-content;border-radius:36px;} .title:hover{text-shadow:0 1px 15px rgba(27,31,35,0);background-color:rgba(200,200,200,.6);box-shadow:0 1px 15px rgba(27,31,35,.15);} @@ -34,7 +34,7 @@ .more-disk a{border:1px solid rgba(27,31,35,0);font-weight:bold;margin:0 2px;padding:5px;transition-duration: 0.3s;border-radius: 18px;background-color:transparent;color: #24292e} .more-disk a:hover, .more-disk a[now]{color:#FFF;background:rgba(245,245,245,0.3);border:1px solid rgba(27,31,35,.15);box-shadow:0 1px 15px rgba(27,31,35,.15)} .list-table{width:100%;padding:0 20px 20px 20px;border-spacing:0;overflow:hidden;table-layout:fixed} - .list-table tr{height:32px;float:left;width:100%;transition-duration: 0.3s;border-radius:16px} + .list-table tr{height:fit-content;float:left;width:100%;transition-duration: 0.3s;border-radius:16px} .list-table tr[data-to]:hover{background:linear-gradient(to right, rgb(3,102,214,0.9) , rgba(3,102,214,0.3));color:white;box-shadow:0 1px 15px rgba(27,31,35,.15)} .list-table tr[data-to]:hover a{color:white} .list-table tr:first-child{background:rgba(245,245,245,0)} @@ -42,9 +42,10 @@ .list-table td.file,.list-table th.file{width:70%;} .list-table td.size,.list-table th.size{width:10%;} .list-table td,.list-table th{padding:0 8px;text-align:left;float:left;line-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} - .list-table td button,.list-table th button{border-radius:16px;transition-duration: 0.3s;cursor:pointer;color:#24292e;height:24px;padding: 0 8px;background:transparent;border:1px solid rgba(27,31,35,0);font-weight:bold;} - .list-table td button:hover,.list-table th button:hover{color:#FFF;background:rgba(3,102,214,0.6);border:1px solid rgba(27,31,35,.15);box-shadow:0 1px 15px rgba(27,31,35,.15);} .list-table .size,.list-table .updated_at{text-align:right} - .mask{position:absolute;left:0px;top:0px;width:100%;background-color:#000;filter:alpha(opacity=20);opacity:0.2;z-index:2;} + .list-table td button,.list-table th button,.swal-button{border-radius:16px;transition-duration: 0.3s;cursor:pointer;color:#24292e;height:24px;padding: 0 8px;background:transparent;border:1px solid rgba(27,31,35,0);font-weight:bold;} + .list-table td button:hover,.list-table th button:hover,.swal-button:hover{color:#FFF;background:rgba(3,102,214,0.6);border:1px solid rgba(27,31,35,.15);box-shadow:0 1px 15px rgba(27,31,35,.15);} + .list-table .size,.list-table .updated_at{text-align:right} + .mask{position:absolute;left:0px;top:0px;width:100%;background-color:#000;filter:alpha(opacity=30);opacity:0.3;z-index:2;} .operate{display:inline-table;margin:0;margin-right:5px;list-style:none} .operate ul{position:absolute;display:none;background:white;transition-duration: 0.3s;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);border-radius:32px;margin:-7px 0 0 0;padding:0 3px;color:#205D67;z-index:3;} @@ -397,7 +398,7 @@ echo ''; if ($_SERVER['admin']) { ?>
- +
@@ -428,8 +429,8 @@ echo '';
- - + +
'; @@ -530,8 +531,8 @@ echo ''; : - - + + @@ -561,7 +562,9 @@ echo ''; -
+
Power byTfo's Theme for OneManager-php
+
+ @@ -720,6 +723,10 @@ echo ''; $readme.innerHTML = marked(document.getElementById('readme-md').innerText); } function showthumbnails(obj) { + swal("Loading Thumbnails", { + buttons: false, + timer: 1000, + }); var files=document.getElementsByName('filelist'); for ($i=0;$i'; tmptextarea.select(); tmptextarea.setSelectionRange(0, tmptextarea.value.length); document.execCommand("copy"); - alert(tmptextarea.innerHTML+""); + swal(tmptextarea.innerHTML+''); } var sort=0; function sortby(string) { @@ -894,7 +901,6 @@ echo ''; var tr1=document.createElement('tr'); table1.appendChild(tr1); tr1.setAttribute('data-to',1); - tr1.setAttribute('style','height:fit-content'); var td1=document.createElement('td'); tr1.appendChild(td1); td1.setAttribute('style','width:fit-content'); @@ -1042,7 +1048,7 @@ echo ''; //if (xhr4.status==409) filename = filemd5 + file.name.substr(file.name.indexOf('.')); filename = JSON.parse(xhr4.responseText)['name']; if (filename=='') { - alert(''); + swal(''); uploadbuttonshow(); return; } @@ -1120,7 +1126,7 @@ echo ''; if (str=='') { str=document.getElementById('file_a'+num).getElementsByTagName("img")[0].alt; if (str=='') { - alert(''); + swal(''); operatediv_close(action); return; } @@ -1176,7 +1182,7 @@ echo ''; html=JSON.parse(xhr.responseText); addelement(html); } - } else alert(xhr.status+'\n'+xhr.responseText); + } else swal(xhr.status+'\n'+xhr.responseText); document.getElementById(str+'_div').style.display='none'; document.getElementById('mask').style.display='none'; }