This commit is contained in:
haoouba 2021-02-15 16:54:51 +08:00
parent 9aa02b5f20
commit d25cf5252c
6 changed files with 47 additions and 26 deletions

File diff suppressed because one or more lines are too long

View File

@ -38,15 +38,11 @@
display: block;
width: 100%;
height: 100%;
transition: opacity 0.35s;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
&:hover {
opacity: 0.85;
}
}
.information {
display: flex;
@ -60,21 +56,26 @@
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
color: #fff;
line-height: 20px;
&_type {
background-image: linear-gradient(270deg, #986fee, #8695e6, #68b7dd, #18d7d3);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
.type {
background-image: linear-gradient(270deg, #986fee, #8695e6, #68b7dd, #18d7d3);
background-color: #8695e6;
padding: 0 5px;
height: 20px;
text-align: center;
padding: 0 8px;
border-radius: 2px;
margin-right: 5px;
height: 20px;
font-size: 12px;
color: #fff;
z-index: 2;
user-select: none;
margin-right: 5px;
}
&_title {
.text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
font-size: 14px;
}
}
}
@ -88,7 +89,6 @@
column-gap: 15px;
.item {
overflow: hidden;
border-radius: var(--radius-inner);
.link {
display: block;
.inner {
@ -106,6 +106,7 @@
height: 120px;
object-fit: cover;
transition: opacity 0.35s;
border-radius: var(--radius-inner) var(--radius-inner) 0 0;
}
.title {
font-size: 13px;
@ -118,6 +119,7 @@
color: var(--minor);
background: var(--classD);
transition: background 0.35s;
border-radius: 0 0 var(--radius-inner) var(--radius-inner);
}
.views {
display: flex;

File diff suppressed because one or more lines are too long

View File

@ -163,11 +163,8 @@ html {
}
&__hot {
&-list {
overflow-x: auto;
grid-template-columns: repeat(4, 200px);
&::-webkit-scrollbar {
display: none;
}
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
}
&__ad {
@ -271,7 +268,29 @@ html {
}
}
}
&__loading {
.item {
.thumbnail{
width: 120px;
min-width: 120px;
height: 80px;
min-height: 80px;
}
.information {
.title {
margin-bottom: 10px;
height: 20px;
}
.abstract {
p {
height: 15px;
}
}
}
}
}
}
.joe_wallpaper {
&__list {
grid-template-columns: repeat(2, 1fr);

View File

@ -3,7 +3,7 @@
/* 获取主题当前版本号 */
function _getVersion()
{
return "5.0.6";
return "5.0.7";
};
/* 判断是否是手机 */

View File

@ -15,11 +15,11 @@
<head>
<?php $this->need('public/include.php'); ?>
<!-- 首页所使用到的CSS以及JS -->
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.index.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.index.css?v=217'); ?>">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@5.4.5/css/swiper.min.css" />
<script src="https://cdn.jsdelivr.net/npm/swiper@5.4.5/js/swiper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/wowjs@1.1.3/dist/wow.min.js"></script>
<script src="<?php $this->options->themeUrl('assets/js/joe.index.js?v=212'); ?>"></script>
<script src="<?php $this->options->themeUrl('assets/js/joe.index.js?v=217'); ?>"></script>
</head>
<body>
@ -80,8 +80,8 @@
<img class="lazyload" src="<?php _getLazyload(); ?>" data-src="<?php echo _getThumbnails($item)[0]; ?>" onerror="javascript: this.src='<?php _getLazyload() ?>';" alt="<?php $item->title() ?>" width="100%" />
</a>
<figcaption class="information">
<span class="information_type">推荐</span>
<span class="information_title"><?php $item->title() ?></span>
<span class="type">推荐</span>
<div class="text"><?php $item->title() ?></div>
</figcaption>
</figure>
<?php endforeach; ?>
@ -97,7 +97,7 @@
<li class="item">
<a class="link" href="<?php $item->permalink(); ?>" title="<?php $item->title(); ?>">
<figure class="inner">
<span class="views"><?php _getViews($item); ?></span>
<span class="views"><?php _getViews($item); ?></span>
<img class="image lazyload" src="<?php _getLazyload(); ?>" data-src="<?php echo _getThumbnails($item)[0]; ?>" onerror="javascript: this.src='<?php _getLazyload() ?>';" alt="<?php $item->title(); ?>" />
<figcaption class="title"><?php $item->title(); ?></figcaption>
</figure>