mirror of
https://github.com/typecho/typecho.git
synced 2025-03-18 08:59:40 +01:00
修改默认模板字体
This commit is contained in:
parent
2e09ed0a2f
commit
893d60eef2
@ -1,6 +1,7 @@
|
||||
<?php $this->need('header.php'); ?>
|
||||
|
||||
<div class="col-mb-12 col-8" id="main">
|
||||
<h3 class="archive-title"><?php $this->archiveTitle('', '', ''); ?></h3>
|
||||
<?php if ($this->have()): ?>
|
||||
<?php while($this->next()): ?>
|
||||
<article class="post">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php $this->need('header.php'); ?>
|
||||
|
||||
<div class="col-mb-12 col-8" id="main">
|
||||
<h3 class="archive-title"><?php _e('%s 发布的文章:', $this->author()); ?></h3>
|
||||
<h3 class="archive-title"><?php $this->archiveTitle('', '', ''); _e(' 发布的文章:'); ?></h3>
|
||||
|
||||
<?php if ($this->have()): ?>
|
||||
<?php while($this->next()): ?>
|
||||
|
@ -1,6 +1,8 @@
|
||||
<?php $this->need('header.php'); ?>
|
||||
|
||||
<div class="col-mb-12 col-8" id="main">
|
||||
<h3 class="archive-title"><?php $this->archiveTitle('', '', ''); _e(' 分类下的文章:'); ?></h3>
|
||||
|
||||
<?php if ($this->have()): ?>
|
||||
<?php while($this->next()): ?>
|
||||
<article class="post">
|
||||
|
@ -1,7 +1,8 @@
|
||||
<?php $this->need('header.php'); ?>
|
||||
|
||||
<div class="col-mb-12 col-8" id="main">
|
||||
<h3 class="archive-title"><?php _e('%s 相关的搜索结果:', $this->keywords()); ?></h3>
|
||||
<h3 class="archive-title"><?php $this->archiveTitle('', '', ''); _e(' 相关的搜索结果:'); ?></h3>
|
||||
|
||||
<?php if ($this->have()): ?>
|
||||
<?php while($this->next()): ?>
|
||||
<article class="post">
|
||||
|
@ -13,8 +13,8 @@
|
||||
body {
|
||||
background-color: #F6F6F3;
|
||||
color: #444;
|
||||
/*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/
|
||||
font-family: Georgia, "Times New Roman", STHeiti, serif;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
/*font-family: Georgia, "Times New Roman", STHeiti, serif;*/
|
||||
font-size: 87.5%;
|
||||
}
|
||||
|
||||
@ -162,7 +162,10 @@ textarea {
|
||||
}
|
||||
|
||||
.archive-title {
|
||||
margin: 2em 0 -1em;
|
||||
margin: 1em 0 -1em;
|
||||
padding-top: 20px;
|
||||
color: #999;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* Page nav */
|
||||
@ -197,7 +200,7 @@ textarea {
|
||||
* Comment list
|
||||
* --------------- */
|
||||
#comments {
|
||||
margin-top: 30px;
|
||||
padding-top: 15px;
|
||||
}
|
||||
.comment-list, .comment-list ol {
|
||||
list-style: none;
|
||||
@ -232,7 +235,7 @@ textarea {
|
||||
}
|
||||
.comment-author {
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
margin-bottom: 3px;
|
||||
color: #444;
|
||||
}
|
||||
.comment-author .avatar {
|
||||
@ -272,6 +275,7 @@ textarea {
|
||||
* Sidebar
|
||||
* --------------- */
|
||||
#sidebar {
|
||||
display: none;
|
||||
padding-top: 20px;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
@ -318,11 +322,14 @@ textarea {
|
||||
/* -----------------
|
||||
* Content format
|
||||
*--------------- */
|
||||
.post-content, .comment-content {
|
||||
.post-content, .comment-content, #wmd-preview {
|
||||
line-height: 1.5;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.post-content h2, .comment-content h2, #wmd-preview h2 {
|
||||
font-size: 1.28571em;
|
||||
}
|
||||
.post-content img, .comment-content img {
|
||||
max-width: 100%;
|
||||
}
|
||||
@ -366,6 +373,7 @@ img.alignright {
|
||||
}
|
||||
#header { text-align: left; }
|
||||
.site-search { display: block; }
|
||||
#sidebar { display: block; }
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
|
31
usr/themes/replica/tag.php
Normal file
31
usr/themes/replica/tag.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php $this->need('header.php'); ?>
|
||||
|
||||
<div class="col-mb-12 col-8" id="main">
|
||||
<h3 class="archive-title"><?php $this->archiveTitle('', '', ''); _e(' 标签下的文章:'); ?></h3>
|
||||
|
||||
<?php if ($this->have()): ?>
|
||||
<?php while($this->next()): ?>
|
||||
<article class="post">
|
||||
<h2 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
|
||||
<div class="post-meta">
|
||||
<?php _e('作者:'); ?><a href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a> <i></i>
|
||||
<?php _e('时间:'); ?><?php $this->date('F j, Y'); ?> <i></i>
|
||||
<?php _e('分类:'); ?><?php $this->category(','); ?> <i></i>
|
||||
<a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('评论', '1 条评论', '%d 条评论'); ?></a>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
<?php $this->content('阅读剩余部分...'); ?>
|
||||
</div>
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
<?php else: ?>
|
||||
<article class="post">
|
||||
<h2 class="post-title"><?php _e('没有找到内容'); ?></h2>
|
||||
</article>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $this->pageNav('« 前一页', '后一页 »'); ?>
|
||||
</div><!-- end #main -->
|
||||
|
||||
<?php $this->need('sidebar.php'); ?>
|
||||
<?php $this->need('footer.php'); ?>
|
Loading…
x
Reference in New Issue
Block a user