Remove unused CSS

This commit is contained in:
Mimi 2020-06-19 14:01:41 +08:00
parent d17420b8a2
commit 15c763c5db
14 changed files with 22 additions and 34 deletions

View File

@ -10,7 +10,7 @@ hexo.extend.helper.register('next_font', function() {
const fontStyles = ':300,300italic,400,400italic,700,700italic'; const fontStyles = ':300,300italic,400,400italic,700,700italic';
const fontHost = config.host || '//fonts.googleapis.com'; const fontHost = config.host || '//fonts.googleapis.com';
//Get a font list from config // Get a font list from config
let fontFamilies = ['global', 'title', 'headings', 'posts', 'codes'].map(item => { let fontFamilies = ['global', 'title', 'headings', 'posts', 'codes'].map(item => {
if (config[item] && config[item].family && config[item].external) { if (config[item] && config[item].family && config[item].external) {
return config[item].family + fontStyles; return config[item].family + fontStyles;

View File

@ -14,7 +14,6 @@
display: block; display: block;
font-size: $font-size-small; font-size: $font-size-small;
line-height: 1.6; line-height: 1.6;
position: relative;
&:active { &:active {
top: 2px; top: 2px;

View File

@ -20,7 +20,6 @@
} }
svg { svg {
border: 0;
color: white; color: white;
fill: $bg-color; fill: $bg-color;
position: absolute; position: absolute;

View File

@ -1,5 +1,14 @@
// Header Section // Header Section
// -------------------------------------------------- // --------------------------------------------------
.headband {
background: $headband-bg;
height: $headband-height;
+tablet-mobile() {
display: none;
}
}
.header { .header {
background: $head-bg; background: $head-bg;
} }
@ -14,7 +23,6 @@
padding: 0 10px; padding: 0 10px;
} }
@import 'headerband';
@import 'site-meta'; @import 'site-meta';
@import 'site-nav'; @import 'site-nav';
@import 'menu'; @import 'menu';

View File

@ -1,4 +0,0 @@
.headband {
background: $headband-bg;
height: $headband-height;
}

View File

@ -1,8 +1,8 @@
// Menu // Menu
// -------------------------------------------------- // --------------------------------------------------
.menu { .menu {
margin-top: 20px; margin: 0;
padding-left: 0; padding: 1em 0;
text-align: center; text-align: center;
} }

View File

@ -19,9 +19,7 @@
border-bottom: none; border-bottom: none;
color: var(--brand-color); color: var(--brand-color);
display: inline-block; display: inline-block;
line-height: $font-size-title;
padding: 0 40px; padding: 0 40px;
position: relative;
&:hover { &:hover {
color: var(--brand-hover-color); color: var(--brand-hover-color);

View File

@ -2,8 +2,8 @@
background: $black-deep; background: $black-deep;
bottom: 45px; bottom: 45px;
cursor: pointer; cursor: pointer;
height: 14px; height: 12px;
padding: 5px; padding: 6px 5px;
position: fixed; position: fixed;
width: 14px; width: 14px;
z-index: $zindex-3; z-index: $zindex-3;

View File

@ -21,8 +21,8 @@
.fa-quote-right { .fa-quote-right {
border-bottom: 1px solid $grey-light; border-bottom: 1px solid $grey-light;
text-align: right;
bottom: -20px; bottom: -20px;
text-align: right;
} }
p, div { p, div {

View File

@ -3,13 +3,12 @@
.toggle-line { .toggle-line {
background: white; background: white;
display: inline-block; display: block;
height: 2px; height: 2px;
left: 0; left: 0;
position: relative; position: relative;
top: 0; top: 0;
transition: all .4s; transition: all .4s;
vertical-align: top;
width: 100%; width: 100%;
&:not(:first-child) { &:not(:first-child) {

View File

@ -9,7 +9,7 @@
} }
.menu { .menu {
margin: 0; padding: 0;
.menu-item { .menu-item {
margin: 0; margin: 0;

View File

@ -29,9 +29,9 @@ if (hexo-config('sidebar.position') == 'right') {
} }
.sidebar { .sidebar {
transition: all $transition-ease-out;
width: $sidebar-desktop; width: $sidebar-desktop;
z-index: $zindex-2; z-index: $zindex-2;
transition: all $transition-ease-out;
a, span.exturl { a, span.exturl {
border-bottom-color: $black-light; border-bottom-color: $black-light;

View File

@ -17,8 +17,6 @@
background: var(--content-bg-color); background: var(--content-bg-color);
border-radius: $border-radius-inner; border-radius: $border-radius-inner;
box-shadow: $box-shadow-inner; box-shadow: $box-shadow-inner;
overflow: hidden;
padding: 0;
top: 0; top: 0;
width: $sidebar-desktop; width: $sidebar-desktop;
@ -28,7 +26,6 @@
+tablet-mobile() { +tablet-mobile() {
border-radius: initial; border-radius: initial;
position: relative;
width: auto; width: auto;
} }
} }
@ -69,21 +66,13 @@
padding-top: 40px; padding-top: 40px;
} }
if (hexo-config('sidebar.position') == 'right') { .footer-inner {
.header-inner {
right: 0;
}
.footer-inner { if (hexo-config('sidebar.position') == 'right') {
padding-right: $sidebar-desktop + $sidebar-offset; padding-right: $sidebar-desktop + $sidebar-offset;
} } else {
} else {
.footer-inner {
padding-left: $sidebar-desktop + $sidebar-offset; padding-left: $sidebar-desktop + $sidebar-offset;
} }
}
.footer-inner {
+tablet-mobile() { +tablet-mobile() {
padding-left: 0; padding-left: 0;

View File

@ -88,7 +88,7 @@
} }
.links-of-blogroll-item { .links-of-blogroll-item {
padding: 0; //padding: 0;
if (hexo-config('links_settings.layout') == 'inline') { if (hexo-config('links_settings.layout') == 'inline') {
display: inline-block; display: inline-block;