├── layout ├── page.ejs ├── post.ejs ├── _partial │ ├── pagination.ejs │ ├── search.ejs │ ├── post │ │ ├── gallery.ejs │ │ ├── title.ejs │ │ ├── comment.ejs │ │ └── meta.ejs │ ├── footer.ejs │ ├── article.ejs │ ├── navigator.ejs │ ├── after_footer.ejs │ ├── archive.ejs │ └── head.ejs ├── archive.ejs ├── index.ejs └── layout.ejs ├── screenShots ├── ver0.9-index.jpg ├── ver0.9-tags.jpg ├── ver1.0-index.jpg ├── ver1.0-tags.jpg ├── ver0.9-article.jpg ├── ver0.9-dropdown.jpg ├── ver1.0-article.jpg └── ver1.0-dropdown.jpg ├── languages ├── zh-CN.yml └── en.yml ├── source ├── css │ ├── .sass-cache │ │ └── ea33da24c47acde61e70d637ab9c1840ecb6801e │ │ │ ├── code.scssc │ │ │ ├── footer.scssc │ │ │ ├── main.scssc │ │ │ ├── pager.scssc │ │ │ ├── posts.scssc │ │ │ ├── search.scssc │ │ │ ├── animation.scssc │ │ │ └── navigator.scssc │ ├── posts.scss │ ├── footer.scss │ ├── animation.scss │ ├── pager.scss │ ├── search.scss │ ├── code.scss │ ├── navigator.scss │ ├── main.scss │ ├── m.min.css.map │ └── m.min.css └── js │ └── search.js ├── _config.yml └── README.md /layout/page.ejs: -------------------------------------------------------------------------------- 1 | <%- partial('_partial/article', {item: page, index: false}) %> -------------------------------------------------------------------------------- /layout/post.ejs: -------------------------------------------------------------------------------- 1 | <%- partial('_partial/article', {item: page, index: false}) %> -------------------------------------------------------------------------------- /layout/_partial/pagination.ejs: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /screenShots/ver0.9-index.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/screenShots/ver0.9-index.jpg -------------------------------------------------------------------------------- /screenShots/ver0.9-tags.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/screenShots/ver0.9-tags.jpg -------------------------------------------------------------------------------- /screenShots/ver1.0-index.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/screenShots/ver1.0-index.jpg -------------------------------------------------------------------------------- /screenShots/ver1.0-tags.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/screenShots/ver1.0-tags.jpg -------------------------------------------------------------------------------- /screenShots/ver0.9-article.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/screenShots/ver0.9-article.jpg -------------------------------------------------------------------------------- /screenShots/ver0.9-dropdown.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/screenShots/ver0.9-dropdown.jpg -------------------------------------------------------------------------------- /screenShots/ver1.0-article.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/screenShots/ver1.0-article.jpg -------------------------------------------------------------------------------- /screenShots/ver1.0-dropdown.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/screenShots/ver1.0-dropdown.jpg -------------------------------------------------------------------------------- /layout/archive.ejs: -------------------------------------------------------------------------------- 1 | 2 | <%- partial('_partial/archive', {pagination: config.archive}) %> 3 | -------------------------------------------------------------------------------- /languages/zh-CN.yml: -------------------------------------------------------------------------------- 1 | prev: 上一页 2 | next: 下一页 3 | archive_title: 归档 4 | page_counter: 该分类共 %d 篇文章 5 | read_more: 更多 6 | page_read: 页阅读量 7 | site_read: 站访问量 8 | site_visitor: 站访客数 -------------------------------------------------------------------------------- /layout/_partial/search.ejs: -------------------------------------------------------------------------------- 1 | 4 |
-------------------------------------------------------------------------------- /source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/code.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/code.scssc -------------------------------------------------------------------------------- /source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/footer.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/footer.scssc -------------------------------------------------------------------------------- /source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/main.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/main.scssc -------------------------------------------------------------------------------- /source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/pager.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/pager.scssc -------------------------------------------------------------------------------- /source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/posts.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/posts.scssc -------------------------------------------------------------------------------- /source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/search.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/search.scssc -------------------------------------------------------------------------------- /languages/en.yml: -------------------------------------------------------------------------------- 1 | prev: PREV 2 | next: NEXT 3 | archive_title: archive 4 | page_counter: There are %d articles in total 5 | read_more: more 6 | page_read: page PV 7 | site_read: site PV 8 | site_visitor: site UV 9 | -------------------------------------------------------------------------------- /source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/animation.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/animation.scssc -------------------------------------------------------------------------------- /source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/navigator.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lchiffon/hexo-theme-pln/master/source/css/.sass-cache/ea33da24c47acde61e70d637ab9c1840ecb6801e/navigator.scssc -------------------------------------------------------------------------------- /layout/index.ejs: -------------------------------------------------------------------------------- 1 | 2 | 7 | <%- partial('_partial/pagination') %> 8 | -------------------------------------------------------------------------------- /layout/_partial/post/gallery.ejs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | menu: 2 | 主页: / 3 | 归档: /archives 4 | 5 | logo: XXX 6 | 7 | more: 8 | 友情链接: /links.html 9 | Github: https://github.com/XXX/ 10 | 微博: http://weibo.com/XXX 11 | 知乎: https://www.zhihu.com/people/XXX 12 | rss: /rss2.xml 13 | 关于我: / 14 | 15 | about: 16 | title: Theme Pln 17 | link: https://github.com/gaoryrt/hexo-theme-pln 18 | 19 | disqus_shortname: 20 | 21 | excerpt_num: 120 22 | 23 | footer_info: © XXX 2015-2016 -------------------------------------------------------------------------------- /layout/_partial/footer.ejs: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 | 6 | 7 | 8 | <%- theme.footer_info %> 9 |
10 |
11 | 12 | <%- theme.about.title %> 13 | 14 |
15 |
16 |
17 |
18 | -------------------------------------------------------------------------------- /layout/_partial/post/title.ejs: -------------------------------------------------------------------------------- 1 | <% if (item.link){ %> 2 |

3 | 4 | <%= item.title %> 5 | 6 |

7 | <% } else { %> 8 | <% if (index){ %> 9 |

10 | 11 | <%= item.title %> 12 | 13 |

14 | <% } else { %> 15 |

16 | <%= item.title %> 17 |

18 | <% } %> 19 | <% } %> 20 | -------------------------------------------------------------------------------- /layout/_partial/post/comment.ejs: -------------------------------------------------------------------------------- 1 | <% if (!index && theme.disqus_shortname){ %> 2 |
3 | 19 | <% } %> 20 | -------------------------------------------------------------------------------- /source/css/posts.scss: -------------------------------------------------------------------------------- 1 | $a: #555; 2 | 3 | .post-item { 4 | padding: 10px 0; 5 | } 6 | 7 | .index-title { 8 | font-size: 34px; 9 | line-height: 32px; 10 | width: 65%; 11 | } 12 | 13 | .excerpt { 14 | font-size: 18px; 15 | line-height: 1.95em; 16 | padding: 10px 0; 17 | letter-spacing: .6px; 18 | color: $a; 19 | width: 88%; 20 | } 21 | 22 | .index-meta { 23 | padding-bottom: 30px; 24 | } 25 | 26 | @media screen and (max-width:782px) { 27 | .index-title { 28 | width: 80%; 29 | } 30 | .excerpt { 31 | font-size: 16px; 32 | line-height: 1.9em; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /layout/layout.ejs: -------------------------------------------------------------------------------- 1 | <%- partial('_partial/head') %> 2 | 3 | 4 |
5 |
6 |
7 | 8 |
9 |
10 |  <%- config.subtitle%> 11 |
12 |
13 |
14 | <%- body %> 15 |
16 |
17 | 18 | <%- partial('_partial/after_footer') %> 19 | 20 | 21 | -------------------------------------------------------------------------------- /source/css/footer.scss: -------------------------------------------------------------------------------- 1 | @mixin tran($dg: 270deg) { 2 | -webkit-transform: rotate($dg); 3 | -moz-transform: rotate($dg); 4 | -o-transform: rotate($dg); 5 | } 6 | 7 | .right-foot { 8 | font-family: 'Pacifico', cursive; 9 | position: fixed; 10 | z-index: 0; 11 | bottom: 420px; 12 | left: 50%; 13 | @include tran; 14 | writing-mode: lr-tb; 15 | } 16 | 17 | .firstrow, 18 | .secondrow { 19 | display: inline-block; 20 | } 21 | 22 | @media screen and (max-width:782px) { 23 | .right-foot { 24 | font-size: 26px !important; 25 | line-height: 35px; 26 | position: relative; 27 | bottom: 0; 28 | left: 0; 29 | margin-bottom: 30px; 30 | @include tran(0); 31 | text-align: center; 32 | } 33 | i.fa-arrow-right { 34 | @include tran; 35 | } 36 | .firstrow, 37 | .secondrow { 38 | display: block; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /source/css/animation.scss: -------------------------------------------------------------------------------- 1 | @mixin transformY($px: 0) { 2 | -webkit-transform: translateY($px); 3 | -moz-transform: translateY($px); 4 | -ms-transform: translateY($px); 5 | -o-transform: translateY($px); 6 | transform: translateY($px); 7 | } 8 | 9 | .dropdown-toggle, 10 | .dropdown-menu, 11 | .open, 12 | a, 13 | a:hover, 14 | a:focus { 15 | transition: .2s ease-in-out; 16 | } 17 | 18 | .index-title, 19 | .excerpt, 20 | .index-meta, 21 | .dropdown-content { 22 | -webkit-transition: all .3s ease-out; 23 | -moz-transition: all .3s ease-out; 24 | -ms-transition: all .3s ease-out; 25 | -o-transition: all .3s ease-out; 26 | transition: all .3s ease-out; 27 | } 28 | 29 | .index-title, 30 | .index-meta, 31 | .dropdown-content, 32 | .excerpt { 33 | @include transformY(1px); 34 | opacity: 0; 35 | } 36 | 37 | .excerpt.animation, 38 | .index-title.animation, 39 | .index-meta.animation, 40 | .dropdown-content.open { 41 | visibility: visible; 42 | @include transformY; 43 | opacity: 1; 44 | } -------------------------------------------------------------------------------- /layout/_partial/post/meta.ejs: -------------------------------------------------------------------------------- 1 | <% if (!index) {%> 2 | 6 | <%}else{%> 7 | 11 | <%}%> 12 | 13 | <% if (item.categories && item.categories.length){ %> 14 | <% var cats = []; 15 | item.categories.forEach(function(cat){ 16 | cats.push('' + cat.name + ''); 17 | });%> 18 |   19 |   20 | <%- cats.join('·') %> 21 | <% } %> 22 | 23 | 24 | <% if (item.tags && item.tags.length){ %> 25 | <% var tags = []; 26 | item.tags.forEach(function(tag){ 27 | tags.push('' + tag.name + ''); 28 | });%> 29 |   30 |   31 | <%- tags.join('·') %> 32 | <% } %> 33 | -------------------------------------------------------------------------------- /source/css/pager.scss: -------------------------------------------------------------------------------- 1 | $bg: #fff; 2 | $a: #333; 3 | $bordr: #e7e7e7; 4 | $hoverbg: #337ab7; 5 | $hovera: #e7e7e7; 6 | 7 | .pager, 8 | .prev, 9 | .page-number, 10 | .next, 11 | .space { 12 | display: flex; 13 | } 14 | 15 | .prev, 16 | .page-number, 17 | .next { 18 | padding: 10px 25px; 19 | } 20 | 21 | a.page-number:hover, 22 | a.next:hover, 23 | a.prev:hover { 24 | transition: background-color .2s, color .2s; 25 | background-color: $hoverbg; 26 | color: $hovera; 27 | } 28 | 29 | .pager { 30 | flex-direction: row; 31 | justify-content: space-between; 32 | background-color: $bg; 33 | border: $bordr solid 2px; 34 | a { 35 | color: $a; 36 | } 37 | } 38 | 39 | .space { 40 | padding: 10px 0; 41 | } 42 | 43 | @media screen and (max-width:782px) { 44 | .pager { 45 | font-size: 26px; 46 | line-height: 35px; 47 | position: relative; 48 | bottom: 0; 49 | left: 0; 50 | margin-bottom: 30px; 51 | -webkit-transform: rotate(0deg); 52 | -moz-transform: rotate(0deg); 53 | -o-transform: rotate(0deg); 54 | text-align: center; 55 | letter-spacing: 1px; 56 | } 57 | .prev, 58 | .page-number, 59 | .next { 60 | padding: 10px; 61 | } 62 | .space { 63 | padding: 10px 0; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /layout/_partial/article.ejs: -------------------------------------------------------------------------------- 1 | <% if(index){ %> 2 |
3 |
  • 4 | <%- partial('post/title') %> 5 |
    6 | <% if (item.excerpt){ %> 7 | <%- item.excerpt %> 8 | <% } else { %> 9 | <%- strip_html(item.content).replace(/^\s*/, '').replace(/\s*$/, '').substring(0, theme.excerpt_num) %> 10 | <% } %> 11 | 12 | <%= __("read_more") %> 13 | 14 |
    15 |
    16 | <%- partial('post/meta', {item: item}) %> 17 |
    18 |
  • 19 |
    20 |
    21 | <% } else { %> 22 | 23 |
    24 |
    25 | <%- partial('post/title') %> 26 |
    27 |
    28 | <%- partial('post/meta', {item: item}) %> 29 |
    30 |
    31 |
    32 | <% if (item.photos && item.photos.length){ %> 33 | <%- partial('post/gallery', {item: item}) %> 34 | <% } %> 35 |
    36 | <%- item.content %> 37 | 38 |
    39 | 40 | 42 |
    43 | <%= __("page_read") %>:  ・  44 | <%= __("site_read") %>:  ・  45 | <%= __("site_visitor") %>:  46 |
    47 | <% } %> 48 | <%- partial('post/comment') %> 49 | -------------------------------------------------------------------------------- /source/css/search.scss: -------------------------------------------------------------------------------- 1 | #site_search { 2 | display: flex; 3 | margin: 8px; 4 | flex-grow: 1; 5 | } 6 | #local-search-input { 7 | border: #fff solid 0px; 8 | -webkit-box-shadow:inset 0 0 1px #aaa;; 9 | -moz-box-shadow:inset 0 0 1px #aaa;; 10 | box-shadow:inset 0 0 1px #aaa;; 11 | background: #fcfcfc;; 12 | } 13 | #local-search-input:focus{ 14 | background: #337ab7;; 15 | color: #fff; 16 | } 17 | #local-search-input:focus::-webkit-input-placeholder{ 18 | color: #fff; 19 | } 20 | #local-search-input:focus::-moz-placeholder{ 21 | color: #fff; 22 | } 23 | #local-search-input:focus:-ms-input-placeholder{ 24 | color: #fff; 25 | } 26 | 27 | #local-search-result { 28 | left: 15%; 29 | top: 50px; 30 | max-height: 80%; 31 | position: fixed; 32 | background-color: #337ab7;; 33 | width: 75%; 34 | overflow-y: auto; 35 | } 36 | .search-result-title { 37 | margin-top: 20px; 38 | color: #fff; 39 | font-weight: 700!important; 40 | font-family: 'Open Sans Condensed',sans-serif; 41 | font-size: 32px; 42 | line-height: 32px; 43 | } 44 | .search-result-list li { 45 | padding: 40px 50px 0 20px; 46 | } 47 | .search-result, .search-result-title:hover { 48 | color: #ddd; 49 | } 50 | .search-keyword { 51 | color: #fff; 52 | font: 900 1em/1em ""; 53 | text-decoration: underline; 54 | margin: 2px; 55 | } 56 | .search-result { 57 | word-wrap: break-word; 58 | word-break: normal; 59 | } 60 | @media screen and (max-width:782px) 61 | { 62 | #site_search, #local-search-result { 63 | display: none; 64 | } 65 | } -------------------------------------------------------------------------------- /layout/_partial/navigator.ejs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layout/_partial/after_footer.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 51 | -------------------------------------------------------------------------------- /layout/_partial/archive.ejs: -------------------------------------------------------------------------------- 1 | <% var title = ''; 2 | if (page.category) title = page.category; 3 | if (page.tag) title = page.tag; 4 | if (page.archive){ 5 | if (page.year) title = page.year + (page.month ? '/' + page.month : ''); 6 | else title = __('archive_title'); 7 | } %> 8 | 9 |

    10 | <% if (page.archive) { %> 11 | 12 | <% } else { %> 13 | 14 | <% } %> 15 | <%= title %> 16 |

    17 |
    18 | <%= _p('page_counter', page.posts.length) %> 19 |
    20 |
    21 | <% var last = 0, year, yearArr = []; %> 22 | <% page.posts.each(function(post){ %> 23 | <% year = post.date.year(); %> 24 | 25 | <% if (last != year){ %> 26 | 27 | <% if (yearArr.length != 0){ %> 28 | 29 | <% } %> 30 | 31 | <% yearArr.push(year); %> 32 | 33 | <% last = year; %> 34 | 35 | 36 |
    37 |

    <%= year %>

    38 |
    65 | -------------------------------------------------------------------------------- /source/css/code.scss: -------------------------------------------------------------------------------- 1 | $bg: #eaeaea; 2 | $theme: #555; 3 | $c1: #547ab2; 4 | $c2: #547ab2; 5 | $c3: #3eacab; 6 | $c4: #3eacab; 7 | $c5: #3eacab; 8 | $c6: #3eacab; 9 | $c7: #5a5050; 10 | 11 | figure { 12 | overflow-x: auto; 13 | } 14 | 15 | td.gutter { 16 | width: 50px; 17 | } 18 | 19 | code, 20 | pre { 21 | font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; 22 | } 23 | 24 | pre { 25 | font-size: 1.5rem; 26 | line-height: 2em; 27 | margin-bottom: 0; 28 | padding: 15px; 29 | border: 0; 30 | border-radius: 0px; 31 | tab-size: 4; 32 | color: $theme; 33 | background-size: auto 4em; 34 | background-origin: content-box; 35 | background-image: linear-gradient($bg 50%, transparent 0); 36 | .comment { 37 | color: lighten($theme, 30%); 38 | } 39 | } 40 | 41 | code { 42 | word-wrap: break-word; 43 | line-height: 2em; 44 | font-size: .97em; 45 | color: $theme; 46 | background: $bg; 47 | } 48 | 49 | 50 | 51 | pre .variable, 52 | pre .attribute, 53 | pre .tag, 54 | pre .regexp, 55 | pre .ruby .constant, 56 | pre .xml .tag .title, 57 | pre .xml .pi, 58 | pre .xml .doctype, 59 | pre .html .doctype, 60 | pre .css .id, 61 | pre .css .class, 62 | pre .css .pseudo { 63 | color: $c1; 64 | } 65 | 66 | pre .keyword, 67 | pre .javascript .function { 68 | color: $c2; 69 | } 70 | 71 | pre .number, 72 | pre .preprocessor, 73 | pre .built_in, 74 | pre .literal, 75 | pre .params, 76 | pre .constant { 77 | color: $c3; 78 | } 79 | 80 | pre .ruby .class .title, 81 | pre .css .rules .attribute { 82 | color: $c4; 83 | } 84 | 85 | pre .title, 86 | pre .css .hexcolor { 87 | color: $c5; 88 | } 89 | 90 | pre .string, 91 | pre .value, 92 | pre .inheritance, 93 | pre .header, 94 | pre .ruby .symbol, 95 | pre .xml .cdata { 96 | color: $c6; 97 | } 98 | 99 | pre .function, 100 | pre .python .decorator, 101 | pre .python .title, 102 | pre .ruby .function .title, 103 | pre .ruby .title .keyword, 104 | pre .perl .sub, 105 | pre .javascript .title, 106 | pre .coffeescript .title { 107 | color: $c7; 108 | } 109 | 110 | @media screen and (max-width:782px) { 111 | figure { 112 | width: 110%; 113 | margin-left: -5%; 114 | } 115 | pre { 116 | font-size: 1.2rem; 117 | line-height: 18px; 118 | padding: 10px; 119 | background-size: auto 36px; 120 | } 121 | code { 122 | line-height: 1.9em; 123 | } 124 | } 125 | -------------------------------------------------------------------------------- /layout/_partial/head.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | <% var title = ''; 10 | if (page.current > 1) title = __('page', page.current); 11 | else if (page.title) title = page.title; 12 | else if (page.category) title = page.category; 13 | else if (page.tag) title = page.tag; 14 | else if (page.archive){ 15 | if (page.year) title = page.year + (page.month ? '/' + page.month : ''); 16 | else title = __('archive_title'); 17 | } 18 | else title = config.title; 19 | %> 20 | <%= title %> 21 | <% if (config.author){ %><% } %> 22 | <% if (page.description){ %> 23 | <% } else if (config.description){ %> 24 | <% } else if (page.excerpt){ %> 25 | <% } else if (page.content){ %> 26 | <% } %> 27 | <% if (page.keywords){ %><% } %> 28 | <% if (page.title){ %><% } %> 29 | 30 | 31 | <% if(page.cover) { %> 32 | <% } else { %> 33 | <% } %> 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /source/css/navigator.scss: -------------------------------------------------------------------------------- 1 | $bg: #fff; 2 | $bordr: #eee; 3 | 4 | .navbar { 5 | background-color: $bg; 6 | flex-direction: column; 7 | } 8 | 9 | .navbar-right .dropdown-content { 10 | margin-left: -175px; 11 | } 12 | 13 | .navbar, 14 | .navbar-header, 15 | .navbar-nav, 16 | .local-search-result, 17 | .nav-container { 18 | display: flex; 19 | } 20 | 21 | .nav-container { 22 | justify-content: space-between; 23 | flex-direction: row; 24 | width: 100%; 25 | padding: 0 5%; 26 | } 27 | 28 | .navbar-left, 29 | .navbar-right { 30 | flex-grow: 0; 31 | } 32 | 33 | .dropdown-content { 34 | position: absolute; 35 | top: calc(100% + 0px); 36 | max-height: calc(100vh - 50px); 37 | overflow-y: auto; 38 | display: block; 39 | visibility: hidden; 40 | width: 220px; 41 | margin: 0; 42 | padding: 0; 43 | border: 1px solid $bordr; 44 | background-color: $bg; 45 | li { 46 | border-bottom: 1px solid $bordr; 47 | a { 48 | display: block; 49 | width: 100%; 50 | height: 100%; 51 | padding: 18px 25px; 52 | } 53 | a:hover { 54 | background: #2570a1; 55 | color: #e7e7e7; 56 | } 57 | } 58 | } 59 | 60 | @media screen and (max-width:782px) { 61 | .navbar-left { 62 | order: 0; 63 | flex-grow: 1.35; 64 | justify-content: space-around; 65 | float: left; 66 | } 67 | .navbar-right { 68 | order: 2; 69 | flex-grow: 1; 70 | justify-content: space-around; 71 | float: right; 72 | .dropdown-content { 73 | margin-left: 0; 74 | } 75 | } 76 | .navbar-header { 77 | order: 1; 78 | } 79 | .nav-container { 80 | padding: 0; 81 | display: flex; 82 | justify-content: space-around; 83 | } 84 | .navbar-nav .open .dropdown-menu > li > a { 85 | line-height: 40px; 86 | } 87 | .navbar-nav { 88 | margin: 0; 89 | > li > a { 90 | padding-top: 15px; 91 | } 92 | } 93 | .dropdown-content { 94 | position: fixed; 95 | z-index: 1; 96 | top: 0; 97 | left: 0; 98 | display: flex; 99 | overflow-y: auto; 100 | flex-direction: column; 101 | width: 100%; 102 | max-height: 100%; 103 | text-align: center; 104 | justify-content: center; 105 | li { 106 | border-bottom: 0 solid $bordr; 107 | } 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # hexo-theme-pln 2 | A plain theme for hexo 3 | 同时也是一个纯文字友好的Hexo主题。 4 | **喜欢的用,不喜欢就别用。** 5 | ![index](/screenShots/ver1.0-index.jpg) 6 | ![tags](/screenShots/ver1.0-tags.jpg) 7 | ![article](/screenShots/ver1.0-article.jpg) 8 | ![dropdown](/screenShots/ver1.0-dropdown.jpg) 9 | *screenshots capcured at 2016-05-14, ver1.0* 10 | *** 11 | # Install 12 | Execute the following command under your `hexo` folder. 13 | 14 | ``` 15 | git clone https://github.com/gaoryrt/hexo-theme-pln.git themes/pln 16 | ``` 17 | 18 | Then find `theme` in `hexo/_config.yml`, make it looks like this: `theme: pln` 19 | 20 | # Update 21 | Execute the following command to update Pln. 22 | 23 | ``` 24 | cd themes/pln 25 | git pull 26 | ``` 27 | 28 | # Uninstall 29 | Execute the following command to uninstall Pln. 30 | ``` 31 | cd themes 32 | rm -rf pln 33 | ``` 34 | *** 35 | # After install 36 | **You should modify `hexo/themes/pln/_config.yml` file before deploy. 37 | Always add `subtitle: ` to your `hexo/_config.yml` file to avoid bug** 38 | 请务必修改以上内容。 39 | 40 | 41 | Here's what it looks like/means: 42 | ``` 43 | menu: 44 | main: / 45 | archives: /archives 46 | 47 | logo: **word on the left-top end** 48 | 49 | more: 50 | **link title**: **link url** 51 | rss: /rss2.xml 52 | 53 | about: 54 | title: **blue words fixed on the right end** 55 | link: **url of the blue words** 56 | 57 | disqus_shortname: **as it described, find it on your disqus site** 58 | 59 | excerpt_num: **number of auto excerpt words** 60 | 61 | footer_info: **black words fixed on the right end** 62 | ``` 63 | *** 64 | # Issues 65 | [Issues](https://github.com/gaoryrt/hexo-theme-pln/issues) are always welcome. 66 | 欢迎您对本项目提供和意见和建议。 67 | (请直接提issue,或在[微博](http://weibo.com/R1T1AN)上私信,一般回复时间不超过12小时) 68 | *** 69 | # Changelog 70 | - `2016-04-12`: init 71 | - `2016-04-13`: disqus showing same comments bug fix 72 | - `2016-04-13`: read more link add 73 | - `2016-04-13`: no-tag but icon bug fix 74 | - `2016-04-13`: pass theme unit test 75 | - `2016-04-14`: see [2016-04-12 意见和建议](https://github.com/gaoryrt/hexo-theme-pln/issues/1) 76 | - `2016-04-17`: archives header bug fix 77 | - `2016-04-24`: forgot to add a css file last commit, maybe that's why nobody gives a star 78 | - `2016-04-25`: missing tag icon bug fix 79 | - `2016-04-26`: ul list unstyle bug fix 80 | - `2016-04-27`: **add google_analytics, add `google_analytics: YOURTOKENHERE` in `hexo/_config.yml` file to enable** 81 | - `2016-05-01`: no subtitle layout bug fix 82 | - `2016-05-04`: new footer rule, .behind layout upgrade 83 | - `2016-05-06`: upgrade cssstyle, button filter bug fix 84 | - `2016-05-08`: upgrade js ?: operator,fasten loading speed, busuanzi added 85 | - ------------ VERSION 1.0 ------------ 86 | - `2016-05-14`: pln ver1.0, searching function is loading 87 | - `2016-05-15`: css -> SCSS (`sass --style compressed main.scss:m.min.css`), footer wrap bug fix 88 | - `2016-05-27`: more pln in `behind`, `busuanzi`, `meta`, `afterfooter` 89 | - `2016-05-29`: `h2 > code` style bug fixed 90 | - `2016-07-03`: https web-font bug fix 91 | - `2016-07-05`: search added 92 | - `2016-07-10`: disqus bug fix 93 | - `2016-08-08`: apple-touch-icon added 94 | - `2016-08-18`: font update 95 | - `2016-08-29`: i18n: en 96 | - `2016-11-06`: Bug fix: the tab bar can not be scrolled when there are too many tabs. 增加了分享到微信朋友圈的图片,需要将 wx_share.png 的一张 大于 300*300 的图片放在根目录(public)下。 97 | 98 | # license 99 | Creative Commons License
    This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. 100 | -------------------------------------------------------------------------------- /source/js/search.js: -------------------------------------------------------------------------------- 1 | var searchFunc = function(path, search_id, content_id) { 2 | 'use strict'; 3 | $.ajax({ 4 | url: path, 5 | dataType: "xml", 6 | success: function( xmlResponse ) { 7 | // get the contents from search data 8 | var datas = $( "entry", xmlResponse ).map(function() { 9 | return { 10 | title: $( "title", this ).text(), 11 | content: $("content",this).text(), 12 | url: $( "url" , this).text() 13 | }; 14 | }).get(); 15 | 16 | var $input = document.getElementById(search_id); 17 | var $resultContent = document.getElementById(content_id); 18 | 19 | $input.addEventListener('input', function(){ 20 | var str='"; 95 | $resultContent.innerHTML = str; 96 | }); 97 | } 98 | }); 99 | } -------------------------------------------------------------------------------- /source/css/main.scss: -------------------------------------------------------------------------------- 1 | @import "navigator"; 2 | @import "search"; 3 | @import "posts"; 4 | @import "pager"; 5 | @import "footer"; 6 | @import "code"; 7 | @import "animation"; 8 | $background: #fcfcfc; 9 | $theme: #2570a1; 10 | $para: #555; 11 | $lighter: #adadad; 12 | ::selection { 13 | background: lighten($theme, 40%); 14 | } 15 | 16 | ::-moz-selection { 17 | background: lighten($theme, 40%); 18 | } 19 | 20 | ::-webkit-selection { 21 | background: lighten($theme, 40%); 22 | } 23 | 24 | h1, h2, h3, h4, h5, h6 { 25 | font-weight: 600; 26 | } 27 | 28 | @import url(https://fonts.gmirror.org/css?family=Open+Sans+Condensed:300,700|Pacifico); 29 | @import url(https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700|Pacifico); 30 | 31 | .index-title, .navbar-brand, .section-year, .archive-title, .pager, .page-title { 32 | font-family: 'Open Sans Condensed', sans-serif; 33 | } 34 | 35 | body { 36 | font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; 37 | background-color: $background; 38 | } 39 | 40 | .archive-time { 41 | background-color: $background; 42 | } 43 | 44 | .index-title, .archive-link, .dropdown-content, .index-meta, .current { 45 | font-weight: 700 !important; 46 | } 47 | 48 | p, .excerpt, .behind, .meta, .post li { 49 | font-weight: 300; 50 | } 51 | 52 | .navbar-brand, .right-foot, .pager { 53 | font-size: 1.5em; 54 | } 55 | 56 | .busuanzi, .behind, .dropdown-content, .meta { 57 | -webkit-font-smoothing: antialiased; 58 | } 59 | 60 | a, a:hover, a:focus { 61 | color: $theme; 62 | } 63 | 64 | .container { 65 | max-width: 850px; 66 | padding: 0 5%; 67 | } 68 | 69 | p { 70 | font-size: 18px; 71 | line-height: 2em; 72 | padding: 10px 0; 73 | letter-spacing: .6px; 74 | color: $para; 75 | } 76 | 77 | .post li { 78 | font-size: 18px; 79 | line-height: 2em; 80 | letter-spacing: .5px; 81 | list-style-type: disc; 82 | color: lighten($para, 10%); 83 | } 84 | 85 | li { 86 | list-style: none; 87 | } 88 | 89 | .behind { 90 | font-size: 22px; 91 | padding: 22px 0; 92 | letter-spacing: 2px; 93 | color: $lighter; 94 | } 95 | 96 | .back { 97 | position: fixed; 98 | top: 18px; 99 | left: 5%; 100 | } 101 | 102 | .center, .behind, .archive-title, .archive-num, .picture-container { 103 | text-align: center; 104 | } 105 | 106 | .meta { 107 | font-size: 15px; 108 | color: $lighter; 109 | padding-top: 13px; 110 | a { 111 | color: lighten($theme, 10%); 112 | } 113 | } 114 | 115 | .black-color { 116 | color: black; 117 | } 118 | 119 | .archive-num { 120 | padding: 10px 0; 121 | color: $lighter; 122 | } 123 | 124 | .archive-list { 125 | padding: 10px 0; 126 | } 127 | 128 | .archive-item { 129 | display: flex; 130 | flex-direction: row; 131 | align-items: center; 132 | justify-content: center; 133 | } 134 | 135 | .archive-time { 136 | font-size: 20px; 137 | width: 40%; 138 | margin-right: 20px; 139 | text-align: right; 140 | color: lighten($lighter, 10%); 141 | } 142 | 143 | .archive-detail { 144 | font-size: 17px; 145 | width: 90%; 146 | padding: 0 20px; 147 | word-wrap: break-word; 148 | border-left: 1px solid lighten($lighter, 10%); 149 | } 150 | 151 | article { 152 | padding: 40px 0; 153 | } 154 | 155 | blockquote { 156 | margin: 30px 0; 157 | font-style: italic; 158 | padding: 0; 159 | padding-left: 3rem; 160 | border: 0; 161 | p { 162 | color: #333; 163 | line-height: 1.48; 164 | font-size: 1.2em; 165 | } 166 | } 167 | 168 | 169 | 170 | table { 171 | width: 100%; 172 | } 173 | 174 | img, object, video, iframe { 175 | max-width: 110%; 176 | } 177 | 178 | iframe { 179 | min-width: 100%; 180 | } 181 | 182 | img { 183 | margin-top: 30px; 184 | display: block; 185 | height: auto; 186 | position: relative; 187 | left: 50%; 188 | -webkit-transform: translateX(-50%); 189 | -ms-transform: translateX(-50%); 190 | transform: translateX(-50%); 191 | } 192 | 193 | .busuanzi { 194 | font-size: 14px; 195 | line-height: 14px; 196 | margin: 30px 0; 197 | color: #CDD2D4; 198 | } 199 | 200 | @media screen and (max-width:782px) { 201 | .back, li.archives, .busuanzi { 202 | display: none; 203 | } 204 | .behind { 205 | padding: 12px 0; 206 | opacity: 0; 207 | } 208 | .container { 209 | padding: 0; 210 | } 211 | .standard, .archive, .archive-title, #disqus_thread { 212 | padding: 0 7%; 213 | } 214 | p, .post li { 215 | font-size: 16px; 216 | line-height: 1.9em; 217 | } 218 | .archive-title { 219 | font-size: 2.2em; 220 | } 221 | .post ul { 222 | margin-left: -10px; 223 | } 224 | } 225 | -------------------------------------------------------------------------------- /source/css/m.min.css.map: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "mappings": "AA2BQ,sFAA8E,CAC9E,yFAAiF,CCzBzF,OAAQ,CACJ,gBAAgB,CAJf,IAAI,CAKL,cAAc,CAAE,MAAM,CAG1B,+BAAgC,CAC5B,WAAW,CAAE,MAAM,CAGvB,sEAIe,CACX,OAAO,CAAE,IAAI,CAGjB,cAAe,CACX,eAAe,CAAE,aAAa,CAC9B,cAAc,CAAE,GAAG,CACnB,KAAK,CAAE,IAAI,CACX,OAAO,CAAE,IAAI,CAGjB,0BACc,CACV,SAAS,CA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ss","animation.scss"], 5 | "names": [], 6 | "file": "m.min.css" 7 | } -------------------------------------------------------------------------------- /source/css/m.min.css: -------------------------------------------------------------------------------- 1 | @import url(https://fonts.gmirror.org/css?family=Open+Sans+Condensed:300,700|Pacifico);@import url(https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700|Pacifico);.navbar{background-color:#fff;flex-direction:column}.navbar-right .dropdown-content{margin-left:-175px}.navbar,.navbar-header,.navbar-nav,.local-search-result,.nav-container{display:flex}.nav-container{justify-content:space-between;flex-direction:row;width:100%;padding:0 5%}.navbar-left,.navbar-right{flex-grow:0}.dropdown-content{position:absolute;top:calc(100% + 0px);max-height:calc(100vh - 50px);overflow-y:auto;display:block;visibility:hidden;width:220px;margin:0;padding:0;border:1px solid #eee;background-color:#fff}.dropdown-content li{border-bottom:1px solid #eee}.dropdown-content li a{display:block;width:100%;height:100%;padding:18px 25px}.dropdown-content li a:hover{background:#2570a1;color:#e7e7e7}@media screen and (max-width: 782px){.navbar-left{order:0;flex-grow:1.35;justify-content:space-around;float:left}.navbar-right{order:2;flex-grow:1;justify-content:space-around;float:right}.navbar-right .dropdown-content{margin-left:0}.navbar-header{order:1}.nav-container{padding:0;display:flex;justify-content:space-around}.navbar-nav .open .dropdown-menu>li>a{line-height:40px}.navbar-nav{margin:0}.navbar-nav>li>a{padding-top:15px}.dropdown-content{position:fixed;z-index:1;top:0;left:0;display:flex;overflow-y:auto;flex-direction:column;width:100%;max-height:100%;text-align:center;justify-content:center}.dropdown-content li{border-bottom:0 solid #eee}}#site_search{display:flex;margin:8px;flex-grow:1}#local-search-input{border:#fff solid 0px;-webkit-box-shadow:inset 0 0 1px #aaa;-moz-box-shadow:inset 0 0 1px #aaa;box-shadow:inset 0 0 1px #aaa;background:#fcfcfc}#local-search-input:focus{background:#337ab7;color:#fff}#local-search-input:focus::-webkit-input-placeholder{color:#fff}#local-search-input:focus::-moz-placeholder{color:#fff}#local-search-input:focus:-ms-input-placeholder{color:#fff}#local-search-result{left:15%;top:50px;max-height:80%;position:fixed;background-color:#337ab7;width:75%;overflow-y:auto}.search-result-title{margin-top:20px;color:#fff;font-weight:700 !important;font-family:'Open Sans Condensed',sans-serif;font-size:32px;line-height:32px}.search-result-list li{padding:40px 50px 0 20px}.search-result,.search-result-title:hover{color:#ddd}.search-keyword{color:#fff;font:900 1em/1em "";text-decoration:underline;margin:2px}.search-result{word-wrap:break-word;word-break:normal}@media screen and (max-width: 782px){#site_search,#local-search-result{display:none}}.post-item{padding:10px 0}.index-title{font-size:34px;line-height:32px;width:65%}.excerpt{font-size:18px;line-height:1.95em;padding:10px 0;letter-spacing:.6px;color:#555;width:88%}.index-meta{padding-bottom:30px}@media screen and (max-width: 782px){.index-title{width:80%}.excerpt{font-size:16px;line-height:1.9em}}.pager,.prev,.page-number,.next,.space{display:flex}.prev,.page-number,.next{padding:10px 25px}a.page-number:hover,a.next:hover,a.prev:hover{transition:background-color .2s, color .2s;background-color:#337ab7;color:#e7e7e7}.pager{flex-direction:row;justify-content:space-between;background-color:#fff;border:#e7e7e7 solid 2px}.pager a{color:#333}.space{padding:10px 0}@media screen and (max-width: 782px){.pager{font-size:26px;line-height:35px;position:relative;bottom:0;left:0;margin-bottom:30px;-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);text-align:center;letter-spacing:1px}.prev,.page-number,.next{padding:10px}.space{padding:10px 0}}.right-foot{font-family:'Pacifico', cursive;position:fixed;z-index:0;bottom:420px;left:50%;-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-o-transform:rotate(270deg);writing-mode:lr-tb}.firstrow,.secondrow{display:inline-block}@media screen and (max-width: 782px){.right-foot{font-size:26px !important;line-height:35px;position:relative;bottom:0;left:0;margin-bottom:30px;-webkit-transform:rotate(0);-moz-transform:rotate(0);-o-transform:rotate(0);text-align:center}i.fa-arrow-right{-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-o-transform:rotate(270deg)}.firstrow,.secondrow{display:block}}figure{overflow-x:auto}td.gutter{width:50px}code,pre{font-family:Menlo, Monaco, Consolas, 'Courier New', monospace}pre{font-size:1.5rem;line-height:2em;margin-bottom:0;padding:15px;border:0;border-radius:0px;tab-size:4;color:#555;background-size:auto 4em;background-origin:content-box;background-image:linear-gradient(#eaeaea 50%, transparent 0)}pre .comment{color:#a2a2a2}code{word-wrap:break-word;line-height:2em;font-size:.97em;color:#555;background:#eaeaea}pre .variable,pre .attribute,pre .tag,pre .regexp,pre .ruby .constant,pre .xml .tag .title,pre .xml .pi,pre .xml .doctype,pre .html .doctype,pre .css .id,pre .css .class,pre .css .pseudo{color:#547ab2}pre .keyword,pre .javascript .function{color:#547ab2}pre .number,pre .preprocessor,pre .built_in,pre .literal,pre .params,pre .constant{color:#3eacab}pre .ruby .class .title,pre .css .rules .attribute{color:#3eacab}pre .title,pre .css .hexcolor{color:#3eacab}pre .string,pre .value,pre .inheritance,pre .header,pre .ruby .symbol,pre .xml .cdata{color:#3eacab}pre .function,pre .python .decorator,pre .python .title,pre .ruby .function .title,pre .ruby .title .keyword,pre .perl .sub,pre .javascript .title,pre .coffeescript .title{color:#5a5050}@media screen and (max-width: 782px){figure{width:110%;margin-left:-5%}pre{font-size:1.2rem;line-height:18px;padding:10px;background-size:auto 36px}code{line-height:1.9em}}.dropdown-toggle,.dropdown-menu,.open,a,a:hover,a:focus{transition:.2s ease-in-out}.index-title,.excerpt,.index-meta,.dropdown-content{-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;-ms-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out}.index-title,.index-meta,.dropdown-content,.excerpt{-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-ms-transform:translateY(1px);-o-transform:translateY(1px);transform:translateY(1px);opacity:0}.excerpt.animation,.index-title.animation,.index-meta.animation,.dropdown-content.open{visibility:visible;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0);opacity:1}::selection{background:#a7d0eb}::-moz-selection{background:#a7d0eb}::-webkit-selection{background:#a7d0eb}h1,h2,h3,h4,h5,h6{font-weight:600}.index-title,.navbar-brand,.section-year,.archive-title,.pager,.page-title{font-family:'Open Sans Condensed', sans-serif}body{font-family:"Helvetica Neue", "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;background-color:#fcfcfc}.archive-time{background-color:#fcfcfc}.index-title,.archive-link,.dropdown-content,.index-meta,.current{font-weight:700 !important}p,.excerpt,.behind,.meta,.post li{font-weight:300}.navbar-brand,.right-foot,.pager{font-size:1.5em}.busuanzi,.behind,.dropdown-content,.meta{-webkit-font-smoothing:antialiased}a,a:hover,a:focus{color:#2570a1}.container{max-width:850px;padding:0 5%}p{font-size:18px;line-height:2em;padding:10px 0;letter-spacing:.6px;color:#555}.post li{font-size:18px;line-height:2em;letter-spacing:.5px;list-style-type:disc;color:#6f6f6f}li{list-style:none}.behind{font-size:22px;padding:22px 0;letter-spacing:2px;color:#adadad}.back{position:fixed;top:18px;left:5%}.center,.behind,.archive-title,.archive-num,.picture-container{text-align:center}.meta{font-size:15px;color:#adadad;padding-top:13px}.meta a{color:#2f8dca}.black-color{color:black}.archive-num{padding:10px 0;color:#adadad}.archive-list{padding:10px 0}.archive-item{display:flex;flex-direction:row;align-items:center;justify-content:center}.archive-time{font-size:20px;width:40%;margin-right:20px;text-align:right;color:#c7c7c7}.archive-detail{font-size:17px;width:90%;padding:0 20px;word-wrap:break-word;border-left:1px solid #c7c7c7}article{padding:40px 0}blockquote{margin:30px 0;font-style:italic;padding:0;padding-left:3rem;border:0}blockquote p{color:#333;line-height:1.48;font-size:1.2em}table{width:100%}img,object,video,iframe{max-width:110%}iframe{min-width:100%}img{margin-top:30px;display:block;height:auto;position:relative;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.busuanzi{font-size:14px;line-height:14px;margin:30px 0;color:#CDD2D4}@media screen and (max-width: 782px){.back,li.archives,.busuanzi{display:none}.behind{padding:12px 0;opacity:0}.container{padding:0}.standard,.archive,.archive-title,#disqus_thread{padding:0 7%}p,.post li{font-size:16px;line-height:1.9em}.archive-title{font-size:2.2em}.post ul{margin-left:-10px}} 2 | /*# sourceMappingURL=m.min.css.map */ 3 | --------------------------------------------------------------------------------