Browse Source

update

master
sanjinhub 2 years ago
parent
commit
2fe5866885
  1. BIN
      .DS_Store
  2. 7
      README.md
  3. 20
      _config.yml
  4. BIN
      layout/.DS_Store
  5. 44
      layout/_partial/footer.ejs
  6. 12
      layout/_partial/head.ejs
  7. 8
      layout/_partial/nav.ejs
  8. 29
      layout/index.ejs
  9. 10
      layout/layout.ejs
  10. 14
      layout/post.ejs
  11. BIN
      scripts/.DS_Store
  12. BIN
      source/.DS_Store
  13. BIN
      source/css/.DS_Store
  14. 77
      source/css/_partial/index.styl
  15. 931
      source/css/_partial/markdown.styl
  16. 35
      source/css/_partial/post.styl
  17. 480
      source/css/style.styl
  18. BIN
      source/favicon.ico
  19. BIN
      source/img/.DS_Store
  20. BIN
      source/img/logo.png
  21. 64
      source/js/js.js
  22. BIN
      source/libs/.DS_Store
  23. BIN
      source/libs/font-awesome/.DS_Store
  24. 7
      source/libs/font-awesome/HELP-US-OUT.txt
  25. 2337
      source/libs/font-awesome/css/font-awesome.css
  26. 4
      source/libs/font-awesome/css/font-awesome.min.css
  27. BIN
      source/libs/font-awesome/fonts/FontAwesome.otf
  28. BIN
      source/libs/font-awesome/fonts/fontawesome-webfont.eot
  29. 2671
      source/libs/font-awesome/fonts/fontawesome-webfont.svg
  30. BIN
      source/libs/font-awesome/fonts/fontawesome-webfont.ttf
  31. BIN
      source/libs/font-awesome/fonts/fontawesome-webfont.woff
  32. BIN
      source/libs/font-awesome/fonts/fontawesome-webfont.woff2
  33. 34
      source/libs/font-awesome/less/animated.less
  34. 25
      source/libs/font-awesome/less/bordered-pulled.less
  35. 12
      source/libs/font-awesome/less/core.less
  36. 6
      source/libs/font-awesome/less/fixed-width.less
  37. 18
      source/libs/font-awesome/less/font-awesome.less
  38. 789
      source/libs/font-awesome/less/icons.less
  39. 13
      source/libs/font-awesome/less/larger.less
  40. 19
      source/libs/font-awesome/less/list.less
  41. 60
      source/libs/font-awesome/less/mixins.less
  42. 15
      source/libs/font-awesome/less/path.less
  43. 20
      source/libs/font-awesome/less/rotated-flipped.less
  44. 5
      source/libs/font-awesome/less/screen-reader.less
  45. 20
      source/libs/font-awesome/less/stacked.less
  46. 800
      source/libs/font-awesome/less/variables.less
  47. 34
      source/libs/font-awesome/scss/_animated.scss
  48. 25
      source/libs/font-awesome/scss/_bordered-pulled.scss
  49. 12
      source/libs/font-awesome/scss/_core.scss
  50. 6
      source/libs/font-awesome/scss/_fixed-width.scss
  51. 789
      source/libs/font-awesome/scss/_icons.scss
  52. 13
      source/libs/font-awesome/scss/_larger.scss
  53. 19
      source/libs/font-awesome/scss/_list.scss
  54. 60
      source/libs/font-awesome/scss/_mixins.scss
  55. 15
      source/libs/font-awesome/scss/_path.scss
  56. 20
      source/libs/font-awesome/scss/_rotated-flipped.scss
  57. 5
      source/libs/font-awesome/scss/_screen-reader.scss
  58. 20
      source/libs/font-awesome/scss/_stacked.scss
  59. 800
      source/libs/font-awesome/scss/_variables.scss
  60. 18
      source/libs/font-awesome/scss/font-awesome.scss
  61. BIN
      source/libs/highlight/.DS_Store
  62. 2
      source/libs/highlight/highlight.pack.js
  63. 99
      source/libs/highlight/styles/a11y-dark.css
  64. 99
      source/libs/highlight/styles/a11y-light.css
  65. 108
      source/libs/highlight/styles/agate.css
  66. 89
      source/libs/highlight/styles/an-old-hope.css
  67. 66
      source/libs/highlight/styles/androidstudio.css
  68. 87
      source/libs/highlight/styles/arduino-light.css
  69. 73
      source/libs/highlight/styles/arta.css
  70. 45
      source/libs/highlight/styles/ascetic.css
  71. 83
      source/libs/highlight/styles/atelier-cave-dark.css
  72. 85
      source/libs/highlight/styles/atelier-cave-light.css
  73. 69
      source/libs/highlight/styles/atelier-dune-dark.css
  74. 69
      source/libs/highlight/styles/atelier-dune-light.css
  75. 84
      source/libs/highlight/styles/atelier-estuary-dark.css
  76. 84
      source/libs/highlight/styles/atelier-estuary-light.css
  77. 69
      source/libs/highlight/styles/atelier-forest-dark.css
  78. 69
      source/libs/highlight/styles/atelier-forest-light.css
  79. 69
      source/libs/highlight/styles/atelier-heath-dark.css
  80. 69
      source/libs/highlight/styles/atelier-heath-light.css
  81. 69
      source/libs/highlight/styles/atelier-lakeside-dark.css
  82. 69
      source/libs/highlight/styles/atelier-lakeside-light.css
  83. 84
      source/libs/highlight/styles/atelier-plateau-dark.css
  84. 84
      source/libs/highlight/styles/atelier-plateau-light.css
  85. 84
      source/libs/highlight/styles/atelier-savanna-dark.css
  86. 84
      source/libs/highlight/styles/atelier-savanna-light.css
  87. 69
      source/libs/highlight/styles/atelier-seaside-dark.css
  88. 69
      source/libs/highlight/styles/atelier-seaside-light.css
  89. 69
      source/libs/highlight/styles/atelier-sulphurpool-dark.css
  90. 69
      source/libs/highlight/styles/atelier-sulphurpool-light.css
  91. 75
      source/libs/highlight/styles/atom-one-dark-reasonable.css
  92. 96
      source/libs/highlight/styles/atom-one-dark.css
  93. 96
      source/libs/highlight/styles/atom-one-light.css
  94. 64
      source/libs/highlight/styles/brown-paper.css
  95. BIN
      source/libs/highlight/styles/brown-papersq.png
  96. 60
      source/libs/highlight/styles/codepen-embed.css
  97. 71
      source/libs/highlight/styles/color-brewer.css
  98. 74
      source/libs/highlight/styles/darcula.css
  99. 63
      source/libs/highlight/styles/dark.css
  100. 6
      source/libs/highlight/styles/darkula.css

