This commit is contained in:
2019-05-30 18:52:14 +08:00
commit aa360a22bf
341 changed files with 30369 additions and 0 deletions

View File

@ -0,0 +1,135 @@
// fix bug using algolia search's CDN
.ais-search-box--magnifier svg {
display: none !important;
}
.ais-search-box--reset svg {
display: none !important;
}
.algolia-pop-overlay
position: fixed
width: 100%
height: 100%
top: 0
left: 0
z-index: 2080
background-color: rgba(0, 0, 0, 0.3)
+mobile()
hide();
.algolia-popup
overflow: hidden
padding: 0
display: none
position: fixed
top: 10%
left: 50%
width: 700px
height: 80%
margin-left: -350px
background: #fff
color: #333
z-index: 9999
border-radius: 5px
+mobile()
padding: 0
top: 0
left: 0
margin: 0
width: 100%
height: 100%
border-radius: 0
.popup-btn-close
position: absolute
right: 14px
color: #4EBD79
font-size: 14px
font-weight: bold
text-transform: uppercase
cursor: pointer
padding-left: 15px
border-left: 1px solid #eee
top: 10px
.fa
color: $grey-dark
font-size: 18px
&:hover .fa
color: $black-deep
.algolia-search
padding: 10px 15px 5px
max-height: 50px
border-bottom: 1px solid #ccc
background: $whitesmoke
border-top-left-radius: 5px
border-top-right-radius: 5px
.algolia-search-input-icon
display: inline-block
width: 20px
.fa
font-size: 18px
.algolia-search-input
display: inline-block
width: calc(90% - 20px)
input
padding: 5px 0
width: 100%
outline: none
border: none
background: transparent
.algolia-powered
float: right
img
display: inline-block
height: 18px
vertical-align: middle
.algolia-results
position: relative
overflow: auto
padding: 10px 30px
height: calc(100% - 50px)
hr
margin: 10px 0
.highlight
font-style: normal
margin: 0
padding: 0 2px
font-size: inherit
color: red
.algolia-hits
margin-top: 20px
.algolia-hit-item
margin: 15px 0
.algolia-hit-item-link
display: block
border-bottom: 1px dashed #ccc
the-transition()
.algolia-pagination
.pagination
margin: 40px 0px
border-top: none
padding: 0
opacity: 1
.pagination-item
display: inline-block
.page-number
border-top: none
&:hover
border-bottom: 1px solid $black-deep
.current .page-number
@extend .pagination .page-number.current
.disabled-item
visibility: hidden

View File

@ -0,0 +1,47 @@
.copy-btn {
display: inline-block;
padding: 6px 12px;
font-size: 13px;
font-weight: 700;
line-height: 20px;
color: #333;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
if hexo-config('codeblock.copy_button.style') == 'flat' {
background-color: #fff;
border: none;
}
else {
background-color: #eee;
background-image: linear-gradient(#fcfcfc, #eee);
border: 1px solid #d5d5d5;
border-radius: 3px;
}
user-select: none;
outline: 0;
}
.highlight-wrap .copy-btn {
transition: opacity .3s ease-in-out;
opacity: 0;
padding: 2px 6px;
position: absolute;
if hexo-config('codeblock.copy_button.style') == 'flat' {
right: 0px;
height: 42px;
}
else {
right: 4px;
top: 8px;
}
}
.highlight-wrap:hover .copy-btn,
.highlight-wrap .copy-btn:focus {
opacity: 1;
}
.highlight-wrap {
position: relative;
}

View File

@ -0,0 +1,4 @@
.gt-header a, .gt-comments a, .gt-popup a
border-bottom: none;
.gt-container .gt-popup .gt-action.is--active:before
top: 0.7em;

View File

@ -0,0 +1,24 @@
#gitment-display-button {
display: inline-block;
padding: 0 15px;
color: #0a9caf;
cursor: pointer;
font-size: 14px;
border: 1px solid #0a9caf;
border-radius: 4px;
}
#gitment-display-button:hover {
color: #fff;
background: #0a9caf;
}
#gitment-container a {
border-bottom: none;
}
if hexo-config('gitment.cleanly') {
a.gitment-editor-footer-tip, .gitment-container.gitment-footer-container {
hide();
}
}

