主题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 {
.icon-back {
background: rgba(36, 193, 246, 0.9); background: rgba(36, 193, 246, 0.9);
} }
}
}
.jump-container, .toc-container { .jump-container, .toc-container {
position: relative; position: relative;
cursor: pointer; cursor: pointer;
@ -49,8 +46,7 @@
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;
@ -65,7 +61,6 @@
color: #24c1f6; color: #24c1f6;
} }
} }
}
.toc-container.tooltip-left{ .toc-container.tooltip-left{
background: $colorC; background: $colorC;

View File

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

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

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

@ -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"
}, },