Skip to content

Commit

Permalink
🎁 Add: 后台编辑器引入 owo.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BigCoke233 authored Mar 20, 2020
1 parent f8b8763 commit fc9e064
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions libs/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,35 @@ public static function isOutdated($archive)
}

/**
* 编辑界面添加Button
* 编辑界面添加内容
*/
public static function addButton(){
echo '<link rel="stylesheet" href="/usr/themes/Miracles/assets/css/setting.miracles.css" />';
echo '<link rel="stylesheet" href="/usr/themes/Miracles/assets/css/owo.min.css" />';
echo '<script src="/usr/themes/Miracles/assets/js/OwO.min.js"></script>';
echo '<script src="/usr/themes/Miracles/assets/js/editor.js"></script>';
echo '<style>#custom-field textarea{width:100%}
.OwO span{background:none!important;width:unset!important;height:unset!important}
.OwO .OwO-logo{
z-index: unset!important;
}
.OwO .OwO-body .OwO-items{
-webkit-overflow-scrolling: touch;
overflow-x: hidden;
}
.OwO .OwO-body .OwO-items-image .OwO-item{
max-width:-moz-calc(20% - 10px);
max-width:-webkit-calc(20% - 10px);
max-width:calc(20% - 10px)
}
#wmd-owo-button:hover{
background:transparent!important}
@media screen and (max-width:760px){
.OwO .OwO-body .OwO-items-image .OwO-item{
max-width:-moz-calc(25% - 10px);
max-width:-webkit-calc(25% - 10px);
max-width:calc(25% - 10px)
}
}</style>';
}

}
}

0 comments on commit fc9e064

Please sign in to comment.