Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
Code | 代码质量 #19 & UI Change
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingSky-CN committed Jan 26, 2020
1 parent b00fe97 commit 73da6a8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 42 deletions.
8 changes: 4 additions & 4 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,11 @@ function aln() {
</script>
<?php endif; ?>
<?php $this->footer(); ?>
<?php if ($this->options->scrollTop || $this->options->HeadFixed || $this->options->SidebarFixed): ?>
<?php if ($this->options->scrollTop || $this->options->SidebarFixed): ?>
<script>
window.onscroll = function() {
var a = document.documentElement.scrollTop || document.body.scrollTop;
<?php if ($this -> options -> scrollTop): ?>
<?php if ($this->options->scrollTop): ?>
var b = document.getElementById("top");
if (a >= 200) {
b.classList.remove("mdui-fab-hide")
Expand All @@ -415,8 +415,8 @@ function aln() {
cancelAnimationFrame(totop)
}
};
<?php endif; if ($this -> options -> SidebarFixed): ?>
if ($(window).width() > 1007){
<?php endif; if ($this->options->SidebarFixed): ?>
if ($(window).width() >= 1024){
var e = document.getElementById("main"),
f = document.getElementById("mdrDrawerR");
f.style.marginTop = "-" + a + "px"
Expand Down
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
}
</style>
<?php endif; ?>
<link rel="stylesheet" href="<?php cjUrl('style.css?v=16') ?>" />
<link rel="stylesheet" href="<?php cjUrl('style.css?v=17') ?>" />
<?php if ($this->options->ViewImg): ?>
<link rel="stylesheet" href="//<?php if ($this->options->cjCDN == 'bc'): ?>cdn.bootcss.com/fancybox/3.5.7/jquery.fancybox.min.css<?php elseif ($this->options->cjCDN == 'cf'): ?>cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css<?php else: ?>cdn.jsdelivr.net/npm/[email protected]/dist/css/jquery.fancybox.css<?php endif; ?>"/>
<?php endif; ?>
Expand Down
42 changes: 5 additions & 37 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,6 @@ button, input[type=submit] {
button, input[type=submit], .menu-parent a, .rewards a {
cursor:pointer
}
.browsehappy {
padding:8px 0;
background:#fbe3e4;
color:#8a1f11;
text-align:center
}
.browsehappy a {
color:#8a1f11;
text-decoration:underline;
font-weight:bold
}
.clearfix {
zoom:1
}
Expand All @@ -89,26 +78,6 @@ button, input[type=submit], .menu-parent a, .rewards a {
padding-left:10px;
padding-right:10px
}
.head-fixed .browsehappy {
position:fixed;
bottom:0;
width:100%
}
.head-fixed #header {
position:fixed;
top:0;
width:100%;
background:rgba(255, 255, 255, .95);
z-index:999
}
.head-fixed #body {
padding-top:71px
}
#header {
line-height:40px;
padding:15px 0;
border-bottom:1px solid #eee
}
.site-name, .comment-form p, .whisper .comment-meta time {
float:left
}
Expand Down Expand Up @@ -288,9 +257,6 @@ button, input[type=submit], .menu-parent a, .rewards a {
height:0;
border:0
}
.head-fixed .cl-offset {
top:-51px
}
.whisper .post-content {
min-height:40px;
margin-top:1em;
Expand Down Expand Up @@ -735,6 +701,9 @@ button, input[type=submit], .menu-parent a, .rewards a {
.avatar {
border-radius:50%
}
html {
content: "";
}
@media (prefers-color-scheme: light) {
html {
content: "light";
Expand Down Expand Up @@ -774,11 +743,10 @@ button, input[type=submit], .menu-parent a, .rewards a {
}
.post.status .time {
right: 0;
padding: 15px;
padding: 12px;
color: #bcbcbc;
}
.post.status .inner {
width: 100%;
font-size: 18px;
font-size: 16px;
padding: 70px 16px 24px;
}

0 comments on commit 73da6a8

Please sign in to comment.