14 Commits

Author SHA1 Message Date
ldxw 9c5618d447 鼠标样式图和墙背景 2020-03-03 14:36:16 +08:00
Mr.Lin 26e6619ef1 Create README.md 2020-03-03 14:20:40 +08:00
Mr.Lin e795201220 Update onemoe.css 2020-02-23 00:38:10 +08:00
Mr.Lin dcc1546a82 Update onemoe.less 2020-02-23 00:37:06 +08:00
Mr.Lin 305d5b2984 Update onemoe.min.css 2020-02-23 00:36:18 +08:00
Mr.Lin 363a9f6750 Rename sx0csz.css to 02e67o.css 2020-02-23 00:35:21 +08:00
Mr.Lin 0651d7b4dc Update sx0csz.css 2020-02-23 00:35:00 +08:00
Mr.Lin 261f80e581 Update onemoe.php 2020-02-23 00:33:52 +08:00
Mr.Lin b2cfbbfd85 Delete classic.php 2020-02-22 22:50:45 +08:00
Mr.Lin e612ab7ee8 Update onemoe.css 2020-02-22 22:50:14 +08:00
Mr.Lin c8df983860 Update onemoe.less 2020-02-22 22:49:29 +08:00
Mr.Lin 9a7e353ed7 Update and rename h89of0.css to sx0csz.css 2020-02-22 22:45:07 +08:00
Mr.Lin f7b17d1e45 Update onemoe.min.css 2020-02-22 22:43:00 +08:00
Mr.Lin 822c4d2bba Update onemoe.php 2020-02-22 22:40:57 +08:00
11 changed files with 137 additions and 1321 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+52 -41
View File
@@ -3,11 +3,15 @@
font-family: Helvetica Neue, Helvetica, Arial, Microsoft Yahei, Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif;
}
body {
background-color: #f2f5fa;
background-color: #8ec5fc;
background-image: linear-gradient(62deg, #8ec5fc 0%, #e0c3fc 100%);
min-height: 100vh;
margin: auto;
padding: 0 0.5rem;
max-width: 960px;
display: flex;
flex-direction: column;
justify-content: center;
}
body a.login,
body li.operate {
@@ -64,51 +68,58 @@ body div[style="padding:1px"] {
body div.operatediv {
position: fixed;
background-color: #ddd;
border: solid 1px blueviolet;
box-shadow: 0 0 10px blueviolet;
border-radius: 10px;
border: solid 2px blueviolet;
box-shadow: 0 0 10px #339999;
border-radius: 2px;
}
body div.operatediv div {
color: #339999;
font-size: 1.5rem;
display: flex;
flex-direction: column;
padding: 1rem;
}
body div.operatediv div input[type="submit"],
body div.operatediv div a.operatediv_close {
width: 20%;
border: solid 1px blueviolet;
border-radius: 10px;
margin: auto;
align-self: flex-end;
width: auto;
padding: 1px 5px;
margin: 5px 0;
border: solid 2px #339999;
border-radius: 2px;
text-align: center;
font-size: large;
margin: auto 20px;
font-size: 1.5rem;
color: #339999;
}
body div.operatediv div input[type="submit"]:hover,
body div.operatediv div a.operatediv_close:hover {
background-color: blueviolet;
background-color: #339999;
cursor: pointer;
}
body div.operatediv div center {
width: 70%;
color: #fff;
}
body div.mask {
display: none;
}
body div[style="position:absolute;"] {
left: 50px;
top: 20px;
top: 2rem;
background-color: yellow;
border-radius: 5px;
border-radius: 2px;
padding: 5px;
}
body h1.title {
margin: auto;
font-size: 3rem;
font-size: 3.5rem;
}
body h1.title a {
font-family: Cursive;
text-decoration: none;
color: #3290e7;
text-shadow: 2px 2px 5px #ccccff;
text-shadow: 2px 2px 5px rgba(50, 144, 231, 0.5);
transition: 0.2s;
}
body h1.title a:hover {
text-shadow: none;
font-size: 3.8rem;
}
body select.changelanguage {
display: none;
@@ -119,7 +130,7 @@ body div.onemoe-more-disk {
}
body div.onemoe-more-disk div.more-disk a {
text-decoration: none;
border: solid 1px #339999;
border: solid 2px #339999;
border-radius: 5px;
font-weight: bold;
font-size: 1.2rem;
@@ -131,14 +142,11 @@ body div.onemoe-more-disk div.more-disk a:hover {
color: #fff;
background-color: #339999;
box-shadow: 0 0 5px #339999;
transition: 0.2s;
}
body div.list-wrapper#head-div div.list-header-container {
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 {
display: none;
}
body div.list-wrapper#head-div div.list-header-container div.readme p {
font-size: large;
padding: 0 2rem;
@@ -146,7 +154,6 @@ body div.list-wrapper#head-div div.list-header-container div.readme p {
body div.list-wrapper#list-div {
border-radius: 5px;
border: solid 5px rgba(137, 43, 226, 0.2);
background-color: rgba(204, 204, 204, 0.3);
margin-top: 2rem;
font-size: 1.5rem;
}
@@ -155,7 +162,7 @@ body div.list-wrapper#list-div div.list-header-container {
border-bottom: dashed 1px rgba(59, 66, 107, 0.3);
display: flex;
align-items: center;
background-color: #eee;
background-color: #e0c3fc98;
}
body div.list-wrapper#list-div div.list-header-container a.back-link {
margin-left: 2rem;
@@ -186,9 +193,10 @@ body div.list-wrapper#list-div div.list-body-container table.list-table {
min-width: 100%;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr {
color: #333;
background-color: #fff;
margin: 1rem;
border: solid 1px #ccc;
border: solid 1px #339999;
border-radius: 5px;
display: grid;
grid-template-columns: 6fr 2fr 1fr;
@@ -214,10 +222,14 @@ body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr:first-of-type {
border: none;
background-color: #cccccc00;
margin: 0 1.5rem;
}
body div.list-wrapper#list-div div.list-body-container table.list-table tbody tr:nth-of-type(2) {
margin-top: 0;
}
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;
box-shadow: 0 0 5px #339999;
}
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 {
@@ -289,14 +301,14 @@ body div.list-wrapper#list-div div.list-body-container div#upload_div center {
margin-top: 1rem;
height: 4rem;
display: flex;
justify-content: space-around;
justify-content: space-evenly;
align-items: center;
}
body div.list-wrapper#list-div div.list-body-container div#upload_div center input {
vertical-align: middle;
height: 2rem;
padding: 0.5rem;
min-width: 5rem;
border: dotted 1px dimgrey;
border: solid 2px dimgrey;
border-radius: 4px;
box-sizing: border-box;
background-color: gainsboro;
@@ -311,20 +323,13 @@ body div.list-wrapper#list-div:hover {
}
body div.onemoe-readme {
width: 100%;
margin: 50px auto 50px;
margin: 4rem auto 0;
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;
}
body div.onemoe-readme div.readme svg,
body div.onemoe-readme div.readme span {
display: none;
}
body div.onemoe-readme div.readme div.markdown-body {
margin: 10px 25px;
body div.onemoe-readme div.markdown-body {
padding: 1rem;
}
body div.onemoe-readme:hover {
box-shadow: 0 0 10px rgba(137, 43, 226, 0.25);
@@ -338,3 +343,9 @@ body div[style="margin: 12px 4px 4px; text-align: center"] div a:hover {
text-decoration: underline;
color: #ff9900;
}
body div[style="color: rgba(247,247,249,0);"] {
margin-top: 4rem;
flex: 1 0;
display: flex;
align-items: flex-end;
}
+54 -43
View File
@@ -14,12 +14,16 @@
@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%);
// background-color: @color-bg;
background-color: #8ec5fc;
background-image: linear-gradient(62deg, #8ec5fc 0%, #e0c3fc 100%);
min-height: 100vh;
margin: auto;
padding: 0 0.5rem;
max-width: 960px;
display: flex;
flex-direction: column;
justify-content: center;
// background-color: @color-bg;
// 管理
a.login,
@@ -71,27 +75,31 @@ body {
div.operatediv {
position: fixed;
background-color: #ddd;
border: solid 1px @color-bs;
box-shadow: 0 0 10px @color-bs;
border-radius: 10px;
border: solid 2px @color-bs;
box-shadow: 0 0 10px @color-bt;
border-radius: 2px;
div {
color: @color-bt;
font-size: 1.5rem;
display: flex;
flex-direction: column;
padding: 1rem;
input[type="submit"],
a.operatediv_close {
width: 20%;
border: solid 1px @color-bs;
border-radius: 10px;
margin: auto;
align-self: flex-end;
width: auto;
padding: 1px 5px;
margin: 5px 0;
border: solid 2px @color-bt;
border-radius: 2px;
text-align: center;
font-size: large;
margin: auto 20px;
}
a.operatediv_close:hover {
background-color: @color-bs;
font-size: 1.5rem;
color: @color-bt;
&:hover {
background-color: @color-bt;
cursor: pointer;
color: @color-bthv;
}
center {
width: 70%;
// border: solid 1px @color-bs;
}
}
}
@@ -100,23 +108,24 @@ body {
}
// 升级提示
div[style="position:absolute;"] {
left: 50px;
top: 20px;
top: 2rem;
background-color: yellow;
border-radius: 5px;
border-radius: 2px;
padding: 5px;
}
// 标题
h1.title {
margin: auto;
font-size: 3rem;
font-size: 3.5rem;
a {
font-family: Cursive;
text-decoration: none;
color: rgb(50, 144, 231);
text-shadow: 2px 2px 5px #ccccff;
text-shadow: 2px 2px 5px rgba(50, 144, 231, 0.5);
transition: 0.2s;
&:hover {
text-shadow: none;
font-size: 3.8rem;
}
}
}
@@ -131,7 +140,7 @@ body {
div.more-disk {
a {
text-decoration: none;
border: solid 1px @color-bt;
border: solid 2px @color-bt;
border-radius: 5px;
font-weight: bold;
font-size: 1.2rem;
@@ -143,6 +152,7 @@ body {
color: #fff;
background-color: @color-bt;
box-shadow: 0 0 5px @color-bt;
transition: 0.2s;
}
}
}
@@ -151,10 +161,6 @@ body {
div.list-header-container {
margin-top: 2rem;
div.readme {
svg,
span {
display: none;
}
p {
font-size: large;
padding: 0 2rem;
@@ -167,7 +173,7 @@ body {
div.list-wrapper#list-div {
border-radius: 5px;
border: solid 5px rgba(137, 43, 226, 0.2);
background-color: @color-wjj-bg;
// background-color: @color-wjj-bg;
margin-top: 2rem;
font-size: 1.5rem;
// 文件路径
@@ -176,7 +182,7 @@ body {
border-bottom: dashed 1px rgba(59, 66, 107, 0.3);
display: flex;
align-items: center;
background-color: #eee;
background-color: #e0c3fc98;
a.back-link {
margin-left: 2rem;
ion-icon {
@@ -209,9 +215,10 @@ body {
min-width: 100%;
tbody {
tr {
color: #333;
background-color: @color-wjj;
margin: 1rem;
border: solid 1px #ccc;
border: solid 1px @color-bt;
border-radius: 5px;
display: grid;
grid-template-columns: 6fr 2fr 1fr;
@@ -229,13 +236,18 @@ body {
display: none;
}
}
// 表头
&:first-of-type {
border: none;
background-color: #cccccc00;
margin: 0 1.5rem;
}
&:nth-of-type(2) {
margin-top: 0;
}
&:not(:first-of-type):hover {
background-color: @color-wjjhv;
box-shadow: 0 0 2px @color-bs;
box-shadow: 0 0 5px @color-bt;
}
th,
td {
@@ -304,13 +316,13 @@ body {
margin-top: 1rem;
height: 4rem;
display: flex;
justify-content: space-around;
justify-content: space-evenly;
align-items: center;
input {
vertical-align: middle;
height: 2rem;
padding: 0.5rem;
min-width: 5rem;
border: dotted 1px dimgrey;
border: solid 2px dimgrey;
border-radius: 4px;
box-sizing: border-box;
background-color: gainsboro;
@@ -331,19 +343,12 @@ body {
// 底部readme
div.onemoe-readme {
width: 100%;
margin: 50px auto 50px;
margin: 4rem auto 0;
border-radius: 3px;
border: solid 5px rgba(137, 43, 226, 0.2);
box-sizing: border-box;
div.readme {
background-color: @color-bg;
svg,
span {
display: none;
}
div.markdown-body {
margin: 10px 25px;
}
padding: 1rem;
}
&:hover {
box-shadow: 0 0 10px rgba(137, 43, 226, 0.25);
@@ -362,4 +367,10 @@ body {
}
}
}
div[style="color: rgba(247,247,249,0);"] {
margin-top: 4rem;
flex: 1 0;
display: flex;
align-items: flex-end;
}
}
File diff suppressed because one or more lines are too long
+25 -11
View File
@@ -9,7 +9,7 @@
<meta name="keywords" content="<?php echo $n_path;?>,<?php if ($p_path!='') echo $p_path.','; echo $_SERVER['sitename'];?>,林的小窝,onedrive">
<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.4/onedrive-index-theme-disk/h89of0.css" type="text/css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ldxw/CDN@0.02.6/onedrive-index-theme-disk/02e67o.css" type="text/css">
</head>
<body>
@@ -146,12 +146,12 @@
<textarea id="txt-a" name="editfile" readonly style="width: 100%; margin-top: 2px;" <?php if ($_SERVER['admin']) echo 'onchange="document.getElementById(\'txt-save\').onclick=function(){document.getElementById(\'txt-form\').submit();}"';?> ><?php echo $txtstr;?></textarea>
<?php if ($_SERVER['admin']) echo '</form>'; ?>
</div>
<?php } elseif (in_array($ext, ['md'])) {
<?php } /*elseif (in_array($ext, ['md'])) {
echo ' <div class="markdown-body" id="readme">
<textarea id="readme-md" style="display:none;">' . curl_request($files['@microsoft.graph.downloadUrl'])['body'] . '</textarea>
</div>
';
} else {
}*/ else {
echo '<span>'.getconstStr('FileNotSupport').'</span>';
} ?>
</div>
@@ -180,6 +180,7 @@
<li><a onclick="showdiv(event,'encrypt',<?php echo $filenum;?>);"><ion-icon name="lock"></ion-icon><?php echo getconstStr('encrypt'); ?></a></li>
<li><a onclick="showdiv(event, 'rename',<?php echo $filenum;?>);"><ion-icon name="create"></ion-icon><?php echo getconstStr('Rename'); ?></a></li>
<li><a onclick="showdiv(event, 'move',<?php echo $filenum;?>);"><ion-icon name="move"></ion-icon><?php echo getconstStr('Move'); ?></a></li>
<li><a onclick="showdiv(event, 'copy',<?php echo $filenum;?>);"><ion-icon name="copy"></ion-icon><?php echo getconstStr('Copy'); ?></a></li>
<li><a onclick="showdiv(event, 'delete',<?php echo $filenum;?>);"><ion-icon name="trash"></ion-icon><?php echo getconstStr('Delete'); ?></a></li>
</ul>
</li>&nbsp;&nbsp;&nbsp;
@@ -211,6 +212,7 @@
<ul>
<li><a onclick="showdiv(event, 'rename',<?php echo $filenum;?>);"><ion-icon name="create"></ion-icon><?php echo getconstStr('Rename'); ?></a></li>
<li><a onclick="showdiv(event, 'move',<?php echo $filenum;?>);"><ion-icon name="move"></ion-icon><?php echo getconstStr('Move'); ?></a></li>
<li><a onclick="showdiv(event, 'copy',<?php echo $filenum;?>);"><ion-icon name="copy"></ion-icon><?php echo getconstStr('Copy'); ?></a></li>
<li><a onclick="showdiv(event, 'delete',<?php echo $filenum;?>);"><ion-icon name="trash"></ion-icon><?php echo getconstStr('Delete'); ?></a></li>
</ul>
</li>&nbsp;&nbsp;&nbsp;
@@ -311,8 +313,8 @@
<div class="list-container">
<div class="list-header-container">
<div class="readme">
<svg class="octicon octicon-book" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M3 5h4v1H3V5zm0 3h4V7H3v1zm0 2h4V9H3v1zm11-5h-4v1h4V5zm0 2h-4v1h4V7zm0 2h-4v1h4V9zm2-6v9c0 .55-.45 1-1 1H9.5l-1 1-1-1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h5.5l1 1 1-1H15c.55 0 1 .45 1 1zm-8 .5L7.5 3H2v9h6V3.5zm7-.5H9.5l-.5.5V12h6V3z"></path></svg>
<span style="line-height: 16px;vertical-align: top;">'.$head['name'].'</span>
<!--<svg class="octicon octicon-book" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M3 5h4v1H3V5zm0 3h4V7H3v1zm0 2h4V9H3v1zm11-5h-4v1h4V5zm0 2h-4v1h4V7zm0 2h-4v1h4V9zm2-6v9c0 .55-.45 1-1 1H9.5l-1 1-1-1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h5.5l1 1 1-1H15c.55 0 1 .45 1 1zm-8 .5L7.5 3H2v9h6V3.5zm7-.5H9.5l-.5.5V12h6V3z"></path></svg>
<span style="line-height: 16px;vertical-align: top;">'.$head['name'].'</span>-->
<div class="markdown-body" id="head">
<textarea id="head-md" style="display:none;">' . curl_request(fetch_files(spurlencode(path_format($path . '/' .$head['name']),'/'))['@microsoft.graph.downloadUrl'])['body'] . '
</textarea>
@@ -325,12 +327,12 @@
</div>
</div>
</div>
<div class="list-wrapper onemoe-readme">
<div class="list-wrapper">
<div class="list-container">
<div class="list-header-container">
<div class="readme">
<svg class="octicon octicon-book" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M3 5h4v1H3V5zm0 3h4V7H3v1zm0 2h4V9H3v1zm11-5h-4v1h4V5zm0 2h-4v1h4V7zm0 2h-4v1h4V9zm2-6v9c0 .55-.45 1-1 1H9.5l-1 1-1-1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h5.5l1 1 1-1H15c.55 0 1 .45 1 1zm-8 .5L7.5 3H2v9h6V3.5zm7-.5H9.5l-.5.5V12h6V3z"></path></svg>
<span style="line-height: 16px;vertical-align: top;">'.$readme['name'].'</span>
<div class="readme onemoe-readme">
<!--<svg class="octicon octicon-book" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M3 5h4v1H3V5zm0 3h4V7H3v1zm0 2h4V9H3v1zm11-5h-4v1h4V5zm0 2h-4v1h4V7zm0 2h-4v1h4V9zm2-6v9c0 .55-.45 1-1 1H9.5l-1 1-1-1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h5.5l1 1 1-1H15c.55 0 1 .45 1 1zm-8 .5L7.5 3H2v9h6V3.5zm7-.5H9.5l-.5.5V12h6V3z"></path></svg>
<span style="line-height: 16px;vertical-align: top;">'.$readme['name'].'</span>-->
<div class="markdown-body" id="readme">
<textarea id="readme-md" style="display:none;">' . curl_request(fetch_files(spurlencode(path_format($path . '/' .$readme['name']),'/'))['@microsoft.graph.downloadUrl'])['body'] . '
</textarea>
@@ -395,6 +397,17 @@
</form>
</div>
</div>
<div id="copy_div" class="operatediv" style="display:none">
<div>
<label id="copy_label"></label><br><br><a onclick="operatediv_close('copy')" class="operatediv_close"><?php echo getconstStr('Close'); ?></a>
<form id="copy_form" onsubmit="return submit_operate('copy');">
<input id="copy_sid" name="copy_sid" type="hidden" value="">
<input id="copy_hidden" name="copy_name" type="hidden" value="">
<input id="copy_input" name="copy_input" type="hidden" value="">
<input name="operate_action" type="submit" value="<?php echo getconstStr('Copy'); ?>">
</form>
</div>
</div>
<div id="move_div" class="operatediv" style="display:none">
<div>
<label id="move_label"></label><br><br><a onclick="operatediv_close('move')" class="operatediv_close"><?php echo getconstStr('Close'); ?></a>
@@ -466,7 +479,7 @@
</div>
<?php }
} ?>
<font color="#f7f7f9"><?php echo date("Y-m-d H:i:s")." ".getconstStr('Week')[date("w")]." ".$_SERVER['REMOTE_ADDR'];?></font>
<div style="color: rgba(247,247,249,0);"><?php echo date("Y-m-d H:i:s")." ".getconstStr('Week')[date("w")]." ".$_SERVER['REMOTE_ADDR'];?></div>
</body>
<?php if ($files) { ?>
<?php if ($head||$readme) { ?><link rel="stylesheet" href="//unpkg.zhimg.com/github-markdown-css@3.0.1/github-markdown.css">
@@ -1052,6 +1065,7 @@
xhr.onload = function(e){
var html;
if (xhr.status<300) {
console.log(xhr.status+','+xhr.responseText);
if (str=='rename') {
html=JSON.parse(xhr.responseText);
var file_a = document.getElementById('file_a'+num);
@@ -1075,7 +1089,7 @@
var td1=document.createElement('td');
td1.setAttribute('class','file');
var a1=document.createElement('a');
a1.href=html.name.replace(/#/,'%23');
a1.href='<?php echo $_SERVER['base_disk_path'];?>'+html.name.replace(/#/,'%23');
a1.innerText=html.name;
a1.target='_blank';
var td2=document.createElement('td');
+1
View File
@@ -0,0 +1 @@
# 彩虹 样式
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B