Слияние кода завершено, страница обновится автоматически
/* CSS Document */
/*
Theme Name: Mirages
Theme URI: https://www.npc.ink/theme/Mirages
Description: Mirages的Wordpress版本
Version: 0.1
Author: 小牧
Author URI: www.baimu.org
Tags:简洁、实用。无限1.0
/*
/*---------------------------------------------footer.php*/
/*
网页自适应:http://www.ruanyifeng.com/blog/2012/05/responsive_web_design.html
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html{
}
body {
font: normal 100% Helvetica, Arial, sans-serif;/*自适应字体*/
font-family: 'Mirages Custom', 'Merriweather', 'Open Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'WenQuanYi Micro Hei', 'Segoe UI Emoji', 'Segoe UI Symbol', Helvetica, Arial, sans-serif;
}
a{
text-decoration: none;/*超链接无下划线*/
}
body #footer a{
color: #F55852;/*超链接文字颜色*/
}
h1 {
font-size: 1.5em; /*h1的大小是默认大小的1.5倍,即24像素(24/16=1.5)。*/
}
small {
font-size: 0.875em;/*small元素的大小是默认大小的0.875倍,即14像素(14/16=0.875)。*/
}
img {
max-width: 100%;/*图片自适应*/
}
.effects a{
transition:all .3s ease-in-out;
-webkit-transition:all .3s ease-in-out;
-moz-transition:all .3s ease-in-out;
-ms-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
}
.effects {
transition:all .3s ease-in-out;
-webkit-transition:all .3s ease-in-out;
-moz-transition:all .3s ease-in-out;
-ms-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
}
/*加载顶部与底部样式*/
/*------------------------------------header.php----------------*/
#header{
width: auto;
height: 27emx;
/*图片样式*/
background-size: cover;
background-position: center;
}
.header-background-color{
width: 100%;
height: 25.6em;
background-color: rgba(0,0,0,0.25);/*文字背景色*/
/*让子DIV居中*/
display:flex;
justify-content:center; /*内容水平居中*/
align-items:center; /*内容垂直居中*/
}
.header-text{
margin: 0 auto;
text-align: center;
font-size: 1.5em;
color: #FFFFFF;
}
.header-text h1{
font-size: 2.5em;
font-weight: 400;
margin-bottom: 0.5em;
}
.header-text h2{
font-size: 0.8em;
font-weight: 200;
}
.header-menu-box{
width: 100%;
}
.header-nav{
position: absolute;
max-width: 700px;
margin-top: 1em;
margin-left: 2em;
}
.header-nav a{/*菜单文字颜色*/
color: #fff;
font-weight: 600;
}
.header-nav>ul>li{
margin-left: 2em;
}
.header-nav>ul>li ul{/*隐藏二级菜单*/
display: none;
}
.header-nav>ul>li:hover ul{
display: block;
}
.header-menu-ul li{
float: left;
list-style: none;/*去除项目符号*/
}
.header-menu-ul li{
margin-right: 0.625em;/*一级菜单右边距*/
}
.header-menu-ul li ul li{
clear: left;/*清除浮动*/
}
.header-menu-ul li ul li a{
margin-top: 0.625em;/*二级菜单距顶部*/
display: block;/*此元素将显示为块级元素,此元素前后会带有换行符。*/
}
/*------------------------------------header.php----------------*/
/*-----------------------------------------footer.php-----------------*/
#footer{
text-align: center;/*文字居中*/
font-size: 0.7rem;/*文字大小*/
font-weight: 400;/*文字粗细*/
background-color: #fafafa;/*背景颜色*/
color: #777;/*文字颜色*/
font-family: Consolas,Menlo,Monaco,"lucida console","Liberation Mono","Courier New","andale mono",monospaceX,monospace,sans-serif;
margin-bottom: 3em;
margin-top: 1em;
}
/*-----------------------------------------index.php------------------*/
.index-box{
max-width: 60.25em;
margin: 0 auto;
padding: 1em 3.75em;
}
.index-content{
width: 100%;
height: 100%;
border-radius: 0.625em;/*圆角*/
background-color: rgba(0,0,0,0.25);/*文字背景色,图片变暗*/
/*让子DIV居中
*https://www.npc.ink/2962.html
*/
display:flex;
justify-content:center; /*内容水平居中*/
align-items:center; /*内容垂直居中*/
}
.index-text-box{
width: 100%;
height: 15.6em;
margin: 2.8em 0 2.8em 0;
border-radius: 0.5em;/*圆角*/
/*图片样式*/
background-size: cover;
background-position: center;
background-repeat:no-repeat;
box-shadow:0px 2px 3px rgba(0, 0, 0, 0.3);/*向框添加一个或多个阴影。*/
-moz-box-shadow:0px 2px 3px rgba(0, 0, 0, 0.3);
-webkit-box-shadow:0px 2px 3px rgba(0, 0, 0, 0.3);
position: relative;
}
/*hover触发*/
.index-text-box:hover{
box-shadow: 0 0 1.25em #000;/*阴影*/
/*边框放大1.1倍*/
transform:scale(1.1);
-webkit-transform:scale(1.1);
-moz-transform:scale(1.1);
-ms-transform:scale(1.1);
-o-transform:scale(1.1);
/*设置过渡效果*/
transition:all .3s ease-in-out;
-webkit-transition:all .3s ease-in-out;
-moz-transition:all .3s ease-in-out;
-ms-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
}
.index-text-box a{
color: #fff;/*首页博文盒内容文字颜色*/
}
.index-text{
padding: 0.625em 0.625em;
text-align: center;/*块内的字居中*/
}
/*博文标题*/
.index-title{
margin-bottom: 0.25em;
font-size: 1.625em;
font-weight: 700;/*粗体字*/
}
.index-meat{
font-weight: 100;
font-size: 0.875em;
}
/*---------------------------底部分页按钮块*/
.index-button{
width: auto;
height: 2.5em;
margin: 4em 0 1em 0;
}
/*底部按钮样式*/
.index-button-next{
border: 1px solid black;
border-radius: 100em;
float: right;
padding: 0.375em 1.75em;
}
.index-button-next a{
color: red;
}
.index-button-next:hover{
background-color: black;
transition:all .3s ease-in-out;
-webkit-transition:all .3s ease-in-out;
-moz-transition:all .3s ease-in-out;
-ms-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
}
.index-button-next a:hover{
color: white;
}
/*-----------------------------------------index.php结束------------------*/
/*-----------------------------------------singler.php-----------------*/
.single-bj{
max-width: 2880px;
width: auto;
height: 27.25em;
/*图片样式*/
background-size: cover;
background-position: center;
}
.single-main-header{
height: 100%;
color: #fff;
text-align: center;
background-color: rgba(0,0,0,0.25);
/*让子DIV居中*/
display:flex;
justify-content:center; /*内容水平居中*/
align-items:center; /*内容垂直居中*/
}
/*居中框*/
.single-main-txt{
width: 70%;
height: auto;
}
/*博文标题*/
.single-title{
font-size: 2.5em;
padding: 0 1em 0 1em;
}
/*博文附加信息*/
.single-meta{
margin-top: 10px;
font-size: 1em;
font-weight: 100;
}
.single-main-txt a:link,.single-main-txt a:visited,.single-main-txt a:hover{
color: #F55852;
}
/*博文外框盒子*/
.single-blog{
max-width: 43.75em;
margin: 0 auto;
padding: 1em;
}
.single-blog-box{
margin-bottom: 10em;
}
/*博文摘要*/
.single-abstract{
border: 1px solid #fff;
text-align: center;
margin: 1em;
border-radius: 100em;
padding: 0.625em;
font-size: 0.75em;
color: #fff;
}
.single-abstract:hover{
color: black;
border: 1px solid black;
cursor: default;
}
/*博文内容盒子*/
.single-content{
line-height: 1.2rem;
word-wrap: break-word;
max-width: 700px;
}
/*博文美化*/
.single-content h1,h2,h3,h4,h5,h6,h7{
margin-top: 1.5em;
margin-bottom: 1rem;
}
/*博文中的超链接*/
#content p a{
color: red;
}
/*引用文字美化*/
#content blockquote{
font-size: 18px;
background: #fafafa;
margin: 0 0 15px;
padding: 30px 30px 30px 90px;
position: relative;
}
#content blockquote:after {
content: '\201C';
font-family: 'Georgia', serif;
font-size: 60px;
line-height: 60px;
font-weight: 700;
font-style: normal;
text-align: center;
color: #555;
position: absolute;
top: 30px;
left: 30px;
}
#content blockquote cite {
display: inline-block;
margin-top: .5em;
font-size: 15px;
}
#content p{/*段落*/
margin: 1em 0em 1em 0em;
text-indent: 2em;/*首行缩进*/
line-height: 1.2em;
}
#content>ol{/*博文内表格*/
margin-left: 1.8em;
}
#content ul{/*博文内表格*/
margin-left: 1.8em;
}
/*定义列表标题*/
dt {
font-weight: bold;
}
/*定义列表划分*/
dd {
margin: 0 15px 15px;
}
.single-content table{/*表格*/
border: 1px solid #C2C2C2;
width: 100%;
max-width: 100%;
text-align: center;
border-collapse:collapse;
padding:0px;
}
/*https://www.npc.ink/4633.html*/
.single-content table thead{/*表头*/
background-color: #f8f8f8;
padding: .375rem .8125rem;
border: .0625rem solid #ddd;
}
.single-content table td,th{
padding:0px;
border: .0625rem solid #ddd;
line-height: 2em;
}
/*地址*/
address {
margin: 0 0 15px;
}
/*代码标签*/
code, kbd, tt, var {
font: 14px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
/*插入标签*/
mark, ins {
background: #fff9c0;
text-decoration: none;
}
/*预先格式化的标签*/
pre {
background: #fafafa;
font-family: "Courier 10 Pitch", Courier, monospace;
font-size: 14px;
font-size: 1.4rem;
line-height: 1.5;
margin-bottom: 15px;
max-width: 100%;
overflow: auto;
padding: 15px;
}
/*文章内图片自适应*/
.single-content img{
width: 100%;
height: 100%;
display: block;/*div块化,避免首行缩进影响*/
}
/*博文标签、编辑日期*/
.single-blog-meat{
margin: 1em 0 1em 0;
overflow: hidden;
line-height: 2em;
}
.single-tag{
float: left;
}
.single-tag a{
margin-right: 0.125em;
padding: 0.125em 0.625em;
border-radius: 2em;
}
.single-tag a:hover{
color: #fff;
background-color: #000;
}
.single-time{
float: right;
}
/*三个块*/
.single-meat{
width: 100%;
height: 2.1em;
margin: 2em 0 2em 0;
}
.single-block{
width: 33%;
height: auto;
border: 1px solid black;
float: left;
margin-left: 0.146em;
border-radius: 5em;
text-align: center;
line-height: 2.4em;
}
.single-block:hover{
background-color: #000;
color: #fff;
cursor: pointer;
}
/*博文同分类上下文*/
.single-more{
overflow: hidden;
margin: 0 auto;
border: 1px solid red;
border-radius: 0.625em;
}
/*控制标题显示*/
.post-PrevNext a{
display: block;
width:auto; /* 限制宽度(可选) */
white-space:nowrap; /* 禁止自动换行 */
overflow:hidden; /* 隐藏溢出的内容 */
text-overflow:ellipsis; /* 溢出文本使用...代替 */
padding: 2.5em 2em 2.5em 2em;
color: black;
}
.post-PrevNext a span{
color: red;
}
/*上一篇*/
.previous_post_link{
float: left;
width: 50%;
}
/*下一篇*/
.next_post_link{
float: right;
width: 50%;
text-align: right;
}
/*评论盒子*/
.single-comments{
margin-top: 2em;
width: auto;
margin: 0 auto;
}
/*-----------------------------------------/single.php-----------------*/
/*-----------------------------------------category.php-----------------*/
/*-----------------------------------------category.php-----------------*/
/*-----------------------------------------page-links.php-----------------*/
/* 友情链接 */
.page-links{
overflow:hidden;
margin:0 auto;;
padding:0;
width: 700px;
}
.page-links h1{
padding: 20px;
text-align: left;
}
.page-links a{color:#555;text-decoration:none;}
.page-links a:hover{color:#069;text-decoration:none;}
.page-links ul{
margin:0;
padding:20px;
}
.page-links ul li{
float:left;
width:200px;
line-height:16px;
height:200px;
margin:0 10px 10px 0;
padding:8px;
list-style-type:none;
border:1px solid #ddd;
}
.page-links ul li:hover{background:#f2f2f2;}
.page-links ul li img{
width:160px;
height:160px;
margin:0 5px -2px 0;
padding:0;
border:none;
}
/*-----------------------------------------page-links.php-----------------*/
/*-----------------------------------------返回顶部按钮-----------------*/
#gotop{
display:block;
width:60px;
height:60px;
position:fixed;
bottom:32px;
right:18px;
border-radius:100px;
text-decoration:none;
background-color:#fbfbfb;
/*边框阴影*/
-webkit-mask-image: none !important;
-webkit-transition: .5s ease all;
-moz-transition: .5s ease all;
-ms-transition: .5s ease all;
-o-transition: .5s ease all;
transition: .5s ease all;
-webkit-box-shadow: 0 .125rem .3125rem rgba(0,0,0,0.117);
-moz-box-shadow: 0 .125rem .3125rem rgba(0,0,0,0.117);
box-shadow: 0 .125rem .3125rem rgba(0,0,0,0.117);
}
#gotop:hover{
-webkit-box-shadow: 0 .375rem .9375rem rgba(0,0,0,0.2);
-moz-box-shadow: 0 .375rem .9375rem rgba(0,0,0,0.2);
box-shadow: 0 .375rem .9375rem rgba(0,0,0,0.2);
-webkit-transform: scale(1.1);
-moz-transform: scale(1.1);
-ms-transform: scale(1.1);
-o-transform: scale(1.1);
transform: scale(1.1);
}
#gotop span{
display:block;
width:60px;
color:#dddddd;
}
#gotop span:hover{
color: #1abc9c;
}
#gotop span{
font-size:40px;
text-align:center;
margin-top:4px;
}
/*-----------------------------------------返回顶部按钮-----------------*/
/*-----------------------------------------footer.php-----------------*/
#article-index {
-moz-border-radius: 6px 6px 6px 6px;
border: 1px solid #DEDFE1;
float: right;
margin: 0 0 15px 15px;
padding: 0 6px;
width: 200px;
line-height: 23px;
}
#article-index strong {
border-bottom: 1px dashed #DDDDDD;
display: block;
line-height: 30px;
padding: 0 4px;
}
#index-ul {
margin: 0;
padding-bottom: 10px;
padding-top: 10px;
}
#index-ul li {/*标签文本*/
background: none repeat scroll 0 0 transparent;
list-style-type: disc;
padding: 0;
margin-left: 8px;
width: 172px; /* 限制宽度(可选) */
white-space:nowrap; /* 禁止自动换行 */
overflow:hidden; /* 隐藏溢出的内容 */
text-overflow:ellipsis; /* 溢出文本使用...代替 */
font-weight: 500;
line-height: 26px;
}
#index-ul li a{
color: red;/*文本颜色*/
padding: 4px 8px 4px 8px;
transition:all .3s ease-in-out;
-webkit-transition:all .3s ease-in-out;
-moz-transition:all .3s ease-in-out;
-ms-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
}
#index-ul li a:hover{
background-color: black;
color: #fff;
border-radius: 8px;
}
@media screen and (max-width: 768px) {
html{
font-size: 14px;
}
.index-box{
}
.index-text-box{
height: 12em;
}
}
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )