mirror of
https://dl.bcrjl.com/ghg/HaoOuBa/Joe.git
synced 2026-02-17 13:10:05 +08:00
更新
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -305,7 +305,7 @@
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 273px;
|
||||
background: url('https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/img/snow.gif') no-repeat;
|
||||
background: url('https://cdn.jsdelivr.net/gh/HaoOuBa/Joe/assets/img/snow.gif') no-repeat;
|
||||
background-size: cover;
|
||||
z-index: 3;
|
||||
pointer-events: none;
|
||||
@@ -933,6 +933,124 @@
|
||||
}
|
||||
}
|
||||
|
||||
.joe_detail {
|
||||
background: var(--background);
|
||||
border-radius: 8px;
|
||||
padding: 15px;
|
||||
box-shadow: var(--box-shadow);
|
||||
&__category {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 15px;
|
||||
.item {
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
padding: 3px 8px;
|
||||
margin-right: 5px;
|
||||
border-radius: 2px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 120px;
|
||||
transition: transform 0.35s, opacity 0.35s;
|
||||
&:hover {
|
||||
opacity: 0.85;
|
||||
transform: translate3d(0, -3px, 0);
|
||||
}
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
&-0 {
|
||||
background: #0396ff;
|
||||
}
|
||||
&-1 {
|
||||
background: #ea5455;
|
||||
}
|
||||
&-2 {
|
||||
background: #7367f0;
|
||||
}
|
||||
&-3 {
|
||||
background: #28c76f;
|
||||
}
|
||||
&-4 {
|
||||
background: #9f44d3;
|
||||
}
|
||||
}
|
||||
}
|
||||
&__title {
|
||||
font-size: 24px;
|
||||
color: var(--main);
|
||||
text-shadow: var(--text-shadow);
|
||||
text-align: center;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
&__count {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-bottom: 15px;
|
||||
border-bottom: 1px solid var(--classB);
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -1.5px;
|
||||
left: 0;
|
||||
width: 80px;
|
||||
height: 3px;
|
||||
border-radius: 1.5px;
|
||||
background: var(--theme);
|
||||
}
|
||||
&-information {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.avatar {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
border-radius: 50%;
|
||||
margin-right: 10px;
|
||||
border: 1px solid var(--classA);
|
||||
padding: 3px;
|
||||
}
|
||||
.meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 35px;
|
||||
justify-content: space-between;
|
||||
.author {
|
||||
.link {
|
||||
font-weight: 500;
|
||||
color: var(--theme);
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
.item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--minor);
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
.line {
|
||||
color: var(--seat);
|
||||
margin: 0 7px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&-created {
|
||||
font-size: 32px;
|
||||
line-height: 42px;
|
||||
color: var(--routine);
|
||||
user-select: none;
|
||||
text-shadow: var(--text-shadow);
|
||||
font-family: consolas;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes progress {
|
||||
0% {
|
||||
background-position: 0 0;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -28,7 +28,7 @@
|
||||
width: 100%;
|
||||
height: 160px;
|
||||
margin-bottom: 15px;
|
||||
border-radius: 5px;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
@@ -104,7 +104,7 @@
|
||||
width: 100%;
|
||||
height: 125px;
|
||||
object-fit: cover;
|
||||
border-radius: 5px 5px 0 0;
|
||||
border-radius: 4px 4px 0 0;
|
||||
transition: opacity 0.35s;
|
||||
}
|
||||
.title {
|
||||
@@ -140,6 +140,35 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
&__ad {
|
||||
padding-top: 15px;
|
||||
&-link {
|
||||
display: block;
|
||||
position: relative;
|
||||
.image {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
object-fit: cover;
|
||||
border-radius: 4px;
|
||||
transition: opacity 0.35s;
|
||||
&:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
}
|
||||
.icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
font-size: 12px;
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
padding: 2px 5px;
|
||||
border-radius: 2px;
|
||||
color: #ebebeb;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
&__title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -171,21 +200,44 @@
|
||||
transition: left 0.35s, width 0.35s;
|
||||
}
|
||||
}
|
||||
&-notice {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: auto;
|
||||
height: 40px;
|
||||
svg {
|
||||
min-width: 20px;
|
||||
min-height: 20px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
a {
|
||||
color: var(--minor);
|
||||
line-height: 20px;
|
||||
max-width: 300px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
transition: color 0.35s;
|
||||
&:hover {
|
||||
color: var(--theme);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.swiper-container {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
height: 335px;
|
||||
--swiper-theme-color: #fff;
|
||||
border-radius: 5px;
|
||||
border-radius: 4px;
|
||||
.item {
|
||||
display: block;
|
||||
height: 335px;
|
||||
border-radius: 5px;
|
||||
border-radius: 4px;
|
||||
.thumbnail {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
@@ -1 +1 @@
|
||||
*{margin:0;padding:0;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent}body{font-size:14px;background:#f5f5f5;font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif}input[type='text']{-webkit-appearance:none;border-radius:0;font-size:13px;font-weight:500}textarea{resize:none;-webkit-appearance:none}li{list-style:none}a{text-decoration:none}h1,h2,h3,h4,h5,h6{font-weight:500}img{border:0;vertical-align:middle}img[src=''],img:not([src]){border:0;opacity:0}svg,canvas{vertical-align:middle}button{cursor:pointer;-webkit-appearance:none;font-size:13px}table{border-collapse:collapse;border-spacing:0}.joe_container{display:flex;max-width:1140px;margin:0 auto;padding:0 15px}.joe_main{min-width:0;flex:1;padding:15px 0}@media (max-width: 1200px){.joe_container{max-width:960px}}@media (max-width: 992px){.joe_container{max-width:720px}}@media (max-width: 768px){.joe_container{max-width:540px}}@media (max-width: 576px){.joe_container{max-width:100%}}html{--background: #fff;--theme: #f24e4e;--main: #303133;--routine: #606266;--minor: #909399;--seat: #c0c4cc;--classA: #dcdfe6;--classB: #e4e7ed;--classC: #ebeef5;--classD: #f2f6fc;--text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);--box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.22)}html[dark='true']{--background: #303133;--box-shadow: none}
|
||||
*{margin:0;padding:0;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-thumb{border-radius:4px;background:var(--seat)}::-webkit-scrollbar-track{background:transparent}body{font-size:14px;background:#f5f5f5;font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif}input[type='text']{-webkit-appearance:none;border-radius:0;font-size:13px;font-weight:500}textarea{resize:none;-webkit-appearance:none}li{list-style:none}a{text-decoration:none}h1,h2,h3,h4,h5,h6{font-weight:500}img{border:0;vertical-align:middle}img[src=''],img:not([src]){border:0;opacity:0}svg,canvas{vertical-align:middle}button{cursor:pointer;-webkit-appearance:none;font-size:13px}table{border-collapse:collapse;border-spacing:0}.joe_container{display:flex;max-width:1140px;margin:0 auto;padding:0 15px}.joe_main{min-width:0;flex:1;padding:15px 0}@media (max-width: 1200px){.joe_container{max-width:960px}}@media (max-width: 992px){.joe_container{max-width:720px}}@media (max-width: 768px){.joe_container{max-width:540px}}@media (max-width: 576px){.joe_container{max-width:100%}}html{--background: #fff;--theme: #f24e4e;--main: #303133;--routine: #606266;--minor: #909399;--seat: #c0c4cc;--classA: #dcdfe6;--classB: #e4e7ed;--classC: #ebeef5;--classD: #f2f6fc;--text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);--box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.22)}html[dark='true']{--background: #303133;--box-shadow: none}
|
||||
|
||||
@@ -6,6 +6,19 @@
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
border-radius: 4px;
|
||||
background: var(--seat);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
body {
|
||||
font-size: 14px;
|
||||
background: #f5f5f5;
|
||||
|
||||
1
assets/css/joe.post.css
Normal file
1
assets/css/joe.post.css
Normal file
@@ -0,0 +1 @@
|
||||
.joe_bread{padding-top:15px}.joe_bread__bread{display:flex;align-items:center}.joe_bread__bread .line{color:var(--seat);padding:0 8px}.joe_bread__bread .item{color:var(--minor);white-space:nowrap}.joe_bread__bread .item .link{color:var(--routine);transition:color 0.35s}.joe_bread__bread .item .link:hover{color:var(--theme)}.joe_bread__bread .item .icon{width:15px;height:15px;min-width:15px;min-height:15px;fill:var(--routine);margin-right:2px}.joe_bread__bread .item:first-child{display:flex;align-items:center}
|
||||
34
assets/css/joe.post.scss
Normal file
34
assets/css/joe.post.scss
Normal file
@@ -0,0 +1,34 @@
|
||||
.joe_bread {
|
||||
padding-top: 15px;
|
||||
&__bread {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.line {
|
||||
color: var(--seat);
|
||||
padding: 0 8px;
|
||||
}
|
||||
.item {
|
||||
color: var(--minor);
|
||||
white-space: nowrap;
|
||||
.link {
|
||||
color: var(--routine);
|
||||
transition: color 0.35s;
|
||||
&:hover {
|
||||
color: var(--theme);
|
||||
}
|
||||
}
|
||||
.icon {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
min-width: 15px;
|
||||
min-height: 15px;
|
||||
fill: var(--routine);
|
||||
margin-right: 2px;
|
||||
}
|
||||
&:first-child {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ window.Joe = function () {
|
||||
const IsMobile = /windows phone|iphone|android/gi.test(window.navigator.userAgent);
|
||||
/* 设置侧边栏最后一个元素的高度 */
|
||||
$('.joe_aside .joe_aside__item:last-child').css('top', Header_Height + 15);
|
||||
|
||||
|
||||
/* Dropdown */
|
||||
$('.joe_dropdown').each(function (index, item) {
|
||||
const menu = $(this).find('.joe_dropdown__menu');
|
||||
@@ -141,8 +141,8 @@ window.Joe = function () {
|
||||
let queryData = { page: 1, pageSize: 10, type: 'created' };
|
||||
const initDom = () => {
|
||||
$('.joe_index__list .joe_list').html('');
|
||||
const activeItem = $(`.joe_index__title-title .item[data-type="${queryData.type}"]`);
|
||||
const activeLine = $('.joe_index__title-title .line');
|
||||
let activeItem = $('.joe_index__title-title .item[data-type="' + queryData.type + '"]');
|
||||
let activeLine = $('.joe_index__title-title .line');
|
||||
activeItem.addClass('active').siblings().removeClass('active');
|
||||
activeLine.css({ left: activeItem.position().left, width: activeItem.width() });
|
||||
};
|
||||
@@ -163,7 +163,7 @@ window.Joe = function () {
|
||||
}
|
||||
res.data.forEach(_ => {
|
||||
$('.joe_index__list .joe_list').append(`
|
||||
<li class="joe_list__item">
|
||||
<li class="joe_list__item wow">
|
||||
<div class="line"></div>
|
||||
<a href="${_.permalink}" class="thumbnail" title="${_.title}">
|
||||
<img onerror="javascript: this.src='${_.lazyload}';" class="list_lazyload" src="${_.lazyload}" data-original="${_.image}" alt="${_.title}" />
|
||||
@@ -222,9 +222,42 @@ window.Joe = function () {
|
||||
const offset = $(queryElement).offset().top - Header_Height;
|
||||
window.scrollTo({ top: offset - 15, behavior: 'smooth' });
|
||||
});
|
||||
const wow = $('.joe_index__list').attr('data-wow');
|
||||
if (wow !== 'off' && wow) {
|
||||
new WOW({
|
||||
boxClass: 'wow',
|
||||
animateClass: `animated ${wow}`,
|
||||
offset: 0,
|
||||
mobile: true,
|
||||
live: true,
|
||||
scrollContainer: null
|
||||
}).init();
|
||||
}
|
||||
}
|
||||
|
||||
/* baiduRecord */
|
||||
if ($('#Joe_Baidu_Record').length > 0) {
|
||||
$.ajax({
|
||||
url: BASE_API,
|
||||
type: 'POST',
|
||||
data: {
|
||||
routeType: 'record',
|
||||
site: window.location.href
|
||||
},
|
||||
success(res) {
|
||||
if (res.data && res.data === '已收录') {
|
||||
$('#Joe_Baidu_Record').css('color', '#67C23A');
|
||||
$('#Joe_Baidu_Record').html('已收录');
|
||||
} else {
|
||||
const url = `https://ziyuan.baidu.com/linksubmit/url?sitename=${encodeURI(window.location.href)}`;
|
||||
$('#Joe_Baidu_Record').html(`<a target="_blank" href="${url}" ref="nofollow" style="color: #F56C6C">未收录,提交收录</a>`);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
new LazyLoad('.lazyload');
|
||||
};
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => Joe());
|
||||
/* 此处不可换成监听dom加载完成,否则会出现偶尔元素偏移量获取不到的问题 */
|
||||
window.onload = () => Joe();
|
||||
|
||||
Reference in New Issue
Block a user