jekyll-dash 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/LICENSE.txt +21 -0
- data/README.md +48 -0
- data/_includes/author.html +4 -0
- data/_includes/disqus.html +14 -0
- data/_includes/footer.html +5 -0
- data/_includes/head.html +12 -0
- data/_includes/header.html +11 -0
- data/_includes/pagination.html +26 -0
- data/_layouts/default.html +19 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +39 -0
- data/_layouts/tag_index.html +33 -0
- data/_plugins/_tag_gen.rb +33 -0
- data/_sass/dash/_animations.scss +5 -0
- data/_sass/dash/_base.scss +181 -0
- data/_sass/dash/_colors.scss +36 -0
- data/_sass/dash/_fonts.scss +15 -0
- data/_sass/dash/_layout.scss +155 -0
- data/_sass/dash/_syntax-highlighting.scss +71 -0
- data/_sass/dash.scss +43 -0
- data/assets/css/style.scss +5 -0
- data/assets/fonts/RobotoMono-Medium.eot +0 -0
- data/assets/fonts/RobotoMono-Medium.svg +2787 -0
- data/assets/fonts/RobotoMono-Medium.ttf +0 -0
- data/assets/fonts/RobotoMono-Medium.woff +0 -0
- data/assets/fonts/VarelaRound-Regular.eot +0 -0
- data/assets/fonts/VarelaRound-Regular.svg +5372 -0
- data/assets/fonts/VarelaRound-Regular.ttf +0 -0
- data/assets/fonts/VarelaRound-Regular.woff +0 -0
- metadata +172 -0
@@ -0,0 +1,181 @@
|
|
1
|
+
body {
|
2
|
+
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
|
3
|
+
color: $color-foreground;
|
4
|
+
background-color: $color-background-darker;
|
5
|
+
-webkit-text-size-adjust: 100%;
|
6
|
+
-webkit-font-feature-settings: "kern" 1;
|
7
|
+
-moz-font-feature-settings: "kern" 1;
|
8
|
+
-o-font-feature-settings: "kern" 1;
|
9
|
+
font-feature-settings: "kern" 1;
|
10
|
+
font-kerning: normal;
|
11
|
+
display: flex;
|
12
|
+
min-height: 100vh;
|
13
|
+
flex-direction: column;
|
14
|
+
}
|
15
|
+
|
16
|
+
body, html {
|
17
|
+
margin: 0;
|
18
|
+
padding: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Set `margin-bottom` to maintain vertical rhythm
|
23
|
+
*/
|
24
|
+
h1, h2, h3, h4, h5, h6,
|
25
|
+
p, blockquote, pre,
|
26
|
+
ul, ol, dl, figure,
|
27
|
+
%vertical-rhythm {
|
28
|
+
margin-bottom: $spacing-unit / 2;
|
29
|
+
}
|
30
|
+
|
31
|
+
figure {
|
32
|
+
width: 100%;
|
33
|
+
margin: 0;
|
34
|
+
}
|
35
|
+
|
36
|
+
h1, h2, h3, h4, h5, h6 {
|
37
|
+
color: $color-blue;
|
38
|
+
}
|
39
|
+
|
40
|
+
/**
|
41
|
+
* `main` element
|
42
|
+
*/
|
43
|
+
main {
|
44
|
+
display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Images
|
49
|
+
*/
|
50
|
+
img {
|
51
|
+
max-width: 100%;
|
52
|
+
vertical-align: middle;
|
53
|
+
}
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Figures
|
57
|
+
*/
|
58
|
+
figure > img {
|
59
|
+
display: block;
|
60
|
+
}
|
61
|
+
|
62
|
+
figcaption {
|
63
|
+
font-size: $small-font-size;
|
64
|
+
}
|
65
|
+
|
66
|
+
/**
|
67
|
+
* Lists
|
68
|
+
*/
|
69
|
+
ul, ol {
|
70
|
+
margin-left: $spacing-unit;
|
71
|
+
}
|
72
|
+
|
73
|
+
li {
|
74
|
+
> ul,
|
75
|
+
> ol {
|
76
|
+
margin-bottom: 0;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
/**
|
81
|
+
* Headings
|
82
|
+
*/
|
83
|
+
h1, h2, h3, h4, h5, h6 {
|
84
|
+
font-weight: $base-font-weight;
|
85
|
+
margin-top: 1em;
|
86
|
+
margin-bottom: 0.5em;
|
87
|
+
}
|
88
|
+
|
89
|
+
/**
|
90
|
+
* Links
|
91
|
+
*/
|
92
|
+
a {
|
93
|
+
color: $color-pink;
|
94
|
+
text-decoration: none;
|
95
|
+
|
96
|
+
&:hover {
|
97
|
+
color: $color-foreground;
|
98
|
+
text-decoration: underline;
|
99
|
+
}
|
100
|
+
|
101
|
+
.social-media-list &:hover {
|
102
|
+
text-decoration: none;
|
103
|
+
|
104
|
+
.username {
|
105
|
+
text-decoration: underline;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
|
111
|
+
/**
|
112
|
+
* Blockquotes
|
113
|
+
*/
|
114
|
+
blockquote {
|
115
|
+
color: $color-background-dark;
|
116
|
+
@include relative-font-size(1.125);
|
117
|
+
letter-spacing: -1px;
|
118
|
+
font-style: italic;
|
119
|
+
|
120
|
+
> :last-child {
|
121
|
+
margin-bottom: 0;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
/**
|
128
|
+
* Code formatting
|
129
|
+
*/
|
130
|
+
pre,
|
131
|
+
code {
|
132
|
+
@include relative-font-size(0.9375);
|
133
|
+
border-radius: 3px;
|
134
|
+
background-color: $color-background-dark;
|
135
|
+
}
|
136
|
+
|
137
|
+
code {
|
138
|
+
padding: 1px 5px;
|
139
|
+
}
|
140
|
+
|
141
|
+
pre {
|
142
|
+
padding: 8px 12px;
|
143
|
+
overflow-x: auto;
|
144
|
+
|
145
|
+
> code {
|
146
|
+
border: 0;
|
147
|
+
padding-right: 0;
|
148
|
+
padding-left: 0;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
/**
|
153
|
+
* Wrapper
|
154
|
+
*/
|
155
|
+
.wrapper {
|
156
|
+
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
|
157
|
+
max-width: calc(#{$content-width} - (#{$spacing-unit}));
|
158
|
+
margin-right: auto;
|
159
|
+
margin-left: auto;
|
160
|
+
padding-right: $spacing-unit / 2;
|
161
|
+
padding-left: $spacing-unit / 2;
|
162
|
+
@extend %clearfix;
|
163
|
+
|
164
|
+
@media screen and (min-width: $on-large) {
|
165
|
+
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
|
166
|
+
max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
|
167
|
+
padding-right: $spacing-unit;
|
168
|
+
padding-left: $spacing-unit;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
/**
|
175
|
+
* Clearfix
|
176
|
+
*/
|
177
|
+
%clearfix:after {
|
178
|
+
content: "";
|
179
|
+
display: table;
|
180
|
+
clear: both;
|
181
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
$color-background-dark: #1E2227;
|
2
|
+
$color-background-darker: #15171A;
|
3
|
+
$color-foreground: #DAE4ED;
|
4
|
+
$color-foreground-dark: lighten($color-background-dark, 30%);
|
5
|
+
$color-pink: #F24784;
|
6
|
+
$color-red: #FC4957;
|
7
|
+
$color-orange: #EA9D53;
|
8
|
+
$color-yellow: #FCBC28;
|
9
|
+
$color-teal: #4BC997;
|
10
|
+
$color-green: #50BD6A;
|
11
|
+
$color-cyan: #4FC1E4;
|
12
|
+
$color-blue: #637AFE;
|
13
|
+
$color-indigo: #6775C4;
|
14
|
+
$color-purple: #8E59D7;
|
15
|
+
|
16
|
+
.color-pink { color: $color-pink; }
|
17
|
+
.color-red { color: $color-red; }
|
18
|
+
.color-orange { color: $color-orange; }
|
19
|
+
.color-yellow { color: $color-yellow; }
|
20
|
+
.color-teal { color: $color-teal; }
|
21
|
+
.color-green { color: $color-green; }
|
22
|
+
.color-cyan { color: $color-cyan; }
|
23
|
+
.color-blue { color: $color-blue; }
|
24
|
+
.color-indigo { color: $color-indigo; }
|
25
|
+
.color-purple { color: $color-purple; }
|
26
|
+
|
27
|
+
.color-pink-hover:hover { color: $color-pink; }
|
28
|
+
.color-red-hover:hover { color: $color-red; }
|
29
|
+
.color-orange-hover:hover { color: $color-orange; }
|
30
|
+
.color-yellow-hover:hover { color: $color-yellow; }
|
31
|
+
.color-teal-hover:hover { color: $color-teal; }
|
32
|
+
.color-green-hover:hover { color: $color-green; }
|
33
|
+
.color-cyan-hover:hover { color: $color-cyan; }
|
34
|
+
.color-blue-hover:hover { color: $color-blue; }
|
35
|
+
.color-indigo-hover:hover { color: $color-indigo; }
|
36
|
+
.color-purple-hover:hover { color: $color-purple; }
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin font($font-family, $font-file) {
|
2
|
+
@font-face {
|
3
|
+
font-family: $font-family;
|
4
|
+
src: url($font-file+'.eot');
|
5
|
+
src: url($font-file+'.eot?#iefix') format('embedded-opentype'),
|
6
|
+
url($font-file+'.woff') format('woff'),
|
7
|
+
url($font-file+'.ttf') format('truetype'),
|
8
|
+
url($font-file+'.svg#aller') format('svg');
|
9
|
+
font-weight: normal;
|
10
|
+
font-style: normal;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
@include font('Varela Round', '/assets/fonts/VarelaRound-Regular');
|
15
|
+
@include font('Roboto Mono', '/assets/fonts/RobotoMono-Medium');
|
@@ -0,0 +1,155 @@
|
|
1
|
+
.site-header {
|
2
|
+
min-height: $spacing-unit * 1.865;
|
3
|
+
line-height: $base-line-height * $base-font-size * 2.25;
|
4
|
+
|
5
|
+
// Positioning context for the mobile navigation icon
|
6
|
+
position: relative;
|
7
|
+
|
8
|
+
.blinking_cursor {
|
9
|
+
animation: blinker 1s none infinite;
|
10
|
+
font-size: $base-font-size;
|
11
|
+
}
|
12
|
+
|
13
|
+
.command_prompt {
|
14
|
+
color: $color-blue;
|
15
|
+
font-size: $base-font-size;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.site-title {
|
20
|
+
@include relative-font-size(1.625);
|
21
|
+
font-weight: 300;
|
22
|
+
margin-bottom: 0;
|
23
|
+
float: left;
|
24
|
+
|
25
|
+
@include media-query($on-palm) {
|
26
|
+
padding-right: 45px;
|
27
|
+
}
|
28
|
+
|
29
|
+
&,
|
30
|
+
&:visited,
|
31
|
+
&:hover {
|
32
|
+
color: $color-foreground;
|
33
|
+
text-decoration: none;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.wrapper {
|
38
|
+
text-align: justify;
|
39
|
+
}
|
40
|
+
|
41
|
+
/**
|
42
|
+
* Author box
|
43
|
+
*/
|
44
|
+
|
45
|
+
.author-box {
|
46
|
+
margin-bottom: 1em;
|
47
|
+
text-align: left;
|
48
|
+
min-height: 72px;
|
49
|
+
font-style: italic;
|
50
|
+
& > .author-avatar {
|
51
|
+
float: left;
|
52
|
+
white-space: pre-line;
|
53
|
+
margin-right: 1em;
|
54
|
+
width: 72px;
|
55
|
+
height: 72px;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
.site-header {
|
60
|
+
margin-bottom: 1em;
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
.post-title {
|
65
|
+
color: $color-foreground;
|
66
|
+
}
|
67
|
+
|
68
|
+
.post {
|
69
|
+
.post-date {
|
70
|
+
margin-top: 0.5em;
|
71
|
+
color: $color-foreground-dark;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
.post-link-wrapper {
|
76
|
+
margin-bottom: 1.5em;
|
77
|
+
& > .post-link {
|
78
|
+
font-size: $base-font-size;
|
79
|
+
font-size: $post-link-font-size;
|
80
|
+
}
|
81
|
+
|
82
|
+
& > .post-meta {
|
83
|
+
color: $color-foreground-dark;
|
84
|
+
font-size: $small-font-size;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
.tag {
|
89
|
+
color: $color-green;
|
90
|
+
background-color: $color-background-dark;
|
91
|
+
padding: 0.3em 0.6em;
|
92
|
+
border-radius: 0.3em;
|
93
|
+
&:hover {
|
94
|
+
text-decoration: none;
|
95
|
+
color: lighten($color-green, 20%);
|
96
|
+
background-color: lighten($color-background-dark, 5%);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
.post-tags {
|
101
|
+
margin-top: 0.3em;
|
102
|
+
margin-bottom: 0.5em;
|
103
|
+
}
|
104
|
+
|
105
|
+
.credits {
|
106
|
+
font-size: 10px;
|
107
|
+
color: lighten($color-background-dark, 5%);
|
108
|
+
|
109
|
+
& > a {
|
110
|
+
color: lighten($color-background-dark, 10%);
|
111
|
+
text-decoration: underline;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
.pagination {
|
116
|
+
font-size: $post-link-font-size;
|
117
|
+
margin: 2em 0;
|
118
|
+
& > a, & > span {
|
119
|
+
font-weight: normal;
|
120
|
+
display: inline-block;
|
121
|
+
min-width: 1em;
|
122
|
+
|
123
|
+
padding: 0.3em 0.6em;
|
124
|
+
border-radius: 0.3em;
|
125
|
+
text-align: center;
|
126
|
+
|
127
|
+
&:hover {
|
128
|
+
text-decoration: none;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
& > a {
|
133
|
+
color: $color-green;
|
134
|
+
background-color: $color-background-dark;
|
135
|
+
&:hover {
|
136
|
+
color: lighten($color-green, 20%);
|
137
|
+
background-color: lighten($color-background-dark, 5%);
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
& > span {
|
142
|
+
color: darken($color-foreground, 20%);
|
143
|
+
background-color: darken($color-background-dark, 3%);
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
.social_links {
|
148
|
+
float: right;
|
149
|
+
& > a {
|
150
|
+
color: darken($color-foreground, 20%);
|
151
|
+
display: inline-block;
|
152
|
+
margin-left: 0.2em;
|
153
|
+
font-size: $post-link-font-size * 1.25;
|
154
|
+
}
|
155
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/**
|
2
|
+
* Syntax highlighting styles
|
3
|
+
*/
|
4
|
+
.highlight {
|
5
|
+
@extend %vertical-rhythm;
|
6
|
+
|
7
|
+
font-family: $syntax-font-family;
|
8
|
+
line-height: $syntax-line-height;
|
9
|
+
font-weight: 600;
|
10
|
+
|
11
|
+
.c { color: lighten($color-background-dark, 30%);} // Comment
|
12
|
+
.err { color: #a61717; } // Error
|
13
|
+
.k { color: $color-blue; } // Keyword
|
14
|
+
.o { font-weight: bold } // Operator
|
15
|
+
.cm { color: lighten($color-background-dark, 30%); font-style: italic } // Comment.Multiline
|
16
|
+
.cp { color: lighten($color-background-dark, 30%); font-weight: bold } // Comment.Preproc
|
17
|
+
.c1 { color: lighten($color-background-dark, 30%); font-style: italic } // Comment.Single
|
18
|
+
.cs { color: lighten($color-background-dark, 30%); font-weight: bold; font-style: italic } // Comment.Special
|
19
|
+
.gd { color: $color-foreground; } // Generic.Deleted
|
20
|
+
.gd .x { color: $color-foreground; } // Generic.Deleted.Specific
|
21
|
+
.ge { font-style: italic } // Generic.Emph
|
22
|
+
.gr { color: $color-red } // Generic.Error
|
23
|
+
.gh { color: $color-foreground } // Generic.Heading
|
24
|
+
.gi { color: $color-foreground; } // Generic.Inserted
|
25
|
+
.gi .x { color: $color-foreground; } // Generic.Inserted.Specific
|
26
|
+
.go { color: $color-foreground } // Generic.Output
|
27
|
+
.gp { color: $color-foreground } // Generic.Prompt
|
28
|
+
.gs { font-weight: bold } // Generic.Strong
|
29
|
+
.gu { color: #aaa } // Generic.Subheading
|
30
|
+
.gt { color: #a00 } // Generic.Traceback
|
31
|
+
.kc { font-weight: bold } // Keyword.Constant
|
32
|
+
.kd { color: $color-blue; font-weight: bold } // Keyword.Declaration
|
33
|
+
.kp { font-weight: bold } // Keyword.Pseudo
|
34
|
+
.kr { font-weight: bold } // Keyword.Reserved
|
35
|
+
.kt { color: $color-blue; font-weight: bold } // Keyword.Type
|
36
|
+
.m { color: $color-orange } // Literal.Number
|
37
|
+
.s { color: $color-green; } // Literal.String
|
38
|
+
.n { color: $color-foreground; }
|
39
|
+
.na { color: $color-foreground; } // Name.Attribute
|
40
|
+
.nb { color: $color-foreground } // Name.Builtin
|
41
|
+
.nc { color: $color-pink; } // Name.Class
|
42
|
+
.no { color: $color-foreground } // Name.Constant
|
43
|
+
.ni { color: #800080 } // Name.Entity
|
44
|
+
.ne { color: #900; font-weight: bold } // Name.Exception
|
45
|
+
.nf { color: $color-pink; } // Name.Function
|
46
|
+
.nn { color: $color-foreground } // Name.Namespace
|
47
|
+
.nt { color: $color-foreground } // Name.Tag
|
48
|
+
.nv { color: $color-foreground } // Name.Variable
|
49
|
+
.ow { font-weight: bold } // Operator.Word
|
50
|
+
.w { color: #bbb } // Text.Whitespace
|
51
|
+
.mf { color: $color-orange } // Literal.Number.Float
|
52
|
+
.mh { color: $color-orange } // Literal.Number.Hex
|
53
|
+
.mi { color: $color-orange } // Literal.Number.Integer
|
54
|
+
.mo { color: $color-orange } // Literal.Number.Oct
|
55
|
+
.sb { color: $color-orange } // Literal.String.Backtick
|
56
|
+
.sc { color: $color-green } // Literal.String.Char
|
57
|
+
.sd { color: $color-green } // Literal.String.Doc
|
58
|
+
.s2 { color: $color-green } // Literal.String.Double
|
59
|
+
.se { color: $color-green } // Literal.String.Escape
|
60
|
+
.sh { color: $color-green } // Literal.String.Heredoc
|
61
|
+
.si { color: $color-green } // Literal.String.Interpol
|
62
|
+
.sx { color: $color-green } // Literal.String.Other
|
63
|
+
.sr { color: $color-cyan } // Literal.String.Regex
|
64
|
+
.s1 { color: $color-green } // Literal.String.Single
|
65
|
+
.ss { color: $color-green } // Literal.String.Symbol
|
66
|
+
.bp { color: #999 } // Name.Builtin.Pseudo
|
67
|
+
.vc { color: $color-pink } // Name.Variable.Class
|
68
|
+
.vg { color: $color-pink } // Name.Variable.Global
|
69
|
+
.vi { color: $color-pink } // Name.Variable.Instance
|
70
|
+
.il { color: $color-orange } // Literal.Number.Integer.Long
|
71
|
+
}
|
data/_sass/dash.scss
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
|
3
|
+
|
4
|
+
$base-font-family: 'Varela Round', sans-serif;
|
5
|
+
$syntax-font-family: 'Roboto Mono', monospace;
|
6
|
+
$base-font-size: 16px !default;
|
7
|
+
$post-link-font-size: $base-font-size * 1.25 !default;
|
8
|
+
$base-font-weight: 500 !default;
|
9
|
+
$small-font-size: $base-font-size * 0.875 !default;
|
10
|
+
$base-line-height: 1.5 !default;
|
11
|
+
$syntax-line-height: 1.2 !default;
|
12
|
+
|
13
|
+
// Width of the content area
|
14
|
+
$content-width: 800px !default;
|
15
|
+
|
16
|
+
$on-palm: 600px !default;
|
17
|
+
$on-laptop: 800px !default;
|
18
|
+
|
19
|
+
$on-medium: $on-palm !default;
|
20
|
+
$on-large: $on-laptop !default;
|
21
|
+
|
22
|
+
$spacing-unit: 30px !default;
|
23
|
+
|
24
|
+
|
25
|
+
@mixin media-query($device) {
|
26
|
+
@media screen and (max-width: $device) {
|
27
|
+
@content;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
@mixin relative-font-size($ratio) {
|
32
|
+
font-size: $base-font-size * $ratio;
|
33
|
+
}
|
34
|
+
|
35
|
+
// Import partials.
|
36
|
+
@import
|
37
|
+
"dash/fonts",
|
38
|
+
"dash/colors",
|
39
|
+
"dash/animations",
|
40
|
+
"dash/base",
|
41
|
+
"dash/layout",
|
42
|
+
"dash/syntax-highlighting"
|
43
|
+
;
|
Binary file
|