diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2020-03-20 15:39:50 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-20 15:39:50 +0800 |
| commit | fc9e0641c84239fd9f2cccbf3cc35ec029adef2e (patch) | |
| tree | d5f95483b3f616a220de4176816caf0b4a77d50c | |
| parent | f8b87633542f2cf8f102c9bf6fdbe934c6ba934b (diff) | |
🎁 Add: 后台编辑器引入 owo.js
| -rw-r--r-- | libs/Utils.php | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/libs/Utils.php b/libs/Utils.php index 87421a9..ab3cb9a 100644 --- a/libs/Utils.php +++ b/libs/Utils.php @@ -78,10 +78,35 @@ class Utils } /** - * 编辑界面添加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>'; } - -} +}
\ No newline at end of file |
