UI调整 准备添加看板娘

This commit is contained in:
结发受长生 2019-04-25 23:11:08 +08:00
parent c168943fba
commit d0c2583ca8
8 changed files with 434 additions and 460 deletions

View File

@ -101,7 +101,7 @@
font-size: 14px; font-size: 14px;
} }
.archive-article-date{ .archive-article-date{
cursor: default; cursor: default;
font-size: 12px; font-size: 12px;
margin-bottom: 5px; margin-bottom: 5px;
margin-top: -10px; margin-top: -10px;

View File

@ -1,77 +1,56 @@
.article-inner { .article-inner {
border-color: #d1d1d1;
p { p {
margin: 0 0 1.75em; margin: 0 0 1.75em;
} }
// 目录标题
h1,h2,h3,h4,h5,h6 {
font-weight: 900;
&:first-child {
margin-top: 0;
}
}
h1 {
font-size: 28px;
font-size: 1.75rem;
line-height: 1.25;
margin-top: 2em;
margin-bottom: 1em;
&:first-child {
display: inline;
}
}
h2 {
font-size: 23px;
font-size: 1.4375rem;
line-height: 1.2173913043;
margin-top: 2.4347826087em;
margin-bottom: 1.2173913043em;
}
h3 {
font-size: 19px;
font-size: 1.1875rem;
line-height: 1.1052631579;
margin-top: 2.9473684211em;
margin-bottom: 1.4736842105em;
}
h4,h5,h6{
font-size: 16px;
font-size: 1rem;
line-height: 1.3125;
margin-top: 3.5em;
margin-bottom: 1.75em;
}
h6 {
font-style: italic;
}
} }
.article-inner {
border-color: #d1d1d1;
}
.article-inner h1 {
font-size: 28px;
font-size: 1.75rem;
line-height: 1.25;
margin-top: 2em;
margin-bottom: 1em;
}
.article-inner h2 {
font-size: 23px;
font-size: 1.4375rem;
line-height: 1.2173913043;
margin-top: 2.4347826087em;
margin-bottom: 1.2173913043em;
}
.article-inner h3 {
font-size: 19px;
font-size: 1.1875rem;
line-height: 1.1052631579;
margin-top: 2.9473684211em;
margin-bottom: 1.4736842105em;
}
.article-inner h4,
.article-inner h5,
.article-inner h6 {
font-size: 16px;
font-size: 1rem;
line-height: 1.3125;
margin-top: 3.5em;
margin-bottom: 1.75em;
}
.article-inner h6 {
font-style: italic;
}
.article-inner h1,
.article-inner h2,
.article-inner h3,
.article-inner h4,
.article-inner h5,
.article-inner h6 {
font-weight: 900;
}
.article-inner h1:first-child,
.article-inner h2:first-child,
.article-inner h3:first-child,
.article-inner h4:first-child,
.article-inner h5:first-child,
.article-inner h6:first-child {
margin-top: 0;
}
.article-inner h1:first-child{
display: inline;
}
.article-entry{ .article-entry{
line-height: 1.8em; line-height: 1.8em;
padding-right: 7.6923%; padding-right: 7.6923%;
padding-left: 7.6923%; padding-left: 7.6923%;
.post-count { .post-count { // 字数统计
color: rgb(185, 185, 185); color: rgb(185, 185, 185);
font-size: 14px; font-size: 14px;
.count-item { .count-item {
@ -81,6 +60,14 @@
} }
} }
} }
img {
transition: transform 0.2s ease-out,box-shadow 0.5s ease;
cursor: zoom-in;
&:hover {
transform: scale(1.05,1.05);
box-shadow: 0px 0px 10px 2px #87afea;
}
}
p{ p{
margin-top: 10px; margin-top: 10px;
} }
@ -200,31 +187,23 @@
tr,td{ tr,td{
height:35px; height:35px;
} }
thead{ thead tr{
tr { background: #f8f8f8;
background: #f8f8f8;
}
} }
tbody{ tbody tr:hover{
tr:hover{ background: #efefef;
background: #efefef;
}
} }
td,th{ td,th{
border: 1px solid #dedede; border: 1px solid #dedede;
padding: 0 10px; padding: 0 10px;
} }
} }
figure{ figure table{
table { border: none;
border: none; width: auto;
width: auto; margin: 0;
margin: 0; tbody tr:hover{
tbody{ background: none;
tr:hover{
background: none;
}
}
} }
} }
} }

