mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +00:00
Remove unused CSS
This commit is contained in:
parent
d17420b8a2
commit
15c763c5db
@ -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;
|
||||||
|
|||||||
@ -20,7 +20,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
border: 0;
|
|
||||||
color: white;
|
color: white;
|
||||||
fill: $bg-color;
|
fill: $bg-color;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@ -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';
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
.headband {
|
|
||||||
background: $headband-bg;
|
|
||||||
height: $headband-height;
|
|
||||||
}
|
|
||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.menu {
|
.menu {
|
||||||
margin: 0;
|
padding: 0;
|
||||||
|
|
||||||
.menu-item {
|
.menu-item {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user