mirror of
https://github.com/typecho/typecho.git
synced 2025-03-18 08:59:40 +01:00
准备合并模板
This commit is contained in:
parent
f16ab0a337
commit
4958744caf
@ -1,15 +1,15 @@
|
||||
<?php $this->need('header.php'); ?>
|
||||
|
||||
<div class="grid_10" id="content">
|
||||
<div class="post">
|
||||
<h2 class="entry_title">404 - <?php _e('页面没找到'); ?></h2>
|
||||
<p>
|
||||
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
|
||||
|
||||
<div class="error-page">
|
||||
<h2 class="post-title">404 - <?php _e('页面没找到'); ?></h2>
|
||||
<p><?php _e('你想查看的页面已被转移或删除了,要不要搜索看看:'); ?></p>
|
||||
<form method="post">
|
||||
<div><input type="text" name="s" class="text" size="20" /> <input type="submit" class="submit" value="<?php _e('搜索'); ?>" /></div>
|
||||
<p><input type="text" name="s" class="text" /></p>
|
||||
<p><button type="submit" class="submit"><?php _e('搜索'); ?></button></p>
|
||||
</form>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div><!-- end #content-->
|
||||
<?php $this->need('sidebar.php'); ?>
|
||||
<?php $this->need('footer.php'); ?>
|
||||
|
@ -1,27 +1,30 @@
|
||||
<?php $this->need('header.php'); ?>
|
||||
|
||||
<div class="grid_12" id="content">
|
||||
<?php if ($this->have()): ?>
|
||||
<?php while($this->next()): ?>
|
||||
<div class="post">
|
||||
<h2 class="entry_title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
|
||||
<p class="entry_data">
|
||||
<span><?php _e('作者:'); ?><?php $this->author(); ?></span>
|
||||
<span><?php _e('发布时间:'); ?><?php $this->date('F j, Y'); ?></span>
|
||||
<?php _e('分类:'); ?><?php $this->category(','); ?>
|
||||
</p>
|
||||
<?php $this->content('阅读剩余部分...'); ?>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
<?php else: ?>
|
||||
<div class="post">
|
||||
<h2 class="entry_title"><?php _e('没有找到内容'); ?></h2>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<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">
|
||||
<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 -->
|
||||
|
||||
<ol class="pages clearfix">
|
||||
<?php $this->pageNav(); ?>
|
||||
</ol>
|
||||
</div><!-- end #content-->
|
||||
<?php $this->need('sidebar.php'); ?>
|
||||
<?php $this->need('footer.php'); ?>
|
||||
|
@ -1,44 +1,48 @@
|
||||
<div id="comments">
|
||||
<?php $this->comments()->to($comments); ?>
|
||||
<?php if ($comments->have()): ?>
|
||||
<h4><?php $this->commentsNum(_t('当前暂无评论'), _t('仅有一条评论'), _t('已有 %d 条评论')); ?> »</h4>
|
||||
|
||||
<?php $comments->pageNav(); ?>
|
||||
|
||||
<?php $comments->listComments(); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php $this->comments()->to($comments); ?>
|
||||
<?php if ($comments->have()): ?>
|
||||
<h3><?php $this->commentsNum(_t('暂无评论'), _t('仅有 1 条评论'), _t('已有 %d 条评论')); ?></h3>
|
||||
|
||||
<?php $comments->listComments(); ?>
|
||||
|
||||
<?php if($this->allow('comment')): ?>
|
||||
<div id="<?php $this->respondId(); ?>" class="respond">
|
||||
|
||||
<div class="cancel-comment-reply">
|
||||
<?php $comments->cancelReply(); ?>
|
||||
</div>
|
||||
|
||||
<h4 id="response"><?php _e('添加新评论'); ?> »</h4>
|
||||
<form method="post" action="<?php $this->commentUrl() ?>" id="comment_form">
|
||||
<?php if($this->user->hasLogin()): ?>
|
||||
<p>Logged in as <a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a>. <a href="<?php $this->options->logoutUrl(); ?>" title="Logout"><?php _e('退出'); ?> »</a></p>
|
||||
<?php else: ?>
|
||||
<p>
|
||||
<label for="author"><?php _e('称呼'); ?><span class="required">*</span></label>
|
||||
<input type="text" name="author" id="author" class="text" size="15" value="<?php $this->remember('author'); ?>" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="mail"><?php _e('电子邮件'); ?><?php if ($this->options->commentsRequireMail): ?><span class="required">*</span><?php endif; ?></label>
|
||||
<input type="text" name="mail" id="mail" class="text" size="15" value="<?php $this->remember('mail'); ?>" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="url"><?php _e('网站'); ?><?php if ($this->options->commentsRequireURL): ?><span class="required">*</span><?php endif; ?></label>
|
||||
<input type="text" name="url" id="url" class="text" size="15" value="<?php $this->remember('url'); ?>" />
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<p><textarea rows="5" cols="50" name="text" class="textarea"><?php $this->remember('text'); ?></textarea></p>
|
||||
<p><input type="submit" value="<?php _e('提交评论'); ?>" class="submit" /></p>
|
||||
</form>
|
||||
</div>
|
||||
<?php $comments->pageNav('« 前一页', '后一页 »'); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->allow('comment')): ?>
|
||||
<div id="<?php $this->respondId(); ?>" class="respond">
|
||||
<div class="cancel-comment-reply">
|
||||
<?php $comments->cancelReply(); ?>
|
||||
</div>
|
||||
|
||||
<h3 id="response"><?php _e('添加新评论'); ?></h3>
|
||||
<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form">
|
||||
<?php if($this->user->hasLogin()): ?>
|
||||
<p><?php _e('登录身份:'); ?><a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a>. <a href="<?php $this->options->logoutUrl(); ?>" title="Logout"><?php _e('退出'); ?> »</a></p>
|
||||
<?php else: ?>
|
||||
<h4><?php _e('评论已关闭'); ?></h4>
|
||||
<p>
|
||||
<label for="author" class="required"><?php _e('称呼'); ?></label>
|
||||
<input type="text" name="author" id="author" class="text" value="<?php $this->remember('author'); ?>" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="mail"<?php if ($this->options->commentsRequireMail): ?> class="required"<?php endif; ?>><?php _e('Email'); ?></label>
|
||||
<input type="email" name="mail" id="mail" class="text" value="<?php $this->remember('mail'); ?>" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="url"<?php if ($this->options->commentsRequireURL): ?> class="required"<?php endif; ?>><?php _e('网站'); ?></label>
|
||||
<input type="url" name="url" id="url" class="text" placeholder="<?php _e('http://example.com'); ?>" value="<?php $this->remember('url'); ?>" />
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<p>
|
||||
<label for="textarea" class="required"><?php _e('内容'); ?></label>
|
||||
<textarea rows="8" cols="50" name="text" class="textarea"><?php $this->remember('text'); ?></textarea>
|
||||
</p>
|
||||
<p>
|
||||
<button type="submit" class="submit"><?php _e('提交评论'); ?></button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<h3><?php _e('评论已关闭'); ?></h3>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,9 +1,14 @@
|
||||
|
||||
|
||||
</div><!-- end .col-group -->
|
||||
</div>
|
||||
</div><!-- end #body -->
|
||||
|
||||
<footer id="footer">
|
||||
© <?php echo date('Y'); ?> <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a>.
|
||||
<?php _e('由 <a href="http://www.typecho.org">Typecho</a> 强力驱动'); ?>.
|
||||
</footer><!-- end #footer -->
|
||||
|
||||
<div class="grid_14" id="footer">
|
||||
<a href="<?php $this->options->siteurl(); ?>"><?php $this->options->title(); ?></a> <?php _e('is powered by'); ?> <a href="http://www.typecho.org">Typecho)))</a><br /><a href="<?php $this->options->feedUrl(); ?>"><?php _e('文章'); ?> RSS</a> and <a href="<?php $this->options->commentsFeedUrl(); ?>"><?php _e('评论'); ?> RSS</a>
|
||||
</div><!-- end #footer -->
|
||||
</div>
|
||||
<?php $this->footer(); ?>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,44 +1,60 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head profile="http://gmpg.org/xfn/11">
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?php $this->options->charset(); ?>" />
|
||||
<title><?php $this->archiveTitle(' » ', '', ' - '); ?><?php $this->options->title(); ?></title>
|
||||
<!DOCTYPE HTML>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="<?php $this->options->charset(); ?>" />
|
||||
<title><?php $this->archiveTitle(' » ', '', ' - '); ?><?php $this->options->title(); ?></title>
|
||||
|
||||
<!-- 使用url函数转换相关路径 -->
|
||||
<link rel="stylesheet" type="text/css" media="all" href="<?php $this->options->themeUrl('style.css'); ?>" />
|
||||
<!-- 使用url函数转换相关路径 -->
|
||||
<link rel="stylesheet" href="<?php $this->options->adminUrl('css/normalize.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php $this->options->adminUrl('css/grid.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php $this->options->themeUrl('style.css'); ?>" />
|
||||
|
||||
<!-- 通过自有函数输出HTML头部信息 -->
|
||||
<?php $this->header(); ?>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="<?php $this->options->adminUrl('js/html5shiv.js'); ?>"></script>
|
||||
<script src="<?php $this->options->adminUrl('js/respond.js'); ?>"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- 通过自有函数输出HTML头部信息 -->
|
||||
<?php $this->header(); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="header" class="container_16 clearfix">
|
||||
<div class="grid_16">
|
||||
<form id="search" method="post" action="/">
|
||||
<div><input type="text" name="s" class="text" size="20" /> <input type="submit" class="submit" value="<?php _e('搜索'); ?>" /></div>
|
||||
</form>
|
||||
<div id="logo">
|
||||
<h1><a href="<?php $this->options->siteUrl(); ?>">
|
||||
<?php if ($this->options->logoUrl): ?>
|
||||
<img height="60" src="<?php $this->options->logoUrl() ?>" alt="<?php $this->options->title() ?>" />
|
||||
<?php endif; ?>
|
||||
<?php $this->options->title() ?>
|
||||
</a></h1>
|
||||
<p class="description"><?php $this->options->description() ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- end #header -->
|
||||
|
||||
<div id="nav_box" class="clearfix">
|
||||
<div class="container_16">
|
||||
<ul class="grid_14 clearfix" id="nav_menu">
|
||||
<li<?php if($this->is('index')): ?> class="current"<?php endif; ?>><a href="<?php $this->options->siteUrl(); ?>"><?php _e('首页'); ?></a></li>
|
||||
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
|
||||
<?php while($pages->next()): ?>
|
||||
<li<?php if($this->is('page', $pages->slug)): ?> class="current"<?php endif; ?>><a href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>"><?php $pages->title(); ?></a></li>
|
||||
<?php endwhile; ?>
|
||||
</ul>
|
||||
<header id="header" class="clearfix">
|
||||
<div class="container">
|
||||
<div class="col-group">
|
||||
<div class="site-name col-mb-12 col-9">
|
||||
<a id="logo" href="<?php $this->options->siteUrl(); ?>">
|
||||
<?php if ($this->options->logoUrl): ?>
|
||||
<img src="<?php $this->options->logoUrl() ?>" alt="<?php $this->options->title() ?>" />
|
||||
<?php endif; ?>
|
||||
<?php $this->options->title() ?>
|
||||
</a>
|
||||
<p class="description"><?php $this->options->description() ?></p>
|
||||
</div>
|
||||
<div class="site-search col-3">
|
||||
<form id="search" method="post" action="./">
|
||||
<input type="text" name="s" class="text" placeholder="<?php _e('输入关键字搜索'); ?>" />
|
||||
<button type="submit" class="submit"><?php _e('搜索'); ?></button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-mb-12">
|
||||
<nav id="nav-menu">
|
||||
<a<?php if($this->is('index')): ?> class="current"<?php endif; ?> href="<?php $this->options->siteUrl(); ?>"><?php _e('首页'); ?></a>
|
||||
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
|
||||
<?php while($pages->next()): ?>
|
||||
<a<?php if($this->is('page', $pages->slug)): ?> class="current"<?php endif; ?> href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>"><?php $pages->title(); ?></a>
|
||||
<?php endwhile; ?>
|
||||
</nav>
|
||||
</div>
|
||||
</div><!-- end .col-group -->
|
||||
</div>
|
||||
</div>
|
||||
</header><!-- end #header -->
|
||||
<div id="body">
|
||||
<div class="container">
|
||||
<div class="col-group">
|
||||
|
||||
<div class="container_16 clearfix">
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 532 B After Width: | Height: | Size: 532 B |
@ -1,31 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 这是 Typecho 系统的一套默认皮肤
|
||||
* 这是 Typecho 0.9 系统的一套默认皮肤
|
||||
*
|
||||
* @package Typecho Default Theme
|
||||
* @package Typecho Replica Theme
|
||||
* @author fen
|
||||
* @version 1.0.7
|
||||
* @version 1.0
|
||||
* @link http://typecho.org
|
||||
*/
|
||||
|
||||
$this->need('header.php');
|
||||
?>
|
||||
|
||||
<div class="grid_12" id="content">
|
||||
<div class="col-mb-12 col-8" id="main">
|
||||
<?php while($this->next()): ?>
|
||||
<div class="post">
|
||||
<h2 class="entry_title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
|
||||
<p class="entry_data">
|
||||
<span><?php _e('作者:'); ?><?php $this->author(); ?></span>
|
||||
<span><?php _e('发布时间:'); ?><?php $this->date('F j, Y'); ?></span>
|
||||
<span><?php _e('分类:'); ?><?php $this->category(','); ?></span>
|
||||
<a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('No Comments', '1 Comment', '%d Comments'); ?></a>
|
||||
</p>
|
||||
<?php $this->content('阅读剩余部分...'); ?>
|
||||
</div>
|
||||
<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 $this->pageNav(); ?>
|
||||
</div><!-- end #content-->
|
||||
<?php $this->need('sidebar.php'); ?>
|
||||
<?php $this->need('footer.php'); ?>
|
||||
<?php $this->pageNav('« 前一页', '后一页 »'); ?>
|
||||
</div><!-- end #main-->
|
||||
|
||||
<?php $this->need('sidebar.php'); ?>
|
||||
<?php $this->need('footer.php'); ?>
|
||||
|
@ -1,16 +1,14 @@
|
||||
<?php $this->need('header.php'); ?>
|
||||
|
||||
<div class="grid_12" id="content">
|
||||
<div class="post">
|
||||
<h2 class="entry_title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
|
||||
<p class="entry_data">
|
||||
<span><?php _e('作者:'); ?><?php $this->author(); ?></span>
|
||||
<?php _e('发布时间:'); ?><?php $this->date('F j, Y'); ?>
|
||||
</p>
|
||||
<?php $this->content(); ?>
|
||||
</div>
|
||||
<div class="col-mb-12 col-8" id="main">
|
||||
<article class="post">
|
||||
<h1 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1>
|
||||
<div class="post-content">
|
||||
<?php $this->content(); ?>
|
||||
</div>
|
||||
</article>
|
||||
<?php $this->need('comments.php'); ?>
|
||||
</div><!-- end #main-->
|
||||
|
||||
<?php $this->need('comments.php'); ?>
|
||||
</div><!-- end #content-->
|
||||
<?php $this->need('sidebar.php'); ?>
|
||||
<?php $this->need('footer.php'); ?>
|
||||
<?php $this->need('sidebar.php'); ?>
|
||||
<?php $this->need('footer.php'); ?>
|
||||
|
@ -1,18 +1,21 @@
|
||||
<?php $this->need('header.php'); ?>
|
||||
|
||||
<div class="grid_12" id="content">
|
||||
<div class="post">
|
||||
<h2 class="entry_title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
|
||||
<p class="entry_data">
|
||||
<span><?php _e('作者:'); ?><?php $this->author(); ?></span>
|
||||
<span><?php _e('发布时间:'); ?><?php $this->date('F j, Y'); ?></span>
|
||||
<?php _e('分类:'); ?><?php $this->category(','); ?>
|
||||
</p>
|
||||
<?php $this->content(); ?>
|
||||
<p class="tags"><?php _e('标签'); ?>: <?php $this->tags(', ', true, 'none'); ?></p>
|
||||
<div class="col-mb-12 col-8" id="main">
|
||||
<article class="post">
|
||||
<h1 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1>
|
||||
<div class="post-meta">
|
||||
<?php _e('作者:'); ?><?php $this->author(); ?> <i></i>
|
||||
<?php _e('时间:'); ?><?php $this->date('F j, Y'); ?> <i></i>
|
||||
<?php _e('分类:'); ?><?php $this->category(','); ?>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
<?php $this->content(); ?>
|
||||
</div>
|
||||
<p class="tags"><?php _e('标签:'); ?><?php $this->tags(', ', true, 'none'); ?></p>
|
||||
</article>
|
||||
|
||||
<?php $this->need('comments.php'); ?>
|
||||
</div><!-- end #content-->
|
||||
<?php $this->need('sidebar.php'); ?>
|
||||
<?php $this->need('footer.php'); ?>
|
||||
<?php $this->need('comments.php'); ?>
|
||||
</div><!-- end #main-->
|
||||
|
||||
<?php $this->need('sidebar.php'); ?>
|
||||
<?php $this->need('footer.php'); ?>
|
||||
|
@ -1,62 +1,61 @@
|
||||
<div class="col-mb-12 col-offset-1 col-3" id="secondary">
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowRecentPosts', $this->options->sidebarBlock)): ?>
|
||||
<section class="widget">
|
||||
<h3 class="widget-title"><?php _e('最新文章'); ?></h3>
|
||||
<ul class="widget-list">
|
||||
<?php $this->widget('Widget_Contents_Post_Recent')
|
||||
->parse('<li><a href="{permalink}">{title}</a></li>'); ?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="grid_4" id="sidebar">
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowRecentComments', $this->options->sidebarBlock)): ?>
|
||||
<section class="widget">
|
||||
<h3 class="widget-title"><?php _e('最近回复'); ?></h3>
|
||||
<ul class="widget-list">
|
||||
<?php $this->widget('Widget_Comments_Recent')->to($comments); ?>
|
||||
<?php while($comments->next()): ?>
|
||||
<li><a href="<?php $comments->permalink(); ?>"><?php $comments->author(false); ?></a>:<?php $comments->excerpt(35, '...'); ?></li>
|
||||
<?php endwhile; ?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowRecentPosts', $this->options->sidebarBlock)): ?>
|
||||
<div class="widget">
|
||||
<h3><?php _e('最新文章'); ?></h3>
|
||||
<ul>
|
||||
<?php $this->widget('Widget_Contents_Post_Recent')
|
||||
->parse('<li><a href="{permalink}">{title}</a></li>'); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowRecentComments', $this->options->sidebarBlock)): ?>
|
||||
<div class="widget">
|
||||
<h3><?php _e('最近回复'); ?></h3>
|
||||
<ul>
|
||||
<?php $this->widget('Widget_Comments_Recent')->to($comments); ?>
|
||||
<?php while($comments->next()): ?>
|
||||
<li><a href="<?php $comments->permalink(); ?>"><?php $comments->author(false); ?></a>: <?php $comments->excerpt(50, '...'); ?></li>
|
||||
<?php endwhile; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowCategory', $this->options->sidebarBlock)): ?>
|
||||
<section class="widget">
|
||||
<h3 class="widget-title"><?php _e('分类'); ?></h3>
|
||||
<ul class="widget-list">
|
||||
<?php $this->widget('Widget_Metas_Category_List')
|
||||
->parse('<li><a href="{permalink}">{name}</a> ({count})</li>'); ?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowCategory', $this->options->sidebarBlock)): ?>
|
||||
<div class="widget">
|
||||
<h3><?php _e('分类'); ?></h3>
|
||||
<ul>
|
||||
<?php $this->widget('Widget_Metas_Category_List')
|
||||
->parse('<li><a href="{permalink}">{name}</a> ({count})</li>'); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowArchive', $this->options->sidebarBlock)): ?>
|
||||
<section class="widget">
|
||||
<h3 class="widget-title"><?php _e('归档'); ?></h3>
|
||||
<ul class="widget-list">
|
||||
<?php $this->widget('Widget_Contents_Post_Date', 'type=month&format=F Y')
|
||||
->parse('<li><a href="{permalink}">{date}</a></li>'); ?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowArchive', $this->options->sidebarBlock)): ?>
|
||||
<div class="widget">
|
||||
<h3><?php _e('归档'); ?></h3>
|
||||
<ul>
|
||||
<?php $this->widget('Widget_Contents_Post_Date', 'type=month&format=F Y')
|
||||
->parse('<li><a href="{permalink}">{date}</a></li>'); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowOther', $this->options->sidebarBlock)): ?>
|
||||
<section class="widget">
|
||||
<h3 class="widget-title"><?php _e('其它'); ?></h3>
|
||||
<ul class="widget-list">
|
||||
<?php if($this->user->hasLogin()): ?>
|
||||
<li class="last"><a href="<?php $this->options->adminUrl(); ?>"><?php _e('进入后台'); ?> (<?php $this->user->screenName(); ?>)</a></li>
|
||||
<li><a href="<?php $this->options->logoutUrl(); ?>"><?php _e('退出'); ?></a></li>
|
||||
<?php else: ?>
|
||||
<li class="last"><a href="<?php $this->options->adminUrl('login.php'); ?>"><?php _e('登录'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<li><a href="<?php $this->options->feedUrl(); ?>"><?php _e('文章 RSS'); ?></a></li>
|
||||
<li><a href="<?php $this->options->commentsFeedUrl(); ?>"><?php _e('评论 RSS'); ?></a></li>
|
||||
<li><a href="http://www.typecho.org">Typecho</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowOther', $this->options->sidebarBlock)): ?>
|
||||
<div class="widget">
|
||||
<h3><?php _e('其它'); ?></h3>
|
||||
<ul>
|
||||
<?php if($this->user->hasLogin()): ?>
|
||||
<li class="last"><a href="<?php $this->options->adminUrl(); ?>"><?php _e('进入后台'); ?> (<?php $this->user->screenName(); ?>)</a></li>
|
||||
<li><a href="<?php $this->options->logoutUrl(); ?>"><?php _e('退出'); ?></a></li>
|
||||
<?php else: ?>
|
||||
<li class="last"><a href="<?php $this->options->adminUrl('login.php'); ?>"><?php _e('登录'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<li><a href="http://validator.w3.org/check/referer">Valid XHTML</a></li>
|
||||
<li><a href="http://www.typecho.org">Typecho</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- end #sidebar -->
|
||||
</div><!-- end #sidebar -->
|
||||
|
@ -1,449 +1,377 @@
|
||||
/* ------------------------------------
|
||||
* Typecho Default Theme
|
||||
*
|
||||
* @author fen1211@gmail.com
|
||||
* @link http://typecho.net/
|
||||
* @update 2009-03-29 14:30
|
||||
* @author fen1211@gmail.com
|
||||
* @link http: //typecho.net/
|
||||
* @update 2009-03-29 14: 30
|
||||
* --------------------------------- */
|
||||
|
||||
|
||||
/* = import 960.gs css framework */
|
||||
@import url(css/960.gs.css);
|
||||
|
||||
/* ------------------
|
||||
* gobal settings
|
||||
* Gobal style
|
||||
* --------------- */
|
||||
body {
|
||||
background: #fff;
|
||||
color: #444;
|
||||
font: 13px;
|
||||
line-height: 1.5;
|
||||
font-family: Georgia, Times, "Times New Roman", STHeiti, serif;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 { font-weight: normal; }
|
||||
|
||||
input, textarea { font-family: Helvetica, Arial, sans-serif; font-size: 100%; }
|
||||
|
||||
input, textarea {
|
||||
font-size: 13px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
textarea { *padding: 3px; }
|
||||
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||
textarea { padding: 3px; }
|
||||
background-color: #FFF;
|
||||
color: #444;
|
||||
/*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/
|
||||
font-family: Georgia, "Times New Roman", serif;
|
||||
font-size: 87.5%;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #3354AA;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid #EEE;
|
||||
color: #3354AA;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
color: #444;
|
||||
border-bottom-color: transparent;
|
||||
color: #444;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
pre, code {
|
||||
padding: 5px;
|
||||
font: 12px/1.5 Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||
overflow-x: auto;
|
||||
background: #F3F3F3;
|
||||
border: 1px solid #E3E3E3;
|
||||
padding: 2px 4px;
|
||||
background: #F3F3F3;
|
||||
font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
|
||||
font-size: .92857em;
|
||||
}
|
||||
code {
|
||||
margin: 0 5px;
|
||||
padding: 2px;
|
||||
pre {
|
||||
padding: 8px;
|
||||
overflow: auto;
|
||||
max-height: 400px;
|
||||
}
|
||||
|
||||
/* Remove possible quote marks (") from <q>, <blockquote>. */
|
||||
blockquote:before, blockquote:after, q:before, q:after { content: ""; }
|
||||
blockquote, q { quotes: "" ""; }
|
||||
pre code { padding: 0; }
|
||||
|
||||
blockquote {
|
||||
margin: 1.5em 0;
|
||||
padding-left: 1.5em;
|
||||
border-left: 4px solid #EEE;
|
||||
color: #666;
|
||||
margin: 1em 1.5em;
|
||||
padding-left: 1.5em;
|
||||
border-left: 4px solid #E9E9E9;
|
||||
color: #777;
|
||||
}
|
||||
|
||||
/*code {display: block; border: 1px solid #AAAAAA; background: #F1ECDD; color: #444; line-height: 16px; overflow: auto;
|
||||
font-family: 'andale mono','lucida console',monospace; padding: 10px; margin: 10px 0;}*/
|
||||
h1, h2, h3 {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* Tables
|
||||
-------------------------------------------------------------- */
|
||||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="url"],
|
||||
textarea {
|
||||
padding: 5px;
|
||||
border: 1px solid #E9E9E9;
|
||||
width: 100%;
|
||||
|
||||
/* Tables still need 'cellspacing="0"' in the markup. */
|
||||
table { border-collapse: separate; border-spacing: 0; }
|
||||
caption, th, td { text-align: left; font-weight: normal; }
|
||||
table, td, th { vertical-align: middle; }
|
||||
border-radius: 2px;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
table { margin-bottom: 1.4em; width:100%; }
|
||||
th { font-weight: bold; }
|
||||
thead th { background: #c3d9ff; }
|
||||
th,td,caption { padding: 4px 10px 4px 5px; }
|
||||
tr.even td { background: #e5ecf9; }
|
||||
tfoot { font-style: italic; }
|
||||
caption { background: #eee; }
|
||||
|
||||
fieldset { padding:1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; }
|
||||
legend { font-weight: bold; }
|
||||
|
||||
|
||||
ul { list-style-type: disc; }
|
||||
|
||||
/* ------------------
|
||||
* header
|
||||
* Header
|
||||
* --------------- */
|
||||
|
||||
#header {
|
||||
color: #666;
|
||||
padding: 20px 0;
|
||||
padding-top: 35px;
|
||||
border-bottom: 1px solid #E9E9E9;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#logo {
|
||||
color: #333;
|
||||
font-size: 2.5em;
|
||||
}
|
||||
.description {
|
||||
margin: .5em 0 0;
|
||||
color: #999;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#logo h1 {
|
||||
font-size: 35px;
|
||||
font-weight: normal;
|
||||
margin-bottom: 0;
|
||||
/* Navigation menu */
|
||||
#nav-menu {
|
||||
margin: 25px 0 -1px;
|
||||
padding: 0;
|
||||
}
|
||||
#logo h1 a {
|
||||
color: #444;
|
||||
border: none;
|
||||
#nav-menu a {
|
||||
display: inline-block;
|
||||
margin-right: -4px;
|
||||
padding: 8px 20px;
|
||||
border: 1px solid #EEE;
|
||||
color: #444;
|
||||
}
|
||||
#logo h1 a:hover {
|
||||
#nav-menu a:hover,
|
||||
#nav-menu .current {
|
||||
background: #F6F6F6;
|
||||
}
|
||||
|
||||
p.description {
|
||||
margin-bottom: 0;
|
||||
font-style: italic;
|
||||
/* Search */
|
||||
.site-search {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#search {
|
||||
float: right;
|
||||
margin-top: 30px;
|
||||
position: relative;
|
||||
margin-top: 15px;
|
||||
}
|
||||
#search input {
|
||||
padding-right: 30px;
|
||||
}
|
||||
#search button {
|
||||
position: absolute;
|
||||
right: 4px;
|
||||
top: 2px;
|
||||
border: none;
|
||||
padding: 0;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background: transparent url(img/icon-search.png) no-repeat center center;
|
||||
text-indent: -9999em;
|
||||
}
|
||||
|
||||
/* = header navigation menu */
|
||||
#nav_box {
|
||||
border-bottom: 1px solid #eee;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
ul#nav_menu {
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
border-left: 1px solid #eee;
|
||||
}
|
||||
ul#nav_menu li {
|
||||
float: left;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
}
|
||||
ul#nav_menu li a {
|
||||
color: #777;
|
||||
border: 1px solid #eee;
|
||||
border-bottom: none;
|
||||
border-left: none;
|
||||
height: 29px;
|
||||
line-height: 29px;
|
||||
display: block;
|
||||
float: left;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
ul#nav_menu li.current a {
|
||||
background: #F9F9F9;
|
||||
}
|
||||
ul#nav_menu li a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ------------------
|
||||
* content
|
||||
* Main
|
||||
* --------------- */
|
||||
#content { overflow: hidden; }
|
||||
#content p { margin-bottom: 20px; }
|
||||
#main {
|
||||
}
|
||||
|
||||
.post {
|
||||
margin-bottom: 20px;
|
||||
padding-bottom: 5px;
|
||||
border-bottom: 1px solid #eee;
|
||||
width: 100%;
|
||||
padding: 20px 0;
|
||||
border-bottom: 1px solid #E9E9E9;
|
||||
}
|
||||
.post-title {
|
||||
margin: .83em 0;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
.post-meta {
|
||||
margin-top: -0.5em;
|
||||
color: #999;
|
||||
font-size: .92857em;
|
||||
}
|
||||
.post-meta i {
|
||||
display: inline-block;
|
||||
margin: 0 8px;
|
||||
height: 12px;
|
||||
border-right: 1px solid #E9E9E9;
|
||||
}
|
||||
.post-content {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.post img {
|
||||
max-width: 680px;
|
||||
margin: 5px;
|
||||
.archive-title {
|
||||
margin: 1em 0 -1em;
|
||||
padding-top: 20px;
|
||||
color: #999;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
h2.entry_title {
|
||||
margin-bottom: 0;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
/* Page nav */
|
||||
|
||||
.page-navigator {
|
||||
list-style: none;
|
||||
margin: 25px 0;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
}
|
||||
.page-navigator li {
|
||||
display: inline-block;
|
||||
margin: 0 8px;
|
||||
}
|
||||
.page-navigator a {
|
||||
display: inline-block;
|
||||
padding: 0 8px;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
}
|
||||
.page-navigator a:hover {
|
||||
background: #EEE;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h2.entry_title a {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.post h3 { font-size: 16px; }
|
||||
.post h4 { font-size: 15px; }
|
||||
.post h5 { font-size: 14px; font-weight: bold; }
|
||||
.post h6 { font-size: 13px; font-weight: bold; }
|
||||
|
||||
.entry_data {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.entry_data a {
|
||||
}
|
||||
|
||||
.entry_data span {
|
||||
margin-right: 4px;
|
||||
padding-right: 7px;
|
||||
border-right: 1px solid #eee;
|
||||
}
|
||||
|
||||
|
||||
/* = pages nav */
|
||||
ol.page-navigator {
|
||||
margin: 20px 0 0 0;
|
||||
color: #666;
|
||||
list-style: none;
|
||||
font-size: 12px;
|
||||
line-height: 30px;
|
||||
font-family: "Lucida Grande",Verdana,"Bitstream Vera Sans",Arial,sans-serif;
|
||||
}
|
||||
|
||||
ol.page-navigator li {
|
||||
margin: 0 5px 0 0;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
ol.page-navigator li a {
|
||||
padding: 2px 6px;
|
||||
border: 1px solid #eee;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ol.page-navigator li.current a {
|
||||
background: #3354AA;
|
||||
border-color: #3354AA;
|
||||
color: #fff;
|
||||
.page-navigator .current a {
|
||||
color: #444;
|
||||
background: #EEE;
|
||||
}
|
||||
|
||||
/* ------------------
|
||||
* comment list
|
||||
* Comment list
|
||||
* --------------- */
|
||||
#comments {
|
||||
margin-top: 20px;
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
#comments h4 {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
.comment-list, .comment-list ol {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ol.comment-list, ol.comment-list ol {
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
.comment-list li {
|
||||
padding: 14px;
|
||||
margin-top: 10px;
|
||||
border: 1px solid #E9E9E9;
|
||||
}
|
||||
|
||||
ol.comment-list ol {
|
||||
padding-top: 10px;
|
||||
.comment-list li.comment-level-odd {
|
||||
background: #F6F6F3;
|
||||
}
|
||||
|
||||
ol.comment-list li {
|
||||
margin: 0;
|
||||
padding-bottom: 10px;
|
||||
.comment-list li.comment-level-even {
|
||||
background: #FFF;
|
||||
}
|
||||
|
||||
ol.comment-list li {
|
||||
padding: 10px 15px;
|
||||
margin-top: 10px;
|
||||
border: 1px solid #eee;
|
||||
background: #FAFAFA;
|
||||
overflow: hidden;
|
||||
.comment-list li.comment-by-author {
|
||||
background: #FFF9E8;
|
||||
}
|
||||
|
||||
ol.comment-list li.comment-level-odd {
|
||||
background: #fff;
|
||||
.comment-list li .comment-reply {
|
||||
text-align: right;
|
||||
font-size: .92857em;
|
||||
}
|
||||
|
||||
ol.comment-list li.comment-level-even {
|
||||
background: #FAFAFA;
|
||||
.comment-list li .comment-reply a {
|
||||
}
|
||||
|
||||
ol.comment-list li.comment-by-author {
|
||||
border: 1px dashed #AAA;
|
||||
.comment-list li .comment-reply a:hover {
|
||||
}
|
||||
|
||||
ol.comment-list li .comment-reply {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
ol.comment-list li .comment-reply a {
|
||||
font-size: 11px;
|
||||
border: none;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
ol.comment-list li .comment-reply a:hover {
|
||||
color: #444;
|
||||
}
|
||||
|
||||
.comment-meta {
|
||||
padding-bottom: 8px;
|
||||
/*border-bottom: 1px dashed #eee;*/
|
||||
color: #999;
|
||||
font-size: 11px;
|
||||
.comment-meta a {
|
||||
color: #999;
|
||||
font-size: .92857em;
|
||||
}
|
||||
.comment-author {
|
||||
display: block;
|
||||
font-size: 15px;
|
||||
color: #444;
|
||||
display: block;
|
||||
margin-bottom: 3px;
|
||||
color: #444;
|
||||
}
|
||||
.comment-author .avatar {
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.comment-author cite {
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
.comment-children li {
|
||||
}
|
||||
|
||||
.comment-author cite.fn {
|
||||
font-style: normal;
|
||||
/* Comment reply */
|
||||
.comment-list .respond {
|
||||
margin-top: 15px;
|
||||
border-top: 1px solid #E9E9E9;
|
||||
}
|
||||
|
||||
.comment-body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
img.avatar {
|
||||
/*display: none;*/
|
||||
float: left;
|
||||
margin: 6px 10px 0 0;
|
||||
}
|
||||
|
||||
.respond {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
ol.comment-list li .respond {
|
||||
border-top: 1px solid #ddd;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
#comment_form {
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
.respond .cancel-comment-reply {
|
||||
float: right;
|
||||
font-size: 11px;
|
||||
float: right;
|
||||
margin-top: 15px;
|
||||
font-size: .92857em;
|
||||
}
|
||||
|
||||
.respond .cancel-comment-reply a {
|
||||
border: none;
|
||||
color: #aaa;
|
||||
#comment-form {
|
||||
}
|
||||
|
||||
.respond .cancel-comment-reply a:hover {
|
||||
color: #444;
|
||||
#comment-form label {
|
||||
display: block;
|
||||
margin-bottom: .5em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#comment_form label {
|
||||
color: #555;
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#comment_form label .required {
|
||||
color: #C04E37;
|
||||
padding-left: 5px;
|
||||
font-size: 14px;
|
||||
}
|
||||
#comment_form .text {
|
||||
width: 100%;
|
||||
margin-right: 15px;
|
||||
}
|
||||
#comment_form textarea {
|
||||
width: 100%;
|
||||
height: 180px;
|
||||
}
|
||||
|
||||
ol#comment_list li .respond .text {
|
||||
_width: 400px;
|
||||
}
|
||||
|
||||
ol#comment_list li .respond textarea {
|
||||
_width: 400px;
|
||||
#comment-form .required:after {
|
||||
content: " *";
|
||||
color: #C00;
|
||||
}
|
||||
|
||||
/* ------------------
|
||||
* sidebar
|
||||
* secondary
|
||||
* --------------- */
|
||||
#sidebar {
|
||||
overflow: hidden;
|
||||
#secondary {
|
||||
display: none;
|
||||
padding-top: 20px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.widget {
|
||||
margin: 0 0 20px 20px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.widget h3 {
|
||||
font-size: 16px;
|
||||
margin-bottom: 5px;
|
||||
.widget-title {
|
||||
}
|
||||
.widget ul {
|
||||
margin: 0;
|
||||
list-style-type: none;
|
||||
.widget-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
.widget ul li {
|
||||
margin: 5px 0;
|
||||
padding: 0;
|
||||
.widget-list li {
|
||||
margin: 5px 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.widget-list a:hover {
|
||||
}
|
||||
|
||||
|
||||
/* ------------------
|
||||
* footer
|
||||
* Footer
|
||||
* --------------- */
|
||||
#footer {
|
||||
margin-top: 15px;
|
||||
padding: 15px 0;
|
||||
text-align: center;
|
||||
padding: 3em 0;
|
||||
line-height: 1.5;
|
||||
text-align: center;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
#footer a {
|
||||
border-bottom: none;
|
||||
/* -----------------
|
||||
* Error page
|
||||
* -------------- */
|
||||
.error-page {
|
||||
margin-top: 100px;
|
||||
margin-bottom: 100px;
|
||||
}
|
||||
|
||||
|
||||
/* -----------------
|
||||
* misc
|
||||
* Content format
|
||||
*--------------- */
|
||||
.aligncenter,
|
||||
div.aligncenter {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
.post-content, .comment-content {
|
||||
line-height: 1.5;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.post-content h2, .comment-content h2 {
|
||||
font-size: 1.28571em;
|
||||
}
|
||||
.post-content img, .comment-content img {
|
||||
max-width: 100%;
|
||||
}
|
||||
.post-content hr, .comment-content hr {
|
||||
margin: 2em auto;
|
||||
width: 100px;
|
||||
border: 1px solid #E9E9E9;
|
||||
border-width: 2px 0 0 0;
|
||||
}
|
||||
|
||||
|
||||
/* -----------------
|
||||
* Misc
|
||||
*--------------- */
|
||||
.aligncenter, div.aligncenter {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.alignleft {
|
||||
float: left;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.alignright {
|
||||
float: right;
|
||||
float: right;
|
||||
}
|
||||
img.alignleft {
|
||||
margin: 5px 15px 0 0;
|
||||
}
|
||||
img.alignright {
|
||||
margin: 5px 0 0 15px;
|
||||
}
|
||||
|
||||
img.alignleft { margin: 4px 15px 0 0; }
|
||||
img.alignright { margin: 4px 0 0 15px; }
|
||||
|
||||
.alt {
|
||||
color: #666;
|
||||
font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif;
|
||||
font-weight: normal;
|
||||
/* -----------------
|
||||
* Responsive
|
||||
*--------------- */
|
||||
|
||||
@media (min-width: 768px) {
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
#header { text-align: left; }
|
||||
.site-search { display: block; }
|
||||
#secondary { display: block; }
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
body {
|
||||
font-size: 100%;
|
||||
}
|
||||
.container {
|
||||
}
|
||||
}
|
||||
|
@ -1,15 +0,0 @@
|
||||
<?php $this->need('header.php'); ?>
|
||||
|
||||
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
|
||||
|
||||
<div class="error-page">
|
||||
<h2 class="post-title">404 - <?php _e('页面没找到'); ?></h2>
|
||||
<p><?php _e('你想查看的页面已被转移或删除了,要不要搜索看看:'); ?></p>
|
||||
<form method="post">
|
||||
<p><input type="text" name="s" class="text" /></p>
|
||||
<p><button type="submit" class="submit"><?php _e('搜索'); ?></button></p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div><!-- end #content-->
|
||||
<?php $this->need('footer.php'); ?>
|
@ -1,30 +0,0 @@
|
||||
<?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">
|
||||
<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'); ?>
|
@ -1,48 +0,0 @@
|
||||
<div id="comments">
|
||||
<?php $this->comments()->to($comments); ?>
|
||||
<?php if ($comments->have()): ?>
|
||||
<h3><?php $this->commentsNum(_t('暂无评论'), _t('仅有 1 条评论'), _t('已有 %d 条评论')); ?></h3>
|
||||
|
||||
<?php $comments->listComments(); ?>
|
||||
|
||||
<?php $comments->pageNav('« 前一页', '后一页 »'); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->allow('comment')): ?>
|
||||
<div id="<?php $this->respondId(); ?>" class="respond">
|
||||
<div class="cancel-comment-reply">
|
||||
<?php $comments->cancelReply(); ?>
|
||||
</div>
|
||||
|
||||
<h3 id="response"><?php _e('添加新评论'); ?></h3>
|
||||
<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form">
|
||||
<?php if($this->user->hasLogin()): ?>
|
||||
<p><?php _e('登录身份:'); ?><a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a>. <a href="<?php $this->options->logoutUrl(); ?>" title="Logout"><?php _e('退出'); ?> »</a></p>
|
||||
<?php else: ?>
|
||||
<p>
|
||||
<label for="author" class="required"><?php _e('称呼'); ?></label>
|
||||
<input type="text" name="author" id="author" class="text" value="<?php $this->remember('author'); ?>" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="mail"<?php if ($this->options->commentsRequireMail): ?> class="required"<?php endif; ?>><?php _e('Email'); ?></label>
|
||||
<input type="email" name="mail" id="mail" class="text" value="<?php $this->remember('mail'); ?>" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="url"<?php if ($this->options->commentsRequireURL): ?> class="required"<?php endif; ?>><?php _e('网站'); ?></label>
|
||||
<input type="url" name="url" id="url" class="text" placeholder="<?php _e('http://example.com'); ?>" value="<?php $this->remember('url'); ?>" />
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<p>
|
||||
<label for="textarea" class="required"><?php _e('内容'); ?></label>
|
||||
<textarea rows="8" cols="50" name="text" class="textarea"><?php $this->remember('text'); ?></textarea>
|
||||
</p>
|
||||
<p>
|
||||
<button type="submit" class="submit"><?php _e('提交评论'); ?></button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<h3><?php _e('评论已关闭'); ?></h3>
|
||||
<?php endif; ?>
|
||||
</div>
|
@ -1,14 +0,0 @@
|
||||
|
||||
|
||||
</div><!-- end .col-group -->
|
||||
</div>
|
||||
</div><!-- end #body -->
|
||||
|
||||
<footer id="footer">
|
||||
© <?php echo date('Y'); ?> <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a>.
|
||||
<?php _e('由 <a href="http://www.typecho.org">Typecho</a> 强力驱动'); ?>.
|
||||
</footer><!-- end #footer -->
|
||||
|
||||
<?php $this->footer(); ?>
|
||||
</body>
|
||||
</html>
|
@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
function themeConfig($form) {
|
||||
$logoUrl = new Typecho_Widget_Helper_Form_Element_Text('logoUrl', NULL, NULL, _t('站点LOGO地址'), _t('在这里填入一个图片URL地址, 以在网站标题前加上一个LOGO'));
|
||||
$form->addInput($logoUrl);
|
||||
|
||||
$sidebarBlock = new Typecho_Widget_Helper_Form_Element_Checkbox('sidebarBlock',
|
||||
array('ShowRecentPosts' => _t('显示最新文章'),
|
||||
'ShowRecentComments' => _t('显示最近回复'),
|
||||
'ShowCategory' => _t('显示分类'),
|
||||
'ShowArchive' => _t('显示归档'),
|
||||
'ShowOther' => _t('显示其它杂项')),
|
||||
array('ShowRecentPosts', 'ShowRecentComments', 'ShowCategory', 'ShowArchive', 'ShowOther'), _t('侧边栏显示'));
|
||||
|
||||
$form->addInput($sidebarBlock->multiMode());
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="<?php $this->options->charset(); ?>" />
|
||||
<title><?php $this->archiveTitle(' » ', '', ' - '); ?><?php $this->options->title(); ?></title>
|
||||
|
||||
<!-- 使用url函数转换相关路径 -->
|
||||
<link rel="stylesheet" href="<?php $this->options->adminUrl('css/normalize.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php $this->options->adminUrl('css/grid.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php $this->options->themeUrl('style.css'); ?>" />
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="<?php $this->options->adminUrl('js/html5shiv.js'); ?>"></script>
|
||||
<script src="<?php $this->options->adminUrl('js/respond.js'); ?>"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- 通过自有函数输出HTML头部信息 -->
|
||||
<?php $this->header(); ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header id="header" class="clearfix">
|
||||
<div class="container">
|
||||
<div class="col-group">
|
||||
<div class="site-name col-mb-12 col-9">
|
||||
<a id="logo" href="<?php $this->options->siteUrl(); ?>">
|
||||
<?php if ($this->options->logoUrl): ?>
|
||||
<img src="<?php $this->options->logoUrl() ?>" alt="<?php $this->options->title() ?>" />
|
||||
<?php endif; ?>
|
||||
<?php $this->options->title() ?>
|
||||
</a>
|
||||
<p class="description"><?php $this->options->description() ?></p>
|
||||
</div>
|
||||
<div class="site-search col-3">
|
||||
<form id="search" method="post" action="./">
|
||||
<input type="text" name="s" class="text" placeholder="<?php _e('输入关键字搜索'); ?>" />
|
||||
<button type="submit" class="submit"><?php _e('搜索'); ?></button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-mb-12">
|
||||
<nav id="nav-menu">
|
||||
<a<?php if($this->is('index')): ?> class="current"<?php endif; ?> href="<?php $this->options->siteUrl(); ?>"><?php _e('首页'); ?></a>
|
||||
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
|
||||
<?php while($pages->next()): ?>
|
||||
<a<?php if($this->is('page', $pages->slug)): ?> class="current"<?php endif; ?> href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>"><?php $pages->title(); ?></a>
|
||||
<?php endwhile; ?>
|
||||
</nav>
|
||||
</div>
|
||||
</div><!-- end .col-group -->
|
||||
</div>
|
||||
</header><!-- end #header -->
|
||||
<div id="body">
|
||||
<div class="container">
|
||||
<div class="col-group">
|
||||
|
||||
|
||||
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 这是 Typecho 0.9 系统的一套默认皮肤
|
||||
*
|
||||
* @package Typecho Replica Theme
|
||||
* @author fen
|
||||
* @version 1.0
|
||||
* @link http://typecho.org
|
||||
*/
|
||||
|
||||
$this->need('header.php');
|
||||
?>
|
||||
|
||||
<div class="col-mb-12 col-8" id="main">
|
||||
<?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 $this->pageNav('« 前一页', '后一页 »'); ?>
|
||||
</div><!-- end #main-->
|
||||
|
||||
<?php $this->need('sidebar.php'); ?>
|
||||
<?php $this->need('footer.php'); ?>
|
@ -1,14 +0,0 @@
|
||||
<?php $this->need('header.php'); ?>
|
||||
|
||||
<div class="col-mb-12 col-8" id="main">
|
||||
<article class="post">
|
||||
<h1 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1>
|
||||
<div class="post-content">
|
||||
<?php $this->content(); ?>
|
||||
</div>
|
||||
</article>
|
||||
<?php $this->need('comments.php'); ?>
|
||||
</div><!-- end #main-->
|
||||
|
||||
<?php $this->need('sidebar.php'); ?>
|
||||
<?php $this->need('footer.php'); ?>
|
@ -1,21 +0,0 @@
|
||||
<?php $this->need('header.php'); ?>
|
||||
|
||||
<div class="col-mb-12 col-8" id="main">
|
||||
<article class="post">
|
||||
<h1 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1>
|
||||
<div class="post-meta">
|
||||
<?php _e('作者:'); ?><?php $this->author(); ?> <i></i>
|
||||
<?php _e('时间:'); ?><?php $this->date('F j, Y'); ?> <i></i>
|
||||
<?php _e('分类:'); ?><?php $this->category(','); ?>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
<?php $this->content(); ?>
|
||||
</div>
|
||||
<p class="tags"><?php _e('标签:'); ?><?php $this->tags(', ', true, 'none'); ?></p>
|
||||
</article>
|
||||
|
||||
<?php $this->need('comments.php'); ?>
|
||||
</div><!-- end #main-->
|
||||
|
||||
<?php $this->need('sidebar.php'); ?>
|
||||
<?php $this->need('footer.php'); ?>
|
Binary file not shown.
Before Width: | Height: | Size: 16 KiB |
@ -1,61 +0,0 @@
|
||||
<div class="col-mb-12 col-offset-1 col-3" id="secondary">
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowRecentPosts', $this->options->sidebarBlock)): ?>
|
||||
<section class="widget">
|
||||
<h3 class="widget-title"><?php _e('最新文章'); ?></h3>
|
||||
<ul class="widget-list">
|
||||
<?php $this->widget('Widget_Contents_Post_Recent')
|
||||
->parse('<li><a href="{permalink}">{title}</a></li>'); ?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowRecentComments', $this->options->sidebarBlock)): ?>
|
||||
<section class="widget">
|
||||
<h3 class="widget-title"><?php _e('最近回复'); ?></h3>
|
||||
<ul class="widget-list">
|
||||
<?php $this->widget('Widget_Comments_Recent')->to($comments); ?>
|
||||
<?php while($comments->next()): ?>
|
||||
<li><a href="<?php $comments->permalink(); ?>"><?php $comments->author(false); ?></a>:<?php $comments->excerpt(35, '...'); ?></li>
|
||||
<?php endwhile; ?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowCategory', $this->options->sidebarBlock)): ?>
|
||||
<section class="widget">
|
||||
<h3 class="widget-title"><?php _e('分类'); ?></h3>
|
||||
<ul class="widget-list">
|
||||
<?php $this->widget('Widget_Metas_Category_List')
|
||||
->parse('<li><a href="{permalink}">{name}</a> ({count})</li>'); ?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowArchive', $this->options->sidebarBlock)): ?>
|
||||
<section class="widget">
|
||||
<h3 class="widget-title"><?php _e('归档'); ?></h3>
|
||||
<ul class="widget-list">
|
||||
<?php $this->widget('Widget_Contents_Post_Date', 'type=month&format=F Y')
|
||||
->parse('<li><a href="{permalink}">{date}</a></li>'); ?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (empty($this->options->sidebarBlock) || in_array('ShowOther', $this->options->sidebarBlock)): ?>
|
||||
<section class="widget">
|
||||
<h3 class="widget-title"><?php _e('其它'); ?></h3>
|
||||
<ul class="widget-list">
|
||||
<?php if($this->user->hasLogin()): ?>
|
||||
<li class="last"><a href="<?php $this->options->adminUrl(); ?>"><?php _e('进入后台'); ?> (<?php $this->user->screenName(); ?>)</a></li>
|
||||
<li><a href="<?php $this->options->logoutUrl(); ?>"><?php _e('退出'); ?></a></li>
|
||||
<?php else: ?>
|
||||
<li class="last"><a href="<?php $this->options->adminUrl('login.php'); ?>"><?php _e('登录'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<li><a href="<?php $this->options->feedUrl(); ?>"><?php _e('文章 RSS'); ?></a></li>
|
||||
<li><a href="<?php $this->options->commentsFeedUrl(); ?>"><?php _e('评论 RSS'); ?></a></li>
|
||||
<li><a href="http://www.typecho.org">Typecho</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- end #sidebar -->
|
@ -1,377 +0,0 @@
|
||||
/* ------------------------------------
|
||||
* Typecho Default Theme
|
||||
*
|
||||
* @author fen1211@gmail.com
|
||||
* @link http: //typecho.net/
|
||||
* @update 2009-03-29 14: 30
|
||||
* --------------------------------- */
|
||||
|
||||
|
||||
/* ------------------
|
||||
* Gobal style
|
||||
* --------------- */
|
||||
body {
|
||||
background-color: #FFF;
|
||||
color: #444;
|
||||
/*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/
|
||||
font-family: Georgia, "Times New Roman", serif;
|
||||
font-size: 87.5%;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #3354AA;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
color: #444;
|
||||
text-decoration: underline;
|
||||
}
|
||||
pre, code {
|
||||
padding: 2px 4px;
|
||||
background: #F3F3F3;
|
||||
font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
|
||||
font-size: .92857em;
|
||||
}
|
||||
pre {
|
||||
padding: 8px;
|
||||
overflow: auto;
|
||||
max-height: 400px;
|
||||
}
|
||||
pre code { padding: 0; }
|
||||
|
||||
blockquote {
|
||||
margin: 1em 1.5em;
|
||||
padding-left: 1.5em;
|
||||
border-left: 4px solid #E9E9E9;
|
||||
color: #777;
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="url"],
|
||||
textarea {
|
||||
padding: 5px;
|
||||
border: 1px solid #E9E9E9;
|
||||
width: 100%;
|
||||
|
||||
border-radius: 2px;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
|
||||
/* ------------------
|
||||
* Header
|
||||
* --------------- */
|
||||
|
||||
#header {
|
||||
padding-top: 35px;
|
||||
border-bottom: 1px solid #E9E9E9;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#logo {
|
||||
color: #333;
|
||||
font-size: 2.5em;
|
||||
}
|
||||
.description {
|
||||
margin: .5em 0 0;
|
||||
color: #999;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Navigation menu */
|
||||
#nav-menu {
|
||||
margin: 25px 0 -1px;
|
||||
padding: 0;
|
||||
}
|
||||
#nav-menu a {
|
||||
display: inline-block;
|
||||
margin-right: -4px;
|
||||
padding: 8px 20px;
|
||||
border: 1px solid #EEE;
|
||||
color: #444;
|
||||
}
|
||||
#nav-menu a:hover,
|
||||
#nav-menu .current {
|
||||
background: #F6F6F6;
|
||||
}
|
||||
|
||||
/* Search */
|
||||
.site-search {
|
||||
display: none;
|
||||
}
|
||||
#search {
|
||||
position: relative;
|
||||
margin-top: 15px;
|
||||
}
|
||||
#search input {
|
||||
padding-right: 30px;
|
||||
}
|
||||
#search button {
|
||||
position: absolute;
|
||||
right: 4px;
|
||||
top: 2px;
|
||||
border: none;
|
||||
padding: 0;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background: transparent url(img/icon-search.png) no-repeat center center;
|
||||
text-indent: -9999em;
|
||||
}
|
||||
|
||||
|
||||
/* ------------------
|
||||
* Main
|
||||
* --------------- */
|
||||
#main {
|
||||
}
|
||||
|
||||
.post {
|
||||
padding: 20px 0;
|
||||
border-bottom: 1px solid #E9E9E9;
|
||||
}
|
||||
.post-title {
|
||||
margin: .83em 0;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
.post-meta {
|
||||
margin-top: -0.5em;
|
||||
color: #999;
|
||||
font-size: .92857em;
|
||||
}
|
||||
.post-meta i {
|
||||
display: inline-block;
|
||||
margin: 0 8px;
|
||||
height: 12px;
|
||||
border-right: 1px solid #E9E9E9;
|
||||
}
|
||||
.post-content {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.archive-title {
|
||||
margin: 1em 0 -1em;
|
||||
padding-top: 20px;
|
||||
color: #999;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* Page nav */
|
||||
|
||||
.page-navigator {
|
||||
list-style: none;
|
||||
margin: 25px 0;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
}
|
||||
.page-navigator li {
|
||||
display: inline-block;
|
||||
margin: 0 8px;
|
||||
}
|
||||
.page-navigator a {
|
||||
display: inline-block;
|
||||
padding: 0 8px;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
}
|
||||
.page-navigator a:hover {
|
||||
background: #EEE;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.page-navigator .current a {
|
||||
color: #444;
|
||||
background: #EEE;
|
||||
}
|
||||
|
||||
/* ------------------
|
||||
* Comment list
|
||||
* --------------- */
|
||||
#comments {
|
||||
padding-top: 15px;
|
||||
}
|
||||
.comment-list, .comment-list ol {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.comment-list li {
|
||||
padding: 14px;
|
||||
margin-top: 10px;
|
||||
border: 1px solid #E9E9E9;
|
||||
}
|
||||
.comment-list li.comment-level-odd {
|
||||
background: #F6F6F3;
|
||||
}
|
||||
.comment-list li.comment-level-even {
|
||||
background: #FFF;
|
||||
}
|
||||
.comment-list li.comment-by-author {
|
||||
background: #FFF9E8;
|
||||
}
|
||||
.comment-list li .comment-reply {
|
||||
text-align: right;
|
||||
font-size: .92857em;
|
||||
}
|
||||
.comment-list li .comment-reply a {
|
||||
}
|
||||
.comment-list li .comment-reply a:hover {
|
||||
}
|
||||
.comment-meta a {
|
||||
color: #999;
|
||||
font-size: .92857em;
|
||||
}
|
||||
.comment-author {
|
||||
display: block;
|
||||
margin-bottom: 3px;
|
||||
color: #444;
|
||||
}
|
||||
.comment-author .avatar {
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.comment-author cite {
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
.comment-children li {
|
||||
}
|
||||
|
||||
/* Comment reply */
|
||||
.comment-list .respond {
|
||||
margin-top: 15px;
|
||||
border-top: 1px solid #E9E9E9;
|
||||
}
|
||||
.respond .cancel-comment-reply {
|
||||
float: right;
|
||||
margin-top: 15px;
|
||||
font-size: .92857em;
|
||||
}
|
||||
#comment-form {
|
||||
}
|
||||
#comment-form label {
|
||||
display: block;
|
||||
margin-bottom: .5em;
|
||||
font-weight: bold;
|
||||
}
|
||||
#comment-form .required:after {
|
||||
content: " *";
|
||||
color: #C00;
|
||||
}
|
||||
|
||||
/* ------------------
|
||||
* secondary
|
||||
* --------------- */
|
||||
#secondary {
|
||||
display: none;
|
||||
padding-top: 20px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.widget {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.widget-title {
|
||||
}
|
||||
.widget-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
.widget-list li {
|
||||
margin: 5px 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.widget-list a:hover {
|
||||
}
|
||||
|
||||
|
||||
/* ------------------
|
||||
* Footer
|
||||
* --------------- */
|
||||
#footer {
|
||||
padding: 3em 0;
|
||||
line-height: 1.5;
|
||||
text-align: center;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
/* -----------------
|
||||
* Error page
|
||||
* -------------- */
|
||||
.error-page {
|
||||
margin-top: 100px;
|
||||
margin-bottom: 100px;
|
||||
}
|
||||
|
||||
|
||||
/* -----------------
|
||||
* Content format
|
||||
*--------------- */
|
||||
.post-content, .comment-content {
|
||||
line-height: 1.5;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.post-content h2, .comment-content h2 {
|
||||
font-size: 1.28571em;
|
||||
}
|
||||
.post-content img, .comment-content img {
|
||||
max-width: 100%;
|
||||
}
|
||||
.post-content hr, .comment-content hr {
|
||||
margin: 2em auto;
|
||||
width: 100px;
|
||||
border: 1px solid #E9E9E9;
|
||||
border-width: 2px 0 0 0;
|
||||
}
|
||||
|
||||
|
||||
/* -----------------
|
||||
* Misc
|
||||
*--------------- */
|
||||
.aligncenter, div.aligncenter {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.alignleft {
|
||||
float: left;
|
||||
}
|
||||
.alignright {
|
||||
float: right;
|
||||
}
|
||||
img.alignleft {
|
||||
margin: 5px 15px 0 0;
|
||||
}
|
||||
img.alignright {
|
||||
margin: 5px 0 0 15px;
|
||||
}
|
||||
|
||||
|
||||
/* -----------------
|
||||
* Responsive
|
||||
*--------------- */
|
||||
|
||||
@media (min-width: 768px) {
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
#header { text-align: left; }
|
||||
.site-search { display: block; }
|
||||
#secondary { display: block; }
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
body {
|
||||
font-size: 100%;
|
||||
}
|
||||
.container {
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user