View File

@ -62,15 +62,6 @@
border-bottom: 1px solid #fff; border-bottom: 1px solid #fff;
background: #fff; background: #fff;
transition: all 0.2s ease-in; transition: all 0.2s ease-in;
/* &.show{
visibility: visible;
-webkit-animation: cd-bounce-1 0.6s;
-moz-animation: cd-bounce-1 0.6s;
animation: cd-bounce-1 0.6s;
}
&.hidden{
visibility: hidden;
} */
img{ img{
max-width: 100%; max-width: 100%;
} }

View File

@ -11,23 +11,23 @@
} }
.overlay{ .overlay{
width: 100%; width: 100%;
height: 180px; height: 150px;
position: absolute; position: absolute;
} }
.intrude-less { .intrude-less {
width: 76%; width: 76%;
text-align: center; text-align: center;
margin: 112px auto 0; margin: 82px auto 0;
} }
#header{ #header{
width:100%; width:100%;
height: 300px; height: 300px;
position: relative; position: relative;
border-bottom: 1px solid color-border;
a { a {
color: #696969; color: #696969;
transition: color 0.3s;
&:hover { &:hover {
color: #B0A0AA; color: #B0A0AA;
} }
@ -67,7 +67,7 @@
} }
} }
.header-smart-menu { .header-smart-menu {
font-size: 12px; font-size: 16px;
margin-bottom: 20px; margin-bottom: 20px;
a { a {
&:after { &:after {

View File

@ -10,6 +10,7 @@
overflow: hidden; overflow: hidden;
background: #88acdb; background: #88acdb;
-webkit-transition: all 0.2s ease-in; -webkit-transition: all 0.2s ease-in;
transition: all 0.2s ease-in;
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: horizontal; -webkit-box-orient: horizontal;
-webkit-box-pack: center; -webkit-box-pack: center;

View File

@ -1,315 +1,315 @@
html, body, #container { html, body, #container {
height: auto; height: auto;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
} }
#mobile-nav { #mobile-nav {
display: block; display: block;
} }
.body-wrap { .body-wrap {
margin-bottom: 0; margin-bottom: 0;
} }
.left-col { .left-col {
display: none; display: none;
} }
.mid-col { .mid-col {
left: 0; left: 0;
position: relative; position: relative;
} }
#header{ #header{
.header-nav{ .header-nav{
position: relative; position: relative;
} }
} }
.wrap-side-operation { .wrap-side-operation {
display: none; display: none;
} }
.cloud-tie-wrapper { .cloud-tie-wrapper {
padding: 0; padding: 0;
min-height: 20px; min-height: 20px;
} }
.tools-col { .tools-col {
left: -300px; left: -300px;
width: 300px;
.tools-wrap {
padding-top: 48px;
}
.tools-wrap, .tools-section {
width: 300px; width: 300px;
.tools-wrap { .search-wrap {
padding-top: 48px; width: 280px;
} }
.tools-wrap, .tools-section { .search-tag.tagcloud {
width: 300px; margin-right: -30px;
.search-wrap {
width: 280px;
}
.search-tag.tagcloud {
margin-right: -30px;
}
.search-ul .search-li {
padding: 5px 20px;
}
} }
&.show { .search-ul .search-li {
.header-menu{ padding: 5px 20px;
&.tools-nav {
display: block;
}
}
} }
}
&.show {
.header-menu{
&.tools-nav {
display: block;
}
}
}
} }
#container .header-author.fixed { #container .header-author.fixed {
position: fixed; position: fixed;
top: -29px; top: -29px;
width: 100%; width: 100%;
color: #ddd; color: #ddd;
} }
.mobile-mask { .mobile-mask {
width: 100%; width: 100%;
height: 100%; height: 100%;
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
background: rgba(0, 0, 0, .85); background: rgba(0, 0, 0, .85);
z-index: 999; z-index: 999;
} }
.btnctn{ .btnctn{
position: fixed; position: fixed;
width: 50px; width: 50px;
height: 50px; height: 50px;
z-index: 4; z-index: 4;
.slider-trigger{ .slider-trigger{
position: absolute; position: absolute;
z-index: 101; z-index: 101;
width: 42px; width: 42px;
height: 42px; height: 42px;
text-align: center; text-align: center;
line-height: 50px; line-height: 50px;
&.back { &.back {
top: 0; top: 0;
left: 0; left: 0;
}
&.list {
background-color: rgba(100,100,100,0.7)
}
&:hover{
background: #444;
}
.icon{
font-size: 24px;
color: #fff;
}
} }
&.list {
background-color: rgba(100,100,100,0.7)
}
&:hover{
background: #444;
}
.icon{
font-size: 24px;
color: #fff;
}
}
} }
.article-header{ .article-header{
border-left: none; border-left: none;
padding: 0; padding: 0;
border-bottom: 1px dotted #ddd; border-bottom: 1px dotted #ddd;
h1{ h1{
margin-bottom: 10px; margin-bottom: 10px;
} }
.archive-article-date{ .archive-article-date{
float: initial; float: initial;
} }
} }
.header-subtitle{ .header-subtitle{
padding: 0 24px; padding: 0 24px;
.icon { .icon {
margin: 0 10px; margin: 0 10px;
color: #d0d0d0; color: #d0d0d0;
} }
} }
.article-info-index.article-info{ .article-info-index.article-info{
min-height: 40px; min-height: 40px;
padding-top: 10px; padding-top: 10px;
margin: 0; margin: 0;
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
} }
.article-info-post.article-info{ .article-info-post.article-info{
margin: 0; margin: 0;
padding-top: 10px; padding-top: 10px;
border: none; border: none;
} }
#viewer-box .viewer-box-l{ #viewer-box .viewer-box-l{
font-size: 14px; font-size: 14px;
} }
.article-nav-link-wrap{ .article-nav-link-wrap{
margin: 5px 0; margin: 5px 0;
display: block; display: block;
clear: both; clear: both;
.icon-circle-right { .icon-circle-right {
float: left; float: left;
margin: 6px 4px 0 0; margin: 6px 4px 0 0;
} }
} }
.article{ .article{
padding: 10px; padding: 10px;
margin: 10px 0; margin: 10px 0;
border: 0; border: 0;
font-size: 16px; font-size: 16px;
color: #555; color: #555;
.article-more-link { .article-more-link {
margin: 0; margin: 0;
} }
.article-entry{ .article-entry{
padding: 10px 0 30px 0; padding: 10px 0 30px 0;
} }
.article-inner h1.article-title, .article-title{ .article-inner h1.article-title, .article-title{
font-size: 18px; font-size: 18px;
font-weight: 300; font-weight: 300;
display: block; display: block;
margin: 0; margin: 0;
} }
.article-meta{ .article-meta{
width: auto;
height: 30px;
margin-top: -5px;
position: ralative;
.article-date{
font-size: 12px;
border-radius: 0;
color: #666;
background: none;
height: auto;
padding: 0;
margin: 0;
width: 100%;
text-align: left;
margin-left: 10px;
time{
width: auto; width: auto;
height: 30px; float: right;
margin-top: -5px; margin-right: 10px;
position: ralative; }
.article-date{
font-size: 12px;
border-radius: 0;
color: #666;
background: none;
height: auto;
padding: 0;
margin: 0;
width: 100%;
text-align: left;
margin-left: 10px;
time{
width: auto;
float: right;
margin-right: 10px;
}
}
.article-tag-list{
margin-top: 7px;
position: absolute;
right: 10px;
top: 0;
&:before{
float: left;
margin-top: 1px;
left: 0;
}
.article-tag-list-item{
float: left;
padding-left: 0;
width: auto;
max-width: 83px;
}
}
.article-category{
margin-top: 7px;
position: absolute;
right: 10px;
top: -30px;
&:before{
float: left;
margin-top: 1px;
left: 15px;
}
.article-category-link{
max-width: 83px;
width: auto;
padding-left:10px;
}
}
} }
.article-tag-list{
#article-nav-older{ margin-top: 7px;
float: none; position: absolute;
display: block; right: 10px;
top: 0;
&:before{
float: left;
margin-top: 1px;
left: 0;
}
.article-tag-list-item{
float: left;
padding-left: 0;
width: auto;
max-width: 83px;
}
} }
.article-category{
margin-top: 7px;
position: absolute;
right: 10px;
top: -30px;
&:before{
float: left;
margin-top: 1px;
left: 15px;
}
.article-category-link{
max-width: 83px;
width: auto;
padding-left:10px;
}
}
}
#article-nav-older{
float: none;
display: block;
}
} }
#comments { #comments {
margin: 0; margin: 0;
} }
.share{ .share{
padding: 3px 10px; padding: 3px 10px;
} }
.duoshuo { .duoshuo {
padding: 0 13px; padding: 0 13px;
} }
#disqus_thread { #disqus_thread {
padding: 0 13px; padding: 0 13px;
} }
#article-nav { #article-nav {
margin: 0; margin: 0;
padding: 5px 10px 10px; padding: 5px 10px 10px;
} }
#article-nav #article-nav-older { #article-nav #article-nav-older {
float: none; float: none;
} }
#article-nav .article-nav-link-wrap .article-nav-title { #article-nav .article-nav-link-wrap .article-nav-title {
font-size: 16px; font-size: 16px;
} }
#page-nav .extend{ #page-nav .extend{
opacity: 1; opacity: 1;
} }
.instagram .open-ins{ .instagram .open-ins{
left: 2px; left: 2px;
top: -30px; top: -30px;
color: #aaa; color: #aaa;
} }
.info-on-right{ .info-on-right{
float: initial; float: initial;
} }
.archives-wrap{ .archives-wrap{
margin: 10px 10px 0px; margin: 10px 10px 0px;
padding: 10px; padding: 10px;
.archive-article-title{ .archive-article-title{
font-size: 16px; font-size: 16px;
}
.archive-year-wrap{
position: relative;
padding: 0 0 0 0;
a{
padding: 0 0 0 0;
} }
.archive-year-wrap{ }
position: relative; .article-meta{
padding: 0 0 0 0; .archive-article-date{
a{ font-size: 12px;
padding: 0 0 0 0; margin-right: 10px;
} margin-top: -5px;
} }
.article-meta{ .article-tag-list-link{
.archive-article-date{ font-size: 12px;
font-size: 12px;
margin-right: 10px;
margin-top: -5px;
}
.article-tag-list-link{
font-size: 12px;
}
} }
}
} }
.archives{ .archives{
.archive-article{ .archive-article{
padding: 10px 0; padding: 10px 0;
margin-left: 0; margin-left: 0;
} }
} }
#footer { #footer {
position: relative; position: relative;
bottom: 0; bottom: 0;
.footer-left{ .footer-left{
float: initial; float: initial;
margin-bottom: 10px; margin-bottom: 10px;
} }
.footer-right{ .footer-right{
float: initial; float: initial;
} }
} }
#mobile-nav{ #mobile-nav{
.header-author{ .header-author{
margin: 0; margin: 0;
position: relative; position: relative;
z-index: 2; z-index: 2;
color: #424242; color: #424242;
} }
.overlay{ .overlay{
height: 110px; height: 110px;
position: absolute; position: absolute;
width: 100%; width: 100%;
z-index: 2; z-index: 2;
background: #4d4d4d; background: #4d4d4d;
} }
#header{ #header{
@ -323,58 +323,58 @@ html, body, #container {
} }
.header-menu{ .header-menu{
height: auto; height: auto;
margin: 10px 0 20px; margin: 10px 0 20px;
&.tools-nav { &.tools-nav {
display: none; display: none;
position: fixed; position: fixed;
left: 0; left: 0;
width: 100%; width: 100%;
z-index: 9999; z-index: 9999;
ul { ul {
margin-right: 28px; margin-right: 28px;
}
ul, li {
border-color: #fff;
a {
color: #fff;
&.active {
background: #81b5cc;
}
}
}
} }
ul{ ul, li {
text-align: center; border-color: #fff;
cursor: default; a {
display: flex; color: #fff;
margin: 0 auto; &.active {
align-items: center; background: #81b5cc;
justify-content: space-around; }
position: relative; }
z-index: 1;
border: 1px solid #a0a0a0;
border-radius: 3px;
} }
li{ }
border-left: 1px solid #a0a0a0; ul{
&:first-child { text-align: center;
border-left: 0; cursor: default;
} display: flex;
&:last-child { margin: 0 auto;
border-right: 0; align-items: center;
} justify-content: space-around;
a { position: relative;
font-size: 14px; z-index: 1;
overflow: hidden; border: 1px solid #a0a0a0;
text-overflow: ellipsis; border-radius: 3px;
white-space: nowrap; }
display: block; li{
color: #a0a0a0; border-left: 1px solid #a0a0a0;
&.active { &:first-child {
color: #eaeaea; border-left: 0;
background: #a0a0a0;
}
}
} }
&:last-child {
border-right: 0;
}
a {
font-size: 14px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: block;
color: #a0a0a0;
&.active {
color: #eaeaea;
background: #a0a0a0;
}
}
}
} }

