parent
1520426a7f
commit
ae57649f4b
@ -1,7 +1,16 @@ |
||||
extends includes/layout.pug |
||||
include includes/_partials/information_card.pug |
||||
|
||||
block content |
||||
article#post |
||||
h1= page.title |
||||
!= page.content |
||||
#paginator!= paginator() |
||||
.markdown-container |
||||
.content |
||||
include includes/_partials/left_declaration.pug |
||||
|
||||
.article-container |
||||
h1= page.title |
||||
hr |
||||
!= page.content |
||||
|
||||
.side-information |
||||
+information_card({name: '全站总字数', value: totalcount(site)}) |
||||
//- script(src="/js/code.js") |
@ -0,0 +1,113 @@ |
||||
.article-container |
||||
word-wrap: break-word |
||||
overflow-wrap: break-word |
||||
color: #4a473e |
||||
|
||||
h1, h2, h3, h4, h5, h6 |
||||
color: black |
||||
margin-left: -0.6em |
||||
|
||||
hr |
||||
border: 1.3px solid rgba(0,0,0,0.16) |
||||
width: 108% |
||||
margin-left: -4% |
||||
|
||||
figure |
||||
margin: 0 |
||||
font-size: 16px |
||||
pre |
||||
padding: 0 10px; |
||||
padding-right: 10px |
||||
padding-left: 10px |
||||
font-family: 'Consolas', 'Courier New', Courier, monospace |
||||
td.gutter |
||||
background-color: rgb(177, 171, 143) |
||||
color: rgb(251, 244, 214) |
||||
text-align: right |
||||
user-select: none |
||||
td.code |
||||
background-color: rgb(243, 240, 227) |
||||
width: 100% |
||||
|
||||
table |
||||
display: block; |
||||
overflow: scroll; |
||||
border: none; |
||||
border-collapse: collapse |
||||
td |
||||
padding: 0 |
||||
border: none |
||||
|
||||
code |
||||
font-family: 'Consolas', 'Courier New', Courier, monospace |
||||
font-size: 16px |
||||
padding: 2px |
||||
background: rgb(209, 213, 208) |
||||
color: rgb(74, 71, 62) |
||||
border-radius: 6px |
||||
|
||||
blockquote |
||||
background-color: rgba(189, 203, 215, 0.53) |
||||
color: rgb(74, 71, 62) |
||||
margin: 0 0 16px 0; |
||||
padding: 2px 24px |
||||
justify-content: center |
||||
display: flex |
||||
flex-direction: column |
||||
border-left: 4px solid rgb(74, 71, 62) |
||||
font-size: 16px |
||||
p |
||||
margin: 16px 0 |
||||
code |
||||
background: rgba(180, 175, 154, 0.45) |
||||
|
||||
a |
||||
text-decoration: none |
||||
color: rgb(61, 70, 196) |
||||
&:hover |
||||
text-decoration: underline |
||||
|
||||
img |
||||
display: block |
||||
margin: 20px auto 20px |
||||
max-width: 100% |
||||
|
||||
p |
||||
margin: 0 |
||||
line-height: 2em |
||||
|
||||
iframe |
||||
margin: 0 0 20px |
||||
|
||||
ul |
||||
margin: 0 |
||||
|
||||
ol, ul |
||||
ol, ul |
||||
padding-left: 20px |
||||
li |
||||
margin:8px 0 |
||||
line-height: 1.5em |
||||
p |
||||
margin: 0 0 8px |
||||
line-height: 1.5em |
||||
|
||||
> :last-child |
||||
margin-bottom: 0 !important |
||||
|
||||
ol, ul |
||||
p |
||||
margin: 0 0 8px |
||||
|
||||
li |
||||
&::marker |
||||
transition: all 0.2s linear 0s |
||||
font-weight: 600 |
||||
font-size: 1.05em |
||||
|
||||
&:hover |
||||
&::marker |
||||
color: #27af05 |
||||
|
||||
ul > li |
||||
list-style-type: circle |
@ -0,0 +1,29 @@ |
||||
// 文章和页面皆为markdown渲染而来,因此使用同一套css |
||||
|
||||
.markdown-container |
||||
display: flex |
||||
flex-direction: row |
||||
justify-content: space-between |
||||
gap: 16px |
||||
.content |
||||
width: 73%; |
||||
display: flex; |
||||
flex-direction: row; |
||||
gap: 12px |
||||
.article-container |
||||
background-color: rgb(231, 225, 199) |
||||
height: fit-content |
||||
padding: 4px 64px |
||||
display: flex |
||||
flex-direction: column |
||||
gap: 16px |
||||
width: 100% |
||||
// overflow-y: scroll |
||||
overflow-x: hidden |
||||
justify-content: space-between |
||||
font-size: 18px |
||||
.side-information |
||||
width: 24% |
||||
position: sticky |
||||
top: 16px |
||||
align-self: flex-start |
@ -0,0 +1,34 @@ |
||||
.code |
||||
.comment, .quote |
||||
color:#a0a1a7; |
||||
font-style:italic |
||||
|
||||
.doctag, .formula, .keyword |
||||
color:#a626a4 |
||||
|
||||
.deletion, .name, .section, .selector-tag, .subst |
||||
color:#e45649 |
||||
|
||||
.literal |
||||
color:#0184bb |
||||
|
||||
.addition, .attribute, .meta .string, .regexp, .string |
||||
color:#50a14f |
||||
|
||||
.attr, .number, .selector-attr, .selector-class, .selector-pseudo, .template-variable, .type, .variable |
||||
color:#986801 |
||||
|
||||
.bullet, .link, .meta, .selector-id, .symbol, .title |
||||
color:#4078f2 |
||||
|
||||
.built_in, .class .title, .title.class_ |
||||
color:#c18401 |
||||
|
||||
.emphasis |
||||
font-style:italic |
||||
|
||||
.strong |
||||
font-weight:700 |
||||
|
||||
.link |
||||
text-decoration:underline |
@ -0,0 +1,185 @@ |
||||
// color |
||||
$bright-blue = #49B1F5 |
||||
$strong-cyan = #00c4b6 |
||||
$light-orange = #FF7242 |
||||
$light-red = #F47466 |
||||
$themeColorEnable = hexo-config('theme_color') && hexo-config('theme_color.enable') |
||||
$theme-color = $themeColorEnable && hexo-config('theme_color.main') ? convert(hexo-config('theme_color.main')) : $bright-blue |
||||
$theme-paginator-color = $themeColorEnable && hexo-config('theme_color.paginator') ? convert(hexo-config('theme_color.paginator')) : $strong-cyan |
||||
$theme-text-selection-color = $themeColorEnable && hexo-config('theme_color.text_selection') ? convert(hexo-config('theme_color.text_selection')) : $strong-cyan |
||||
$theme-link-color = $themeColorEnable && hexo-config('theme_color.link_color') ? convert(hexo-config('theme_color.link_color')) : $bright-blue |
||||
$theme-hr-color = $themeColorEnable && hexo-config('theme_color.hr_color') ? convert(hexo-config('theme_color.hr_color')) : $bright-blue |
||||
$code-foreground = $themeColorEnable && hexo-config('theme_color.code_foreground') ? convert(hexo-config('theme_color.code_foreground')) : $light-red |
||||
$code-background = $themeColorEnable && hexo-config('theme_color.code_background') ? convert(hexo-config('theme_color.code_background')) : rgba(27, 31, 35, .05) |
||||
$theme-toc-color = $themeColorEnable && hexo-config('theme_color.toc_color') ? convert(hexo-config('theme_color.toc_color')) : $strong-cyan |
||||
// font |
||||
$dafault-font-family = -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Lato, Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif |
||||
$dafault-code-font = consolas, Menlo, 'PingFang SC', 'Microsoft YaHei', sans-serif |
||||
$font-family = hexo-config('font.font-family') ? unquote(hexo-config('font.font-family')) : $dafault-font-family |
||||
$code-font-family = hexo-config('font.code-font-family') ? unquote(hexo-config('font.code-font-family')) : $dafault-code-font |
||||
$site-name-font = hexo-config('blog_title_font.font-family') && unquote(hexo-config('blog_title_font.font-family')) |
||||
// hr |
||||
$hrEnable = hexo-config('hr_icon') && hexo-config('hr_icon.enable') |
||||
$hr-icon = $hrEnable && hexo-config('hr_icon.icon') ? hexo-config('hr_icon.icon') : '\f0c4' |
||||
$hr-icon-top = $hrEnable && hexo-config('hr_icon.icon-top') ? convert(hexo-config('hr_icon.icon-top')) : -10px |
||||
// page beatutify |
||||
$beautifyEnable = hexo-config('beautify.enable') |
||||
$title-prefix-icon = $beautifyEnable && hexo-config('beautify.title-prefix-icon') ? hexo-config('beautify.title-prefix-icon') : '\f0c1' |
||||
$title-prefix-icon-color = $beautifyEnable && hexo-config('beautify.title-prefix-icon-color') ? convert(hexo-config('beautify.title-prefix-icon-color')) : $light-red |
||||
// Global Variables |
||||
$font-size = hexo-config('font.global-font-size') ? convert(hexo-config('font.global-font-size')) : 14px |
||||
$code-font-size = hexo-config('font.code-font-size') ? convert(hexo-config('font.code-font-size')) : var(--global-font-size) |
||||
$font-color = #1F2D3D |
||||
$text-line-height = 2 |
||||
$web-bg = hexo-config('background') && unquote(hexo-config('background')) |
||||
$index_top_img_height = hexo-config('index_top_img_height') ? convert(hexo-config('index_top_img_height')) : 100vh |
||||
$index_site_info_top = hexo-config('index_site_info_top') ? convert(hexo-config('index_site_info_top')) : 43% |
||||
// Global color & SVG |
||||
$light-blue = $theme-color |
||||
$dark-black = #000000 |
||||
$light-grey = #EEEEEE |
||||
$grey = #858585 |
||||
$dark-grey = #cacaca |
||||
$white = #FFFFFF |
||||
$whitesmoke = #f5f5f5 |
||||
$font-black = #4C4948 |
||||
$card-bg = $white |
||||
$text-highlight-color = $font-color |
||||
$text-hover = $theme-color |
||||
$text-bg-hover = $theme-color |
||||
// code |
||||
$line-height-code-block = 1.6 |
||||
$blockquote-color = #6a737d |
||||
$blockquote-padding-color = $themeColorEnable && hexo-config('theme_color.blockquote_padding_color') ? convert(hexo-config('theme_color.blockquote_padding_color')) : #49B1F5 |
||||
$blockquote-background-color = $themeColorEnable && hexo-config('theme_color.blockquote_background_color') ? alpha(convert(hexo-config('theme_color.blockquote_background_color')), .1) : alpha($blockquote-padding-color, .1) |
||||
// page |
||||
$body-bg = #fff |
||||
$a-link-color = #99a9bf |
||||
$sticky-color = $light-orange |
||||
$theme-meta-color = $themeColorEnable && hexo-config('theme_color.meta_color') ? convert(hexo-config('theme_color.meta_color')) : #858585 |
||||
// sidebar |
||||
$sidebar-background = #f6f8fa |
||||
$sidebar-width = 300px |
||||
// aside |
||||
$toc-link-color = #666261 |
||||
$toc-mobile-width = calc(100% - 80px) |
||||
$toc-mobile-maxWidth = 380px |
||||
$toc-active-color = #fff |
||||
// Button |
||||
$button-color = #fff |
||||
$button-hover-color = $themeColorEnable && hexo-config('theme_color.button_hover') ? convert(hexo-config('theme_color.button_hover')) : $light-orange |
||||
$button-bg = $theme-color |
||||
$pseudo-hover = $button-hover-color |
||||
// scrollbar |
||||
$scrollbar-color = $themeColorEnable && hexo-config('theme_color.scrollbar_color') ? convert(hexo-config('theme_color.scrollbar_color')) : $theme-color |
||||
// table |
||||
$table-thead-bg = #99a9bf |
||||
// reward |
||||
$reward-pop-up-bg = #f5f5f5 |
||||
$reward-pop-up-color = #858585 |
||||
// search |
||||
$search-bg = #f6f8fa |
||||
$search-input-color = $font-black |
||||
$search-color = $theme-color |
||||
$search-keyword-highlight = #F47466 |
||||
$search-result-title = $font-black |
||||
// comments |
||||
$comments-switch-first-text = $bright-blue |
||||
$comments-switch-second-text = $light-orange |
||||
$comments-switch-round = #fff |
||||
$comments-switch-bg = #f6f8fa |
||||
// noticeOutdate |
||||
$noticeOutdate-bg = #ffe6e6 |
||||
$noticeOutdate-color = #ff6666 |
||||
$noticeOutdate-border = #ff8080 |
||||
// gallery |
||||
$gallery-color = #fff |
||||
// tag-hide |
||||
$tag-hide-bg = $theme-color |
||||
$tag-hide-toggle-bg = #f0f0f0 |
||||
// preloader |
||||
$preloader-bg = #37474f |
||||
$preloader-word-color = #fff |
||||
// rightside |
||||
$rightside-bottom = hexo-config('rightside-bottom') ? convert(hexo-config('rightside-bottom')) : 40px |
||||
// fireworks |
||||
$fireworks-zIndex = hexo-config('fireworks.zIndex') ? hexo-config('fireworks.zIndex') : 99999 |
||||
// Tag Plugins - Note |
||||
hexo-config('note.light_bg_offset') is a 'unit' ? ($lbg = unit(hexo-config('note.light_bg_offset'), '%')) : ($lbg = 0) |
||||
$note-types = 'default' 'primary' 'info' 'success' 'warning' 'danger' |
||||
// Default |
||||
$note-default-border = #777 |
||||
$note-default-bg = lighten(spin($note-default-border, 0), 94% + $lbg) |
||||
$note-default-text = $note-default-border |
||||
$note-default-icon = '\f0a9' |
||||
$note-modern-default-border = #e1e1e1 |
||||
$note-modern-default-bg = lighten(spin($note-modern-default-border, 10), 60% + ($lbg * 4)) |
||||
$note-modern-default-text = #666 |
||||
$note-modern-default-hover = darken(spin($note-modern-default-text, -10), 32%) |
||||
// Primary |
||||
$note-primary-border = #6f42c1 |
||||
$note-primary-bg = lighten(spin($note-primary-border, 10), 92% + $lbg) |
||||
$note-primary-text = $note-primary-border |
||||
$note-primary-icon = '\f055' |
||||
$note-modern-primary-border = #e1c2ff |
||||
$note-modern-primary-bg = lighten(spin($note-modern-primary-border, 10), 40% + ($lbg * 4)) |
||||
$note-modern-primary-text = #6f42c1 |
||||
$note-modern-primary-hover = darken(spin($note-modern-primary-text, -10), 22%) |
||||
// Info |
||||
$note-info-border = #428bca |
||||
$note-info-bg = lighten(spin($note-info-border, -10), 91% + $lbg) |
||||
$note-info-text = $note-info-border |
||||
$note-info-icon = '\f05a' |
||||
$note-modern-info-border = #b3e5ef |
||||
$note-modern-info-bg = lighten(spin($note-modern-info-border, 10), 50% + ($lbg * 4)) |
||||
$note-modern-info-text = #31708f |
||||
$note-modern-info-hover = darken(spin($note-modern-info-text, -10), 32%) |
||||
// Success |
||||
$note-success-border = #5cb85c |
||||
$note-success-bg = lighten(spin($note-success-border, 10), 90% + $lbg) |
||||
$note-success-text = $note-success-border |
||||
$note-success-icon = '\f058' |
||||
$note-modern-success-border = #d0e6be |
||||
$note-modern-success-bg = lighten(spin($note-modern-success-border, 10), 40% + ($lbg * 4)) |
||||
$note-modern-success-text = #3c763d |
||||
$note-modern-success-hover = darken(spin($note-modern-success-text, -10), 27%) |
||||
// Warning |
||||
$note-warning-border = #f0ad4e |
||||
$note-warning-bg = lighten(spin($note-warning-border, 10), 88% + $lbg) |
||||
$note-warning-text = $note-warning-border |
||||
$note-warning-icon = '\f06a' |
||||
$note-modern-warning-border = #fae4cd |
||||
$note-modern-warning-bg = lighten(spin($note-modern-warning-border, 10), 43% + ($lbg * 4)) |
||||
$note-modern-warning-text = #8a6d3b |
||||
$note-modern-warning-hover = darken(spin($note-modern-warning-text, -10), 18%) |
||||
// Danger |
||||
$note-danger-border = #d9534f |
||||
$note-danger-bg = lighten(spin($note-danger-border, -10), 92% + $lbg) |
||||
$note-danger-text = $note-danger-border |
||||
$note-danger-icon = '\f056' |
||||
$note-modern-danger-border = #ebcdd2 |
||||
$note-modern-danger-bg = lighten(spin($note-modern-danger-border, 10), 35% + ($lbg * 4)) |
||||
$note-modern-danger-text = #a94442 |
||||
$note-modern-danger-hover = darken(spin($note-modern-danger-text, -10), 22%) |
||||
// Tag Plugins - Button/note |
||||
$color-types = 'blue' 'pink' 'red' 'purple' 'orange' 'green' |
||||
$btn-color = #fff |
||||
$btn-default-color = #777 |
||||
$tagsP-blue-color = #428bca |
||||
$tagsP-pink-color = #FF69B4 |
||||
$tagsP-red-color = #FF0000 |
||||
$tagsP-orange-color = #FF8C00 |
||||
$tagsP-purple-color = #6f42c1 |
||||
$tagsP-green-color = #5cb85c |
||||
// Tag Plugins - Tab |
||||
$tab-border-color = #f0f0f0 |
||||
$tab-botton-bg = #f0f0f0 |
||||
$tab-botton-color = $font-color |
||||
$tab-button-hover-bg = darken($tab-border-color, 8) |
||||
$tab-active-border-color = $theme-color |
||||
$tab-button-active-bg = $card-bg |
||||
$tab-to-top-color = #99a9bf |
||||
// Tag Plugins - timeline |
||||
$timeline-default-color = $theme-color |
||||
// archor |
||||
$archor-button-icon = hexo-config('anchor.button.icon') ? hexo-config('anchor.button.icon') : '\f0c1' |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 21 KiB |
Loading…
Reference in new issue