BIN
.DS_Store

Binary file not shown.

7
README.md

@ -1,2 +1,5 @@
# hexo-theme-geek
一个极简的 Hexo 主题
# geeklc
一款十分简洁的 Hexo 博客主题
git clone https://github.com/sanjinhub/hexo-theme-geek.git geek

20
_config.yml

@ -0,0 +1,20 @@
logo_title: GEEK 三斤
style: black
favicon: /favicon.ico
menu:
作品: /project
域名: /domain
友联: /links
关于: /about
Github: https://github.com/sanjinhub
# 做了域名限制,请改成自己的 KEY
valine:
appId: CmCti21ooOOIzFOhEyFkFvR0-gzGzoHsz
appKey: FqiyUqbg7McKN2eG0MCewupf
highlight:
enable: false

BIN
layout/.DS_Store

Binary file not shown.

44
layout/_partial/footer.ejs

@ -0,0 +1,44 @@
<div class="footer" id="footer">
<p>Copyright © 2020 <a class="flink" href="https://hexo.io">Hexo</a>-<a class="flink" href="https://github.com/sanjinhub/hexo-theme-geek">Geek</a>.
<label class="el-switch el-switch-green el-switch-sm" style="vertical-align: sub;">
<input type="checkbox" name="switch" id="update_style">
<span class="el-switch-style"></span>
</label>
<script type="text/javascript">
var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("%3Cspan id='cnzz_stat_icon_1278548644'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "v1.cnzz.com/stat.php%3Fid%3D1278548644%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));
</script>
</p>
</div>
<input type="hidden" id="web_style" value="<%= theme.style %>">
<input type="hidden" id="valine_appid" value="<%= theme.valine.appId %>">
<input type="hidden" id="valine_appKey" value="<%= theme.valine.appKey %>">
<%- js('libs/jquery.min.js') %>
<%- js('libs/highlight/highlight.pack.js') %>
<script src='//cdn.jsdelivr.net/npm/valine@1.3.10/dist/Valine.min.js'></script>
<%- js('js/js.js') %>
<style type="text/css">
.v * {
color: #698fca;
}
.v .vlist .vcard .vhead .vsys {
color: #3a3e4a;
}
.v .vlist .vcard .vh .vmeta .vat {
color: #638fd5;
}
.v .vlist .vcard .vhead .vnick {
color: #6ba1ff;
}
.v a {
color: #8696b1;
}
.v .vlist .vcard .vhead .vnick:hover {
color: #669bfc;
}
</style>

12
layout/_partial/head.ejs

