Compare commits
56 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6df1b433ee | ||
|
|
2650bb6654 | ||
|
|
316cf1da39 | ||
|
|
be12409358 | ||
|
|
2a1a692195 | ||
|
|
8b4118a2ce | ||
|
|
f209fd78fe | ||
|
|
0265a50100 | ||
|
|
6e0bbe885d | ||
|
|
fc5ac7969c | ||
|
|
edc73ccbc8 | ||
|
|
752eed6890 | ||
|
|
90c0a70252 | ||
|
|
d7465f1cff | ||
|
|
fef2ec2377 | ||
|
|
dde84fe0aa | ||
|
|
878b2b3d11 | ||
|
|
dd88938aa1 | ||
|
|
7415b5ba76 | ||
|
|
fd013a7508 | ||
|
|
005951ee4d | ||
|
|
7edd3f9659 | ||
|
|
6b2c5b19e1 | ||
|
|
f1937a3a7c | ||
|
|
0595d1126e | ||
|
|
4c4b14020d | ||
|
|
56d7e7eec8 | ||
|
|
144bbee912 | ||
|
|
a41fd2dc7c | ||
|
|
06fda5b1a6 | ||
|
|
9df0256e8c | ||
|
|
fbc7696ae8 | ||
|
|
c9aba55949 | ||
|
|
a2c1fbf4a8 | ||
|
|
a1f62e1bcc | ||
|
|
e89b1bbcf6 | ||
|
|
4c1c42ad40 | ||
|
|
b28d5b7bab | ||
|
|
b00a0ae06f | ||
|
|
438ac35487 | ||
|
|
ff1fde5c4b | ||
|
|
3296151409 | ||
|
|
157de39b54 | ||
|
|
4c8c64c79e | ||
|
|
9b107027ed | ||
|
|
b73187f12c | ||
|
|
f206d852bd | ||
|
|
38562bab48 | ||
|
|
6de71129a4 | ||
|
|
d4a5f765a3 | ||
|
|
bec905274a | ||
|
|
53eda2cf75 | ||
|
|
bad3ef651d | ||
|
|
a74206a89e | ||
|
|
22a8ad362e | ||
|
|
f49564db23 |
@@ -12,7 +12,7 @@
|
||||
<li>Доступ к текущей странице невозможен, возможно, у нее нет разрешения или она была удалена.</li>
|
||||
<li>現在のページにアクセスできない、権限がない、または削除された可能性があります。</li>
|
||||
</ul>
|
||||
<p class="text-center"><a href="<?php $this->options->siteUrl(); ?>" role="button" class="secondary"><?php _e('回首页'); ?></a></p>
|
||||
<p class="text-center"><a href="<?php $this->options->siteUrl(); ?>" role="button" class="outline"><?php _e('回首页'); ?></a></p>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
<?php $comments->listComments(array(
|
||||
'commentStatus' => _t('你的评论正等待审核'),
|
||||
'avatarSize' => 120,
|
||||
'defaultAvatar' => 'monsterid'
|
||||
'avatarSize' => 64,
|
||||
'defaultAvatar' => 'identicon'
|
||||
)); ?>
|
||||
|
||||
<?php $comments->pageNav('« 前一页', '后一页 »'); ?>
|
||||
|
||||
@@ -3,6 +3,16 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit;
|
||||
|
||||
function themeConfig($form)
|
||||
{
|
||||
$logoUrl = new \Typecho\Widget\Helper\Form\Element\Text(
|
||||
'logoUrl',
|
||||
null,
|
||||
null,
|
||||
_t('网站 Logo'),
|
||||
_t('在这里填写图片 URL,网站将显示 Logo')
|
||||
);
|
||||
|
||||
$form->addInput($logoUrl->addRule('url', _t('请填写正确的 URL 地址')));
|
||||
|
||||
$themeStyle = new \Typecho\Widget\Helper\Form\Element\Radio(
|
||||
'themeStyle',
|
||||
array(
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<head>
|
||||
<meta charset="<?php $this->options->charset(); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><?php $this->archiveTitle('', '', ' - '); ?><?php $this->options->title(); ?></title>
|
||||
<title><?php $this->archiveTitle('', '', ' | '); ?><?php $this->options->title(); ?><?php if ($this->is('index')): ?> | <?php $this->options->description() ?><?php endif; ?></title>
|
||||
|
||||
<link rel="stylesheet" href="<?php $this->options->themeUrl('static/css/style.css'); ?>">
|
||||
|
||||
|
||||
@@ -13,32 +13,29 @@
|
||||
<div class="text-center">
|
||||
<?php \Widget\Metas\Category\Rows::alloc()->listCategories('wrapClass=list-inline'); ?>
|
||||
</div>
|
||||
|
||||
<?php while ($this->next()): ?>
|
||||
|
||||
<hr class="post-separator">
|
||||
|
||||
<?php if ($this->have()): ?>
|
||||
<?php while ($this->next()): ?>
|
||||
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<header class="entry-header text-center">
|
||||
<h1 class="entry-title" itemprop="name headline"><a href="<?php $this->permalink() ?>" itemprop="url"><?php $this->title() ?></a></h1>
|
||||
<ul class="entry-meta list-inline text-muted">
|
||||
<li><i data-feather="calendar" class="is-sm me-2"></i><time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date(); ?></time></li>
|
||||
<li><i data-feather="folder" class="is-sm me-2"></i><?php $this->category(', '); ?></li>
|
||||
<li><i data-feather="message-circle" class="is-sm me-2"></i><a href="<?php $this->permalink() ?>#comments" itemprop="discussionUrl"><?php $this->commentsNum('暂无评论', '1 条评论', '%d 条评论'); ?></a></li>
|
||||
</ul>
|
||||
</header>
|
||||
<?php postMeta($this); ?>
|
||||
|
||||
<div class="entry-content fmt" itemprop="articleBody">
|
||||
<?php $this->content('阅读剩余部分'); ?>
|
||||
<?php $this->content('阅读全文'); ?>
|
||||
</div>
|
||||
</article>
|
||||
<hr class="post-separator">
|
||||
<?php endwhile; ?>
|
||||
<?php endwhile; ?>
|
||||
<?php else: ?>
|
||||
<article class="post">
|
||||
<div class="entry-content fmt text-center" itemprop="articleBody">
|
||||
<p><?php _e('没有找到内容'); ?></p>
|
||||
</div>
|
||||
</article>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- <div class="text-center">
|
||||
<a href="#">« Older Posts</a>
|
||||
<span class="mx-2 text-muted">·</span>
|
||||
<a href="#">Newer Posts »</a>
|
||||
</div> -->
|
||||
<?php $this->pageNav('« 前一页', '后一页 »'); ?>
|
||||
</main>
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@
|
||||
|
||||
// Global Set
|
||||
:root {
|
||||
--border-radius: 0.5rem;
|
||||
--border-radius: .5rem;
|
||||
}
|
||||
|
||||
body {
|
||||
@@ -25,6 +25,10 @@ body {
|
||||
.site-navbar {
|
||||
background-color: #{$primary-600};
|
||||
}
|
||||
|
||||
.comment-level-odd {
|
||||
background-color: #{$grey-900};
|
||||
}
|
||||
}
|
||||
|
||||
// Content
|
||||
@@ -89,21 +93,18 @@ h1, h2, h3, h4, h5 { line-height: 1.25; }
|
||||
|
||||
// Layout
|
||||
.container-inner {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 84rem;
|
||||
|
||||
@if map-get($breakpoints, "lg") {
|
||||
@media (min-width: map-get($breakpoints, "lg")) {
|
||||
padding-left: calc(var(--spacing) * 1.5);
|
||||
padding-right: calc(var(--spacing) * 1.5);
|
||||
padding-left: calc(var(--spacing) / 2);
|
||||
padding-right: calc(var(--spacing) / 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.container-thin {
|
||||
margin: 0 auto;
|
||||
max-width: 46rem;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 40rem;
|
||||
}
|
||||
|
||||
.d-flex {
|
||||
@@ -128,12 +129,13 @@ h1, h2, h3, h4, h5 { line-height: 1.25; }
|
||||
|
||||
// Header & Navbar
|
||||
.site-navbar {
|
||||
padding-top: calc(var(--spacing) / 2);
|
||||
padding-bottom: calc(var(--spacing) / 2);
|
||||
padding-top: .25rem;
|
||||
padding-bottom: .25rem;
|
||||
background-color: var(--primary);
|
||||
|
||||
a {
|
||||
color: rgba(255, 255, 255, 1.0);
|
||||
color: var(--primary-inverse);
|
||||
// color: rgba(255, 255, 255);
|
||||
// &:hover { text-decoration: underline; }
|
||||
}
|
||||
|
||||
@@ -147,7 +149,7 @@ h1, h2, h3, h4, h5 { line-height: 1.25; }
|
||||
}
|
||||
|
||||
.desc {
|
||||
color: rgba(255, 255, 255, .75);
|
||||
color: rgba(255, 255, 255, .5);
|
||||
display: none;
|
||||
@if map-get($breakpoints, "sm") {
|
||||
@media (min-width: map-get($breakpoints, "sm")) {
|
||||
@@ -178,11 +180,6 @@ h1, h2, h3, h4, h5 { line-height: 1.25; }
|
||||
padding: calc(var(--spacing) * .5);
|
||||
}
|
||||
|
||||
a {
|
||||
margin: calc(var(--spacing) * -.5);
|
||||
padding: calc(var(--spacing) * .5);
|
||||
}
|
||||
|
||||
form {
|
||||
margin-bottom: 0;
|
||||
|
||||
@@ -190,10 +187,11 @@ h1, h2, h3, h4, h5 { line-height: 1.25; }
|
||||
height: 50px;
|
||||
background-image: url("../img/search.svg");
|
||||
background-size: auto;
|
||||
color: rgb(255,255,255);
|
||||
background-color: inherit;
|
||||
color: var(--primary-inverse);
|
||||
|
||||
&:focus {
|
||||
--form-element-focus-color: rgba(255,255,255,0.5);
|
||||
--form-element-focus-color: rgba(255, 255, 255, .5);
|
||||
}
|
||||
|
||||
&:not(:focus) {
|
||||
@@ -202,6 +200,7 @@ h1, h2, h3, h4, h5 { line-height: 1.25; }
|
||||
width: 30px;
|
||||
padding-inline-start: 0;
|
||||
background-position: center center;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -282,7 +281,7 @@ h1, h2, h3, h4, h5 { line-height: 1.25; }
|
||||
|
||||
.post-next {
|
||||
border-top: 1px solid var(--muted-border-color);
|
||||
padding: calc(var(--spacing) * 1.5) 0;
|
||||
padding-top: calc(var(--spacing) * 1.5);
|
||||
margin: var(--block-spacing-vertical) 0;
|
||||
|
||||
a {
|
||||
@@ -307,11 +306,22 @@ h1, h2, h3, h4, h5 { line-height: 1.25; }
|
||||
// Comments
|
||||
.comment-list {
|
||||
list-style: none;
|
||||
padding-left: calc(var(--spacing) * 4);
|
||||
padding: 0;
|
||||
// padding-left: calc(var(--spacing) * 4);
|
||||
}
|
||||
|
||||
.comment-level-odd {
|
||||
background-color: #{$grey-50};
|
||||
}
|
||||
.comment-level-even {
|
||||
background-color: var(--background-color);
|
||||
}
|
||||
|
||||
.comment-body {
|
||||
margin: calc(var(--spacing) * 1.5) 0;
|
||||
padding: var(--spacing);
|
||||
border: 1px solid var(--muted-border-color);
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.comment-by-author > .comment-author::after {
|
||||
@@ -325,23 +335,18 @@ h1, h2, h3, h4, h5 { line-height: 1.25; }
|
||||
}
|
||||
|
||||
.comment-author {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
.avatar {
|
||||
position: absolute;
|
||||
width: calc(var(--spacing) * 3);
|
||||
left: calc(var(--spacing) * -4);
|
||||
border-radius: var(--border-radius);
|
||||
margin-right: .25rem;
|
||||
width: calc(var(--spacing) * 2);
|
||||
border-radius: 48px;
|
||||
}
|
||||
|
||||
cite {
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--h5-color);
|
||||
}
|
||||
}
|
||||
|
||||
.comment-meta a,
|
||||
@@ -353,7 +358,17 @@ h1, h2, h3, h4, h5 { line-height: 1.25; }
|
||||
}
|
||||
|
||||
.comment-meta {
|
||||
margin-bottom: calc(var(--spacing) / 2);
|
||||
display: inline-block;
|
||||
color: var(--muted-color);
|
||||
margin-left: calc(var(--spacing) / 4);
|
||||
&::before {
|
||||
content: "·";
|
||||
margin-right: calc(var(--spacing) / 4);
|
||||
}
|
||||
}
|
||||
|
||||
.comment-content {
|
||||
margin-top: var(--spacing);
|
||||
}
|
||||
|
||||
.comment-reply:blank {
|
||||
@@ -367,7 +382,11 @@ h1, h2, h3, h4, h5 { line-height: 1.25; }
|
||||
}
|
||||
|
||||
.comment-children {
|
||||
margin: calc(var(--spacing) * 1.5) 0;
|
||||
margin-bottom: calc(var(--spacing) * -1);
|
||||
}
|
||||
|
||||
.comment-by-author {
|
||||
// background-color: var(--mark-background-color);
|
||||
}
|
||||
|
||||
#response {
|
||||
|
||||
Reference in New Issue
Block a user