jekyll-theme-type 1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,63 @@
1
+ // pygments-css (https://github.com/richleland/pygments-css)
2
+
3
+ .hll { background-color: #ffffcc }
4
+ .c { color: #999988; font-style: italic } /* Comment */
5
+ .err { color: #a61717; background-color: #e3d2d2 } /* Error */
6
+ .k { color: #000000; font-weight: bold } /* Keyword */
7
+ .o { color: #000000; font-weight: bold } /* Operator */
8
+ .cm { color: #999988; font-style: italic } /* Comment.Multiline */
9
+ .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
10
+ .c1 { color: #999988; font-style: italic } /* Comment.Single */
11
+ .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
12
+ .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
13
+ .ge { color: #000000; font-style: italic } /* Generic.Emph */
14
+ .gr { color: #aa0000 } /* Generic.Error */
15
+ .gh { color: #999999 } /* Generic.Heading */
16
+ .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
17
+ .go { color: #888888 } /* Generic.Output */
18
+ .gp { color: #555555 } /* Generic.Prompt */
19
+ .gs { font-weight: bold } /* Generic.Strong */
20
+ .gu { color: #aaaaaa } /* Generic.Subheading */
21
+ .gt { color: #aa0000 } /* Generic.Traceback */
22
+ .kc { color: #000000; font-weight: bold } /* Keyword.Constant */
23
+ .kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
24
+ .kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
25
+ .kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
26
+ .kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
27
+ .kt { color: #445588; font-weight: bold } /* Keyword.Type */
28
+ .m { color: #009999 } /* Literal.Number */
29
+ .s { color: #d01040 } /* Literal.String */
30
+ .na { color: #008080 } /* Name.Attribute */
31
+ .nb { color: #0086B3 } /* Name.Builtin */
32
+ .nc { color: #445588; font-weight: bold } /* Name.Class */
33
+ .no { color: #008080 } /* Name.Constant */
34
+ .nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
35
+ .ni { color: #800080 } /* Name.Entity */
36
+ .ne { color: #990000; font-weight: bold } /* Name.Exception */
37
+ .nf { color: #990000; font-weight: bold } /* Name.Function */
38
+ .nl { color: #990000; font-weight: bold } /* Name.Label */
39
+ .nn { color: #555555 } /* Name.Namespace */
40
+ .nt { color: #000080 } /* Name.Tag */
41
+ .nv { color: #008080 } /* Name.Variable */
42
+ .ow { color: #000000; font-weight: bold } /* Operator.Word */
43
+ .w { color: #bbbbbb } /* Text.Whitespace */
44
+ .mf { color: #009999 } /* Literal.Number.Float */
45
+ .mh { color: #009999 } /* Literal.Number.Hex */
46
+ .mi { color: #009999 } /* Literal.Number.Integer */
47
+ .mo { color: #009999 } /* Literal.Number.Oct */
48
+ .sb { color: #d01040 } /* Literal.String.Backtick */
49
+ .sc { color: #d01040 } /* Literal.String.Char */
50
+ .sd { color: #d01040 } /* Literal.String.Doc */
51
+ .s2 { color: #d01040 } /* Literal.String.Double */
52
+ .se { color: #d01040 } /* Literal.String.Escape */
53
+ .sh { color: #d01040 } /* Literal.String.Heredoc */
54
+ .si { color: #d01040 } /* Literal.String.Interpol */
55
+ .sx { color: #d01040 } /* Literal.String.Other */
56
+ .sr { color: #009926 } /* Literal.String.Regex */
57
+ .s1 { color: #d01040 } /* Literal.String.Single */
58
+ .ss { color: #990073 } /* Literal.String.Symbol */
59
+ .bp { color: #999999 } /* Name.Builtin.Pseudo */
60
+ .vc { color: #008080 } /* Name.Variable.Class */
61
+ .vg { color: #008080 } /* Name.Variable.Global */
62
+ .vi { color: #008080 } /* Name.Variable.Instance */
63
+ .il { color: #009999 } /* Literal.Number.Integer.Long */
@@ -0,0 +1,8 @@
1
+ .site-footer {
2
+ @extend %padding-regular;
3
+ display: inline-block;
4
+ text-align: center;
5
+ width: 100%;
6
+ color: lighten($text-color, 30%);
7
+ font-size: 0.9em;
8
+ }
@@ -0,0 +1,53 @@
1
+ .site-header {
2
+ @extend %padding-small;
3
+ background: $brand-color;
4
+ border-bottom: 1px solid $border-color;
5
+ display: inline-block;
6
+ float: left;
7
+ width: 100%;
8
+
9
+ a {
10
+ color: $header-link-color;
11
+ }
12
+
13
+ .avatar {
14
+ height: 2em;
15
+ width: 2em;
16
+ float: left;
17
+ margin-top: -3px;
18
+ border-radius: 0.2em;
19
+ margin-right: 1em;
20
+ }
21
+
22
+ .site-title {
23
+ float: left;
24
+ font-weight: bold;
25
+ font-size: 1em;
26
+ line-height: 1.5;
27
+ }
28
+
29
+ .site-nav {
30
+ ul {
31
+ margin: 0;
32
+ padding: 0;
33
+ list-style: none;
34
+ line-height: 1.5;
35
+ float: right;
36
+ text-align: right;
37
+ }
38
+ li {
39
+ display: inline;
40
+ float: left;
41
+ margin-right: 0.4em;
42
+ }
43
+ @media (max-width: 1100px) {
44
+ ul {
45
+ display: inline-block;
46
+ float: left;
47
+ padding-top: $padding-small;
48
+ text-align: left;
49
+ width: 100%;
50
+ }
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,42 @@
1
+ // Header text feature
2
+ .call-out {
3
+ @extend %padding-regular;
4
+ display: inline-block;
5
+ width: 100%;
6
+ background-color:$header-desc-background-color;
7
+ background-size: cover;
8
+ font-size: 1.2em;
9
+ text-align: center;
10
+ color: $header-desc-text-color;
11
+ }
12
+ .call-out p:last-child {
13
+ margin-bottom: 0;
14
+ }
15
+ // Post listing
16
+ .posts {
17
+ .post-teaser {
18
+ @extend %padding-regular;
19
+ width: 100%;
20
+ margin-bottom: 0;
21
+ display: inline-block;
22
+ background-size: $feature-image-size;
23
+ border-bottom: 1px solid $border-color;
24
+ p a:hover {
25
+ @extend %link-hover;
26
+ }
27
+ }
28
+ .excerpt {
29
+ margin-top: 1em;
30
+ }
31
+ }
32
+ // Pagination
33
+ .pagination .button {
34
+ margin: 0 1.5em;
35
+ i {
36
+ vertical-align: middle;
37
+ }
38
+ }
39
+ .pagination {
40
+ padding: $padding-small $padding-large 0 $padding-large;
41
+ text-align: center;
42
+ }
@@ -0,0 +1,81 @@
1
+ article,
2
+ .comments {
3
+ @extend %padding-regular;
4
+ border-bottom: 1px solid $border-color;
5
+ float: left;
6
+ width: 100%;
7
+ }
8
+ article {
9
+ header {
10
+ margin-bottom: 6%;
11
+ text-align: center;
12
+ }
13
+ a:hover {
14
+ @extend %link-hover;
15
+ }
16
+ .footnotes {
17
+ font-size: 0.9em;
18
+ }
19
+ }
20
+ header {
21
+ h1 {
22
+ margin: 0;
23
+ }
24
+ .meta {
25
+ color: rgba($text-color, .5);
26
+ font-size: 0.9em;
27
+ letter-spacing: 0.1em;
28
+ margin: 0;
29
+ text-transform: uppercase;
30
+ }
31
+ }
32
+ .feature-image {
33
+ padding: 0%;
34
+ .post-link {
35
+ color: $feature-image-text-color;
36
+ }
37
+ header {
38
+ color: $feature-image-text-color;
39
+ background-size: $feature-image-size;
40
+ margin-bottom: 0;
41
+ padding: $padding-large/2.5 $padding-large;
42
+ .meta {
43
+ color: rgba($feature-image-text-color, .7);
44
+ }
45
+ }
46
+ .post-content {
47
+ @extend %padding-regular;
48
+ }
49
+ }
50
+ // Post navigation
51
+ #post-nav {
52
+ width:100%;
53
+ border-bottom: 1px solid $border-color;
54
+ display: flex;
55
+ float: left;
56
+
57
+ a, .page-title {
58
+ display: inline-block;
59
+ }
60
+
61
+ .page-title {
62
+ font-size: 1.2em;
63
+ margin-bottom: 1em;
64
+ width: 100%;
65
+ }
66
+
67
+ a {
68
+ padding: 2em 3em;
69
+ border: 1px solid rgba(255, 255, 255, 0);
70
+ text-align: center;
71
+ width: 50%;
72
+ }
73
+ a:hover {
74
+ @extend a.button:hover;
75
+ }
76
+
77
+ i {
78
+ vertical-align: middle;
79
+ }
80
+ }
81
+
@@ -0,0 +1,16 @@
1
+ // External
2
+ @import 'external/reset';
3
+ @import 'external/syntax';
4
+
5
+ // Base
6
+ @import 'base/variables';
7
+ @import 'base/global';
8
+ @import 'base/utility';
9
+
10
+ // Posts
11
+ @import 'layouts/posts';
12
+ @import 'layouts/index';
13
+
14
+ // Partials
15
+ @import 'includes/header';
16
+ @import 'includes/footer';
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @import "type-theme";
Binary file
@@ -0,0 +1,22 @@
1
+ var elements = document.getElementsByTagName('script')
2
+
3
+ Array.prototype.forEach.call(elements, function(element) {
4
+ if (element.type.indexOf('math/tex') != -1) {
5
+ // Extract math markdown
6
+ var textToRender = element.innerText || element.textContent;
7
+
8
+ // Create span for KaTeX
9
+ var katexElement = document.createElement('span');
10
+
11
+ // Support inline and display math
12
+ if (element.type.indexOf('mode=display') != -1){
13
+ katexElement.className += "math-display";
14
+ textToRender = '\\displaystyle {' + textToRender + '}';
15
+ } else {
16
+ katexElement.className += "math-inline";
17
+ }
18
+
19
+ katex.render(textToRender, katexElement);
20
+ element.parentNode.insertBefore(katexElement, element);
21
+ }
22
+ });
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-type
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.0'
5
+ platform: ruby
6
+ authors:
7
+ - Rohan Chandra
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-05-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jekyll-paginate
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.12'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.12'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ description:
70
+ email:
71
+ - hellorohan@outlook.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - LICENSE
77
+ - README.md
78
+ - _includes/disqus.html
79
+ - _includes/footer.html
80
+ - _includes/head.html
81
+ - _includes/header.html
82
+ - _includes/icons.html
83
+ - _includes/muut.html
84
+ - _layouts/default.html
85
+ - _layouts/home.html
86
+ - _layouts/page.html
87
+ - _layouts/post.html
88
+ - _sass/base/_global.scss
89
+ - _sass/base/_utility.scss
90
+ - _sass/base/_variables.scss
91
+ - _sass/external/_reset.scss
92
+ - _sass/external/_syntax.scss
93
+ - _sass/includes/_footer.scss
94
+ - _sass/includes/_header.scss
95
+ - _sass/layouts/_index.scss
96
+ - _sass/layouts/_posts.scss
97
+ - _sass/type-theme.scss
98
+ - assets/css/main.scss
99
+ - assets/img/avatar.png
100
+ - assets/img/sample_feature_img.png
101
+ - assets/img/sample_feature_img_2.png
102
+ - assets/img/sample_feature_img_3.png
103
+ - assets/js/katex_init.js
104
+ homepage: https://github.com/rohanchandra/type-theme
105
+ licenses:
106
+ - MIT
107
+ metadata: {}
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project:
124
+ rubygems_version: 2.6.8
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: A free and open-source Jekyll theme. Great for blogs and easy to customize.
128
+ test_files: []