@ -0,0 +1,12 @@
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>
<%= config.title %>
</title>
<%- css('libs/highlight/styles/monokai-sublime.css') %>
<%- css('libs/font-awesome/css/font-awesome.min.css') %>
<%- css('css/style.css') %>
</head>

8
layout/_partial/nav.ejs

@ -0,0 +1,8 @@
<div class="hd">
<ol class="breadcrumb">
<% for (name in theme.menu) { %>
<li><a class="ba" href="<%- url_for(theme.menu[name]) %>"><%= name %></a></li>
<% } %>
</ol>
<hr class="breadcrumbhr">
</div>

29
layout/index.ejs

@ -0,0 +1,29 @@
<div class="hd logodiv">
<%- image_tag('img/logo.png',{class: 'logopng'}) %>
<p class="logot"><span class="logo_1">&lt;</span><span class="logo_2">/</span><span class="logo_3">#</span> <%= theme.logo_title %> <span class="logo_3">#</span><span class="logo_2">/</span><span class="logo_1">&gt;</span></p>
</div>
<%- partial('_partial/nav') %>
<div class="hd">
<% var last; %>
<% page.posts.each(function (post) { %>
<% var year = post.date.year(); %>
<% if (last != year){ %>
<div class="titlex">
<p><span class="jing">#</span>
<%= year %>
</p>
</div>
<% last = year; %>
<% } %>
<a class="flink" href="<%- url_for(post.path) %>">
<div class="list">
<div class="postname">
<%= post.title %>
</div>
<div class="posttime">
<%- full_date(post.date, 'MMMM Do') %>
</div>
</div>
</a>
<% }) %>
</div>

10
layout/layout.ejs

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="zh">
<%- partial('_partial/head') %>
<body id="bodyx">
<%- body %>
<%- partial('_partial/footer') %>
</body>
</html>

14
layout/post.ejs

@ -0,0 +1,14 @@
<div class="hd posts">
<a href="/index.html"><i class="fa fa-reply replay-btn" aria-hidden="true"></i></a>
<div class="post-title">
<p>
<%= page.title %>
</p>
<hr>
</div>
<div class="post-content">
<%- page.content %>
</div>
<hr class="fhr">
<div id="vcomments"></div>
</div>

BIN
scripts/.DS_Store

Binary file not shown.

BIN
source/.DS_Store

Binary file not shown.

BIN
source/css/.DS_Store

Binary file not shown.

77
source/css/_partial/index.styl

@ -0,0 +1,77 @@
.logodiv {
text-align: center;
}
.titlex {
font-size: 20px;
font-weight: bold;
margin-top: 30px;
}
.list {
padding-left: 25px;
padding-right: 25px;
height: 30px;
cursor: pointer;
}
.postname {
float: left;
}
.posttime {
float: right;
}
.logopng {
width: 200px;
}
.breadcrumb {
padding: 8px 15px;
list-style: none;
background-color: initial;
border-radius: 0px;
text-align: center;
}
.jing {
color: #6d9ee7;
}
.logot {
font-weight: bold;
font-size: 24px;
margin-top: -10px;
margin-bottom: -20px;
}
.logot .logo_1{
color: #888888;
}
.logot .logo_2{
color: #6d9ee7;
}
.logot .logo_3{
color: #be8355;
}
.navd {
padding-top: 14px;
}
.headt {
border-bottom: 1px solid #efefef;
height: 50px;
}
.fh {
top: 24px;
position: absolute;
}
hr{
border-color: #58606b;
}

931
source/css/_partial/markdown.styl

