+ + comments()->to($comments); ?> +
+ + comments()->to($comments); ?> +
From 80c9d2e1084674b8ce43394bee618a59680b6ab7 Mon Sep 17 00:00:00 2001 From: Eltrac <45323514+BigCoke233@users.noreply.github.com> Date: Mon, 15 Jul 2019 17:06:46 +0800 Subject: =?UTF-8?q?plus=20=E8=AF=B4=E8=AF=B4=E5=8A=A8=E6=80=81=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/miracles.min.css | 69 +++++++++++++++++++++++++++++++++++++++++++++ assets/js/main.js | 4 +++ saying.php | 67 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 140 insertions(+) create mode 100644 saying.php diff --git a/assets/css/miracles.min.css b/assets/css/miracles.min.css index 9ed26fd..d1164e7 100644 --- a/assets/css/miracles.min.css +++ b/assets/css/miracles.min.css @@ -958,6 +958,75 @@ hr { margin-top: 0; } +.saying-form { + margin-bottom: 20px; +} +.saying-OwO { + float: left; + margin-left: 0 +} +.saying-submit { + float: right; + background: var(--theme-color); + border-radius: 5px; + color: white; + padding: 10px 20px; + border: none; + font-size: 15px; + cursor: pointer; +} +.saying-content p { + padding: 10px 20px; +} +.saying-content a { + color: white; +} +.saying-author, +.saying-meta, +.saying-author a { + position: absolute; + color: rgb(250,250,250)!important; + font-size: 12px; +} +.saying-meta { + bottom: 3px; + right: 10px; +} +.saying-author { + top: 3px; + left: 20px; +} +.saying-meta i { + font-size: 12px; +} + +/* 气泡 */ +.bubble { + position: relative; + background: var(--theme-color); + border-radius: 2px; + padding: 0; + color: white; + display: inline-block; + min-width: 300px; + transition: all 0.3s; +} +.bubble:before{ + position: absolute; + content: ""; + width: 0; + height: 0; + right: 100%; + top: 8px; + border-top: 8px solid transparent; + border-right: 16px solid var(--theme-color); + border-bottom: 8px solid transparent; +} +.bubble:hover { + transform: translateY(-6px); + box-shadow: 2px 8px 17px #bababa; +} + .pio-container .pio-dialog { margin-bottom: -60px; border-color: rgba(255,255,255,.9); diff --git a/assets/js/main.js b/assets/js/main.js index 4cc371b..fb232a4 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -2,6 +2,10 @@ function Dark() { $("body").toggleClass("body-dark"); } +var h = myDate.getHours(); +if !(h > 6 && h < 19 && hasClass('body-dark')) { + Dark(); +} //GoTop function GoTop() { $('body,html').animate({scrollTop:0},500); diff --git a/saying.php b/saying.php new file mode 100644 index 0000000..2c24fcc --- /dev/null +++ b/saying.php @@ -0,0 +1,67 @@ +need('includes/head.php'); +$this->need('includes/header.php'); +?> +authorId) { + if ($comments->authorId == $comments->ownerId) { + $commentClass .= ' comment-by-author'; //如果是文章作者的评论添加 .comment-by-author 样式 + } else { + $commentClass .= ' comment-by-user'; //如果是评论作者的添加 .comment-by-user 样式 + } + } + $commentLevelClass = $comments->_levels > 0 ? ' comment-child' : ' comment-parent'; //评论层数大于0为子级,否则是父级 +?> +
+ + +