修复css

This commit is contained in:
浪子 2024-06-05 08:02:40 +08:00
parent b9e3969134
commit bc3056bc4c
1 changed files with 42 additions and 5 deletions

View File

@ -12,7 +12,6 @@
<h3 class="post--single__subtitle"><?php $this->categorydescription(); ?></h3> <h3 class="post--single__subtitle"><?php $this->categorydescription(); ?></h3>
<?php while($this->next()): ?> <?php while($this->next()): ?>
</header> </header>
<article class="post--item"> <article class="post--item">
<div class="content"> <div class="content">
<h2 class="post--title"> <h2 class="post--title">
@ -55,7 +54,7 @@
'...', '...',
array( array(
'wrapTag' => 'div', 'wrapTag' => 'div',
'wrapClass' => 'cat_pagination_page', 'wrapClass' => 'pagination_page',
'itemTag' => '', 'itemTag' => '',
'textTag' => 'a', 'textTag' => 'a',
'currentClass' => 'active', 'currentClass' => 'active',
@ -63,8 +62,7 @@
'nextClass' => 'next' 'nextClass' => 'next'
) )
); );
?> ?>
<!-- 搜索结果 --> <!-- 搜索结果 -->
<?php else: ?> <?php else: ?>
<main class="site--main"> <main class="site--main">
@ -76,5 +74,44 @@
</header> </header>
</main> </main>
<?php endif; ?> <?php endif; ?>
<style>
/* 分页 */
.pagination_page{
display: flex;
align-items: center;
justify-content: center;
margin-top: var(--margin);
gap: 0.5rem;
}
.pagination_page li.active a {
background: var(--theme);
color: #fff;
font-weight: 500;
}
.pagination_page a{
display: flex;
padding: 0.5rem;
font-size: 0.9rem;
width: 1.75rem;
height: 1.75rem;
background: var(--background);
border-radius: 50%;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
transition: 0.2s;
-webkit-transition: 0.2s;
justify-content: center;
align-items: center;
letter-spacing: 0;
}
.pagination_page span.next{
cursor: pointer;
}
.pagination_page li.active a:hover{
cursor: not-allowed;
}
/* 分页 */
</style>
<?php $this->need('footer.php'); ?> <?php $this->need('footer.php'); ?>