1 Commits

Author SHA1 Message Date
ldxw bddcee50da 修复 2020-02-22 03:06:30 +08:00
7 changed files with 343 additions and 302 deletions
File diff suppressed because one or more lines are too long
+4 -6
View File
@@ -6,11 +6,9 @@
<meta charset=utf-8>
<meta http-equiv=X-UA-Compatible content="IE=edge">
<meta name=viewport content="width=device-width,initial-scale=1">
<meta name="keywords" content="<?php echo $n_path;?>,<?php if ($p_path!='') echo $p_path.','; echo $_SERVER['sitename'];?>,林的小窝,onedrive">
<!--<link rel="icon" href="<?php echo $_SERVER['base_path'];?>favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo $_SERVER['base_path'];?>favicon.ico" type="image/x-icon" />-->
<link rel="icon" href="https://cdn.jsdelivr.net/gh/ldxw/CDN@0.003/favicon/64x64/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/ldxw/CDN@0.003/favicon/64x64/favicon.ico" type="image/x-icon" />
<meta name="keywords" content="<?php echo $n_path;?>,<?php if ($p_path!='') echo $p_path.','; echo $_SERVER['sitename'];?>,OneManager,auth_by_逸笙">
<link rel="icon" href="<?php echo $_SERVER['base_disk_path'];?>favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo $_SERVER['base_disk_path'];?>favicon.ico" type="image/x-icon" />
<style type="text/css">
body{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:1em;background-color:#f7f7f9;color:#000}
a{color:#24292e;cursor:pointer;text-decoration:none}
@@ -919,7 +917,7 @@
} else {
StartStr='<?php echo getconstStr('LastUpload'); ?>'+size_format(newstartsize)+ '<br><?php echo getconstStr('ThisTime').getconstStr('UploadStartAt'); ?>:' +StartTime.toLocaleString()+'<br>' ;
}
var chunksize=15*1024*1024; // chunk size, max 60M. 每小块上传大小,最大60M,微软建议10M
var chunksize=5*1024*1024; // chunk size, max 60M. 每小块上传大小,最大60M,微软建议10M
if (totalsize>200*1024*1024) chunksize=10*1024*1024;
function readblob(start) {
var end=start+chunksize;
File diff suppressed because one or more lines are too long
+163 -143
View File
@@ -1,64 +1,65 @@
:root {
font-size: 10px;
font-family: Helvetica Neue, Helvetica, Arial, Microsoft Yahei, Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif;
}
body {
font: 400 1em Helvetica Neue, Helvetica, Arial, Microsoft Yahei, Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif;
background-color: #f2f5fa;
margin: auto;
max-width: 960px;
display: flex;
flex-direction: column;
background-color: #f2f5fa;
}
body a.login,
body li.operate {
font-size: 1.2rem;
color: #339999;
position: relative;
list-style: none;
width: 50px;
height: 30px;
width: 5rem;
}
body a.login ion-icon,
body li.operate ion-icon {
vertical-align: middle;
}
body a.login:hover ul,
body li.operate:hover ul {
display: flex;
}
body a.login ul,
body li.operate ul {
width: 2rem;
list-style-type: none;
display: none;
position: absolute;
top: -15px;
left: 10px;
margin-top: 0;
top: 0;
}
body a.login ul li,
body li.operate ul li {
display: flex;
margin: auto;
padding: 2px 2px;
box-sizing: border-box;
z-index: 999;
border-radius: 5px;
background-color: blanchedalmond;
border: solid 1px yellowgreen;
}
body a.login ul li a,
body li.operate ul li a {
width: 50px;
}
body a.login ul li a[href="?RefreshCache"],
body li.operate ul li a[href="?RefreshCache"] {
width: 80px;
}
body a.login ul li a:hover,
body li.operate ul li a:hover {
cursor: pointer;
padding: 0.2rem;
z-index: 99;
border-radius: 2px;
background-color: papayawhip;
border: dashed 1px yellowgreen;
}
body a.login ul li:hover,
body li.operate ul li:hover {
background-color: #fff;
}
body a.login,
body li.operate:hover ul {
display: flex;
body a.login ul li a,
body li.operate ul li a {
margin-left: 0.8rem;
width: 1.7rem;
color: #339999;
text-decoration: none;
}
body a.login ul li a:hover,
body li.operate ul li a:hover {
cursor: pointer;
}
body div[style="padding:1px"] {
height: 40px;
height: 4rem;
}
body div.operatediv {
position: fixed;
@@ -80,7 +81,7 @@ body div.operatediv div a.operatediv_close {
margin: auto 20px;
}
body div.operatediv div a.operatediv_close:hover {
background-color: rgba(137, 43, 226, 0.5);
background-color: blueviolet;
cursor: pointer;
}
body div.operatediv div center {
@@ -98,12 +99,13 @@ body div[style="position:absolute;"] {
}
body h1.title {
margin: auto;
font-size: 3rem;
}
body h1.title a {
font-family: Cursive;
text-decoration: none;
color: #3290e7;
text-shadow: 2px 2px 3px #ccccff;
text-shadow: 2px 2px 5px #ccccff;
}
body h1.title a:hover {
text-shadow: none;
@@ -113,20 +115,16 @@ body select.changelanguage {
}
body div.onemoe-more-disk {
margin: auto;
margin-top: 20px;
width: 100%;
}
body div.onemoe-more-disk div.more-disk {
margin: auto 10px;
margin-top: 2rem;
}
body div.onemoe-more-disk div.more-disk a {
text-decoration: none;
border: solid 1px #339999;
border-radius: 5px;
font-weight: bold;
margin: auto 0.5em;
font-size: 1.2rem;
padding: 5px;
box-sizing: border-box;
margin: auto 0.5rem;
color: #339999;
}
body div.onemoe-more-disk div.more-disk a:hover {
@@ -135,7 +133,7 @@ body div.onemoe-more-disk div.more-disk a:hover {
box-shadow: 0 0 5px #339999;
}
body div.list-wrapper#head-div div.list-header-container {
margin-top: 20px;
margin-top: 2rem;
}
body div.list-wrapper#head-div div.list-header-container div.readme svg,
body div.list-wrapper#head-div div.list-header-container div.readme span {
@@ -143,149 +141,161 @@ body div.list-wrapper#head-div div.list-header-container div.readme span {
}
body div.list-wrapper#head-div div.list-header-container div.readme p {
font-size: large;
padding: 0 20px;
padding: 0 2rem;
}
body div.list-wrapper#list-div {
border-radius: 5px;
border: solid 5px rgba(137, 43, 226, 0.2);
background-color: #cccccc36;
margin-top: 20px;
background-color: rgba(204, 204, 204, 0.3);
margin-top: 2rem;
font-size: 1.5rem;
}
body div.list-wrapper#list-div div.list-header-container {
height: 40px;
border-radius: 0;
border-bottom: dashed 1px rgba(59, 66, 107, 0.2);
border-radius: 2px;
border-bottom: dashed 1px rgba(59, 66, 107, 0.3);
display: flex;
align-items: center;
background-color: #eee;
}
body div.list-wrapper#list-div div.list-header-container a.back-link {
margin-left: 20px;
margin-left: 2rem;
}
body div.list-wrapper#list-div div.list-header-container a.back-link ion-icon {
color: #339999;
width: 25px;
height: 25px;
width: 2rem;
height: 2rem;
}
body div.list-wrapper#list-div div.list-header-container h3.table-header,
body div.list-wrapper#list-div div.list-header-container h3.table-header a {
body div.list-wrapper#list-div div.list-header-container a.back-link ion-icon:hover {
color: #ff9900;
}
body div.list-wrapper#list-div div.list-header-container h3.table-header {
font-size: 1.5rem;
margin: 1rem;
color: #339999;
margin-left: 20px;
font-style: italic;
}
body div.list-wrapper#list-div div.list-header-container h3.table-header a {
margin-left: 0;
color: #339999;
text-decoration: none;
}
body div.list-wrapper#list-div div.list-header-container h3.table-header a:hover {
color: #ff9900;
}
body div.list-wrapper#list-div div.list-body-container table.list-table {
margin: auto;
box-sizing: border-box;
width: 100%;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody {
margin: auto;
display: flex;
flex-direction: column;
align-items: center;
min-width: 100%;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr {
width: 96%;
background-color: #fff;
margin: 4px 0;
border: solid 1px #ddd;
margin: 1rem;
border: solid 1px #ccc;
border-radius: 5px;
display: flex;
justify-content: space-between;
align-items: center;
display: grid;
grid-template-columns: 6fr 2fr 1fr;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th {
height: 3em;
margin: 0 5px;
box-sizing: border-box;
align-items: center;
display: flex;
@media screen and (max-width: 768px) {
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr {
grid-template-columns: 6fr 2fr;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th:nth-last-of-type(2),
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td:nth-last-of-type(2) {
display: none;
}
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td li,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th li {
list-style: none;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td a,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th a {
max-width: 60%;
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td li.operate,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th li.operate {
display: flex;
align-items: center;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td li.operate ul li,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th li.operate ul li {
margin-top: 5px;
padding: 5px 5px;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td li.operate ul li a,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th li.operate ul li a {
font-size: 13px;
width: 18px;
height: 100%;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th {
height: 2em;
font-weight: bold;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td:first-of-type,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th:first-of-type {
width: 50%;
margin-left: 10px;
float: left;
justify-content: flex-start;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td:first-of-type a,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th:first-of-type a {
color: #333;
margin-left: 5px;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td:first-of-type > ion-icon,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th:first-of-type > ion-icon {
color: #333;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td:nth-of-type(2),
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th:nth-of-type(2) {
width: 30%;
float: right;
justify-content: flex-end;
text-align: right;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td:last-of-type,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th:last-of-type {
width: 20%;
margin-right: 10px;
float: right;
justify-content: flex-end;
text-align: right;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr:not(:first-of-type):hover {
background-color: #ccffcc8c;
@media screen and (orientation: portrait) {
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr {
grid-template-columns: 1fr;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th:last-of-type,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td:last-of-type {
display: none;
}
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr:first-of-type {
border: none;
background-color: #cccccc00;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr:not(:first-of-type):hover {
background-color: rgba(137, 43, 226, 0.1);
box-shadow: 0 0 2px blueviolet;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td {
padding: 1rem;
align-items: center;
display: flex;
white-space: nowrap;
overflow: hidden;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th:first-of-type a,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td:first-of-type a {
color: #333;
margin-left: 0.5rem;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th:first-of-type a:hover,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td:first-of-type a:hover {
color: #339999;
text-decoration: underline;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th:first-of-type > ion-icon,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td:first-of-type > ion-icon {
color: #333;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th:nth-of-type(2),
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td:nth-of-type(2) {
justify-content: flex-end;
text-align: right;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th:last-of-type,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td:last-of-type {
justify-content: flex-end;
text-align: right;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th li,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td li {
list-style: none;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th a,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td a {
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th li.operate,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td li.operate {
display: flex;
align-items: center;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th li.operate ul,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td li.operate ul {
top: -0.5rem;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th li.operate ul li,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td li.operate ul li {
padding: 0.5rem;
font-size: 1.3rem;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th li.operate ul li a,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td li.operate ul li a {
width: auto;
padding-right: 0.8rem;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr th li.operate ul li:hover a,
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr td li.operate ul li:hover a {
color: #339999;
text-decoration: none;
}
body div.list-wrapper#list-div div.list-body-container div#upload_div center {
margin-top: 10px;
height: 40px;
margin-top: 1rem;
height: 4rem;
display: flex;
justify-content: space-around;
align-items: center;
}
body div.list-wrapper#list-div div.list-body-container div#upload_div center input {
vertical-align: middle;
height: 25px;
min-width: 50px;
height: 2rem;
min-width: 5rem;
border: dotted 1px dimgrey;
border-radius: 4px;
box-sizing: border-box;
@@ -294,6 +304,7 @@ body div.list-wrapper#list-div div.list-body-container div#upload_div center inp
body div.list-wrapper#list-div div.list-body-container div#upload_div center input:hover {
color: #339999;
box-shadow: 0 0 10px cornflowerblue;
cursor: pointer;
}
body div.list-wrapper#list-div:hover {
box-shadow: 0 0 10px rgba(137, 43, 226, 0.25);
@@ -301,9 +312,9 @@ body div.list-wrapper#list-div:hover {
body div.onemoe-readme {
width: 100%;
margin: 50px auto 50px;
box-sizing: border-box;
border-radius: 3px;
border: solid 5px rgba(137, 43, 226, 0.2);
box-sizing: border-box;
}
body div.onemoe-readme div.readme {
background-color: #f2f5fa;
@@ -315,6 +326,15 @@ body div.onemoe-readme div.readme span {
body div.onemoe-readme div.readme div.markdown-body {
margin: 10px 25px;
}
body div.list-wrapper:nth-of-type(4):hover {
body div.onemoe-readme:hover {
box-shadow: 0 0 10px rgba(137, 43, 226, 0.25);
}
body div[style="margin: 12px 4px 4px; text-align: center"] div a {
font-size: 1.8rem;
color: #339999;
text-decoration: none;
}
body div[style="margin: 12px 4px 4px; text-align: center"] div a:hover {
text-decoration: underline;
color: #ff9900;
}
+167 -142
View File
@@ -1,73 +1,84 @@
body {
font: 400 1em Helvetica Neue, Helvetica, Arial, Microsoft Yahei,
:root {
font-size: 10px;
font-family: Helvetica Neue, Helvetica, Arial, Microsoft Yahei,
Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif;
}
@color-bg: #f2f5fa;
@color-bt: #339999;
@color-btbd: yellowgreen;
@color-btbg: papayawhip;
@color-bthv: #fff;
@color-bs: blueviolet;
@color-dj: #ff9900;
@color-wjj: #fff;
@color-wjjhv: rgba(137, 43, 226, 0.1);
@color-wjj-bg: rgba(204, 204, 204, 0.3);
body {
background-color: @color-bg;
// background-image: linear-gradient(45deg, #d9afd9 0%, #97d9e1 100%);
margin: auto;
max-width: 960px;
display: flex;
flex-direction: column;
background-color: #f2f5fa;
// background-color: @color-bg;
// 管理
a.login,
li.operate {
color: #339999;
font-size: 1.2rem;
color: @color-bt;
position: relative;
list-style: none;
width: 50px;
height: 30px;
width: 5rem;
ion-icon {
vertical-align: middle;
}
&:hover ul {
display: flex;
}
ul {
width: 2rem;
list-style-type: none;
display: none;
position: absolute;
top: -15px;
left: 10px;
// margin: auto 5px;
margin-top: 0;
top: 0;
li {
display: flex;
margin: auto;
padding: 2px 2px;
box-sizing: border-box;
z-index: 999;
border-radius: 5px;
background-color: blanchedalmond;
border: solid 1px yellowgreen;
padding: 0.2rem;
z-index: 99;
border-radius: 2px;
background-color: @color-btbg;
border: dashed 1px @color-btbd;
&:hover {
background-color: @color-bthv;
}
a {
width: 50px;
}
a[href="?RefreshCache"] {
width: 80px;
}
a:hover {
margin-left: 0.8rem;
width: 1.7rem;
color: @color-bt;
text-decoration: none;
&:hover {
cursor: pointer;
}
}
li:hover {
background-color: #fff;
}
}
}
a.login,
li.operate:hover ul {
display: flex;
// cursor: pointer;
}
// 登录
div[style="padding:1px"] {
height: 40px;
height: 4rem;
}
div.operatediv {
position: fixed;
background-color: #ddd;
border: solid 1px blueviolet;
box-shadow: 0 0 10px blueviolet;
border: solid 1px @color-bs;
box-shadow: 0 0 10px @color-bs;
border-radius: 10px;
div {
display: flex;
a.operatediv_close {
width: 20%;
border: solid 1px blueviolet;
border: solid 1px @color-bs;
border-radius: 10px;
margin: auto;
text-align: center;
@@ -75,12 +86,12 @@ body {
margin: auto 20px;
}
a.operatediv_close:hover {
background-color: rgba(137, 43, 226, 0.5);
background-color: @color-bs;
cursor: pointer;
}
center {
width: 70%;
// border: solid 1px blueviolet;
// border: solid 1px @color-bs;
}
}
}
@@ -98,17 +109,17 @@ body {
// 标题
h1.title {
margin: auto;
// margin-top: 20px;
font-size: 3rem;
a {
font-family: Cursive;
text-decoration: none;
color: rgb(50, 144, 231);
text-shadow: 2px 2px 3px #ccccff;
}
a:hover {
text-shadow: 2px 2px 5px #ccccff;
&:hover {
text-shadow: none;
}
}
}
// 语言
select.changelanguage {
display: none;
@@ -116,31 +127,29 @@ body {
// 多盘
div.onemoe-more-disk {
margin: auto;
margin-top: 20px;
width: 100%;
margin-top: 2rem;
div.more-disk {
margin: auto 10px;
a {
text-decoration: none;
border: solid 1px #339999;
border: solid 1px @color-bt;
border-radius: 5px;
font-weight: bold;
margin: auto 0.5em;
font-size: 1.2rem;
padding: 5px;
box-sizing: border-box;
color: #339999;
margin: auto 0.5rem;
color: @color-bt;
}
a:hover {
color: #fff;
background-color: #339999;
box-shadow: 0 0 5px #339999;
background-color: @color-bt;
box-shadow: 0 0 5px @color-bt;
}
}
}
// head.md
div.list-wrapper#head-div {
div.list-header-container {
margin-top: 20px;
margin-top: 2rem;
div.readme {
svg,
span {
@@ -148,7 +157,7 @@ body {
}
p {
font-size: large;
padding: 0 20px;
padding: 0 2rem;
}
}
}
@@ -158,70 +167,108 @@ body {
div.list-wrapper#list-div {
border-radius: 5px;
border: solid 5px rgba(137, 43, 226, 0.2);
background-color: #cccccc36;
margin-top: 20px;
background-color: @color-wjj-bg;
margin-top: 2rem;
font-size: 1.5rem;
// 文件路径
div.list-header-container {
height: 40px;
border-radius: 0;
border-bottom: dashed 1px rgba(59, 66, 107, 0.2);
border-radius: 2px;
border-bottom: dashed 1px rgba(59, 66, 107, 0.3);
display: flex;
align-items: center;
background-color: #eee;
a.back-link {
margin-left: 20px;
margin-left: 2rem;
ion-icon {
color: #339999;
width: 25px;
height: 25px;
color: @color-bt;
width: 2rem;
height: 2rem;
&:hover {
color: @color-dj;
}
}
h3.table-header,
h3.table-header a {
color: #339999;
margin-left: 20px;
}
h3.table-header {
font-size: 1.5rem;
margin: 1rem;
color: @color-bt;
font-style: italic;
}
h3.table-header a {
margin-left: 0;
a {
color: @color-bt;
text-decoration: none;
&:hover {
color: @color-dj;
}
}
}
}
// 表格
div.list-body-container {
table.list-table {
margin: auto;
box-sizing: border-box;
width: 100%;
min-width: 100%;
tbody {
margin: auto;
display: flex;
flex-direction: column;
align-items: center;
tr {
width: 96%;
// 文件背景色
background-color: #fff;
margin: 4px 0;
border: solid 1px #ddd;
background-color: @color-wjj;
margin: 1rem;
border: solid 1px #ccc;
border-radius: 5px;
display: flex;
justify-content: space-between;
align-items: center;
// transition: 0.3s;
td,
th {
height: 3em;
// font-size: 1.1em;
margin: 0 5px;
box-sizing: border-box;
display: grid;
grid-template-columns: 6fr 2fr 1fr;
@media screen and(max-width:768px) {
grid-template-columns: 6fr 2fr;
th:nth-last-of-type(2),
td:nth-last-of-type(2) {
display: none;
}
}
@media screen and(orientation:portrait) {
grid-template-columns: 1fr;
th:last-of-type,
td:last-of-type {
display: none;
}
}
&:first-of-type {
border: none;
background-color: #cccccc00;
}
&:not(:first-of-type):hover {
background-color: @color-wjjhv;
box-shadow: 0 0 2px @color-bs;
}
th,
td {
padding: 1rem;
align-items: center;
display: flex;
white-space: nowrap;
overflow: hidden;
&:first-of-type {
a {
color: #333;
margin-left: 0.5rem;
&:hover {
color: @color-bt;
text-decoration: underline;
}
}
> ion-icon {
color: #333;
}
}
&:nth-of-type(2) {
justify-content: flex-end;
text-align: right;
}
&:last-of-type {
justify-content: flex-end;
text-align: right;
}
li {
list-style: none;
}
a {
max-width: 60%;
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
@@ -230,75 +277,39 @@ body {
li.operate {
display: flex;
align-items: center;
// margin-right: -2rem;
ul {
top: -0.5rem;
li {
margin-top: 5px;
padding: 5px 5px;
padding: 0.5rem;
font-size: 1.3rem;
a {
font-size: 13px;
width: 18px;
height: 100%;
width: auto;
padding-right: 0.8rem;
}
&:hover a {
color: @color-bt;
text-decoration: none;
}
}
}
}
}
th {
height: 2em;
font-weight: bold;
}
td:first-of-type,
th:first-of-type {
width: 50%;
margin-left: 10px;
float: left;
justify-content: flex-start;
a {
color: #333;
margin-left: 5px;
}
// 文件夹图标颜色
> ion-icon {
color: #333;
}
}
td:nth-of-type(2),
th:nth-of-type(2) {
width: 30%;
float: right;
justify-content: flex-end;
text-align: right;
}
td:last-of-type,
th:last-of-type {
width: 20%;
margin-right: 10px;
float: right;
justify-content: flex-end;
text-align: right;
}
}
tr:not(:first-of-type):hover {
background-color: #ccffcc8c;
}
tr:first-of-type {
border: none;
background-color: #cccccc00;
}
}
}
// 上传
div#upload_div {
center {
margin-top: 10px;
height: 40px;
margin-top: 1rem;
height: 4rem;
display: flex;
justify-content: space-around;
align-items: center;
input {
vertical-align: middle;
height: 25px;
min-width: 50px;
height: 2rem;
min-width: 5rem;
border: dotted 1px dimgrey;
border-radius: 4px;
box-sizing: border-box;
@@ -307,6 +318,7 @@ body {
input:hover {
color: #339999;
box-shadow: 0 0 10px cornflowerblue;
cursor: pointer;
}
}
}
@@ -320,11 +332,11 @@ body {
div.onemoe-readme {
width: 100%;
margin: 50px auto 50px;
box-sizing: border-box;
border-radius: 3px;
border: solid 5px rgba(137, 43, 226, 0.2);
box-sizing: border-box;
div.readme {
background-color: #f2f5fa;
background-color: @color-bg;
svg,
span {
display: none;
@@ -333,8 +345,21 @@ body {
margin: 10px 25px;
}
}
}
div.list-wrapper:nth-of-type(4):hover {
&:hover {
box-shadow: 0 0 10px rgba(137, 43, 226, 0.25);
}
}
div[style="margin: 12px 4px 4px; text-align: center"] {
div {
a {
font-size: 1.8rem;
color: @color-bt;
text-decoration: none;
&:hover {
text-decoration: underline;
color: @color-dj;
}
}
}
}
}
File diff suppressed because one or more lines are too long
+3 -5
View File
@@ -7,11 +7,9 @@
<meta http-equiv=X-UA-Compatible content="IE=edge">
<meta name=viewport content="width=device-width,initial-scale=1">
<meta name="keywords" content="<?php echo $n_path;?>,<?php if ($p_path!='') echo $p_path.','; echo $_SERVER['sitename'];?>,林的小窝,onedrive">
<!--<link rel="icon" href="<?php echo $_SERVER['base_path'];?>favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo $_SERVER['base_path'];?>favicon.ico" type="image/x-icon" />-->
<link rel="icon" href="https://cdn.jsdelivr.net/gh/ldxw/CDN@0.003/favicon/64x64/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/ldxw/CDN@0.003/favicon/64x64/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ldxw/CDN@0.02.3/onedrive-index-theme-disk/a6pq2y.css" type="text/css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ldxw/CDN@0.02.4/onedrive-index-theme-disk/h89of0.css" type="text/css">
</head>
<body>
@@ -165,8 +163,8 @@
<table class="list-table" id="list-table">
<tr id="tr0">
<th class="file" onclick="sortby('a');"><?php echo getconstStr('File'); if ($_SERVER['USER']!='qcloud') { ?>&nbsp;&nbsp;&nbsp;<button onclick="showthumbnails(this);"><?php echo getconstStr('ShowThumbnails'); ?></button><?php } ?></th>
<th class="updated_at" width="25%" onclick="sortby('time');"><?php echo getconstStr('EditTime'); ?></th>
<th class="size" width="15%" onclick="sortby('size');"><?php echo getconstStr('Size'); ?></th>
<th class="updated_at" onclick="sortby('time');"><?php echo getconstStr('EditTime'); ?></th>
<th class="size" onclick="sortby('size');"><?php echo getconstStr('Size'); ?></th>
</tr>
<!-- Dirs -->
<?php //echo json_encode($files['children'], JSON_PRETTY_PRINT);