first commit
This commit is contained in:
63
node_modules/hexo-theme-landscape/source/css/_extend.styl
generated
vendored
Normal file
63
node_modules/hexo-theme-landscape/source/css/_extend.styl
generated
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
$block-caption
|
||||
text-decoration: none
|
||||
text-transform: uppercase
|
||||
letter-spacing: 2px
|
||||
color: color-grey
|
||||
margin-bottom: 1em
|
||||
margin-left: 5px
|
||||
line-height: 1em
|
||||
text-shadow: 0 1px #fff
|
||||
font-weight: bold
|
||||
|
||||
$block
|
||||
background: #fff
|
||||
box-shadow: 1px 2px 3px #ddd
|
||||
border: 1px solid color-border
|
||||
border-radius: 3px
|
||||
|
||||
$base-style
|
||||
h1
|
||||
font-size: 2em
|
||||
h2
|
||||
font-size: 1.5em
|
||||
h3
|
||||
font-size: 1.3em
|
||||
h4
|
||||
font-size: 1.2em
|
||||
h5
|
||||
font-size: 1em
|
||||
h6
|
||||
font-size: 1em
|
||||
color: color-grey
|
||||
hr
|
||||
border: 1px dashed color-border
|
||||
strong
|
||||
font-weight: bold
|
||||
em, cite
|
||||
font-style: italic
|
||||
sup, sub
|
||||
font-size: 0.75em
|
||||
line-height: 0
|
||||
position: relative
|
||||
vertical-align: baseline
|
||||
sup
|
||||
top: -0.5em
|
||||
sub
|
||||
bottom: -0.2em
|
||||
small
|
||||
font-size: 0.85em
|
||||
acronym, abbr
|
||||
border-bottom: 1px dotted
|
||||
ul, ol, dl
|
||||
margin: 0 20px
|
||||
line-height: line-height
|
||||
ul, ol
|
||||
ul, ol
|
||||
margin-top: 0
|
||||
margin-bottom: 0
|
||||
ul
|
||||
list-style: disc
|
||||
ol
|
||||
list-style: decimal
|
||||
dt
|
||||
font-weight: bold
|
||||
80
node_modules/hexo-theme-landscape/source/css/_partial/archive.styl
generated
vendored
Normal file
80
node_modules/hexo-theme-landscape/source/css/_partial/archive.styl
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
.archives-wrap
|
||||
margin: block-margin 0
|
||||
|
||||
.archives
|
||||
clearfix()
|
||||
|
||||
.archive-year-wrap
|
||||
margin-bottom: 1em
|
||||
|
||||
.archive-year
|
||||
@extend $block-caption
|
||||
|
||||
.archives
|
||||
column-gap: 10px
|
||||
@media mq-tablet
|
||||
column-count: 2
|
||||
@media mq-normal
|
||||
column-count: 3
|
||||
|
||||
.archive-article
|
||||
avoid-column-break()
|
||||
|
||||
.archive-article-inner
|
||||
@extend $block
|
||||
padding: 10px
|
||||
margin-bottom: 15px
|
||||
|
||||
.archive-article-title
|
||||
text-decoration: none
|
||||
font-weight: bold
|
||||
color: color-default
|
||||
transition: color 0.2s
|
||||
line-height: line-height
|
||||
&:hover
|
||||
color: color-link
|
||||
|
||||
.archive-article-footer
|
||||
margin-top: 1em
|
||||
|
||||
.archive-article-date
|
||||
color: color-grey
|
||||
text-decoration: none
|
||||
font-size: 0.85em
|
||||
line-height: 1em
|
||||
margin-bottom: 0.5em
|
||||
display: block
|
||||
|
||||
#page-nav
|
||||
clearfix()
|
||||
margin: block-margin auto
|
||||
background: #fff
|
||||
box-shadow: 1px 2px 3px #ddd
|
||||
border: 1px solid color-border
|
||||
border-radius: 3px
|
||||
text-align: center
|
||||
color: color-grey
|
||||
overflow: hidden
|
||||
a, span
|
||||
padding: 10px 20px
|
||||
line-height: 1
|
||||
height: 2ex
|
||||
a
|
||||
color: color-grey
|
||||
text-decoration: none
|
||||
&:hover
|
||||
background: color-grey
|
||||
color: #fff
|
||||
.prev
|
||||
float: left
|
||||
.next
|
||||
float: right
|
||||
.page-number
|
||||
display: inline-block
|
||||
@media mq-mobile
|
||||
display: none
|
||||
.current
|
||||
color: color-default
|
||||
font-weight: bold
|
||||
.space
|
||||
color: color-border
|
||||
310
node_modules/hexo-theme-landscape/source/css/_partial/article.styl
generated
vendored
Normal file
310
node_modules/hexo-theme-landscape/source/css/_partial/article.styl
generated
vendored
Normal file
@@ -0,0 +1,310 @@
|
||||
.article
|
||||
margin: block-margin 0
|
||||
|
||||
.article-inner
|
||||
@extend $block
|
||||
overflow: hidden
|
||||
|
||||
.article-meta
|
||||
clearfix()
|
||||
|
||||
.article-date
|
||||
@extend $block-caption
|
||||
float: left
|
||||
|
||||
.article-category
|
||||
float: left
|
||||
line-height: 1em
|
||||
color: #ccc
|
||||
text-shadow: 0 1px #fff
|
||||
margin-left: 8px
|
||||
&:before
|
||||
content: "\2022"
|
||||
|
||||
.article-category-link
|
||||
@extend $block-caption
|
||||
margin: 0 12px 1em
|
||||
|
||||
.article-header
|
||||
padding: article-padding article-padding 0
|
||||
|
||||
.article-title
|
||||
text-decoration: none
|
||||
font-size: 2em
|
||||
font-weight: bold
|
||||
color: color-default
|
||||
line-height: line-height-title
|
||||
transition: color 0.2s
|
||||
a&:hover
|
||||
color: color-link
|
||||
|
||||
.article-entry
|
||||
@extend $base-style
|
||||
clearfix()
|
||||
color: color-default
|
||||
padding: 0 article-padding
|
||||
p, table
|
||||
line-height: line-height
|
||||
margin: line-height 0
|
||||
h1, h2, h3, h4, h5, h6
|
||||
font-weight: bold
|
||||
h1, h2, h3, h4, h5, h6
|
||||
line-height: line-height-title
|
||||
margin: line-height-title 0
|
||||
a
|
||||
color: color-link
|
||||
text-decoration: none
|
||||
&:hover
|
||||
text-decoration: underline
|
||||
ul, ol, dl
|
||||
margin-top: line-height
|
||||
margin-bottom: line-height
|
||||
img, video
|
||||
max-width: 100%
|
||||
height: auto
|
||||
display: block
|
||||
margin: auto
|
||||
iframe
|
||||
border: none
|
||||
table
|
||||
width: 100%
|
||||
border-collapse: collapse
|
||||
border-spacing: 0
|
||||
th
|
||||
font-weight: bold
|
||||
border-bottom: 3px solid color-border
|
||||
padding-bottom: 0.5em
|
||||
td
|
||||
border-bottom: 1px solid color-border
|
||||
padding: 10px 0
|
||||
blockquote
|
||||
font-family: font-serif
|
||||
margin: line-height 20px
|
||||
text-align: center
|
||||
footer
|
||||
font-size: font-size
|
||||
margin: line-height 0
|
||||
font-family: font-sans
|
||||
cite
|
||||
&:before
|
||||
content: "—"
|
||||
padding: 0 0.5em
|
||||
.pullquote
|
||||
text-align: left
|
||||
width: 45%
|
||||
margin: 0
|
||||
&.left
|
||||
margin-left: 0.5em
|
||||
margin-right: 1em
|
||||
&.right
|
||||
margin-right: 0.5em
|
||||
margin-left: 1em
|
||||
.caption
|
||||
color: color-grey
|
||||
display: block
|
||||
font-size: 0.9em
|
||||
margin-top: 0.5em
|
||||
position: relative
|
||||
text-align: center
|
||||
// http://webdesignerwall.com/tutorials/css-elastic-videos
|
||||
.video-container
|
||||
position: relative
|
||||
padding-top: (9 / 16 * 100)% // 16:9 ratio
|
||||
height: 0
|
||||
overflow: hidden
|
||||
iframe, object, embed
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
margin-top: 0
|
||||
|
||||
.article-more-link a
|
||||
display: inline-block
|
||||
line-height: 1em
|
||||
padding: 6px 15px
|
||||
border-radius: 15px
|
||||
background: color-background
|
||||
color: color-grey
|
||||
text-shadow: 0 1px #fff
|
||||
text-decoration: none
|
||||
&:hover
|
||||
background: color-link
|
||||
color: #fff
|
||||
text-decoration: none
|
||||
text-shadow: 0 1px darken(color-link, 20%)
|
||||
|
||||
.article-footer
|
||||
clearfix()
|
||||
font-size: 0.85em
|
||||
line-height: line-height
|
||||
border-top: 1px solid color-border
|
||||
padding-top: line-height
|
||||
margin: 0 article-padding article-padding
|
||||
a
|
||||
color: color-grey
|
||||
text-decoration: none
|
||||
&:hover
|
||||
color: color-default
|
||||
|
||||
.article-tag-list-item
|
||||
float: left
|
||||
margin-right: 10px
|
||||
|
||||
.article-tag-list-link
|
||||
&:before
|
||||
content: "#"
|
||||
|
||||
.article-comment-link
|
||||
float: right
|
||||
&:before
|
||||
padding-right: 8px
|
||||
|
||||
.article-share-link
|
||||
cursor: pointer
|
||||
float: right
|
||||
margin-left: 20px
|
||||
&:before
|
||||
padding-right: 6px
|
||||
|
||||
#article-nav
|
||||
clearfix()
|
||||
position: relative
|
||||
@media mq-normal
|
||||
margin: block-margin 0
|
||||
&:before
|
||||
absolute-center(8px)
|
||||
content: ""
|
||||
border-radius: 50%
|
||||
background: color-border
|
||||
box-shadow: 0 1px 2px #fff
|
||||
|
||||
.article-nav-link-wrap
|
||||
text-decoration: none
|
||||
text-shadow: 0 1px #fff
|
||||
color: color-grey
|
||||
box-sizing: border-box
|
||||
margin-top: block-margin
|
||||
text-align: center
|
||||
display: block
|
||||
&:hover
|
||||
color: color-default
|
||||
@media mq-normal
|
||||
width: 50%
|
||||
margin-top: 0
|
||||
|
||||
#article-nav-newer
|
||||
@media mq-normal
|
||||
float: left
|
||||
text-align: right
|
||||
padding-right: 20px
|
||||
|
||||
#article-nav-older
|
||||
@media mq-normal
|
||||
float: right
|
||||
text-align: left
|
||||
padding-left: 20px
|
||||
|
||||
.article-nav-caption
|
||||
text-transform: uppercase
|
||||
letter-spacing: 2px
|
||||
color: color-border
|
||||
line-height: 1em
|
||||
font-weight: bold
|
||||
#article-nav-newer &
|
||||
margin-right: -2px
|
||||
|
||||
.article-nav-title
|
||||
font-size: 0.85em
|
||||
line-height: line-height
|
||||
margin-top: 0.5em
|
||||
|
||||
.article-share-box
|
||||
position: absolute
|
||||
display: none
|
||||
background: #fff
|
||||
box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.2)
|
||||
border-radius: 3px
|
||||
margin-left: -145px
|
||||
overflow: hidden
|
||||
z-index: 1
|
||||
&.on
|
||||
display: block
|
||||
|
||||
.article-share-input
|
||||
width: 100%
|
||||
background: none
|
||||
box-sizing: border-box
|
||||
font: 14px font-sans
|
||||
padding: 0 15px
|
||||
color: color-default
|
||||
outline: none
|
||||
border: 1px solid color-border
|
||||
border-radius: 3px 3px 0 0
|
||||
height: 36px
|
||||
line-height: 36px
|
||||
|
||||
.article-share-links
|
||||
clearfix()
|
||||
background: color-background
|
||||
|
||||
$article-share-link
|
||||
width: 50px
|
||||
height: 36px
|
||||
display: block
|
||||
float: left
|
||||
position: relative
|
||||
color: #999
|
||||
text-shadow: 0 1px #fff
|
||||
.fa
|
||||
font-size: 20px
|
||||
absolute-center(@font-size)
|
||||
text-align: center
|
||||
&:hover
|
||||
color: #fff
|
||||
|
||||
.article-share-twitter
|
||||
@extend $article-share-link
|
||||
&:hover
|
||||
background: color-twitter
|
||||
text-shadow: 0 1px darken(color-twitter, 20%)
|
||||
|
||||
.article-share-facebook
|
||||
@extend $article-share-link
|
||||
&:hover
|
||||
background: color-facebook
|
||||
text-shadow: 0 1px darken(color-facebook, 20%)
|
||||
|
||||
.article-share-pinterest
|
||||
@extend $article-share-link
|
||||
&:hover
|
||||
background: color-pinterest
|
||||
text-shadow: 0 1px darken(color-pinterest, 20%)
|
||||
|
||||
.article-share-linkedin
|
||||
@extend $article-share-link
|
||||
&:hover
|
||||
background: color-linkedin
|
||||
text-shadow: 0 1px darken(color-linkedin, 20%)
|
||||
|
||||
.article-gallery
|
||||
background: #000
|
||||
position: relative
|
||||
|
||||
.article-gallery-photos
|
||||
position: relative
|
||||
overflow: hidden
|
||||
|
||||
.article-gallery-img
|
||||
display: none
|
||||
max-width: 100%
|
||||
&:first-child
|
||||
display: block
|
||||
&.loaded
|
||||
position: absolute
|
||||
display: block
|
||||
img
|
||||
display: block
|
||||
max-width: 100%
|
||||
margin: 0 auto
|
||||
9
node_modules/hexo-theme-landscape/source/css/_partial/comment.styl
generated
vendored
Normal file
9
node_modules/hexo-theme-landscape/source/css/_partial/comment.styl
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
#comments
|
||||
background: #fff
|
||||
box-shadow: 1px 2px 3px #ddd
|
||||
padding: article-padding
|
||||
border: 1px solid color-border
|
||||
border-radius: 3px
|
||||
margin: block-margin 0
|
||||
a
|
||||
color: color-link
|
||||
14
node_modules/hexo-theme-landscape/source/css/_partial/footer.styl
generated
vendored
Normal file
14
node_modules/hexo-theme-landscape/source/css/_partial/footer.styl
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
#footer
|
||||
background: color-footer-background
|
||||
padding: 50px 0
|
||||
border-top: 1px solid color-border
|
||||
color: color-grey
|
||||
a
|
||||
color: color-link
|
||||
text-decoration: none
|
||||
&:hover
|
||||
text-decoration: underline
|
||||
|
||||
#footer-info
|
||||
line-height: line-height
|
||||
font-size: 0.85em
|
||||
154
node_modules/hexo-theme-landscape/source/css/_partial/header.styl
generated
vendored
Normal file
154
node_modules/hexo-theme-landscape/source/css/_partial/header.styl
generated
vendored
Normal file
@@ -0,0 +1,154 @@
|
||||
#header
|
||||
height: banner-height
|
||||
position: relative
|
||||
border-bottom: 1px solid color-border
|
||||
&:before, &:after
|
||||
content: ""
|
||||
position: absolute
|
||||
left: 0
|
||||
right: 0
|
||||
height: 40px
|
||||
&:before
|
||||
top: 0
|
||||
background: linear-gradient(rgba(0, 0, 0, 0.2), transparent)
|
||||
&:after
|
||||
bottom: 0
|
||||
background: linear-gradient(transparent, rgba(0, 0, 0, 0.2))
|
||||
|
||||
#header-outer
|
||||
height: 100%
|
||||
position: relative
|
||||
|
||||
#header-inner
|
||||
position: relative
|
||||
overflow: hidden
|
||||
|
||||
#banner
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
background: url(banner-url) center #000
|
||||
background-size: cover
|
||||
z-index: -1
|
||||
|
||||
#header-title
|
||||
text-align: center
|
||||
height: logo-size
|
||||
position: absolute
|
||||
top: 50%
|
||||
left: 0
|
||||
margin-top: logo-size * -0.5
|
||||
|
||||
$logo-text
|
||||
text-decoration: none
|
||||
color: #fff
|
||||
font-weight: 300
|
||||
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3)
|
||||
|
||||
#logo
|
||||
@extend $logo-text
|
||||
font-size: logo-size
|
||||
line-height: logo-size
|
||||
letter-spacing: 2px
|
||||
|
||||
#subtitle
|
||||
@extend $logo-text
|
||||
font-size: subtitle-size
|
||||
line-height: subtitle-size
|
||||
letter-spacing: 1px
|
||||
|
||||
#subtitle-wrap
|
||||
margin-top: subtitle-size
|
||||
|
||||
#main-nav
|
||||
float: left
|
||||
margin-left: -15px
|
||||
|
||||
$nav-link
|
||||
float: left
|
||||
color: #fff
|
||||
opacity: 0.6
|
||||
text-decoration: none
|
||||
text-shadow: 0 1px rgba(0, 0, 0, 0.2)
|
||||
transition: opacity 0.2s
|
||||
display: block
|
||||
padding: 20px 15px
|
||||
&:hover
|
||||
opacity: 1
|
||||
|
||||
.nav-icon
|
||||
@extend $nav-link
|
||||
text-align: center
|
||||
font-size: font-size
|
||||
width: font-size
|
||||
height: font-size
|
||||
padding: 20px 15px
|
||||
position: relative
|
||||
cursor: pointer
|
||||
|
||||
.main-nav-link
|
||||
@extend $nav-link
|
||||
font-weight: 300
|
||||
letter-spacing: 1px
|
||||
@media mq-mobile
|
||||
display: none
|
||||
|
||||
#main-nav-toggle
|
||||
display: none
|
||||
@media mq-mobile
|
||||
display: block
|
||||
|
||||
#sub-nav
|
||||
float: right
|
||||
margin-right: -15px
|
||||
|
||||
#search-form-wrap
|
||||
position: absolute
|
||||
top: 15px
|
||||
width: 150px
|
||||
height: 30px
|
||||
right: -150px
|
||||
opacity: 0
|
||||
transition: 0.2s ease-out
|
||||
&.on
|
||||
opacity: 1
|
||||
right: 0
|
||||
@media mq-mobile
|
||||
width: 100%
|
||||
right: -100%
|
||||
|
||||
.search-form
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
right: 0
|
||||
background: #fff
|
||||
padding: 5px 15px
|
||||
border-radius: 15px
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3)
|
||||
|
||||
.search-form-input
|
||||
border: none
|
||||
background: none
|
||||
color: color-default
|
||||
width: 100%
|
||||
font: 13px font-sans
|
||||
outline: none
|
||||
&::-webkit-search-results-decoration
|
||||
&::-webkit-search-cancel-button
|
||||
-webkit-appearance: none
|
||||
|
||||
.search-form-submit
|
||||
position: absolute
|
||||
top: 50%
|
||||
right: 10px
|
||||
margin-top: -7px
|
||||
font: 13px font-icon
|
||||
border: none
|
||||
background: none
|
||||
color: #bbb
|
||||
cursor: pointer
|
||||
&:hover, &:focus
|
||||
color: #777
|
||||
163
node_modules/hexo-theme-landscape/source/css/_partial/highlight.styl
generated
vendored
Normal file
163
node_modules/hexo-theme-landscape/source/css/_partial/highlight.styl
generated
vendored
Normal file
@@ -0,0 +1,163 @@
|
||||
// https://github.com/chriskempson/tomorrow-theme
|
||||
highlight-background = #2d2d2d
|
||||
highlight-current-line = #393939
|
||||
highlight-selection = #515151
|
||||
highlight-foreground = #cccccc
|
||||
highlight-comment = #999999
|
||||
highlight-red = #f2777a
|
||||
highlight-orange = #f99157
|
||||
highlight-yellow = #ffcc66
|
||||
highlight-green = #99cc99
|
||||
highlight-aqua = #66cccc
|
||||
highlight-blue = #6699cc
|
||||
highlight-purple = #cc99cc
|
||||
|
||||
$code-block
|
||||
background: highlight-background
|
||||
margin: 0 article-padding * -1
|
||||
padding: 15px article-padding
|
||||
border-style: solid
|
||||
border-color: color-border
|
||||
border-width: 1px 0
|
||||
overflow: auto
|
||||
color: highlight-foreground
|
||||
line-height: font-size * line-height
|
||||
|
||||
$line-numbers
|
||||
color: #666
|
||||
font-size: 0.85em
|
||||
|
||||
.article-entry
|
||||
pre, code
|
||||
font-family: font-mono
|
||||
code
|
||||
background: color-background
|
||||
text-shadow: 0 1px #fff
|
||||
padding: 0 0.3em
|
||||
pre
|
||||
@extend $code-block
|
||||
code
|
||||
background: none
|
||||
text-shadow: none
|
||||
padding: 0
|
||||
.highlight
|
||||
@extend $code-block
|
||||
pre
|
||||
border: none
|
||||
margin: 0
|
||||
padding: 0
|
||||
table
|
||||
margin: 0
|
||||
width: auto
|
||||
td
|
||||
border: none
|
||||
padding: 0
|
||||
figcaption
|
||||
clearfix()
|
||||
font-size: 0.85em
|
||||
color: highlight-comment
|
||||
line-height: 1em
|
||||
margin-bottom: 1em
|
||||
a
|
||||
float: right
|
||||
.gutter
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
pre
|
||||
@extend $line-numbers
|
||||
text-align: right
|
||||
padding-right: 20px
|
||||
.line
|
||||
height: font-size * line-height
|
||||
.line.marked
|
||||
background: highlight-selection
|
||||
.gist
|
||||
margin: 0 article-padding * -1
|
||||
border-style: solid
|
||||
border-color: color-border
|
||||
border-width: 1px 0
|
||||
background: highlight-background
|
||||
padding: 15px article-padding 15px 0
|
||||
.gist-file
|
||||
border: none
|
||||
font-family: font-mono
|
||||
margin: 0
|
||||
.gist-data
|
||||
background: none
|
||||
border: none
|
||||
.line-numbers
|
||||
@extend $line-numbers
|
||||
background: none
|
||||
border: none
|
||||
padding: 0 20px 0 0
|
||||
.line-data
|
||||
padding: 0 !important
|
||||
.highlight
|
||||
margin: 0
|
||||
padding: 0
|
||||
border: none
|
||||
.gist-meta
|
||||
background: highlight-background
|
||||
color: highlight-comment
|
||||
font: 0.85em font-sans
|
||||
text-shadow: 0 0
|
||||
padding: 0
|
||||
margin-top: 1em
|
||||
margin-left: article-padding
|
||||
a
|
||||
color: color-link
|
||||
font-weight: normal
|
||||
&:hover
|
||||
text-decoration: underline
|
||||
|
||||
pre
|
||||
.comment
|
||||
.title
|
||||
color: highlight-comment
|
||||
.variable
|
||||
.attribute
|
||||
.tag
|
||||
.regexp
|
||||
.ruby .constant
|
||||
.xml .tag .title
|
||||
.xml .pi
|
||||
.xml .doctype
|
||||
.html .doctype
|
||||
.css .id
|
||||
.css .class
|
||||
.css .pseudo
|
||||
color: highlight-red
|
||||
.number
|
||||
.preprocessor
|
||||
.built_in
|
||||
.literal
|
||||
.params
|
||||
.constant
|
||||
color: highlight-orange
|
||||
.class
|
||||
.ruby .class .title
|
||||
.css .rules .attribute
|
||||
color: highlight-green
|
||||
.string
|
||||
.value
|
||||
.inheritance
|
||||
.header
|
||||
.ruby .symbol
|
||||
.xml .cdata
|
||||
color: highlight-green
|
||||
.css .hexcolor
|
||||
color: highlight-aqua
|
||||
.function
|
||||
.python .decorator
|
||||
.python .title
|
||||
.ruby .function .title
|
||||
.ruby .title .keyword
|
||||
.perl .sub
|
||||
.javascript .title
|
||||
.coffeescript .title
|
||||
color: highlight-blue
|
||||
.keyword
|
||||
.javascript .function
|
||||
color: highlight-purple
|
||||
19
node_modules/hexo-theme-landscape/source/css/_partial/mobile.styl
generated
vendored
Normal file
19
node_modules/hexo-theme-landscape/source/css/_partial/mobile.styl
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
@media mq-mobile
|
||||
#mobile-nav
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
width: mobile-nav-width
|
||||
height: 100%
|
||||
background: color-mobile-nav-background
|
||||
border-right: 1px solid #fff
|
||||
|
||||
@media mq-mobile
|
||||
.mobile-nav-link
|
||||
display: block
|
||||
color: color-grey
|
||||
text-decoration: none
|
||||
padding: 15px 20px
|
||||
font-weight: bold
|
||||
&:hover
|
||||
color: #fff
|
||||
27
node_modules/hexo-theme-landscape/source/css/_partial/sidebar-aside.styl
generated
vendored
Normal file
27
node_modules/hexo-theme-landscape/source/css/_partial/sidebar-aside.styl
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
#sidebar
|
||||
@media mq-normal
|
||||
column(sidebar-column)
|
||||
|
||||
.widget-wrap
|
||||
margin: block-margin 0
|
||||
|
||||
.widget-title
|
||||
@extend $block-caption
|
||||
|
||||
.widget
|
||||
color: color-sidebar-text
|
||||
text-shadow: 0 1px #fff
|
||||
background: color-widget-background
|
||||
box-shadow: 0 -1px 4px color-widget-border inset
|
||||
border: 1px solid color-widget-border
|
||||
padding: 15px
|
||||
border-radius: 3px
|
||||
a
|
||||
color: color-link
|
||||
text-decoration: none
|
||||
&:hover
|
||||
text-decoration: underline
|
||||
ul, ol, dl
|
||||
ul, ol, dl
|
||||
margin-left: 15px
|
||||
list-style: disc
|
||||
27
node_modules/hexo-theme-landscape/source/css/_partial/sidebar-bottom.styl
generated
vendored
Normal file
27
node_modules/hexo-theme-landscape/source/css/_partial/sidebar-bottom.styl
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
.widget-wrap
|
||||
margin-bottom: block-margin !important
|
||||
@media mq-normal
|
||||
column(main-column)
|
||||
|
||||
.widget-title
|
||||
color: #ccc
|
||||
text-transform: uppercase
|
||||
letter-spacing: 2px
|
||||
margin-bottom: .5em
|
||||
line-height: 1em
|
||||
font-weight: bold
|
||||
|
||||
.widget
|
||||
color: color-grey
|
||||
ul, ol
|
||||
li
|
||||
display: inline-block
|
||||
zoom:1
|
||||
*display:inline
|
||||
padding-right: .75em
|
||||
/* Having problems getting balanced white space between items
|
||||
li:before
|
||||
content: " | "
|
||||
li:first-child:before
|
||||
content: none
|
||||
*/
|
||||
35
node_modules/hexo-theme-landscape/source/css/_partial/sidebar.styl
generated
vendored
Normal file
35
node_modules/hexo-theme-landscape/source/css/_partial/sidebar.styl
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
if sidebar is bottom
|
||||
@import "sidebar-bottom"
|
||||
else
|
||||
@import "sidebar-aside"
|
||||
|
||||
.widget
|
||||
@extend $base-style
|
||||
line-height: line-height
|
||||
word-wrap: break-word
|
||||
font-size: 0.9em
|
||||
ul, ol
|
||||
list-style: none
|
||||
margin: 0
|
||||
ul, ol
|
||||
margin: 0 20px
|
||||
ul
|
||||
list-style: disc
|
||||
ol
|
||||
list-style: decimal
|
||||
|
||||
.category-list-count
|
||||
.tag-list-count
|
||||
.archive-list-count
|
||||
padding-left: 5px
|
||||
color: color-grey
|
||||
font-size: 0.85em
|
||||
&:before
|
||||
content: "("
|
||||
&:after
|
||||
content: ")"
|
||||
|
||||
.tagcloud
|
||||
a
|
||||
margin-right: 5px
|
||||
display: inline-block
|
||||
38
node_modules/hexo-theme-landscape/source/css/_util/grid.styl
generated
vendored
Normal file
38
node_modules/hexo-theme-landscape/source/css/_util/grid.styl
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
/////////////////
|
||||
// Semantic.gs // for Stylus: http://learnboost.github.com/stylus/
|
||||
/////////////////
|
||||
|
||||
// Utility function — you should never need to modify this
|
||||
// _gridsystem-width = (column-width + gutter-width) * columns
|
||||
gridsystem-width(_columns = columns)
|
||||
(column-width + gutter-width) * _columns
|
||||
|
||||
// Set @total-width to 100% for a fluid layout
|
||||
// total-width = gridsystem-width(columns)
|
||||
total-width = 100%
|
||||
|
||||
//////////
|
||||
// GRID //
|
||||
//////////
|
||||
|
||||
body
|
||||
clearfix()
|
||||
width: 100%
|
||||
|
||||
row(_columns = columns)
|
||||
clearfix()
|
||||
display: block
|
||||
width: total-width * ((gutter-width + gridsystem-width(_columns)) / gridsystem-width(_columns))
|
||||
margin: 0 total-width * (((gutter-width * .5) / gridsystem-width(_columns)) * -1)
|
||||
|
||||
column(x, _columns = columns)
|
||||
display: inline
|
||||
float: left
|
||||
width: total-width * ((((gutter-width + column-width) * x) - gutter-width) / gridsystem-width(_columns))
|
||||
margin: 0 total-width * ((gutter-width * .5) / gridsystem-width(_columns))
|
||||
|
||||
push(offset = 1)
|
||||
margin-left: total-width * (((gutter-width + column-width) * offset) / gridsystem-width(columns))
|
||||
|
||||
pull(offset = 1)
|
||||
margin-right: total-width * (((gutter-width + column-width) * offset) / gridsystem-width(columns))
|
||||
31
node_modules/hexo-theme-landscape/source/css/_util/mixin.styl
generated
vendored
Normal file
31
node_modules/hexo-theme-landscape/source/css/_util/mixin.styl
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
|
||||
hide-text()
|
||||
text-indent: 100%
|
||||
white-space: nowrap
|
||||
overflow: hidden
|
||||
|
||||
// http://codepen.io/shshaw/full/gEiDt
|
||||
absolute-center(width, height = width)
|
||||
// margin: auto
|
||||
// position: absolute
|
||||
// top: 50%
|
||||
// top: 0
|
||||
// left: 0
|
||||
// bottom: 0
|
||||
// right: 0
|
||||
// width: width
|
||||
// height: height
|
||||
// overflow: auto
|
||||
width: width
|
||||
height: height
|
||||
position: absolute
|
||||
top: 50%
|
||||
left: 50%
|
||||
margin-top: width * -0.5
|
||||
margin-left: height * -0.5
|
||||
|
||||
avoid-column-break()
|
||||
vendor("column-break-inside", avoid, only: webkit)
|
||||
page-break-inside: avoid // for firefox
|
||||
overflow: hidden // fix for firefox
|
||||
break-inside: avoid-column
|
||||
61
node_modules/hexo-theme-landscape/source/css/_variables.styl
generated
vendored
Normal file
61
node_modules/hexo-theme-landscape/source/css/_variables.styl
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
// Config
|
||||
support-for-ie = false
|
||||
vendor-prefixes = webkit moz ms official
|
||||
|
||||
// Colors
|
||||
color-default = #555
|
||||
color-grey = #999
|
||||
color-border = #ddd
|
||||
color-link = #258fb8
|
||||
color-background = #eee
|
||||
color-sidebar-text = #777
|
||||
color-widget-background = #ddd
|
||||
color-widget-border = #ccc
|
||||
color-footer-background = #262a30
|
||||
color-mobile-nav-background = #191919
|
||||
color-twitter = #00aced
|
||||
color-facebook = #3b5998
|
||||
color-pinterest = #cb2027
|
||||
color-linkedin = #0077B5
|
||||
|
||||
// Fonts
|
||||
font-sans = -apple-system, BlinkMacSystemFont,
|
||||
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
|
||||
"Fira Sans", "Droid Sans", "Helvetica Neue",
|
||||
sans-serif
|
||||
font-serif = Georgia, "Times New Roman", serif
|
||||
font-mono = "Source Code Pro", Consolas, Monaco, Menlo, Consolas, monospace
|
||||
font-icon = ForkAwesome
|
||||
font-size = 14px
|
||||
line-height = 1.6em
|
||||
line-height-title = 1.1em
|
||||
|
||||
// Header
|
||||
logo-size = 40px
|
||||
subtitle-size = 16px
|
||||
banner-height = 300px
|
||||
banner-url = hexo-config("banner")
|
||||
|
||||
sidebar = hexo-config("sidebar")
|
||||
|
||||
// Layout
|
||||
block-margin = 50px
|
||||
article-padding = 20px
|
||||
mobile-nav-width = 280px
|
||||
main-column = 9
|
||||
sidebar-column = 3
|
||||
|
||||
if sidebar and sidebar isnt bottom
|
||||
_sidebar-column = sidebar-column
|
||||
else
|
||||
_sidebar-column = 0
|
||||
|
||||
// Grids
|
||||
column-width = 80px
|
||||
gutter-width = 20px
|
||||
columns = main-column + _sidebar-column
|
||||
|
||||
// Media queries
|
||||
mq-mobile = "screen and (max-width: 479px)"
|
||||
mq-tablet = "screen and (min-width: 480px) and (max-width: 767px)"
|
||||
mq-normal = "screen and (min-width: 768px)"
|
||||
BIN
node_modules/hexo-theme-landscape/source/css/images/banner.jpg
generated
vendored
Normal file
BIN
node_modules/hexo-theme-landscape/source/css/images/banner.jpg
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 219 KiB |
79
node_modules/hexo-theme-landscape/source/css/style.styl
generated
vendored
Normal file
79
node_modules/hexo-theme-landscape/source/css/style.styl
generated
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
@import "nib"
|
||||
@import "_variables"
|
||||
@import "_util/mixin"
|
||||
@import "_util/grid"
|
||||
|
||||
global-reset()
|
||||
|
||||
input, button
|
||||
margin: 0
|
||||
padding: 0
|
||||
&::-moz-focus-inner
|
||||
border: 0
|
||||
padding: 0
|
||||
|
||||
html, body, #container
|
||||
height: 100%
|
||||
|
||||
body
|
||||
background: color-background
|
||||
font: font-size font-sans
|
||||
-webkit-text-size-adjust: 100%
|
||||
|
||||
.outer
|
||||
clearfix()
|
||||
max-width: (column-width + gutter-width) * columns + gutter-width
|
||||
margin: 0 auto
|
||||
padding: 0 gutter-width
|
||||
|
||||
.inner
|
||||
column(columns)
|
||||
|
||||
.left, .alignleft
|
||||
float: left
|
||||
|
||||
.right, .alignright
|
||||
float: right
|
||||
|
||||
.clear
|
||||
clear: both
|
||||
|
||||
#container
|
||||
position: relative
|
||||
|
||||
.mobile-nav-on
|
||||
overflow: hidden
|
||||
|
||||
#wrap
|
||||
height: 100%
|
||||
width: 100%
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
transition: 0.2s ease-out
|
||||
z-index: 1
|
||||
background: color-background
|
||||
.mobile-nav-on &
|
||||
left: mobile-nav-width
|
||||
|
||||
if sidebar and sidebar isnt bottom
|
||||
#main
|
||||
@media mq-normal
|
||||
column(main-column)
|
||||
|
||||
if sidebar is left
|
||||
@media mq-normal
|
||||
#main
|
||||
float: right
|
||||
|
||||
@import "_extend"
|
||||
@import "_partial/header"
|
||||
@import "_partial/article"
|
||||
@import "_partial/comment"
|
||||
@import "_partial/archive"
|
||||
@import "_partial/footer"
|
||||
@import "_partial/highlight"
|
||||
@import "_partial/mobile"
|
||||
|
||||
if sidebar
|
||||
@import "_partial/sidebar"
|
||||
1
node_modules/hexo-theme-landscape/source/fancybox/jquery.fancybox.min.css
generated
vendored
Normal file
1
node_modules/hexo-theme-landscape/source/fancybox/jquery.fancybox.min.css
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
13
node_modules/hexo-theme-landscape/source/fancybox/jquery.fancybox.min.js
generated
vendored
Normal file
13
node_modules/hexo-theme-landscape/source/fancybox/jquery.fancybox.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
node_modules/hexo-theme-landscape/source/js/jquery-3.6.4.min.js
generated
vendored
Normal file
2
node_modules/hexo-theme-landscape/source/js/jquery-3.6.4.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
138
node_modules/hexo-theme-landscape/source/js/script.js
generated
vendored
Normal file
138
node_modules/hexo-theme-landscape/source/js/script.js
generated
vendored
Normal file
@@ -0,0 +1,138 @@
|
||||
(function($){
|
||||
// Search
|
||||
var $searchWrap = $('#search-form-wrap'),
|
||||
isSearchAnim = false,
|
||||
searchAnimDuration = 200;
|
||||
|
||||
var startSearchAnim = function(){
|
||||
isSearchAnim = true;
|
||||
};
|
||||
|
||||
var stopSearchAnim = function(callback){
|
||||
setTimeout(function(){
|
||||
isSearchAnim = false;
|
||||
callback && callback();
|
||||
}, searchAnimDuration);
|
||||
};
|
||||
|
||||
$('.nav-search-btn').on('click', function(){
|
||||
if (isSearchAnim) return;
|
||||
|
||||
startSearchAnim();
|
||||
$searchWrap.addClass('on');
|
||||
stopSearchAnim(function(){
|
||||
$('.search-form-input').focus();
|
||||
});
|
||||
});
|
||||
|
||||
$('.search-form-input').on('blur', function(){
|
||||
startSearchAnim();
|
||||
$searchWrap.removeClass('on');
|
||||
stopSearchAnim();
|
||||
});
|
||||
|
||||
// Share
|
||||
$('body').on('click', function(){
|
||||
$('.article-share-box.on').removeClass('on');
|
||||
}).on('click', '.article-share-link', function(e){
|
||||
e.stopPropagation();
|
||||
|
||||
var $this = $(this),
|
||||
url = $this.attr('data-url'),
|
||||
encodedUrl = encodeURIComponent(url),
|
||||
id = 'article-share-box-' + $this.attr('data-id'),
|
||||
title = $this.attr('data-title'),
|
||||
offset = $this.offset();
|
||||
|
||||
if ($('#' + id).length){
|
||||
var box = $('#' + id);
|
||||
|
||||
if (box.hasClass('on')){
|
||||
box.removeClass('on');
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var html = [
|
||||
'<div id="' + id + '" class="article-share-box">',
|
||||
'<input class="article-share-input" value="' + url + '">',
|
||||
'<div class="article-share-links">',
|
||||
'<a href="https://twitter.com/intent/tweet?text=' + encodeURIComponent(title) + '&url=' + encodedUrl + '" class="article-share-twitter" target="_blank" title="Twitter"><span class="fa fa-twitter"></span></a>',
|
||||
'<a href="https://www.facebook.com/sharer.php?u=' + encodedUrl + '" class="article-share-facebook" target="_blank" title="Facebook"><span class="fa fa-facebook"></span></a>',
|
||||
'<a href="http://pinterest.com/pin/create/button/?url=' + encodedUrl + '" class="article-share-pinterest" target="_blank" title="Pinterest"><span class="fa fa-pinterest"></span></a>',
|
||||
'<a href="https://www.linkedin.com/shareArticle?mini=true&url=' + encodedUrl + '" class="article-share-linkedin" target="_blank" title="LinkedIn"><span class="fa fa-linkedin"></span></a>',
|
||||
'</div>',
|
||||
'</div>'
|
||||
].join('');
|
||||
|
||||
var box = $(html);
|
||||
|
||||
$('body').append(box);
|
||||
}
|
||||
|
||||
$('.article-share-box.on').hide();
|
||||
|
||||
box.css({
|
||||
top: offset.top + 25,
|
||||
left: offset.left
|
||||
}).addClass('on');
|
||||
}).on('click', '.article-share-box', function(e){
|
||||
e.stopPropagation();
|
||||
}).on('click', '.article-share-box-input', function(){
|
||||
$(this).select();
|
||||
}).on('click', '.article-share-box-link', function(e){
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
window.open(this.href, 'article-share-box-window-' + Date.now(), 'width=500,height=450');
|
||||
});
|
||||
|
||||
// Caption
|
||||
$('.article-entry').each(function(i){
|
||||
$(this).find('img').each(function(){
|
||||
if ($(this).parent().hasClass('fancybox') || $(this).parent().is('a')) return;
|
||||
|
||||
var alt = this.alt;
|
||||
|
||||
if (alt) $(this).after('<span class="caption">' + alt + '</span>');
|
||||
|
||||
$(this).wrap('<a href="' + this.src + '" data-fancybox=\"gallery\" data-caption="' + alt + '"></a>')
|
||||
});
|
||||
|
||||
$(this).find('.fancybox').each(function(){
|
||||
$(this).attr('rel', 'article' + i);
|
||||
});
|
||||
});
|
||||
|
||||
if ($.fancybox){
|
||||
$('.fancybox').fancybox();
|
||||
}
|
||||
|
||||
// Mobile nav
|
||||
var $container = $('#container'),
|
||||
isMobileNavAnim = false,
|
||||
mobileNavAnimDuration = 200;
|
||||
|
||||
var startMobileNavAnim = function(){
|
||||
isMobileNavAnim = true;
|
||||
};
|
||||
|
||||
var stopMobileNavAnim = function(){
|
||||
setTimeout(function(){
|
||||
isMobileNavAnim = false;
|
||||
}, mobileNavAnimDuration);
|
||||
}
|
||||
|
||||
$('#main-nav-toggle').on('click', function(){
|
||||
if (isMobileNavAnim) return;
|
||||
|
||||
startMobileNavAnim();
|
||||
$container.toggleClass('mobile-nav-on');
|
||||
stopMobileNavAnim();
|
||||
});
|
||||
|
||||
$('#wrap').on('click', function(){
|
||||
if (isMobileNavAnim || !$container.hasClass('mobile-nav-on')) return;
|
||||
|
||||
$container.removeClass('mobile-nav-on');
|
||||
});
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user