mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Remove unused CSS
This commit is contained in:
parent
d17420b8a2
commit
15c763c5db
@ -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;
|
||||
|
||||
@ -14,7 +14,6 @@
|
||||
display: block;
|
||||
font-size: $font-size-small;
|
||||
line-height: 1.6;
|
||||
position: relative;
|
||||
|
||||
&:active {
|
||||
top: 2px;
|
||||
|
||||
@ -20,7 +20,6 @@
|
||||
}
|
||||
|
||||
svg {
|
||||
border: 0;
|
||||
color: white;
|
||||
fill: $bg-color;
|
||||
position: absolute;
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
.headband {
|
||||
background: $headband-bg;
|
||||
height: $headband-height;
|
||||
}
|
||||
@ -1,8 +1,8 @@
|
||||
// Menu
|
||||
// --------------------------------------------------
|
||||
.menu {
|
||||
margin-top: 20px;
|
||||
padding-left: 0;
|
||||
margin: 0;
|
||||
padding: 1em 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -21,8 +21,8 @@
|
||||
|
||||
.fa-quote-right {
|
||||
border-bottom: 1px solid $grey-light;
|
||||
text-align: right;
|
||||
bottom: -20px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
p, div {
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
}
|
||||
|
||||
.menu {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
.menu-item {
|
||||
margin: 0;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -88,7 +88,7 @@
|
||||
}
|
||||
|
||||
.links-of-blogroll-item {
|
||||
padding: 0;
|
||||
//padding: 0;
|
||||
|
||||
if (hexo-config('links_settings.layout') == 'inline') {
|
||||
display: inline-block;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user