gracy 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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 02fe6d685f9dd78f93edfc0f11225cfcf2316e56
4
+ data.tar.gz: 133983fe27c1a82a87ed81e800c5cf6c086b874c
5
+ SHA512:
6
+ metadata.gz: d6df0d6a5f86c1d9d1ac9e4843e3454a5001305926010013e6681575ef3fcb30be8818801552362f509cbbcff46bde730a024fd50503a7a91a3daaa94f700466
7
+ data.tar.gz: '08dde47213aca9be07e2db31409a597762d459c875e82a6af2bb555a10f5dc543ab959e428262a68be83cea701328fa3da1a842c389ae0b9dc06a378f24e5416'
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Steven Dao
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,40 @@
1
+ <p align="center">
2
+ <img src="./assets/icon.png" alt="gracy icon">
3
+ </p>
4
+
5
+ Yet another minimal Jekyll theme.
6
+ Based on [Minima](https://github.com/jekyll/minima) theme, inspired by [EvanHahn](http://evanhahn.com/)'s blog.
7
+
8
+ ## Installation
9
+ Add this line to your Jekyll site's `Gemfile`:
10
+ ```ruby
11
+ gem "gracy"
12
+ ```
13
+ And add this line to your Jekyll site's `_config.yml`:
14
+ ```yaml
15
+ theme: gracy
16
+ ```
17
+ And then execute:
18
+ ```bash
19
+ $ bundle
20
+ ```
21
+ Or install it yourself as:
22
+ ```bash
23
+ $ gem install rollie
24
+ ```
25
+
26
+ ## Usage
27
+ - Instructions about adding posts and diary are pretty much explained inside.
28
+ - You can customize files inside `includes` folder for **header**, **footer**, and **icon**.
29
+ - `_config.yml` includes all comments about modification.
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/iamstevendao/gracy.
34
+
35
+ ## License
36
+
37
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
38
+
39
+ made with &#x2764; by [Steven](https://github.com/iamstevendao).
40
+
@@ -0,0 +1,20 @@
1
+ {% if page.comments != false and jekyll.environment == "production" %}
2
+
3
+ <div id="disqus_thread"></div>
4
+ <script>
5
+ var disqus_config = function () {
6
+ this.page.url = '{{ page.url | absolute_url }}';
7
+ this.page.identifier = '{{ page.url | absolute_url }}';
8
+ };
9
+
10
+ (function() {
11
+ var d = document, s = d.createElement('script');
12
+
13
+ s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
14
+
15
+ s.setAttribute('data-timestamp', +new Date());
16
+ (d.head || d.body).appendChild(s);
17
+ })();
18
+ </script>
19
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
20
+ {% endif %}
@@ -0,0 +1,30 @@
1
+ <footer class="site-footer">
2
+
3
+ <div class="wrapper">
4
+
5
+ <div class="footer-col-wrapper">
6
+
7
+ <div class="footer-col">
8
+ <p align="center">{{ site.description | escape }}</p>
9
+ <ul class="social-media-list">
10
+ {% if site.github_username %}
11
+ <li>
12
+ {% include icon-github.html username=site.github_username %}
13
+ </li>
14
+ {% endif %} {% if site.twitter_username %}
15
+ <li>
16
+ {% include icon-twitter.html username=site.twitter_username %}
17
+ </li>
18
+ {% endif %} {% if site.web %}
19
+ <li>
20
+ {% include icon-web.html username=site.web %}
21
+ </li>
22
+ {% endif %}
23
+ </ul>
24
+ </div>
25
+
26
+ </div>
27
+
28
+ </div>
29
+
30
+ </footer>
@@ -0,0 +1,11 @@
1
+ <script>
2
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6
+
7
+ ga('create', '{{ site.google_analytics }}', 'auto');
8
+ ga('send', 'pageview');
9
+
10
+ </script>
11
+
@@ -0,0 +1,15 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+
6
+ <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7
+ <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
8
+ <link rel="icon" type="image/png" href="{{ "/assets/icon.png" | relative_url }}">
9
+ <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
10
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
11
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
12
+ {% if jekyll.environment == 'production' and site.google_analytics %}
13
+ {% include google-analytics.html %}
14
+ {% endif %}
15
+ </head>
@@ -0,0 +1,30 @@
1
+ <header class="site-header" role="banner">
2
+
3
+ <div class="wrapper">
4
+ {% assign default_paths = site.pages | map: "path" %}
5
+ {% assign page_paths = site.header_pages | default: default_paths %}
6
+ <a class="site-title" href="{{ '/' | relative_url }}">{{ site.title | escape }}</a>
7
+ {% if page_paths %}
8
+ <nav class="site-nav">
9
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
10
+ <label for="nav-trigger">
11
+ <span class="menu-icon">
12
+ <svg viewBox="0 0 18 15" width="18px" height="15px">
13
+ <path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
14
+ <path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
15
+ <path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
16
+ </svg>
17
+ </span>
18
+ </label>
19
+ <div class="trigger">
20
+ {% for path in page_paths %}
21
+ {% assign my_page = site.pages | where: "path", path | first %}
22
+ {% if my_page.title %}
23
+ <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
24
+ {% endif %}
25
+ {% endfor %}
26
+ </div>
27
+ </nav>
28
+ {% endif %}
29
+ </div>
30
+ </header>
@@ -0,0 +1 @@
1
+ <a target="_blank" href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/></svg>
@@ -0,0 +1 @@
1
+ <a target="_blank" href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span><span class="username">{{ include.username }}</span></a>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/></svg>
@@ -0,0 +1 @@
1
+ <a target="_blank" href="https://iamstevendao.github.io/rollie"><span class="icon icon--web">{% include icon-web.svg %}</span><span class="username">{{ include.username }}</span></a>
@@ -0,0 +1,5 @@
1
+ <!-- Generated by IcoMoon.io -->
2
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
3
+ <title>earth</title>
4
+ <path fill="#828282" d="M8 0c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8zM8 15c-0.984 0-1.92-0.203-2.769-0.57l3.643-4.098c0.081-0.092 0.126-0.21 0.126-0.332v-1.5c0-0.276-0.224-0.5-0.5-0.5-1.765 0-3.628-1.835-3.646-1.854-0.094-0.094-0.221-0.146-0.354-0.146h-2c-0.276 0-0.5 0.224-0.5 0.5v3c0 0.189 0.107 0.363 0.276 0.447l1.724 0.862v2.936c-1.813-1.265-3-3.366-3-5.745 0-1.074 0.242-2.091 0.674-3h1.826c0.133 0 0.26-0.053 0.354-0.146l2-2c0.094-0.094 0.146-0.221 0.146-0.354v-1.21c0.634-0.189 1.305-0.29 2-0.29 1.1 0 2.141 0.254 3.067 0.706-0.065 0.055-0.128 0.112-0.188 0.172-0.567 0.567-0.879 1.32-0.879 2.121s0.312 1.555 0.879 2.121c0.569 0.569 1.332 0.879 2.119 0.879 0.049 0 0.099-0.001 0.149-0.004 0.216 0.809 0.605 2.917-0.131 5.818-0.007 0.027-0.011 0.055-0.013 0.082-1.271 1.298-3.042 2.104-5.002 2.104z"></path>
5
+ </svg>
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: " en " }}">
3
+ {% include head.md %}
4
+
5
+ <body>
6
+ {% include header.md %}
7
+ <main class="page-content" aria-label="Content">
8
+ <div class="wrapper">
9
+ {{ content }}
10
+ </div>
11
+ </main>
12
+ {% include footer.html %}
13
+ </body>
14
+
15
+ </html>
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="page">
5
+ <header>
6
+ <h1 class="title">{{ page.title | escape }}</h1>
7
+ </header>
8
+ <div class="body">
9
+ {{ content }}
10
+ </div>
11
+ </div>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="page" itemscope itemtype="http://schema.org/BlogPosting">
5
+ <header>
6
+ <h1 class="title">{{ page.title | escape}}</h2>
7
+ <time datetime="{{ page.date | date: " %Y-%m-%d " }}">
8
+ {{ page.date | date: "%-d %B %Y" }}
9
+ </time>
10
+ </header>
11
+ <div class="body">
12
+ {{content}}
13
+ </div>
14
+ </div>
@@ -0,0 +1,63 @@
1
+ @charset "utf-8";
2
+ @import url('https://fonts.googleapis.com/css?family=Lato');
3
+ @import url('https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css');
4
+
5
+
6
+ // Define defaults for each variable.
7
+
8
+ $font-family-base: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif !default;
9
+ $font-family-code: "Fira Code", "Menlo", "Monaco", "Consolas", "monospace" !default;
10
+ $base-font-size: 16px !default;
11
+ $base-font-weight: 400 !default;
12
+ $small-font-size: 13px !default;
13
+ $base-line-height: 1.5 !default;
14
+
15
+ $spacing-unit: 30px !default;
16
+
17
+ $text-color-base: #111 !default;
18
+ $text-color-code: #D4D4D4 !default;
19
+
20
+ $background-color-base: #fdfdfd !default;
21
+ $background-color-code: #1E1E1E !default;
22
+
23
+ $brand-color: #2a7ae2 !default;
24
+
25
+ $grey-color: #828282 !default;
26
+ $grey-color-light: lighten($grey-color, 40%) !default;
27
+ $grey-color-dark: darken($grey-color, 25%) !default;
28
+
29
+ // Width of the content area
30
+ $content-width: 800px !default;
31
+
32
+ $on-palm: 650px !default;
33
+ $on-laptop: 800px !default;
34
+
35
+ // Use media queries like this:
36
+ // @include media-query($on-palm) {
37
+ // .wrapper {
38
+ // padding-right: $spacing-unit / 2;
39
+ // padding-left: $spacing-unit / 2;
40
+ // }
41
+ // }
42
+
43
+ @mixin media-query($device) {
44
+ @media screen and (max-width: $device) {
45
+ @content;
46
+ }
47
+ }
48
+
49
+ @mixin relative-font-size($ratio) {
50
+ font-size: $base-font-size * $ratio;
51
+ }
52
+
53
+ @mixin time($font-size) {
54
+ font-size: $font-size;
55
+ text-transform: uppercase;
56
+ }
57
+
58
+ // Import partials.
59
+ @import
60
+ "gracy/base",
61
+ "gracy/layout",
62
+ "gracy/syntax-highlighting"
63
+ ;
@@ -0,0 +1,222 @@
1
+ /**
2
+ * Reset some basic elements
3
+ */
4
+ body, h1, h2, h3, h4, h5, h6,
5
+ p, blockquote, pre, hr,
6
+ dl, dd, ol, ul, figure {
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+
11
+
12
+
13
+ /**
14
+ * Basic styling
15
+ */
16
+ body {
17
+ font: $base-font-weight #{$base-font-size}/#{$base-line-height} $font-family-base;
18
+ color: $text-color-base;
19
+ background-color: $background-color-base;
20
+ -webkit-text-size-adjust: 100%;
21
+ -webkit-font-feature-settings: "kern" 1;
22
+ -moz-font-feature-settings: "kern" 1;
23
+ -o-font-feature-settings: "kern" 1;
24
+ font-feature-settings: "kern" 1;
25
+ font-kerning: normal;
26
+ }
27
+
28
+
29
+
30
+ /**
31
+ * Set `margin-bottom` to maintain vertical rhythm
32
+ */
33
+ h1, h2, h3, h4, h5, h6,
34
+ p, blockquote, pre,
35
+ ul, ol, dl, figure,
36
+ %vertical-rhythm {
37
+ margin-bottom: $spacing-unit / 2;
38
+ }
39
+
40
+
41
+
42
+ /**
43
+ * Images
44
+ */
45
+ img {
46
+ max-width: 100%;
47
+ vertical-align: middle;
48
+ }
49
+
50
+
51
+
52
+ /**
53
+ * Figures
54
+ */
55
+ figure > img {
56
+ display: block;
57
+ }
58
+
59
+ figcaption {
60
+ font-size: $small-font-size;
61
+ }
62
+
63
+
64
+
65
+ /**
66
+ * Lists
67
+ */
68
+ ul, ol {
69
+ margin-left: $spacing-unit;
70
+ }
71
+
72
+ li {
73
+ > ul,
74
+ > ol {
75
+ margin-bottom: 0;
76
+ }
77
+ }
78
+
79
+
80
+
81
+ /**
82
+ * Headings
83
+ */
84
+ h1, h2, h3, h4, h5, h6 {
85
+ font-weight: $base-font-weight;
86
+ }
87
+
88
+
89
+
90
+ /**
91
+ * Links
92
+ */
93
+ a {
94
+ color: $brand-color;
95
+ text-decoration: none;
96
+
97
+ &:visited {
98
+ color: $brand-color;
99
+ }
100
+
101
+ &:hover {
102
+ color: $brand-color;
103
+ text-decoration: underline;
104
+ }
105
+
106
+ .social-media-list &:hover {
107
+ text-decoration: none;
108
+
109
+ .username {
110
+ text-decoration: underline;
111
+ }
112
+ }
113
+ }
114
+
115
+
116
+ /**
117
+ * Blockquotes
118
+ */
119
+ blockquote {
120
+ color: $grey-color;
121
+ border-left: 4px solid $grey-color-light;
122
+ padding-left: $spacing-unit / 2;
123
+ @include relative-font-size(1.125);
124
+ letter-spacing: -1px;
125
+ font-style: italic;
126
+
127
+ > :last-child {
128
+ margin-bottom: 0;
129
+ }
130
+ }
131
+
132
+
133
+
134
+ /**
135
+ * Code formatting
136
+ */
137
+ pre,
138
+ code {
139
+ @include relative-font-size(0.9375);
140
+ border: 1px solid $grey-color-light;
141
+ border-radius: 3px;
142
+ background-color: #1E1E1E;//
143
+ color: #D4D4D4;//
144
+ font-family: $font-family-code;
145
+ font-size: 14px;
146
+ }
147
+
148
+ code {
149
+ padding: 1px 5px;
150
+ }
151
+
152
+ pre {
153
+ padding: 8px 12px;
154
+ overflow-x: auto;
155
+ tab-size: 2; // change default tab size
156
+
157
+ > code {
158
+ border: 0;
159
+ padding-right: 0;
160
+ padding-left: 0;
161
+ }
162
+ }
163
+
164
+
165
+
166
+ /**
167
+ * Wrapper
168
+ */
169
+ .wrapper {
170
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
171
+ max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
172
+ margin-right: auto;
173
+ margin-left: auto;
174
+ padding-right: $spacing-unit;
175
+ padding-left: $spacing-unit;
176
+ @extend %clearfix;
177
+
178
+ @include media-query($on-laptop) {
179
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
180
+ max-width: calc(#{$content-width} - (#{$spacing-unit}));
181
+ padding-right: $spacing-unit / 2;
182
+ padding-left: $spacing-unit / 2;
183
+ }
184
+ }
185
+
186
+
187
+
188
+ /**
189
+ * Clearfix
190
+ */
191
+ %clearfix:after {
192
+ content: "";
193
+ display: table;
194
+ clear: both;
195
+ }
196
+
197
+
198
+
199
+ /**
200
+ * Icons
201
+ */
202
+ .icon > svg {
203
+ display: inline-block;
204
+ vertical-align: middle;
205
+
206
+ path {
207
+ fill: $grey-color;
208
+ }
209
+ }
210
+
211
+ .social-media-list {
212
+ display: flex;
213
+ flex-direction: row;
214
+ justify-content: center;
215
+ .icon {
216
+ padding-right: 5px;
217
+ }
218
+
219
+ li + li {
220
+ padding-left: 10px;
221
+ }
222
+ }
@@ -0,0 +1,255 @@
1
+ /**
2
+ * Site header
3
+ */
4
+ .site-header {
5
+ border-top: 5px solid $grey-color-dark;
6
+ border-bottom: 1px solid $grey-color-light;
7
+ min-height: $spacing-unit * 1.865;
8
+
9
+ // Positioning context for the mobile navigation icon
10
+ position: relative;
11
+ }
12
+
13
+ .site-title {
14
+ @include relative-font-size(1.625);
15
+ font-weight: 300;
16
+ line-height: $base-line-height * $base-font-size * 2.25;
17
+ letter-spacing: -1px;
18
+ margin-bottom: 0;
19
+ float: left;
20
+
21
+ &,
22
+ &:visited {
23
+ color: $grey-color-dark;
24
+ }
25
+ }
26
+
27
+ .site-nav {
28
+ float: right;
29
+ line-height: $base-line-height * $base-font-size * 2.25;
30
+
31
+ .nav-trigger {
32
+ display: none;
33
+ }
34
+
35
+ .menu-icon {
36
+ display: none;
37
+ }
38
+
39
+ .page-link {
40
+ color: $text-color-base;
41
+ line-height: $base-line-height;
42
+
43
+ // Gaps between nav items, but not on the last one
44
+ &:not(:last-child) {
45
+ margin-right: 20px;
46
+ }
47
+ }
48
+
49
+ @include media-query($on-palm) {
50
+ position: absolute;
51
+ top: 9px;
52
+ right: $spacing-unit / 2;
53
+ background-color: $background-color-base;
54
+ border: 1px solid $grey-color-light;
55
+ border-radius: 5px;
56
+ text-align: right;
57
+
58
+ label[for="nav-trigger"] {
59
+ display: block;
60
+ float: right;
61
+ width: 36px;
62
+ height: 36px;
63
+ z-index: 2;
64
+ cursor: pointer;
65
+ }
66
+
67
+ .menu-icon {
68
+ display: block;
69
+ float: right;
70
+ width: 36px;
71
+ height: 26px;
72
+ line-height: 0;
73
+ padding-top: 10px;
74
+ text-align: center;
75
+
76
+ > svg path {
77
+ fill: $grey-color-dark;
78
+ }
79
+ }
80
+
81
+ input ~ .trigger {
82
+ clear: both;
83
+ display: none;
84
+ }
85
+
86
+ input:checked ~ .trigger {
87
+ display: block;
88
+ padding-bottom: 5px;
89
+ }
90
+
91
+ .page-link {
92
+ display: block;
93
+ padding: 5px 10px;
94
+
95
+ &:not(:last-child) {
96
+ margin-right: 0;
97
+ }
98
+ margin-left: 20px;
99
+ }
100
+ }
101
+ }
102
+
103
+
104
+
105
+ /**
106
+ * Site footer
107
+ */
108
+ .site-footer {
109
+ border-top: 1px solid $grey-color-light;
110
+ padding: $spacing-unit 0;
111
+ }
112
+
113
+ .footer-heading {
114
+ @include relative-font-size(1.125);
115
+ margin-bottom: $spacing-unit / 2;
116
+ }
117
+
118
+ .contact-list,
119
+ .social-media-list {
120
+ list-style: none;
121
+ margin-left: 0;
122
+ }
123
+
124
+ .footer-col-wrapper {
125
+ @include relative-font-size(0.9375);
126
+ display: flex;
127
+ flex-direction: row;
128
+ justify-content: center;
129
+ color: $grey-color;
130
+ margin-left: -$spacing-unit / 2;
131
+ @extend %clearfix;
132
+ }
133
+
134
+ .footer-col {
135
+ float: left;
136
+ margin-bottom: $spacing-unit / 2;
137
+ padding-left: $spacing-unit / 2;
138
+ }
139
+
140
+ .footer-col-1 {
141
+ width: -webkit-calc(35% - (#{$spacing-unit} / 2));
142
+ width: calc(35% - (#{$spacing-unit} / 2));
143
+ }
144
+
145
+ .footer-col-2 {
146
+ width: -webkit-calc(20% - (#{$spacing-unit} / 2));
147
+ width: calc(20% - (#{$spacing-unit} / 2));
148
+ }
149
+
150
+ .footer-col-3 {
151
+ width: -webkit-calc(45% - (#{$spacing-unit} / 2));
152
+ width: calc(45% - (#{$spacing-unit} / 2));
153
+ }
154
+
155
+ @include media-query($on-laptop) {
156
+ .footer-col-1,
157
+ .footer-col-2 {
158
+ width: -webkit-calc(50% - (#{$spacing-unit} / 2));
159
+ width: calc(50% - (#{$spacing-unit} / 2));
160
+ }
161
+
162
+ .footer-col-3 {
163
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
164
+ width: calc(100% - (#{$spacing-unit} / 2));
165
+ }
166
+ }
167
+
168
+ @include media-query($on-palm) {
169
+ .footer-col {
170
+ float: none;
171
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
172
+ width: calc(100% - (#{$spacing-unit} / 2));
173
+ }
174
+ }
175
+
176
+ .page {
177
+ padding: 0 20px;
178
+ > header {
179
+ display: block;
180
+ padding: 1em 0;
181
+ margin-bottom: 1em;
182
+ border-bottom: 1px dashed #999;
183
+
184
+ > .title {
185
+ margin: 0;
186
+ font-weight: 500;
187
+ }
188
+ > time {
189
+ @include time($base-font-size);
190
+ margin-top: .5em;
191
+ }
192
+ }
193
+ }
194
+
195
+ .post {
196
+ margin-top: 25px;
197
+ > header {
198
+ display: block;
199
+ margin-bottom: 1em;
200
+ padding: 0 20px;
201
+ .title {
202
+ margin-bottom: .3em;
203
+ font-weight: 400;
204
+ }
205
+ > time {
206
+ @include time($small-font-size);
207
+ }
208
+ }
209
+ }
210
+
211
+ .diary-feed {
212
+ margin-top: 40px;
213
+ >header {
214
+ padding: 0;
215
+ }
216
+ }
217
+
218
+ .feed {
219
+ margin-top: 20px;
220
+ padding-left: 20px;
221
+
222
+ > header {
223
+ padding-bottom: 10px;
224
+ .title {
225
+ display: inline;
226
+ }
227
+ .title p {
228
+ display: inline;
229
+ font-weight: 400;
230
+ margin-right: 30px;
231
+ }
232
+
233
+ time {
234
+ display: inline;
235
+ @include time($small-font-size);
236
+ }
237
+ }
238
+ }
239
+
240
+ @include media-query($on-palm) {
241
+ .feed {
242
+ padding-left: 10px;
243
+
244
+ > header {
245
+ display: block;
246
+ .title {
247
+ display: block;
248
+ }
249
+ time {
250
+ margin-top: 5px;
251
+ display: block;
252
+ }
253
+ }
254
+ }
255
+ }
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Syntax highlighting styles
3
+ */
4
+
5
+ // VSCode theme by Steven Dao
6
+
7
+ .highlight {
8
+ background: #1E1E1E;
9
+ color: #D4D4D4; //--------
10
+ @extend %vertical-rhythm;
11
+ .highlighter-rouge & {
12
+ background: #1E1E1E;
13
+ }
14
+
15
+ .c { color: #618A51; } // Comment ---------
16
+ .err { color: #D4D4D4; } //e3d2d2// Error
17
+ .k { color: #589CD3;} // Keyword
18
+ .o { font-weight: bold } // Operator
19
+ .cm { color: #618A51;} // Comment.Multiline --------
20
+ .cp { color: #999; font-weight: bold } // Comment.Preproc
21
+ .c1 { color: #618A51; } // Comment.Single --------
22
+ .cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
23
+ .gd { color: #D4D4D4; } // Generic.Deleted
24
+ .gd .x { color: #D4D4D4; } // Generic.Deleted.Specific
25
+ .ge { font-style: italic } // Generic.Emph
26
+ .gr { color: #D4D4D4 } // Generic.Error
27
+ .gh { color: #999 } // Generic.Heading
28
+ .gi { color: #D4D4D4; } // Generic.Inserted
29
+ .gi .x { color: #D4D4D4; } // Generic.Inserted.Specific
30
+ .go { color: #888 } // Generic.Output
31
+ .gp { color: #555 } // Generic.Prompt
32
+ .gs { font-weight: bold } // Generic.Strong
33
+ .gu { color: #aaa } // Generic.Subheading
34
+ .gt { color: #a00 } // Generic.Traceback
35
+ .kc { color: #589CD3; } // Keyword.Constant --------
36
+ .kd { color: #589CD3; } // Keyword.Declaration --------
37
+ .kp { color: #589CD3; } // Keyword.Pseudo --------
38
+ .kr { color: #589CD3; } // Keyword.Reserved --------
39
+ .kt { color: #589CD3; } // Keyword.Type --------
40
+ .m { color: #099 } // Literal.Number
41
+ .s { color: #CD917A } // Literal.String --------
42
+ .na { color: #9DDBFB } // Name.Attribute --------
43
+ .nb { color: #9DDBFB } // Name.Builtin --------
44
+ .nc { color: #54C8B0; } // Name.Class --------
45
+ .no { color: #008080 } // Name.Constant
46
+ .ni { color: #800080 } // Name.Entity
47
+ .ne { color: #900; font-weight: bold } // Name.Exception
48
+ .nf { color: #DCDCAD; font-weight: bold } // Name.Function --------
49
+ .nn { color: #54C8B0 } // Name.Namespace --------
50
+ .nt { color: #589CD3 } // Name.Tag
51
+ .nv { color: #008080 } // Name.Variable
52
+ .ow { color: #589CD3; font-weight: bold } // Operator.Word
53
+ .w { color: #bbb } // Text.Whitespace
54
+ .mf { color: #099 } // Literal.Number.Float
55
+ .mh { color: #099 } // Literal.Number.Hex
56
+ .mi { color: #B5CEA4 } // Literal.Number.Integer --------
57
+ .mo { color: #099 } // Literal.Number.Oct
58
+ .sb { color: #CD917A } // Literal.String.Backtick --------
59
+ .sc { color: #CD917A } // Literal.String.Char --------
60
+ .sd { color: #CD917A } // Literal.String.Doc --------
61
+ .s2 { color: #CD917A } // Literal.String.Double --------
62
+ .se { color: #CD917A } // Literal.String.Escape --------
63
+ .sh { color: #CD917A } // Literal.String.Heredoc --------
64
+ .si { color: #CD917A } // Literal.String.Interpol --------
65
+ .sx { color: #CD917A } // Literal.String.Other --------
66
+ .sr { color: #009926 } // Literal.String.Regex
67
+ .s1 { color: #CD917A } // Literal.String.Single --------
68
+ .ss { color: #990073 } // Literal.String.Symbol
69
+ .bp { color: #999 } // Name.Builtin.Pseudo
70
+ .vc { color: #008080 } // Name.Variable.Class
71
+ .vg { color: #008080 } // Name.Variable.Global
72
+ .vi { color: #008080 } // Name.Variable.Instance
73
+ .il { color: #099 } // Literal.Number.Integer.Long
74
+
75
+ //new
76
+ .ld {
77
+ color: #e6db74;
78
+ }
79
+ .nx {
80
+ color: #9DDBFB; //color variable (both variable and function ?!)
81
+ }
82
+ }
metadata ADDED
@@ -0,0 +1,106 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gracy
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Steven Dao
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-11-24 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.5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.5'
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:
56
+ email:
57
+ - iamstevendao@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE.txt
63
+ - README.md
64
+ - _includes/disqus_comments.html
65
+ - _includes/footer.html
66
+ - _includes/google-analytics.html
67
+ - _includes/head.md
68
+ - _includes/header.md
69
+ - _includes/icon-github.html
70
+ - _includes/icon-github.svg
71
+ - _includes/icon-twitter.html
72
+ - _includes/icon-twitter.svg
73
+ - _includes/icon-web.html
74
+ - _includes/icon-web.svg
75
+ - _layouts/default.html
76
+ - _layouts/page.md
77
+ - _layouts/post.md
78
+ - _sass/gracy.scss
79
+ - _sass/gracy/_base.scss
80
+ - _sass/gracy/_layout.scss
81
+ - _sass/gracy/_syntax-highlighting.scss
82
+ homepage: https://github.com/iamstevendao/gracy
83
+ licenses:
84
+ - MIT
85
+ metadata: {}
86
+ post_install_message:
87
+ rdoc_options: []
88
+ require_paths:
89
+ - lib
90
+ required_ruby_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ requirements: []
101
+ rubyforge_project:
102
+ rubygems_version: 2.6.12
103
+ signing_key:
104
+ specification_version: 4
105
+ summary: Gracy, yet another minimal Jekyll theme.
106
+ test_files: []