View File

@ -1,112 +1,115 @@
#header .tagcloud a{ #header .tagcloud a{
color:#fff; color:#fff;
} }
.tagcloud{ .tagcloud{
a.js-tag{ a.js-tag{
display:inline-block; display:inline-block;
text-decoration:none; text-decoration:none;
font-weight: normal; font-weight: normal;
font-size:10px; font-size:10px;
color:#fff; color:#fff;
height:18px; height:18px;
line-height:18px; line-height:18px;
float: left; padding:0 5px 0px 10px;
padding:0 5px 0px 10px; position:relative;
position:relative; border-radius:0 5px 5px 0;
border-radius:0 5px 5px 0; margin: 5px 9px 5px 8px;
margin: 5px 9px 5px 8px; font-family: Menlo, Monaco, "Andale Mono", "lucida console", "Courier New", monospace;
font-family: Menlo, Monaco, "Andale Mono", "lucida console", "Courier New", monospace; &:hover{
&:hover{ opacity: 0.8;
opacity: 0.8;
}
&:before{
content: " ";
width: 0px;
height: 0px;
position: absolute;
top: 0;
left: -18px;
border: 9px solid transparent;
}
&:after{
content:" ";
width:4px;
height:4px;
background-color:#fff;
border-radius:4px;
box-shadow:0px 0px 0px 1px rgba(0,0,0,.3);
position:absolute;
top: 7px;
left: 2px;
}
} }
a.color1{ &::before{
background: #FF945C; content: " ";
&:before{ width: 0px;
border-right-color: #FF945C; height: 0px;
} position: absolute;
top: 0;
left: -18px;
border: 9px solid transparent;
} }
a.color2{ &::after{
background: #cc8167; content:" ";
&:before{ width:4px;
border-right-color: #cc8167; height:4px;
} background-color:#fff;
border-radius:4px;
box-shadow:0px 0px 0px 1px rgba(0,0,0,.3);
position:absolute;
top: 7px;
left: 2px;
}
}
a.color1{
background: #FF945C;
&::before{
border-right-color: #FF945C;
} }
a.color3{ }
background: #BA8F6C; a.color2{
&:before{ background: #cc8167;
border-right-color: #BA8F6C; &::before{
} border-right-color: #cc8167;
} }
a.color4{ }
background: #94635c; a.color3{
&:before{ background: #BA8F6C;
border-right-color:#94635c; &::before{
} border-right-color: #BA8F6C;
} }
a.color5{ }
background: #7B5D5F; a.color4{
&:before{ background: #94635c;
border-right-color:#7B5D5F; &::before{
} border-right-color:#94635c;
} }
}
a.color5{
background: #7B5D5F;
&::before{
border-right-color:#7B5D5F;
}
}
} }
.article-tag-list{ .article-tag-list{
.article-tag-list-item{ .article-tag-list-item{
float: left; float: left;
} }
} }
.article-pop-out{ .article-pop-out{
float: left;
.icon-tuding {
color: #999;
float: left; float: left;
.icon-tuding { margin-right: 10px;
color: #999; margin-top: 6px;
float: left; }
margin-right: 10px;
margin-top: 6px;
}
} }
.article-tag, .article-category{ .article-tag, .article-category{
float: left;
.article-tag-list{
float: left; float: left;
.article-tag-list{ }
float: left; .icon {
} color: #999;
.icon { float: left;
color: #999; margin-right: 10px;
float: left; margin-top: 6px;
margin-right: 10px; }
margin-top: 6px;
}
} }
.article-pop-out { .article-pop-out {
float: left; float: left;
} }
.archive-article-date { .archive-article-date {
color: #999; color: #999;
margin-right: 7.6923%; margin-right: 7.6923%;
float: right; float: right;
.icon { transition: color 0.3s;
margin: 5px 5px 5px 0; &:hover {
} color: #b5b5b5;
}
.icon {
margin: 5px 5px 5px 0;
}
} }

View File

@ -189,7 +189,7 @@
padding: 40px; padding: 40px;
-webkit-transform: translate3d(0,100%,0); -webkit-transform: translate3d(0,100%,0);
transform: translate3d(0,100%,0); transform: translate3d(0,100%,0);
webkit-transition: -webkit-transform 0.3s; -webkit-transition: -webkit-transform 0.3s;
transition: transform 0.3s; transition: transform 0.3s;
} }