Skip to content

Commit adfd96d

Browse files
committed
Adding a few default styles
1 parent 90cde01 commit adfd96d

File tree

4 files changed

+104
-2
lines changed

4 files changed

+104
-2
lines changed

src/_scss/main.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import "var/fonts";
2+
@import "var/syntax";

src/_scss/var/fonts.scss

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@import url('https://fonts.googleapis.com/css?family=Muli:400,700|Oxygen+Mono|Rufina:400,700');
2+
$headerFont: 'Muli', sans-serif;
3+
$bodyFont: 'Rufina', serif;
4+
$codeFont: 'Oxygen Mono', monospace;
5+
6+
* {
7+
font-family: inherit;
8+
}
9+
10+
body {
11+
font-family: $bodyFont;
12+
strong {
13+
font-weight: 700;
14+
}
15+
}
16+
17+
h1,
18+
h2,
19+
h3,
20+
h4,
21+
h5 {
22+
font-family: $headerFont;
23+
font-weight: 500;
24+
}
25+
26+
p {
27+
line-height: 1.8;
28+
}
29+
30+
pre {
31+
font-family: $codeFont;
32+
}

src/_scss/var/syntax.scss

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
.highlight .hll { background-color: #ffc; }
2+
.highlight .c { color: #999; } /* Comment */
3+
.highlight .err { color: #a00; background-color: #faa } /* Error */
4+
.highlight .k { color: #069; } /* Keyword */
5+
.highlight .o { color: #555 } /* Operator */
6+
.highlight .cm { color: #09f; font-style: italic } /* Comment.Multiline */
7+
.highlight .cp { color: #099 } /* Comment.Preproc */
8+
.highlight .c1 { color: #999; } /* Comment.Single */
9+
.highlight .cs { color: #999; } /* Comment.Special */
10+
.highlight .gd { background-color: #fcc; border: 1px solid #c00 } /* Generic.Deleted */
11+
.highlight .ge { font-style: italic } /* Generic.Emph */
12+
.highlight .gr { color: #f00 } /* Generic.Error */
13+
.highlight .gh { color: #030; } /* Generic.Heading */
14+
.highlight .gi { background-color: #cfc; border: 1px solid #0c0 } /* Generic.Inserted */
15+
.highlight .go { color: #aaa } /* Generic.Output */
16+
.highlight .gp { color: #009; } /* Generic.Prompt */
17+
.highlight .gs { } /* Generic.Strong */
18+
.highlight .gu { color: #030; } /* Generic.Subheading */
19+
.highlight .gt { color: #9c6 } /* Generic.Traceback */
20+
.highlight .kc { color: #069; } /* Keyword.Constant */
21+
.highlight .kd { color: #069; } /* Keyword.Declaration */
22+
.highlight .kn { color: #069; } /* Keyword.Namespace */
23+
.highlight .kp { color: #069 } /* Keyword.Pseudo */
24+
.highlight .kr { color: #069; } /* Keyword.Reserved */
25+
.highlight .kt { color: #078; } /* Keyword.Type */
26+
.highlight .m { color: #f60 } /* Literal.Number */
27+
.highlight .s { color: #d44950 } /* Literal.String */
28+
.highlight .na { color: #4f9fcf } /* Name.Attribute */
29+
.highlight .nb { color: #366 } /* Name.Builtin */
30+
.highlight .nc { color: #0a8; } /* Name.Class */
31+
.highlight .no { color: #360 } /* Name.Constant */
32+
.highlight .nd { color: #99f } /* Name.Decorator */
33+
.highlight .ni { color: #999; } /* Name.Entity */
34+
.highlight .ne { color: #c00; } /* Name.Exception */
35+
.highlight .nf { color: #c0f } /* Name.Function */
36+
.highlight .nl { color: #99f } /* Name.Label */
37+
.highlight .nn { color: #0cf; } /* Name.Namespace */
38+
.highlight .nt { color: #2f6f9f; } /* Name.Tag */
39+
.highlight .nv { color: #033 } /* Name.Variable */
40+
.highlight .ow { color: #000; } /* Operator.Word */
41+
.highlight .w { color: #bbb } /* Text.Whitespace */
42+
.highlight .mf { color: #f60 } /* Literal.Number.Float */
43+
.highlight .mh { color: #f60 } /* Literal.Number.Hex */
44+
.highlight .mi { color: #f60 } /* Literal.Number.Integer */
45+
.highlight .mo { color: #f60 } /* Literal.Number.Oct */
46+
.highlight .sb { color: #c30 } /* Literal.String.Backtick */
47+
.highlight .sc { color: #c30 } /* Literal.String.Char */
48+
.highlight .sd { color: #c30; font-style: italic } /* Literal.String.Doc */
49+
.highlight .s2 { color: #c30 } /* Literal.String.Double */
50+
.highlight .se { color: #c30; } /* Literal.String.Escape */
51+
.highlight .sh { color: #c30 } /* Literal.String.Heredoc */
52+
.highlight .si { color: #a00 } /* Literal.String.Interpol */
53+
.highlight .sx { color: #c30 } /* Literal.String.Other */
54+
.highlight .sr { color: #3aa } /* Literal.String.Regex */
55+
.highlight .s1 { color: #c30 } /* Literal.String.Single */
56+
.highlight .ss { color: #fc3 } /* Literal.String.Symbol */
57+
.highlight .bp { color: #366 } /* Name.Builtin.Pseudo */
58+
.highlight .vc { color: #033 } /* Name.Variable.Class */
59+
.highlight .vg { color: #033 } /* Name.Variable.Global */
60+
.highlight .vi { color: #033 } /* Name.Variable.Instance */
61+
.highlight .il { color: #f60 } /* Literal.Number.Integer.Long */
62+
63+
.css .o,
64+
.css .o + .nt,
65+
.css .nt + .nt { color: #999; }

tasks.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,20 @@ let awspublish = require('gulp-awspublish');
1010
let runSequence = require('run-sequence');
1111
let gutil = require('gulp-util');
1212
let webpack = require('webpack');
13+
let path = require('path');
1314

1415
let messages = {
1516
jekyllBuild: '<span style="color: grey">Running:</span> $ jekyll build'
1617
};
1718

18-
let webpackDevConfig = require('./defaultConfigs/webpack.config.dev.js');
19-
let webpackProdConfig = require('./defaultConfigs/webpack.config.prod.js');
19+
let defaultWebpackDevConfig = require('./defaultConfigs/webpack.config.dev.js');
20+
let defaultWebpackProdConfig = require('./defaultConfigs/webpack.config.prod.js');
2021

2122
module.exports = (gulp, options) => {
2223
options = options || {};
2324
let awsConfig = options.awsConfig;
25+
let webpackDevConfig = options.webpackDevConfig || defaultWebpackDevConfig;
26+
let webpackProdConfig = options.webpackProdConfig || defaultWebpackProdConfig;
2427

2528
/**
2629
* Build the Jekyll Site

0 commit comments

Comments
 (0)