@ -0,0 +1,931 @@
.post-content .octicon {
display: inline-block;
fill: currentColor;
vertical-align: text-bottom;
}
.post-content .anchor {
float: left;
line-height: 1;
margin-left: -20px;
padding-right: 4px;
}
.post-content .anchor:focus {
outline: none;
}
.post-content h1::before,
.post-content h2::before,
.post-content h3::before,
.post-content h4::before,
.post-content h5::before,
.post-content h6::before {
content: "#";
padding-right: 10px;
color: #6d9ee7;
}
.post-content h1 .octicon-link,
.post-content h2 .octicon-link,
.post-content h3 .octicon-link,
.post-content h4 .octicon-link,
.post-content h5 .octicon-link,
.post-content h6 .octicon-link {
color: #1b1f23;
vertical-align: middle;
visibility: hidden;
}
.post-content h1:hover .anchor,
.post-content h2:hover .anchor,
.post-content h3:hover .anchor,
.post-content h4:hover .anchor,
.post-content h5:hover .anchor,
.post-content h6:hover .anchor {
text-decoration: none;
}
.post-content h1:hover .anchor .octicon-link,
.post-content h2:hover .anchor .octicon-link,
.post-content h3:hover .anchor .octicon-link,
.post-content h4:hover .anchor .octicon-link,
.post-content h5:hover .anchor .octicon-link,
.post-content h6:hover .anchor .octicon-link {
visibility: visible;
}
.post-content {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
line-height: 1.5;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
font-size: 14px;
line-height: 1.5;
word-wrap: break-word;
letter-spacing: 1px;
}
.post-content .pl-c {
color: #6a737d;
}
.post-content .pl-c1,
.post-content .pl-s .pl-v {
color: #005cc5;
}
.post-content .pl-e,
.post-content .pl-en {
color: #6f42c1;
}
.post-content .pl-s .pl-s1,
.post-content .pl-smi {
color: #24292e;
}
.post-content .pl-ent {
color: #22863a;
}
.post-content .pl-k {
color: #d73a49;
}
.post-content .pl-pds,
.post-content .pl-s,
.post-content .pl-s .pl-pse .pl-s1,
.post-content .pl-sr,
.post-content .pl-sr .pl-cce,
.post-content .pl-sr .pl-sra,
.post-content .pl-sr .pl-sre {
color: #032f62;
}
.post-content .pl-smw,
.post-content .pl-v {
color: #e36209;
}
.post-content .pl-bu {
color: #b31d28;
}
.post-content .pl-ii {
background-color: #b31d28;
color: #fafbfc;
}
.post-content .pl-c2 {
background-color: #d73a49;
color: #fafbfc;
}
.post-content .pl-c2:before {
content: "^M";
}
.post-content .pl-sr .pl-cce {
color: #22863a;
font-weight: 700;
}
.post-content .pl-ml {
color: #735c0f;
}
.post-content .pl-mh,
.post-content .pl-mh .pl-en,
.post-content .pl-ms {
color: #005cc5;
font-weight: 700;
}
.post-content .pl-mi {
color: #24292e;
font-style: italic;
}
.post-content .pl-mb {
color: #24292e;
font-weight: 700;
}
.post-content .pl-md {
background-color: #ffeef0;
color: #b31d28;
}
.post-content .pl-mi1 {
background-color: #f0fff4;
color: #22863a;
}
.post-content .pl-mc {
background-color: #ffebda;
color: #e36209;
}
.post-content .pl-mi2 {
background-color: #005cc5;
color: #f6f8fa;
}
.post-content .pl-mdr {
color: #6f42c1;
font-weight: 700;
}
.post-content .pl-ba {
color: #586069;
}
.post-content .pl-sg {
color: #959da5;
}
.post-content .pl-corl {
color: #032f62;
text-decoration: underline;
}
.post-content details {
display: block;
}
.post-content summary {
display: list-item;
}
.post-content a {
background-color: transparent;
}
.post-content a:active,
.post-content a:hover {
outline-width: 0;
}
.post-content strong {
font-weight: inherit;
font-weight: bolder;
}
.post-content h1 {
font-size: 2em;
margin: .67em 0;
}
.post-content img {
border-style: none;
border-radius: 5px;
width: 100%;
}
.post-content code,
.post-content kbd,
.post-content pre {
font-family: monospace, monospace;
font-size: 1em;
}
.post-content hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}
.post-content input {
font: inherit;
margin: 0;
}
.post-content input {
overflow: visible;
}
.post-content [type=checkbox] {
box-sizing: border-box;
padding: 0;
}
.post-content * {
box-sizing: border-box;
}
.post-content input {
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
.post-content a {
color: #0366d6;
text-decoration: none;
}
.post-content a:hover {
text-decoration: underline;
}
.post-content strong {
font-weight: 600;
}
.post-content hr {
background: transparent;
border: 0;
border-bottom: 1px solid #dfe2e5;
height: 0;
margin: 15px 0;
overflow: hidden;
}
.post-content hr:before {
content: "";
display: table;
}
.post-content hr:after {
clear: both;
content: "";
display: table;
}
.post-content table {
border-collapse: collapse;
border-spacing: 0;
}
.post-content td,
.post-content th {
padding: 0;
}
.post-content details summary {
cursor: pointer;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
margin-bottom: 0;
margin-top: 0;
}
.post-content h1 {
font-size: 32px;
}
.post-content h1,
.post-content h2 {
font-weight: 600;
}
.post-content h2 {
font-size: 24px;
}
.post-content h3 {
font-size: 20px;
}
.post-content h3,
.post-content h4 {
font-weight: 600;
}
.post-content h4 {
font-size: 16px;
}
.post-content h5 {
font-size: 14px;
}
.post-content h5,
.post-content h6 {
font-weight: 600;
}
.post-content h6 {
font-size: 12px;
}
.post-content p {
margin-bottom: 10px;
margin-top: 0;
}
.post-content blockquote {
margin: 0;
}
.post-content ol,
.post-content ul {
margin-bottom: 0;
margin-top: 0;
padding-left: 0;
}
.post-content ol ol,
.post-content ul ol {
list-style-type: lower-roman;
}
.post-content ol ol ol,
.post-content ol ul ol,
.post-content ul ol ol,
.post-content ul ul ol {
list-style-type: lower-alpha;
}
.post-content dd {
margin-left: 0;
}
.post-content code,
.post-content pre {
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
font-size: 12px;
}
.post-content pre {
margin-bottom: 0;
margin-top: 0;
}
.post-content input::-webkit-inner-spin-button,
.post-content input::-webkit-outer-spin-button {
-webkit-appearance: none;
appearance: none;
margin: 0;
}
.post-content .border {
border: 1px solid #e1e4e8 !important;
}
.post-content .border-0 {
border: 0 !important;
}
.post-content .border-bottom {
border-bottom: 1px solid #e1e4e8 !important;
}
.post-content .rounded-1 {
border-radius: 3px !important;
}
.post-content .bg-white {
background-color: #fff !important;
}
.post-content .bg-gray-light {
background-color: #fafbfc !important;
}
.post-content .text-gray-light {
color: #6a737d !important;
}
.post-content .mb-0 {
margin-bottom: 0 !important;
}
.post-content .my-2 {
margin-bottom: 8px !important;
margin-top: 8px !important;
}
.post-content .pl-0 {
padding-left: 0 !important;
}
.post-content .py-0 {
padding-bottom: 0 !important;
padding-top: 0 !important;
}
.post-content .pl-1 {
padding-left: 4px !important;
}
.post-content .pl-2 {
padding-left: 8px !important;
}
.post-content .py-2 {
padding-bottom: 8px !important;
padding-top: 8px !important;
}
.post-content .pl-3,
.post-content .px-3 {
padding-left: 16px !important;
}
.post-content .px-3 {
padding-right: 16px !important;
}
.post-content .pl-4 {
padding-left: 24px !important;
}
.post-content .pl-5 {
padding-left: 32px !important;
}
.post-content .pl-6 {
padding-left: 40px !important;
}
.post-content .f6 {
font-size: 12px !important;
}
.post-content .lh-condensed {
line-height: 1.25 !important;
}
.post-content .text-bold {
font-weight: 600 !important;
}
.post-content:before {
content: "";
display: table;
}
.post-content:after {
clear: both;
content: "";
display: table;
}
.post-content>:first-child {
margin-top: 0 !important;
}
.post-content>:last-child {
margin-bottom: 0 !important;
}
.post-content a:not([href]) {
color: inherit;
text-decoration: none;
}
.post-content blockquote,
.post-content dl,
.post-content ol,
.post-content p,
.post-content pre,
.post-content table,
.post-content ul {
margin-bottom: 16px;
margin-top: 0;
}
.post-content hr {
background-color: #6a7380;
border: 0;
height: 1px;
margin: 24px 0;
padding: 0;
}
.post-content blockquote {
border-left: 0.25em solid #798ba9;
color: #798ba9;
padding: 0 1em;
margin-left: 13px;
}
.post-content blockquote>:first-child {
margin-top: 0;
}
.post-content blockquote>:last-child {
margin-bottom: 0;
}
.post-content kbd {
background-color: #fafbfc;
border: 1px solid #c6cbd1;
border-bottom-color: #959da5;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #959da5;
color: #444d56;
display: inline-block;
font-size: 11px;
line-height: 10px;
padding: 3px 5px;
vertical-align: middle;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
font-weight: 600;
line-height: 1.25;
margin-bottom: 16px;
margin-top: 24px;
}
.post-content h1 {
font-size: 2em;
}
.post-content h1,
.post-content h2 {
padding-bottom: .3em;
}
.post-content h2 {
font-size: 1.5em;
}
.post-content h3 {
font-size: 1.25em;
}
.post-content h4 {
font-size: 1em;
}
.post-content h5 {
font-size: .875em;
}
.post-content h6 {
color: #6a737d;
font-size: .85em;
}
.post-content ol,
.post-content ul {
padding-left: 2em;
}
.post-content ol ol,
.post-content ol ul,
.post-content ul ol,
.post-content ul ul {
margin-bottom: 0;
margin-top: 0;
}
.post-content li {
word-wrap: break-all;
}
.post-content li>p {
margin-top: 16px;
}
.post-content li+li {
margin-top: .25em;
}
.post-content dl {
padding: 0;
}
.post-content dl dt {
font-size: 1em;
font-style: italic;
font-weight: 600;
margin-top: 16px;
padding: 0;
}
.post-content dl dd {
margin-bottom: 16px;
padding: 0 16px;
}
.post-content table {
display: block;
overflow: auto;
width: 100%;
}
.post-content table th {
font-weight: 600;
}
.post-content table td,
.post-content table th {
border: 1px solid #6b6b6b;
padding: 6px 13px;
}
.post-content table tr {
border-top: 1px solid #c6cbd1;
}
.post-content table tr:nth-child(2n) {
}
.post-content img {
background-color: #fff;
box-sizing: content-box;
max-width: 100%;
}
.post-content img[align=right] {
padding-left: 20px;
}
.post-content img[align=left] {
padding-right: 20px;
}
.post-content code {
background-color: rgb(40, 85, 156);
border-radius: 3px;
font-size: 85%;
margin: 0;
padding: 0.2em 0.4em;
color: #fff;
vertical-align: text-top;
}
.post-content pre {
word-wrap: normal;
}
.post-content .commit-tease-sha {
color: #444d56;
display: inline-block;
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
font-size: 90%;
}
.post-content .blob-wrapper {
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
overflow-x: auto;
overflow-y: hidden;
}
.post-content .blob-wrapper-embedded {
max-height: 240px;
overflow-y: auto;
}
.post-content .blob-num {
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
color: rgba(27, 31, 35, .3);
cursor: pointer;
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
font-size: 12px;
line-height: 20px;
min-width: 50px;
padding-left: 10px;
padding-right: 10px;
text-align: right;
user-select: none;
vertical-align: top;
white-space: nowrap;
width: 1%;
}
.post-content .blob-num:hover {
color: rgba(27, 31, 35, .6);
}
.post-content .blob-num:before {
content: attr(data-line-number);
}
.post-content .blob-code {
line-height: 20px;
padding-left: 10px;
padding-right: 10px;
position: relative;
vertical-align: top;
}
.post-content .blob-code-inner {
color: #24292e;
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
font-size: 12px;
overflow: visible;
white-space: pre;
word-wrap: normal;
}
.post-content .pl-token.active,
.post-content .pl-token:hover {
background: #ffea7f;
cursor: pointer;
}
.post-content kbd {
background-color: #fafbfc;
border: 1px solid #d1d5da;
border-bottom-color: #c6cbd1;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #c6cbd1;
color: #444d56;
display: inline-block;
font: 11px SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
line-height: 10px;
padding: 3px 5px;
vertical-align: middle;
}
.post-content :checked+.radio-label {
border-color: #0366d6;
position: relative;
z-index: 1;
}
.post-content .tab-size[data-tab-size="1"] {
-moz-tab-size: 1;
tab-size: 1;
}
.post-content .tab-size[data-tab-size="2"] {
-moz-tab-size: 2;
tab-size: 2;
}
.post-content .tab-size[data-tab-size="3"] {
-moz-tab-size: 3;
tab-size: 3;
}
.post-content .tab-size[data-tab-size="4"] {
-moz-tab-size: 4;
tab-size: 4;
}
.post-content .tab-size[data-tab-size="5"] {
-moz-tab-size: 5;
tab-size: 5;
}
.post-content .tab-size[data-tab-size="6"] {
-moz-tab-size: 6;
tab-size: 6;
}
.post-content .tab-size[data-tab-size="7"] {
-moz-tab-size: 7;
tab-size: 7;
}
.post-content .tab-size[data-tab-size="8"] {
-moz-tab-size: 8;
tab-size: 8;
}
.post-content .tab-size[data-tab-size="9"] {
-moz-tab-size: 9;
tab-size: 9;
}
.post-content .tab-size[data-tab-size="10"] {
-moz-tab-size: 10;
tab-size: 10;
}
.post-content .tab-size[data-tab-size="11"] {
-moz-tab-size: 11;
tab-size: 11;
}
.post-content .tab-size[data-tab-size="12"] {
-moz-tab-size: 12;
tab-size: 12;
}
.post-content .task-list-item {
list-style-type: none;
}
.post-content .task-list-item+.task-list-item {
margin-top: 3px;
}
.post-content .task-list-item input {
margin: 0 .2em .25em -1.6em;
vertical-align: middle;
}
.post-content hr {
border-bottom-color: #eee;
}
.post-content .pl-0 {
padding-left: 0 !important;
}
.post-content .pl-1 {
padding-left: 4px !important;
}
.post-content .pl-2 {
padding-left: 8px !important;
}
.post-content .pl-3 {
padding-left: 16px !important;
}
.post-content .pl-4 {
padding-left: 24px !important;
}
.post-content .pl-5 {
padding-left: 32px !important;
}
.post-content .pl-6 {
padding-left: 40px !important;
}
.post-content .pl-7 {
padding-left: 48px !important;
}
.post-content .pl-8 {
padding-left: 64px !important;
}
.post-content .pl-9 {
padding-left: 80px !important;
}
.post-content .pl-10 {
padding-left: 96px !important;
}
.post-content .pl-11 {
padding-left: 112px !important;
}
.post-content .pl-12 {
padding-left: 128px !important;
}
.highlight{
width: 100%;
margin-left: 0px;
}

35
source/css/_partial/post.styl

@ -0,0 +1,35 @@
.posts
.replay-btn
background-color: #4b5e7b;
width: 40px;
color: #fff;
height: 40px;
line-height: 40px;
text-align: center;
border-radius: 100%;
position: absolute;
.post-title
text-align: center;
font-size: 24px;
line-height: 40px;
margin-bottom: 10px;
.post-content
a
color: #699be9;
.fhr
margin-top: 20px;
.highlight
.gutter
.hljs
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
.highlight
.code
.hljs
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;

480
source/css/style.styl

@ -0,0 +1,480 @@
body {
background-color: #3a3e4a;
color: #d2d2d2;
font-weight: 400;
font-size: 14px;
font-family: "Menlo", "Meslo LG", monospace;
line-height: 1.725;
text-rendering: geometricPrecision;
}
a {
color: #d2d2d2;
text-decoration: none;
}
a:focus,
a:hover {
color: #699be9;
text-decoration: underline;
}
.footer {
text-align: center;
margin-top: 30px;
color: #ccc;
}
.clear {
clear: both;
}
.navdiv {
width: 100%;
}
.hd {
width: 650px;
height: 100%;
margin: auto;
}
@import "_partial/index"
@import "_partial/post"
@import "_partial/markdown"
.highlight table td, .highlight table th, .highlight table tr {
border: 0px;
padding: 0px;
}
.highlight .code {
width: 100%;
}
.bg_while {
background-color: #ffffff;
color: #51525d;
}
.el-radio,
.el-checkbox {
position: relative;
font-size: 100%;
}
label.el-radio,
label.el-checkbox {
display: block;
cursor: pointer;
}
.el-radio>input[type="radio"],
.el-checkbox>input[type="checkbox"] {
display: none;
}
.el-radio>input[type="radio"][disabled],
.el-checkbox>input[type="checkbox"][disabled] {
cursor: not-allowed;
}
.el-radio>input[type="radio"]+.el-radio-style,
.el-checkbox>input[type="checkbox"]+.el-checkbox-style {
position: relative;
display: inline-block;
width: 1.4em;
height: 1.4em;
vertical-align: middle;
cursor: pointer;
}
.el-radio>input[type="radio"]+.el-radio-style:hover:before,
.el-checkbox>input[type="checkbox"]+.el-checkbox-style:hover:before {
border-color: #20a0ff;
}
.el-radio>input[type="radio"]+.el-radio-style:before,
.el-checkbox>input[type="checkbox"]+.el-checkbox-style:before {
position: absolute;
top: 0;
left: 0;
display: inline-block;
width: 1.4em;
height: 1.4em;
content: '';
border: 1px solid #C0CCDA;
}
.el-radio>input[type="radio"]+.el-radio-style:after,
.el-checkbox>input[type="checkbox"]+.el-checkbox-style:after {
position: absolute;
display: none;
content: '';
}
.el-radio>input[type="radio"][disabled]+.el-radio-style,
.el-checkbox>input[type="checkbox"][disabled]+.el-checkbox-style {
cursor: not-allowed;
color: #D3DCE6;
}
.el-radio>input[type="radio"][disabled]+.el-radio-style:hover,
.el-radio>input[type="radio"][disabled]+.el-radio-style:before,
.el-radio>input[type="radio"][disabled]+.el-radio-style:after,
.el-checkbox>input[type="checkbox"][disabled]+.el-checkbox-style:hover,
.el-checkbox>input[type="checkbox"][disabled]+.el-checkbox-style:before,
.el-checkbox>input[type="checkbox"][disabled]+.el-checkbox-style:after {
cursor: not-allowed;
}
.el-radio>input[type="radio"][disabled]+.el-radio-style:hover:before,
.el-checkbox>input[type="checkbox"][disabled]+.el-checkbox-style:hover:before {
border: 1px solid #D3DCE6;
animation-name: none;
}
.el-radio>input[type="radio"][disabled]+.el-radio-style:before,
.el-checkbox>input[type="checkbox"][disabled]+.el-checkbox-style:before {
border-color: #D3DCE6;
}
.el-radio>input[type="radio"]:checked+.el-radio-style:before,
.el-checkbox>input[type="checkbox"]:checked+.el-checkbox-style:before {
animation-name: none;
}
.el-radio>input[type="radio"]:checked+.el-radio-style:after,
.el-checkbox>input[type="checkbox"]:checked+.el-checkbox-style:after {
display: block;
}
.el-radio>input[type="radio"]+.el-radio-style:before {
border-radius: 50%;
}
.el-radio>input[type="radio"]+.el-radio-style:after {
top: 0.4em;
left: 0.4em;
width: 0.6em;
height: 0.6em;
border-radius: 50%;
background: #20a0ff;
}
.el-radio>input[type="radio"]:checked+.el-radio-style:before {
border: 1px solid #20a0ff;
}
.el-radio>input[type="radio"]:checked[disabled]+.el-radio-style:before {
border: 1px solid #b0d7f5;
}
.el-radio>input[type="radio"]:checked[disabled]+.el-radio-style:after {
background: #b0d7f5;
}
.el-checkbox>input[type="checkbox"]+.el-checkbox-style:before {
border-radius: 3px;
}
.el-checkbox>input[type="checkbox"]+.el-checkbox-style:after {
top: 0.15em;
left: 0.5em;
box-sizing: border-box;
width: 0.4em;
height: 0.85em;
transform: rotate(45deg);
border-right: 2px solid #fff;
border-bottom: 2px solid #fff;
}
.el-checkbox>input[type="checkbox"]:checked+.el-checkbox-style:before {
border: #20a0ff;
background: #20a0ff;
}
.el-checkbox>input[type="checkbox"]:checked[disabled]+.el-checkbox-style:before {
border: #b0d7f5;
background: #b0d7f5;
}
/*blue theme*/
.el-radio.el-radio-blue>input[type="radio"]+label:hover:before,
.el-checkbox.el-checkbox-blue>input[type="checkbox"]+label:hover:before,
.el-radio.el-radio-blue>input[type="radio"]:checked+label:before,
.el-checkbox.el-checkbox-blue>input[type="checkbox"]:checked+label:before {
border-color: #20a0ff;
}
.el-checkbox.el-checkbox-blue>input[type="checkbox"]:checked+label:before,
.el-radio.el-radio-blue>input[type="radio"]+label:after {
background: #20a0ff;
}
.el-radio.el-radio-blue>input[type="radio"][disabled]+label:hover:before,
.el-checkbox.el-checkbox-blue>input[type="checkbox"][disabled]+label:hover:before {
border-color: #D3DCE6;
}
.el-checkbox.el-checkbox-blue>input[type="checkbox"]:checked[disabled]+label:before,
.el-radio.el-radio-blue>input[type="radio"]:checked[disabled]+label:before {
border-color: #b0d7f5;
}
.el-checkbox.el-checkbox-blue>input[type="checkbox"][disabled]:checked+label:before,
.el-radio.el-radio-blue>input[type="radio"]:checked[disabled]+label:after {
background: #b0d7f5;
}
/*green theme*/
.el-radio.el-radio-green>input[type="radio"]+label:hover:before,
.el-checkbox.el-checkbox-green>input[type="checkbox"]+label:hover:before,
.el-radio.el-radio-green>input[type="radio"]:checked+label:before,
.el-checkbox.el-checkbox-green>input[type="checkbox"]:checked+label:before {
border-color: #13ce66;
}
.el-checkbox.el-checkbox-green>input[type="checkbox"]:checked+label:before,
.el-radio.el-radio-green>input[type="radio"]+label:after {
background: #13ce66;
}
.el-radio.el-radio-green>input[type="radio"][disabled]+label:hover:before,
.el-checkbox.el-checkbox-green>input[type="checkbox"][disabled]+label:hover:before {
border-color: #D3DCE6;
}
.el-checkbox.el-checkbox-green>input[type="checkbox"]:checked[disabled]+label:before,
.el-radio.el-radio-green>input[type="radio"]:checked[disabled]+label:before {
border-color: #a1efc4;
}
.el-checkbox.el-checkbox-green>input[type="checkbox"][disabled]:checked+label:before,
.el-radio.el-radio-green>input[type="radio"]:checked[disabled]+label:after {
background: #a1efc4;
}
/*red theme*/
.el-radio.el-radio-red>input[type="radio"]+label:hover:before,
.el-checkbox.el-checkbox-red>input[type="checkbox"]+label:hover:before,
.el-radio.el-radio-red>input[type="radio"]:checked+label:before,
.el-checkbox.el-checkbox-red>input[type="checkbox"]:checked+label:before {
border-color: #ff4949;
}
.el-checkbox.el-checkbox-red>input[type="checkbox"]:checked+label:before,
.<