View File

@ -0,0 +1,3 @@
i.fa {
font-family: FontAwesome !important;
}

View File

@ -0,0 +1,101 @@
.local-search-pop-overlay
position: fixed
width: 100%
height: 100%
top: 0
left: 0
z-index: 2080
background-color: rgba(0, 0, 0, 0.3)
.local-search-popup
display: none
position: fixed
top: 10%
left: 50%
margin-left: -350px
width: 700px
height: 80%
padding: 0
background: #fff
color: #333
z-index: 9999
border-radius: 5px
+mobile()
padding: 0
top: 0
left: 0
margin: 0
width: 100%
height: 100%
border-radius: 0
ul.search-result-list
padding: 0
margin: 0 5px
p.search-result
border-bottom: 1px dashed #ccc
padding: 5px 0
a.search-result-title
font-weight: bold
font-size: 16px
.search-keyword
border-bottom: 1px dashed #f00
font-weight: bold
color: #f00
.local-search-header
padding: 5px
height: 36px
background: #f5f5f5
border-top-left-radius: 5px
border-top-right-radius: 5px
#local-search-result
overflow: auto
position: relative
padding: 5px 25px
height: calc(100% - 55px)
.local-search-input-wrapper
display: inline-block
width: calc(100% - 90px)
height: 36px
line-height: 36px
padding: 0 5px
.local-search-input-wrapper input
padding: 8px 0
height: 20px
display: block
width: 100%
outline: none
border: none
background: transparent
vertical-align: middle
.search-icon, .popup-btn-close
display: inline-block
font-size: 18px
color: #999
height: 36px
width: 18px
padding-left: 10px
padding-right: 10px
.search-icon
float: left
.popup-btn-close
border-left: 1px solid #eee
float: right
cursor: pointer
#no-result
position: absolute
left: 50%
top: 50%
transform: translate(-50%, -50%)
color: #ccc

View File

@ -0,0 +1,4 @@
.has-jax {
overflow-x: auto;
overflow-y: hidden;
}

View File

@ -0,0 +1,27 @@
#needsharebutton-postbottom {
position: relative;
cursor: pointer;
height: 26px;
.btn {
display: initial;
padding: 1px 4px;
border: 1px solid $btn-default-border-color;
border-radius: 3px;
}
}
#needsharebutton-float {
position: fixed;
bottom: 38px;
left: -8px;
z-index: 9999;
cursor: pointer;
.btn {
//display: initial;
padding: 0 10px 0 14px;
border: 1px solid $btn-default-border-color;
border-radius: 4px;
}
}

View File

@ -0,0 +1,22 @@
.popular-posts-header {
margin-top: $post-eof-margin-bottom;
margin-bottom: 10px;
font-size: $font-size-headings-base;
border-bottom: 1px solid $gainsboro;
show();
}
ul.popular-posts {
padding: 0;
.popular-posts-item {
// list-style: none;
margin-left: 2em;
.popular-posts-title {
font-weight: normal;
font-size: $font-size-base;
margin: 0;
line-height: $line-height-base * 1.2;
}
}
}

View File

@ -0,0 +1,9 @@
@import "gitment" if hexo-config('gitment.enable');
@import "gitalk" if hexo-config('gitalk.enable');
@import "han" if hexo-config('han');
@import "localsearch";
@import "algolia-search" if hexo-config('algolia_search.enable');
@import "needsharebutton" if hexo-config('needmoreshare2.enable');
@import "related-posts" if hexo-config('related_posts.enable');
@import "copy-code" if hexo-config('codeblock.copy_button.enable');
@import "math" if hexo-config('math.enable') and hexo-config('math.engine') == 'mathjax';