Shadow & border fix

This commit is contained in:
Skywt2003 2021-08-04 12:31:53 +08:00
parent 87c86c47ad
commit b576c17446
4 changed files with 5 additions and 10 deletions

View File

@ -1,11 +1,12 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?> <?php $this->need('header.php'); ?>
<div class="col mt-5 text-center" id="main" role="main"> <div class="col mt-5" id="main" role="main">
<article> <article>
<h1 class="font-weight-bold">404 NOT FOUND.</h1> <h1 class="font-weight-bold">404 NOT FOUND.</h1>
<hr>
<p><?php _e('您要找的页面不存在!'); ?></p> <p><?php _e('您要找的页面不存在!'); ?></p>
<p><a href=<?php $this->options->siteUrl(); ?> ><?php _e('返回首页'); ?></a> </p> <p><a class="btn btn-primary" href=<?php $this->options->siteUrl(); ?> ><?php _e('返回首页'); ?></a> </p>
</article> </article>
</div><!-- end #content--> </div><!-- end #content-->

View File

@ -25,17 +25,12 @@
font-weight: bold; font-weight: bold;
line-height: 1.7; line-height: 1.7;
} }
/* Shadow Below 单边阴影,应用于 nav */
.shadowb {
box-shadow: 0 20px 20px rgba(50, 50, 93, .1), 0 5px 5px rgba(0, 0, 0, .07);
}
/* post content style */ /* post content style */
article, article a { article, article a {
color: #172b4d; color: #172b4d;
} }
.post-title:before { .post-title:before {
content:'#'; content:'#';
font-family: monospace;
} }
article{ article{
font-size: 1rem; font-size: 1rem;

View File

@ -46,7 +46,6 @@
<![endif]--> <![endif]-->
<body> <body>
<?php if (!($this->is('post') or $this->is('page'))) { ?>
<header id="header" class="clearfix mt-5 mb-4"> <header id="header" class="clearfix mt-5 mb-4">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
@ -72,10 +71,9 @@
</div><!-- end .row --> </div><!-- end .row -->
</div> </div>
</header><!-- end #header --> </header><!-- end #header -->
<?php } ?>
<!-- 如果 nav 放在 header 里,这个 sticky-top 就会被限制在 header 里,暂时只能这么写 --> <!-- 如果 nav 放在 header 里,这个 sticky-top 就会被限制在 header 里,暂时只能这么写 -->
<nav class="navbar navbar-light navbar-expand sticky-top shadowb"> <nav class="navbar navbar-light navbar-expand sticky-top">
<div class="container"> <div class="container">
<ul class="col navbar-nav justify-content-center"> <ul class="col navbar-nav justify-content-center">
<li class="nav-item"> <li class="nav-item">

View File

@ -6,6 +6,7 @@
<h1 class="font-weight-bold post-title" itemprop="name headline"> <h1 class="font-weight-bold post-title" itemprop="name headline">
<a itemprop="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a> <a itemprop="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a>
</h1> </h1>
<hr>
<div class="post-content" itemprop="articleBody"> <div class="post-content" itemprop="articleBody">
<?php $this->content(); ?> <?php $this->content(); ?>
</div> </div>