主题CSS优化

This commit is contained in:
结发受长生 2019-05-06 09:43:49 +08:00
parent 4117c3b7ff
commit d4bbfd5494
14 changed files with 41 additions and 56 deletions

View File

@ -2,6 +2,8 @@ module.exports = {
plugins: [ plugins: [
// require('postcss-smart-import')({ /* ...options */ }), // require('postcss-smart-import')({ /* ...options */ }),
// require('precss')({ /* ...options */ }), // require('precss')({ /* ...options */ }),
require('autoprefixer')({ /* ...options */ }) require('autoprefixer')({
browsers:['last 2 versions', '> 1%', 'iOS >= 7', 'Android >= 4', 'not ie <= 8']
})
] ]
} }

View File

@ -93,7 +93,6 @@
} }
.archive-article-date, .article-tag-list{ .archive-article-date, .article-tag-list{
margin-right: 30px; margin-right: 30px;
display: -moz-inline-stack;
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
zoom: 1; zoom: 1;

View File

@ -112,15 +112,13 @@
text-align: left; text-align: left;
float: right; float: right;
a{ a{
background: #4d4d4d; background-color: #4d4d4d;
color: $colorF; color: $colorF;
font-size: 12px; font-size: 12px;
padding: 5px 8px 5px; padding: 5px 8px 5px;
line-height: 16px; line-height: 16px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px; border-radius: 2px;
transition: background 0.3s; transition: background-color 0.3s;
&:hover{ &:hover{
background: #3c3c3c; background: #3c3c3c;
} }

View File

@ -19,13 +19,10 @@
width: 40px; width: 40px;
text-align: center; text-align: center;
} }
.jump-container { .jump-container:hover .icon-back {
&:hover { background: rgba(36, 193, 246, 0.9);
.icon-back {
background: rgba(36, 193, 246, 0.9);
}
}
} }
.jump-container, .toc-container { .jump-container, .toc-container {
position: relative; position: relative;
cursor: pointer; cursor: pointer;
@ -49,21 +46,19 @@
left: -2px; left: -2px;
} }
} }
.mod-side-operation__jump-to-top { .mod-side-operation__jump-to-top .icon-back {
.icon-back { transition: 0.3s;
transition: 0.3s; color: $colorF;
color: $colorF; background: #ccc;
background: #ccc; transform: rotate(90deg);
transform: rotate(90deg); font-size: 32px;
font-size: 32px; line-height: 40px;
line-height: 40px; width: 40px;
width: 40px; text-align: center;
text-align: center; display: block;
display: block; &:hover {
&:hover { background: #24c1f6;
background: #24c1f6; color: #24c1f6;
color: #24c1f6;
}
} }
} }

View File

@ -1 +0,0 @@
@import "core";

View File

@ -1,18 +1,18 @@
body, button, input, select, textarea { body, button, input, select, textarea {
color: #1a1a1a; color: #1a1a1a;
font-family: "lucida grande", "lucida sans unicode", lucida, helvetica, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; font-family: "lucida grande", "lucida sans unicode", lucida, helvetica, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
font-size: 16px; font-size: 16px;
font-size: 1rem; font-size: 1rem;
line-height: 1.75; line-height: 1.75;
} }
body { body {
overflow-y: hidden; overflow-y: hidden;
background:#eaeaea; background:#eaeaea;
} }
html, body, #container { html, body, #container {
height: 100%; height: 100%;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
} }
#mobile-nav { #mobile-nav {
display: none; display: none;

View File

@ -1,5 +1,5 @@
.left-col { .left-col {
background: #fff; background: $colorBg;
width: 300px; width: 300px;
position:fixed; position:fixed;
opacity:1; opacity:1;
@ -85,7 +85,7 @@
.profilepic{ .profilepic{
text-align: center; text-align: center;
display: block; display: block;
border: 5px solid #fff; border: 5px solid $colorF;
border-radius: 300px; border-radius: 300px;
width: 128px; width: 128px;
height: 128px; height: 128px;

View File

@ -1,4 +1,4 @@
@import "./global"; @import "core";
@import "./fonts"; @import "./fonts";
@import "./grid"; @import "./grid";
@import "./left"; @import "./left";

View File

@ -1,7 +1,7 @@
.profilepic { .profilepic {
text-align: center; text-align: center;
display: block; display: block;
border: 5px solid #fff; border: 5px solid $colorF;
border-radius: 300px; border-radius: 300px;
width: 128px; width: 128px;
height: 128px; height: 128px;

View File

@ -16,10 +16,8 @@ html, body, #container {
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;
@ -275,11 +273,9 @@ html, body, #container {
} }
} }
} }
.archives{ .archives .archive-article{
.archive-article{ padding: 10px 0;
padding: 10px 0; margin-left: 0;
margin-left: 0;
}
} }
#footer { #footer {

View File

@ -33,9 +33,7 @@
.prev.disabled,.next.disabled { .prev.disabled,.next.disabled {
visibility: hidden; visibility: hidden;
} }
&:hover{ &:hover .extend {
.extend{ opacity: 1;
opacity: 1;
}
} }
} }

View File

@ -1,6 +1,6 @@
/* 设置滚动条的样式 */ /* 设置滚动条的样式 */
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 10px; width: 10px;
height: 10px; height: 10px;
} }

View File

@ -10,7 +10,6 @@
justify-content: center; justify-content: center;
a { a {
border-radius:50%; border-radius:50%;
display:-moz-inline-stack;
display:inline-block; display:inline-block;
vertical-align:middle; vertical-align:middle;
*vertical-align:auto; *vertical-align:auto;

View File

@ -15,7 +15,6 @@ module.exports = {
main: "./source-src/js/main.js", main: "./source-src/js/main.js",
slider: "./source-src/js/slider.js", slider: "./source-src/js/slider.js",
mobile: ["babel-polyfill", "./source-src/js/mobile.js"], mobile: ["babel-polyfill", "./source-src/js/mobile.js"],
// comment: "./source-src/js/comment.js",
viewer: "./source-src/js/viewer.js", viewer: "./source-src/js/viewer.js",
waifu: "./source-src/js/waifu.js" waifu: "./source-src/js/waifu.js"
}, },