Skip to content

Commit

Permalink
Merge branch 'code-hightlight-improvement' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBarranqueiro committed Dec 20, 2015
2 parents 039b2c3 + a272258 commit bf8dfde
Show file tree
Hide file tree
Showing 7 changed files with 173 additions and 64 deletions.
9 changes: 6 additions & 3 deletions docs/developer.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ If you want to report a bug or ask a question, [create an issue](https://github.
* [Assets](#assets)
* [Stylesheets](#stylesheets)
* [Images](#images)
* [Images](#images)
* [Javascript](#javascript)
- [Build](#build)
* [NPM dependencies](#npm-dependencies)
Expand Down Expand Up @@ -147,11 +148,10 @@ tranquilpeak
│ │ │ ├── _box.scss
│ │ │ ├── _button.scss
│ │ │ ├── _caption.scss
│ │ │ ├── _category.scss
│ │ │ ├── _code.scss
│ │ │ ├── _figure.scss
│ │ │ ├── _form.scss
│ │ │ ├── _hide.scss
│ │ │ ├── _highlight.scss
│ │ │ ├── _icon.scss
│ │ │ ├── _image-gallery.scss
│ │ │ ├── _link.scss
Expand Down Expand Up @@ -202,6 +202,7 @@ tranquilpeak
│ │ ├── about.js
│ │ ├── archives-filter.js
│ │ ├── categories-filter.js
│ │ ├── codeblock-resizer.js
│ │ ├── fancybox.js
│ │ ├── header.js
│ │ ├── image-gallery.js
Expand Down Expand Up @@ -335,10 +336,10 @@ Each scrips is executed a the startup of Hexo. They are separed by categories:
│ ├── _box.scss
│ ├── _button.scss
│ ├── _caption.scss
│ ├── _code.scss
│ ├── _figure.scss
│ ├── _form.scss
│ ├── _hide.scss
│ ├── _highlight.scss
│ ├── _icon.scss
│ ├── _image-gallery.scss
│ ├── _link.scss
Expand Down Expand Up @@ -414,6 +415,7 @@ Contains all images of the theme.
├── about.js
├── archives-filter.js
├── categories-filter.js
├── codeblock-resizer.js
├── fancybox.js
├── header.js
├── image-gallery.js
Expand All @@ -427,6 +429,7 @@ Contains all images of the theme.
- **about.js** : Fade out the blog and let drop the about card of the author and vice versa
- **archives-filter.js** : Filter posts by using their date on archives page : `/archives`
- **categories-filter.js** : Filter posts by using their categories on archives page : `/categories`
- **codeblock-resizer.js** : Resize codeblocks to fit the screen width
- **fancybox.js.js** : Run Fancybox plugin
- **header.js** : Hide the header when the user scrolls down, and show it when he scrolls up
- **image-gallery.js** : Resize all images of an image-gallery
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
"grunt-sass": "1.0.0",
"grunt-sync": "^0.2.3",
"grunt-text-replace": "^0.4.0",
"hexo-util": "^0.5.1",
"include-all": "^0.1.6",
"load-grunt-tasks": "~0.2.0"
"load-grunt-tasks": "~0.2.0",
"strip-indent": "^1.0.1"
}
}
2 changes: 1 addition & 1 deletion source/_css/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ code {
display: inline-block;
font-family: map-get($font-families, 'code');
font-weight: 400;
background-color: lighten(map-get($colors, 'base'), 54%);
background-color: map-get($highlight, 'background');
padding: 0 10px;
}

Expand Down
Loading

0 comments on commit bf8dfde

Please sign in to comment.