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 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 => {
if (config[item] && config[item].family && config[item].external) {
return config[item].family + fontStyles;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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