blog.sahithyen.com 0.1.2

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.
@@ -0,0 +1,32 @@
1
+ // Lists
2
+ //––––––––––––––––––––––––––––––––––––––––––––––––––
3
+
4
+ ul {
5
+ list-style: circle inside;
6
+ }
7
+
8
+ ol {
9
+ list-style: decimal inside;
10
+ padding-left: 0;
11
+ margin-top: 0;
12
+ }
13
+
14
+ ul {
15
+ padding-left: 0;
16
+ margin-top: 0;
17
+ ul, ol {
18
+ margin: 1.5rem 0 1.5rem 3rem;
19
+ font-size: 90%;
20
+ }
21
+ }
22
+
23
+ ol {
24
+ ol, ul {
25
+ margin: 1.5rem 0 1.5rem 3rem;
26
+ font-size: 90%;
27
+ }
28
+ }
29
+
30
+ li {
31
+ margin-bottom: 1rem;
32
+ }
@@ -0,0 +1,22 @@
1
+ // Media Queries
2
+ //––––––––––––––––––––––––––––––––––––––––––––––––––
3
+
4
+ // Note: The best way to structure the use of media queries is to create the queries
5
+ // near the relevant code. For example, if you wanted to change the styles for buttons
6
+ // on small devices, paste the mobile query code up in the buttons section and style it
7
+ // there.
8
+
9
+ // Larger than mobile
10
+ @media (#{$bp-larger-than-mobile}) {}
11
+
12
+ // Larger than phablet (also point when grid becomes active)
13
+ @media (#{$bp-larger-than-phablet}) {}
14
+
15
+ // Larger than tablet
16
+ @media (#{$bp-larger-than-tablet}) {}
17
+
18
+ // Larger than desktop
19
+ @media (#{$bp-larger-than-desktop}) {}
20
+
21
+ // Larger than Desktop HD
22
+ @media (#{$bp-larger-than-desktophd}) {}
@@ -0,0 +1,26 @@
1
+ // Spacing
2
+ //––––––––––––––––––––––––––––––––––––––––––––––––––
3
+
4
+ button,
5
+ .button {
6
+ margin-bottom: 1rem;
7
+ }
8
+
9
+ input,
10
+ textarea,
11
+ select,
12
+ fieldset {
13
+ margin-bottom: 1.5rem;
14
+ }
15
+
16
+ pre,
17
+ blockquote,
18
+ dl,
19
+ figure,
20
+ table,
21
+ p,
22
+ ul,
23
+ ol,
24
+ form {
25
+ margin-bottom: 2.5rem;
26
+ }
@@ -0,0 +1,19 @@
1
+ // Tables
2
+ //––––––––––––––––––––––––––––––––––––––––––––––––––
3
+
4
+ th,
5
+ td {
6
+ padding: 12px 15px;
7
+ text-align: left;
8
+ border-bottom: 1px solid $light-grey;
9
+ }
10
+
11
+ th:first-child,
12
+ td:first-child {
13
+ padding-left: 0;
14
+ }
15
+
16
+ th:last-child,
17
+ td:last-child {
18
+ padding-right: 0;
19
+ }
@@ -0,0 +1,6 @@
1
+ /*
2
+ Copyright 2014 Adobe Systems Incorporated. Licensed under the Apache 2.0 License.
3
+ http://www.apache.org/licenses/LICENSE-2.0.html
4
+ */
5
+
6
+ !function(){"use strict";function a(a){var b=parseFloat(a.fontSize),c="normal"===a.lineHeight?r*b:parseFloat(a.lineHeight);return{leading:c-b,lineHeight:c,fontSize:b}}function b(a){var b=a.createElement("div");return b.style.position="fixed",b.style.padding=q,b.style.opacity="0",b.style.fontSize=p,b.style.lineHeight="1",a.body.appendChild(b),b}function c(a){var b=a.ownerDocument.createElement("span");return b.textContent=n,a&&a.appendChild(b),b}function d(a){a.ownerDocument.body.removeChild(a)}function e(a,b,c,d){function e(a,b){var c=4*b,d=a.data[c],e=a.data[c+1],f=a.data[c+2];return 0===d||0===e||0===f}var f=-1,g=document.createElement("canvas");g.width=c,g.height=d,a.appendChild(g);var h=g.getContext("2d");h.font=p+" "+b,h.fillStyle="#ffffff",h.fillRect(0,0,h.canvas.width,h.canvas.height),h.fillStyle="#000000",h.textBaseline="top",h.fillText("E",0,0);for(var i=h.getImageData(Math.ceil(g.width/2),0,1,g.height),j=null,k=g.height-1;k>=0;k--)if(e(i,k)){j=k;break}for(var k=0;k<g.height;k++)if(e(i,k)){f=(j+1-k)/d;break}return f}function f(a,f){var g=s[f];if(g)return g;g={baselineRatio:void 0,capHeightRatio:void 0};var h=b(a);h.style.fontFamily=f;var i=c(h);i.style.fontSize=q;var j=c(h);g.baselineRatio=i.offsetTop/o;try{g.capHeightRatio=e(h,f,j.offsetWidth,o)}catch(a){throw new Error("[dropcap.js] Error computing font metrics: "+a.message)}finally{d(h)}return s[f]=g,g}function g(a){return a+"px"}function h(a){if(a.classList.contains(t))return!0}function i(a){var b="gjpqQ";return b.indexOf(a.textContent)!==-1}function j(a){a.dcapjs&&(a.style.cssFloat="",a.style.padding="",a.style.fontSize="",a.style.lineHeight="",a.style.marginTop="")}function k(b,c,d){if(d||(d=c),1==d&&1==c)return void j(b);var e=b.ownerDocument,k=b,l=k.parentNode,m=window.getComputedStyle(k),n=window.getComputedStyle(l),o=f(e,m.fontFamily),p=f(e,n.fontFamily),r=o.capHeightRatio,s=a(n),t=(p.baselineRatio-p.capHeightRatio)*s.fontSize,u=c*s.lineHeight-s.leading-t-(1-p.baselineRatio)*s.fontSize,v=u/r;k.dcapjs=!0,"rtl"==m.direction?k.style.cssFloat="right":k.style.cssFloat="left",k.style.padding=q,k.style.fontSize=g(v),k.style.lineHeight=q;var w=s.leading/2+t;if(w-=(c-d)*s.lineHeight,k.style.marginTop=g(w),c>d){var x=parseFloat(n.marginTop);l.style.marginTop=g(x+-1*w)}var y=0;i(k)?y=v*(1-o.baselineRatio):h(k)&&(y=v-u),k.style.height=g(u+y);var z=k.dcapjsStrut;z||(z=e.createElement("span"),z.style.display="inline-block",k.appendChild(z),k.dcapjsStrut=z),z.style.height=g(u)}function l(a){function b(a){return a in c.style}var c=window.document.body?window.document.body:document.createElement("div");if(b(a))return a;for(var d=["-webkit-","-moz-","-ms-","-o"],e=0;e<d.length;e++){var f=d[e]+a;if(b(f))return f}return null}var m,n="X",o=100,p=o+"px",q="0px",r=1.15,s={},t="dcjs-descender";m="undefined"!=typeof window?window:"undefined"!=typeof exports?exports:this,m.Dropcap={options:{runEvenIfInitialLetterExists:!0},layout:function(a,b,c){if(0==this.options.runEvenIfInitialLetterExists){var d=l("initial-letter");if(d)return}if(b<1||c&&c<1)throw new RangeError("Dropcap.layout expects the baseline position and height to be 1 or above");if(a instanceof HTMLElement)k(a,b,c);else{if(!(a instanceof NodeList))throw new TypeError("Dropcap.layout expects a single HTMLElement or a NodeList");var e=Array.prototype.forEach;e.call(a,function(a){k(a,b,c)})}}}}();
@@ -0,0 +1,39 @@
1
+ var config = {
2
+ kitId: 'hvf7lmk',
3
+ scriptTimeout: 3000,
4
+ async: false
5
+ },
6
+ h = document.documentElement,
7
+ t = setTimeout(function() {
8
+ h.className = h.className.replace(/\bwf-loading\b/g, "") + " wf-inactive";
9
+ }, config.scriptTimeout),
10
+ tk = document.createElement("script"),
11
+ f = false,
12
+ s = document.getElementsByTagName("script")[0],
13
+ a;
14
+
15
+ h.className += " wf-loading";
16
+ tk.src = 'https://use.typekit.net/' + config.kitId + '.js';
17
+ tk.async = true;
18
+
19
+ tk.onload = tk.onreadystatechange = function() {
20
+ re = this.readyState;
21
+
22
+ if (f ||
23
+ this.readyState &&
24
+ this.readyState != "complete" &&
25
+ this.readyState != "loaded") {
26
+ return;
27
+ }
28
+
29
+ f = true;
30
+ clearTimeout(t);
31
+
32
+ try {
33
+ Typekit.load(config);
34
+
35
+ Dropcap.layout(document.querySelectorAll(".dropcap"), 3);
36
+ } catch (e) {}
37
+ };
38
+
39
+ s.parentNode.insertBefore(tk, s);
@@ -0,0 +1,237 @@
1
+ ---
2
+ ---
3
+
4
+ /*
5
+ Theme Name: Sahithyen's Blog
6
+ Theme URI: http://blog.sahithyen.com
7
+ Author: Sahithyen (sahtihyen@me.com)
8
+ Author URI: http://sahithyen.com
9
+ Description: A minimalistic theme for Sahithyen's Blog
10
+ Version: 1.0
11
+ Tags: black, blue, light, one-column
12
+ */
13
+
14
+ /**
15
+ *
16
+ * Imports
17
+ *
18
+ **/
19
+ @import "skeleton";
20
+ @import "variables";
21
+
22
+ /**
23
+ *
24
+ * Main
25
+ *
26
+ **/
27
+
28
+ // Typography
29
+ body {
30
+ font-family: $body-font;
31
+ font-size: $font-size;
32
+ line-height: $line-height;
33
+ color: $content-color;
34
+ }
35
+ @each $heading, $size in $heading-sizes {
36
+ #{$heading} {
37
+ font-family: $heading-font;
38
+ font-size: $size;
39
+ }
40
+ }
41
+
42
+ a {
43
+ color: $active-color;
44
+ text-decoration: none;
45
+ }
46
+
47
+ a:hover {
48
+ color: $primary-color;
49
+ }
50
+
51
+ .dropcap {
52
+ color: $primary-color;
53
+ margin-right: 0.05em;
54
+ }
55
+
56
+ /* General */
57
+ $top-bar-height: $top-bar-padding-top + ($font-size * $line-height) + $top-bar-padding-bottom + $top-bar-border-size + $search-input-border-size;
58
+
59
+ body {
60
+ padding-top: $top-bar-height + $top-bar-margin-bottom;
61
+ }
62
+
63
+ .wrapper {
64
+ min-height: 100%;
65
+ position: relative;
66
+ }
67
+
68
+ .container {
69
+ max-width: $container-width;
70
+ padding-bottom: 90px;
71
+ }
72
+
73
+ /* Loader */
74
+
75
+ .ball-scale-multiple,
76
+ .loader {
77
+ width: $loader-text-width;
78
+ height: $loader-animation-size + $loader-text-margin-top + ($font-size * $line-height);
79
+ }
80
+
81
+ .loader {
82
+ font-family: $active-font;
83
+ margin: $loader-margin-top auto $loader-margin-bottom;
84
+ }
85
+
86
+ .ball-scale-multiple {
87
+ position: relative;
88
+ }
89
+
90
+ .ball-scale-multiple > div.ball {
91
+ background-color: $loader-animation-color;
92
+ border-radius: 100%;
93
+ animation-fill-mode: both;
94
+ position: absolute;
95
+ top: 0;
96
+ left: ($loader-text-width / 2) - ($loader-animation-size / 2);
97
+ opacity: 0;
98
+ margin: 0;
99
+ width: $loader-animation-size;
100
+ height: $loader-animation-size;
101
+ animation: ball-scale-multiple 1s 0s linear infinite;
102
+ }
103
+
104
+ .ball-scale-multiple > div.ball:nth-child(2) {
105
+ animation-delay: -0.4s;
106
+ }
107
+
108
+ .ball-scale-multiple > div.ball:nth-child(3) {
109
+ animation-delay: -0.2s;
110
+ }
111
+
112
+ .ball-scale-multiple > div.text {
113
+ position: absolute;
114
+ top: $loader-animation-size + $loader-text-margin-top;
115
+ left: 0;
116
+ width: $loader-text-width;
117
+ text-align: center;
118
+ }
119
+ @keyframes ball-scale-multiple {
120
+ 0% {
121
+ transform: scale(0);
122
+ opacity: 0;
123
+ }
124
+
125
+ 5% {
126
+ opacity: 1;
127
+ }
128
+
129
+ 100% {
130
+ transform: scale(1);
131
+ opacity: 0;
132
+ }
133
+ }
134
+
135
+ /* Top bar */
136
+
137
+ .top-bar {
138
+ font-family: $active-font;
139
+ position: fixed;
140
+ top: 0;
141
+ left: 0;
142
+ right: 0;
143
+ background-color: $top-bar-color;
144
+ z-index: 1000;
145
+ }
146
+
147
+ .top-bar-inner {
148
+ padding: $top-bar-padding-top $top-bar-padding-sides $top-bar-padding-bottom;
149
+ margin: 0 $top-bar-margin-sides;
150
+ border-bottom: $top-bar-border-size solid $top-bar-border-color;
151
+ }
152
+
153
+ .top-bar .item:first-child {
154
+ margin-left: 0;
155
+ }
156
+
157
+ .top-bar .item {
158
+ margin-left: $top-bar-item-margin;
159
+ }
160
+
161
+ .top-bar form {
162
+ margin: 0;
163
+ padding: 0;
164
+ }
165
+
166
+ .top-bar input {
167
+ margin: 0;
168
+ height: $font-size * $line-height;
169
+ padding: 0;
170
+ border: none;
171
+ border-bottom: $search-input-border-size solid $active-color;
172
+ border-radius: 0;
173
+ }
174
+
175
+ .top-bar input:focus {
176
+ border: none;
177
+ border-bottom: $search-input-border-size solid $primary-color;
178
+ }
179
+
180
+ /* Articles */
181
+
182
+ .content-wrapper {
183
+ position: relative;
184
+ }
185
+
186
+ .content-info .category {
187
+ font-weight: bold;
188
+ }
189
+ @media screen and (min-width: $content-info-left-min-size) {
190
+ .content-info {
191
+ display: inline-block;
192
+ position: absolute;
193
+ left: -($content-info-width + $content-info-margin);
194
+ width: $content-info-width;
195
+ text-align: right;
196
+ }
197
+ }
198
+
199
+ /* Archive */
200
+
201
+ .archive-entry-wrapper {
202
+ position: relative;
203
+ min-height: 2 * $font-size * $line-height;
204
+ margin-bottom: 25px;
205
+ }
206
+
207
+ .archive-info .category {
208
+ font-weight: bold;
209
+ }
210
+ @media screen and (min-width: $content-info-left-min-size) {
211
+ .archive-info {
212
+ display: inline-block;
213
+ position: absolute;
214
+ left: -($content-info-width + $content-info-margin);
215
+ width: $content-info-width;
216
+ text-align: right;
217
+ }
218
+ }
219
+
220
+ /* Footer */
221
+
222
+ footer {
223
+ position: absolute;
224
+ bottom: 0;
225
+ left: 0;
226
+ right: 0;
227
+ }
228
+
229
+ .footer-bar {
230
+ background-color: $footer-bar-color;
231
+ }
232
+
233
+ .footer-bar-inner {
234
+ margin: 0 $footer-bar-margin-sides;
235
+ padding: $footer-bar-padding-top $footer-bar-padding-sides $footer-bar-padding-bottom;
236
+ border-top: $footer-bar-border-size solid $footer-bar-border-color;
237
+ }
metadata ADDED
@@ -0,0 +1,116 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: blog.sahithyen.com
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Sahithyen Kanaganayagam
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-01-16 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.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '1.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description: This is the Jekyll theme for https://blog.sahithyen.com/. Feel free to
56
+ use it!
57
+ email:
58
+ - sahithyen@me.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - LICENSE.txt
64
+ - README.md
65
+ - _includes/footer.html
66
+ - _includes/head.html
67
+ - _includes/navigation.html
68
+ - _includes/scripts.html
69
+ - _layouts/default.html
70
+ - _layouts/home.html
71
+ - _layouts/page.html
72
+ - _layouts/post.html
73
+ - _sass/_skeleton.scss
74
+ - _sass/_variables.scss
75
+ - _sass/base/_base-styles.scss
76
+ - _sass/base/_functions.scss
77
+ - _sass/base/_normalize.scss
78
+ - _sass/base/_typography.scss
79
+ - _sass/base/_utils.scss
80
+ - _sass/base/_variables.scss
81
+ - _sass/modules/_buttons.scss
82
+ - _sass/modules/_code.scss
83
+ - _sass/modules/_forms.scss
84
+ - _sass/modules/_grid.scss
85
+ - _sass/modules/_lists.scss
86
+ - _sass/modules/_media-queries.scss
87
+ - _sass/modules/_spacing.scss
88
+ - _sass/modules/_tables.scss
89
+ - assets/dropcap.min.js
90
+ - assets/script.js
91
+ - assets/styles.scss
92
+ homepage: https://blog.sahithyen.com/
93
+ licenses:
94
+ - MIT
95
+ metadata: {}
96
+ post_install_message:
97
+ rdoc_options: []
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirements: []
111
+ rubyforge_project:
112
+ rubygems_version: 2.0.14.1
113
+ signing_key:
114
+ specification_version: 4
115
+ summary: This is the Jekyll theme for https://blog.sahithyen.com/.
116
+ test_files: []