superwriter 0.1.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: 79c3756d13d32db305f934d6cfce898db6a84408
4
+ data.tar.gz: a946582b8cfd38ed66cc317fa044edbb6ace36bb
5
+ SHA512:
6
+ metadata.gz: b60dd956d9fc108fcbe609e67747fb23ef5ffa02afa6e82a0d070fa7ed32f98ec76bacdd9b636bde40e712aae4e06b93b8a0f3e6f3353db945afe458abe717e3
7
+ data.tar.gz: 96289ba239895764ecf32d1751fe9232e73553c6c24c4803f4109aabbf20be77a1c7f7857bb349daef7c7b0111104f297383d7603b0e9292d56b66b2890f14ac
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016
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,88 @@
1
+ # Superwriter Jekyll Theme
2
+
3
+ Superwriter is a minimalistic theme for bloggers with post hero image and well thought typography.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your Jekyll site's Gemfile:
8
+
9
+ ```ruby
10
+ gem "superwriter"
11
+ ```
12
+
13
+ And add this line to your Jekyll site's `_config.yml`:
14
+
15
+ ```yaml
16
+ theme: superwriter
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install superwriter
26
+
27
+ ## Configurable variables
28
+
29
+ ### General
30
+
31
+ ```
32
+ title:
33
+ description:
34
+ favicon:
35
+
36
+ header:
37
+ logo-img:
38
+ title-img:
39
+ subtitle:
40
+
41
+ footer:
42
+ script-note:
43
+
44
+ url:
45
+ baseurl:
46
+ ```
47
+ ### Localization
48
+
49
+ ```
50
+ localization:
51
+ read-more: "Read more"
52
+ see-all-posts: "See all posts"
53
+ ```
54
+
55
+ ### Landing page
56
+
57
+ ```
58
+ landing: index
59
+ post-per-page: 10
60
+ ```
61
+
62
+ ### Social and Analytics
63
+
64
+ ```
65
+ facebook.app_id:
66
+ facebook.image:
67
+ google_analytics:
68
+ ```
69
+
70
+ ## Data files
71
+
72
+ Top menu and footer secondary menu links are defined in the ```_data``` folder. Use the ```menu.yml``` and ```footer.yml``` files, respectively.
73
+
74
+ ## TODO
75
+
76
+ - Read more footer based on yalm header. Use something like:
77
+ ```{{ site.components | where:"title" : "Button" }}```
78
+ - Upcoming events footer
79
+ - Define categories
80
+ - Hero image caption for credits
81
+
82
+ ## Contributing
83
+
84
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ruvido/superwriter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
85
+
86
+ ## License
87
+
88
+ The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,23 @@
1
+ <!-- Facebook OpenGraph tags -->
2
+ <meta property="fb:app_id" content="{{ site.facebook.app_id }}" />
3
+
4
+ {% if page.title %}
5
+ <meta property="og:title" content="{{ page.title }}" />
6
+ {% else %}
7
+ <meta property="og:title" content="{{ site.title }}" />
8
+ {% endif %}
9
+
10
+ {% if page.summary %}
11
+ <meta property="og:description" content="{{ page.summary }}">
12
+ {% else %}
13
+ <meta property="og:description" content="{{ site.description }}">
14
+ {% endif %}
15
+
16
+ <meta property="og:type" content="website" />
17
+ <meta property="og:url" content="{{ page.url | replace:'index.html','' | absolute_url }}" />
18
+
19
+ {% if page.image %}
20
+ <meta property="og:image" content="{{ page.image }}" />
21
+ {% elsif site.facebook.image %}
22
+ <meta property="og:image" content="{{ site.url }}{{ site.facebook.image }}" />
23
+ {% endif %}
@@ -0,0 +1,8 @@
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
+ ga('create', '{{ site.google_analytics }}', 'auto');
7
+ ga('send', 'pageview');
8
+ </script>
@@ -0,0 +1,20 @@
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
+ <link rel="icon" type="image/png" href="{{site.baseurl}}/{{site.favicon}}">
6
+
7
+ <title>{% if page.title %}{{ page.title | append: ' | ' | append: site.title | escape }}{% else %}{{ site.title | append: ' | ' | append: site.subtitle | escape }}{% endif %}</title>
8
+ <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
9
+
10
+ <link rel="stylesheet" href="{{ "{{site.baseurl}}/assets/css/style.css" | relative_url }}">
11
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
12
+
13
+ <!-- Font awesome -->
14
+ <!-- to be optimized with http://fontello.com/ -->
15
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
16
+
17
+ {% include facebook_opengraph.html %}
18
+ {% include google_analytics.html %}
19
+
20
+ </head>
@@ -0,0 +1,34 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <section class="index">
6
+
7
+ {% for post in site.posts %}
8
+ {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
9
+ {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
10
+
11
+ {% if forloop.first %}
12
+ <time class="catchy-headline">{{this_year}}</time>
13
+ <ul>
14
+ {% endif %}
15
+
16
+ <li>
17
+ <time class="hide-in-mobile details">{{post.date | date: "%b %d"}}</time>
18
+ <h2 class="small inline catchy-headline shift-right">
19
+ <a href="{{site.baseurl}}{{post.url}}">{{ post.title }} <i class="light-gray fa fa-chevron-right" aria-hidden="true"></i></a>
20
+ </h2>
21
+ </li>
22
+
23
+ {% if forloop.last %}
24
+ </ul>
25
+ {% else %}
26
+ {% if this_year != next_year %}
27
+ </ul>
28
+ <time class="catchy-headline">{{next_year}}</time>
29
+ <ul>
30
+ {% endif %}
31
+ {% endif %}
32
+ {% endfor %}
33
+
34
+ </section>
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ <header>
9
+ <a href="{{site.baseurl}}/">
10
+ <img class="logo-image" alt="{{site.title}} logo" src="{{site.baseurl}}/{{site.header.logo-img}}">
11
+ <img class="main-header-title" alt="{{site.title}}" src="{{site.baseurl}}/{{site.header.title-img}}">
12
+ <h1 class="hidden">{{site.title}}</h1>
13
+ <h2>{{site.header.subtitle}}</h2>
14
+ </a>
15
+ </header>
16
+
17
+ <nav>
18
+ {% for item in site.data.menu %}
19
+ <a class="{% cycle 'color-1', 'color-2', 'color-3', 'color-4' %}" href="{{site.baseurl}}/{{item.url}}">
20
+ {{item.name}}</a>
21
+ {% endfor %}
22
+ </nav>
23
+
24
+
25
+ <main>
26
+ {{ content }}
27
+ </main>
28
+
29
+ <!-- <section class="see-all-posts" >
30
+ <a href="{{site.archive}}">See all posts <i class="fa fa-chevron-right" aria-hidden="true"></i></a>
31
+ </section> -->
32
+
33
+ <section class="meaningful-block">
34
+ <a class="big follow-up" href="{{site.baseurl}}/{{site.archive}}">{{site.localization.see-all-posts}} <i class="fa fa-chevron-right" aria-hidden="true"></i></a>
35
+ </section>
36
+
37
+ <footer>
38
+
39
+ <nav class="footer-menu" >
40
+ {% for item in site.data.footer %}
41
+ {% if item.url contains "http" %}
42
+ <a href="{{item.url}}">{{item.name}}</a>
43
+ {% else %}
44
+ <a href="{{site.baseurl}}/{{item.url}}">{{item.name}}</a>
45
+ {% endif %}
46
+ {% endfor %}
47
+ </nav>
48
+
49
+ <section class="footer-script-note">
50
+ {{ site.footer.script-note }}
51
+ </section>
52
+
53
+ </footer>
54
+
55
+ </body>
56
+
57
+ </html>
@@ -0,0 +1,38 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <!-- ====================================== -->
6
+ {% if site.landing == "index" %}
7
+
8
+ <section class="index">
9
+ {% for post in site.posts limit:site.post-per-page %}
10
+ <h2 class="catchy-headline">
11
+ <a href="{{site.baseurl}}{{post.url}}">{{ post.title }}</a></h2>
12
+
13
+ <section class="small details block">
14
+ by <a href="{{site.baseurl}}/about">{{post.author | capitalize}}</a>,
15
+ <time>{{post.date | date: "%b %d %Y"}}</time>
16
+ </section>
17
+
18
+ <section class="small summary">{{post.summary | truncatewords: 20}}</section>
19
+
20
+ <a class="small follow-up block" href="{{site.baseurl}}{{post.url}}">
21
+ {{site.localization.read-more}} <i class="fa fa-chevron-right" aria-hidden="true"></i>
22
+ </a>
23
+
24
+ {% endfor %}
25
+ </section>
26
+
27
+
28
+ <!-- ====================================== -->
29
+ {% elsif site.landing == "single" %}
30
+
31
+ This is the last post
32
+
33
+ <!-- ====================================== -->
34
+ {% elsif site.landing == "page" %}
35
+
36
+ This is a page
37
+
38
+ {% endif %}
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="very huge catchy-headline">Oooops!</div>
6
+ <div class="details">Sorry, this page does not exist</div>
@@ -0,0 +1,58 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+
6
+ {% if page.image %}
7
+ <figure>
8
+ <img alt="{{page.title}}" src="{{site.baseurl}}{{page.image}}" />
9
+ <figcaption>{{page.caption}}</figcaption>
10
+ </figure>
11
+ {% endif %}
12
+
13
+ <header>
14
+
15
+ <h1>{{ page.title }}</h1>
16
+
17
+ {% if page.author %}
18
+ <section class="author">
19
+ by <a href="{{site.baseurl}}/about">{{page.author | capitalize}}</a>,
20
+ <time datetime="{{page.date}}">{{page.date | date: "%B %d %Y"}}</time>
21
+ </section>
22
+ {% endif %}
23
+
24
+ {% if page.summary %}
25
+ <section class="summary">{{ page.summary }}</section>
26
+ {% endif %}
27
+
28
+ </header>
29
+
30
+ <article>
31
+
32
+ {{ content }}
33
+
34
+ <figure class="page-end-logo">
35
+ <img alt="{{site.title}}" src="{{site.baseurl}}/{{site.header.logo-img}}" />
36
+ </figure>
37
+
38
+ </article>
39
+
40
+ <!-- TODO -->
41
+
42
+ {% if site.upcoming-events %}
43
+ <section class="upcoming-events">
44
+ <header>Upcoming events</header>
45
+ {% for event in site.events %}
46
+ <h2>{{event.title}}</h2>
47
+ {% endfor %}
48
+ </section>
49
+ {% endif %}
50
+
51
+ {% if page.read-more %}
52
+ <section class="read-more">
53
+ <header>Read more</header>
54
+ {% for post in site.posts %}
55
+ <h2>{{post.title}}</h2>
56
+ {% endfor %}
57
+ </section>
58
+ {% endif %}
@@ -0,0 +1,334 @@
1
+ html {height: 100%;}
2
+
3
+ // flex to have a sticky footer
4
+ body {min-height: 100%; display: flex; flex-direction: column;}
5
+ main {flex: 1;}
6
+
7
+ // PLACEHOLDERS
8
+ %margin-0-auto {margin: 0 auto; display: block;}
9
+ %wrapper {padding: 0 $bigger-font-size; max-width: $tablet; text-align: left;}
10
+ %uppercase {text-transform: uppercase; letter-spacing: 0.2rem; margin-top: $script-font-size;}
11
+ %hidden {visibility: hidden;height: 0px;}
12
+
13
+ // EXTENDS
14
+ .wrapper {@extend %wrapper;}
15
+ .hidden {@extend %hidden;}
16
+
17
+ h1 {@extend .header-font;}
18
+
19
+
20
+ body {
21
+
22
+ // HEADER
23
+ header {
24
+ @extend %margin-0-auto;
25
+ margin-top: 1.5*$huge-font-size;
26
+ img {@extend %margin-0-auto;}
27
+ h2 { font-size: $small-font-size; @extend .light-font; @extend %uppercase; text-align: center;}
28
+ .logo-image {width: $huge-font-size*1.3;}
29
+ .main-header-title { width: $huge-font-size*6; margin-top: $regular-font-size;}
30
+ @media (min-width: $tablet) {
31
+ .logo-image {width: $huge-font-size*1.8;}
32
+ .main-header-title { width: $huge-font-size*8;}
33
+ h2 { font-size: $regular-font-size;}
34
+ }
35
+ @media (min-width: $desktop) {
36
+ margin-top: 2.5*$huge-font-size;
37
+ }
38
+ }
39
+
40
+ // NAVIGATION BAR
41
+ nav{
42
+ @extend %margin-0-auto;
43
+ margin-top: $big-font-size;
44
+ a {
45
+ display: inline-block;
46
+ // @extend .summary-font;
47
+ font-weight: bold;
48
+ font-size: $script-font-size;
49
+ width: $bigger-font-size*2.0;
50
+ text-align: center;
51
+ padding: $script-font-size $script-font-size/3.0;
52
+ border-radius: 0.8rem;
53
+ color: white;
54
+ border: 0px;
55
+ margin: $script-font-size/3.0;
56
+ @media (min-width: $tablet) {
57
+ margin: $mid-font-size;
58
+ font-size: $small-font-size;
59
+ width: $bigger-font-size*3.0;
60
+ }
61
+ @media (min-width: $desktop) {
62
+ margin-top: $big-font-size;
63
+ font-size: $regular-font-size;
64
+ width: $bigger-font-size*3.0;
65
+ }
66
+ }
67
+ }
68
+
69
+ // MAIN
70
+ main {
71
+
72
+ @extend %margin-0-auto;
73
+ margin-top: $big-font-size;
74
+
75
+ figure {
76
+ img {width: 100%; max-width: $tablet*1.5; @extend %margin-0-auto;}
77
+ }
78
+
79
+ header {
80
+ @extend %wrapper;
81
+ margin-top: 0;
82
+ h1 {
83
+ margin-top: $mid-font-size;
84
+ font-size: $bigger-font-size;
85
+ @media (min-width: $tablet) {
86
+ margin-top: $huge-font-size;
87
+ font-size: $huge-font-size;
88
+ }
89
+ }
90
+ .author {
91
+ @extend .light-font;
92
+ padding-top: $script-font-size;
93
+ font-size: $small-font-size;
94
+ a {border: 0px; color: $brand-blue;}
95
+ @media (min-width: $tablet) {
96
+ font-size: $regular-font-size;
97
+ }
98
+ }
99
+ // .summary {
100
+ // // @extend .summary-font;
101
+ // margin-top: $regular-font-size;
102
+ // color: $light-gray;
103
+ // font-weight: bold;
104
+ // font-size: $mid-font-size;
105
+ // line-height: 1.4;
106
+ // @media (min-width: $tablet) {
107
+ // font-size: $big-font-size;
108
+ // line-height: 1.6;
109
+ // }
110
+ // }
111
+ }
112
+ article {
113
+ @extend %margin-0-auto;
114
+ @extend %wrapper;
115
+ h2 {
116
+ @extend .header-font;
117
+ font-size: $mid-font-size;
118
+ padding-top: $mid-font-size;
119
+ line-height: 1.4;
120
+ @media (min-width: $tablet) {
121
+ font-size: $big-font-size;
122
+ }
123
+ }
124
+ p{
125
+ font-size: $regular-font-size;
126
+ line-height: 1.6;
127
+ @media (min-width: $tablet) {
128
+ line-height: 1.8;
129
+ }
130
+ }
131
+ ul {
132
+ li {
133
+ position: relative;
134
+ // background: #88b7d5;
135
+ border-radius: 10px;
136
+ margin: $small-font-size 0;//$huge-font-size;
137
+ padding: 0 $regular-font-size;
138
+ line-height: 1.6;
139
+ // font-size: $regular-font-size*0.9;
140
+ }
141
+ li:nth-child(odd) {
142
+ // text-align: left;
143
+ // margin-left: 0;
144
+ // background-color: #ecf0f1;
145
+ }
146
+ li:nth-child(even) {
147
+ font-style: italic;
148
+ // text-align: right;
149
+ // margin-right: 0;
150
+ // background: $light-gray;
151
+ }
152
+ li:before{
153
+ content: '\2013';
154
+ padding-right: 0.3rem;
155
+ // content: '\00ab';
156
+ }
157
+ li:after{
158
+ // content: '\00bb';
159
+ }
160
+ // li:after{
161
+ // left: 100%;
162
+ // top: 50%;
163
+ // border: solid transparent;
164
+ // content: " ";
165
+ // height: 0;
166
+ // width: 0;
167
+ // position: absolute;
168
+ // pointer-events: none;
169
+ // // border-color: rgba(136, 183, 213, 0);
170
+ // border-left-color: #ecf0f1;
171
+ // border-width: 10px;
172
+ // margin-top: -10px;
173
+ // }
174
+ }
175
+ .page-end-logo {
176
+ margin: 0 auto;
177
+ padding: $regular-font-size 0 0 0;
178
+ width: $bigger-font-size;
179
+ img {
180
+ max-width: 100%;
181
+ }
182
+ }
183
+ }
184
+ } //MAIN close
185
+
186
+ // .see-all-posts {
187
+ // padding-top: $huge-font-size;
188
+ // padding-bottom: $script-font-size/2;
189
+ // width:100%;
190
+ // a {
191
+ // display: block;
192
+ // @extend .summary-font;
193
+ // @extend %margin-0-auto;
194
+ // @extend %wrapper;
195
+ // font-size: $big-font-size;
196
+ // color: $light-gray;
197
+ // border: 0px;
198
+ // text-transform: uppercase;
199
+ // @media (min-width: $tablet) {
200
+ // font-size: $bigger-font-size;
201
+ // }
202
+ // }
203
+ // }
204
+
205
+ footer {
206
+ background-color: $opaque-red;
207
+ color: white;
208
+ padding-bottom: $mid-font-size;
209
+ nav.footer-menu {
210
+ padding-top: $mid-font-size;
211
+ padding-bottom: $big-font-size;
212
+ @extend %wrapper;
213
+ a {
214
+ width: 100%;
215
+ font-size: $mid-font-size;
216
+ text-align: left;
217
+ display: block;
218
+ padding: 0;
219
+ margin: 0;
220
+ line-height: 1.8;
221
+ @extend .header-font;
222
+ @media (min-width: $tablet) {
223
+ font-size: $big-font-size;
224
+ }
225
+ }
226
+ }
227
+ .footer-script-note {
228
+ @extend %wrapper;
229
+ @extend %margin-0-auto;
230
+ font-size: $script-font-size;
231
+ text-align: center;
232
+ line-height: 1.5;
233
+ a {
234
+ color: white;
235
+ border-bottom: 1px solid white;
236
+ }
237
+ }
238
+ } //FOOTER close
239
+ } // BODY close
240
+
241
+
242
+
243
+ .index {padding-bottom: $huge-font-size; @extend %wrapper;}
244
+
245
+ .hide-in-mobile {
246
+ display: none !important;
247
+ @media (min-width: $tablet) {
248
+ display: inline-block !important;
249
+ }
250
+ }
251
+
252
+ .catchy-headline {
253
+ display: block;
254
+ @extend .header-font;
255
+ font-size: $mid-font-size;
256
+ padding-top: $mid-font-size;
257
+ line-height: 1.4;
258
+ &.small {font-size: $regular-font-size; padding-top: $regular-font-size;}
259
+ a {border: 0px;}
260
+ @media (min-width: $tablet) {
261
+ font-size: $big-font-size;
262
+ &.small {font-size: $mid-font-size; padding-top: $mid-font-size;}
263
+ }
264
+ }
265
+
266
+ .details {
267
+ margin-top: $script-font-size;
268
+ display: inline-block;
269
+ @extend .light-font;
270
+ font-size: $regular-font-size;
271
+ &.small {font-size: $small-font-size;}
272
+ // &.block { display: block;}
273
+ a {color: $brand-blue; border: 0px;}
274
+ @media (min-width: $tablet) {
275
+ font-size: $mid-font-size;
276
+ }
277
+ }
278
+
279
+ .summary {
280
+ margin-top: $regular-font-size;
281
+ color: $light-gray;
282
+ font-weight: bold;
283
+ font-size: $mid-font-size;
284
+ line-height: 1.4;
285
+ &.small {font-size: $regular-font-size; margin-top: $script-font-size;}
286
+ @media (min-width: $tablet) {
287
+ font-size: $big-font-size;
288
+ line-height: 1.6;
289
+ }
290
+ }
291
+
292
+ .follow-up {
293
+ // @extend .summary-font;
294
+ text-transform: uppercase;
295
+ font-weight: bold;
296
+ color: $light-gray;
297
+ border: 0px;
298
+ margin-top: $script-font-size;
299
+ }
300
+
301
+ .meaningful-block{
302
+ padding-top: $huge-font-size;
303
+ padding-bottom: $script-font-size/2;
304
+ width:100%;
305
+ a {
306
+ display: block;
307
+ // @extend .summary-font;
308
+ @extend %margin-0-auto;
309
+ @extend %wrapper;
310
+ // font-size: $big-font-size;
311
+ // color: $light-gray;
312
+ // border: 0px;
313
+ }
314
+ }
315
+
316
+ .shift-right {padding-left: $regular-font-size;}
317
+ .block {display: block;}
318
+ .inline {display: inline-block;}
319
+
320
+ .big {
321
+ font-size: $big-font-size;
322
+ @media (min-width: $tablet) {
323
+ font-size: $bigger-font-size;
324
+ }
325
+ }
326
+ .huge {
327
+ font-size: $huge-font-size;
328
+ &.very {
329
+ font-size: 1.5*$huge-font-size;
330
+ @media (min-width: $tablet) {
331
+ font-size: 2.2*$huge-font-size;
332
+ }
333
+ }
334
+ }
File without changes
@@ -0,0 +1,28 @@
1
+ // Very cool color palettes
2
+
3
+ $dark-black: #303030;
4
+ $light-gray: #D1D5D8;
5
+ $mid-gray: #666666;
6
+ $brand-blue: #3498DB;
7
+ $acid-blue: #19B5FE;
8
+ $vivid-yellow: #F1C40F;
9
+ $opaque-red: #E74C3C;
10
+ $marine-green: #1ABC9C;
11
+
12
+ // Menu colors
13
+ .color-1 {background-color: $marine-green;}
14
+ .color-2 {background-color: $opaque-red;}
15
+ .color-3 {background-color: $vivid-yellow;}
16
+ .color-4 {background-color: $brand-blue;}
17
+
18
+ a {color: $dark-black;}
19
+ a.dark-link {color: $dark-black;}
20
+ a.color-link {color: $brand-blue;}
21
+
22
+ // $dark-black: #303030;
23
+ .light-gray, .light-gray a {color: $light-gray;}
24
+ // $mid-gray: #666666;
25
+ // $brand-blue: #3498DB;
26
+ // $vivid-yellow: #F1C40F;
27
+ // $opaque-red: #E74C3C;
28
+ // $marine-green: #1ABC9C;
@@ -0,0 +1,48 @@
1
+ /* http://meyerweb.com/eric/tools/css/reset/
2
+ v2.0 | 20110126
3
+ License: none (public domain)
4
+ */
5
+
6
+ html, body, div, span, applet, object, iframe,
7
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8
+ a, abbr, acronym, address, big, cite, code,
9
+ del, dfn, em, img, ins, kbd, q, s, samp,
10
+ small, strike, strong, sub, sup, tt, var,
11
+ b, u, i, center,
12
+ dl, dt, dd, ol, ul, li,
13
+ fieldset, form, label, legend,
14
+ table, caption, tbody, tfoot, thead, tr, th, td,
15
+ article, aside, canvas, details, embed,
16
+ figure, figcaption, footer, header, hgroup,
17
+ menu, nav, output, ruby, section, summary,
18
+ time, mark, audio, video {
19
+ margin: 0;
20
+ padding: 0;
21
+ border: 0;
22
+ font-size: 100%;
23
+ font: inherit;
24
+ vertical-align: baseline;
25
+ }
26
+ /* HTML5 display-role reset for older browsers */
27
+ article, aside, details, figcaption, figure,
28
+ footer, header, hgroup, menu, nav, section {
29
+ display: block;
30
+ }
31
+ body {
32
+ line-height: 1;
33
+ }
34
+ ol, ul {
35
+ list-style: none;
36
+ }
37
+ blockquote, q {
38
+ quotes: none;
39
+ }
40
+ blockquote:before, blockquote:after,
41
+ q:before, q:after {
42
+ content: '';
43
+ content: none;
44
+ }
45
+ table {
46
+ border-collapse: collapse;
47
+ border-spacing: 0;
48
+ }
@@ -0,0 +1,179 @@
1
+ //--------------------------------------------------
2
+ // FONT SIZES
3
+ //--------------------------------------------------
4
+
5
+ // http://type-scale.com/
6
+ // 1.618 Golden Ratio
7
+
8
+ // $script-font-size: 0.618rem;
9
+ // $min-font-size: 0.8rem; // Major third
10
+ // $regular-font-size: 1rem;
11
+ // $maj-font-size: 1.250rem; // Major third
12
+ // $mid-font-size: 1.414rem; // Augmented fourth
13
+ // $big-font-size: 1.618rem;
14
+ // $bigger-font-size: 2.618rem;
15
+
16
+ // http://type-scale.com/
17
+ // 1.250 Major third scale
18
+
19
+ $script-font-size: 0.640rem;
20
+ $small-font-size: 0.800rem;
21
+ $regular-font-size: 1.000rem;
22
+ $mid-font-size: 1.250rem;
23
+ $big-font-size: 1.563rem;
24
+ $bigger-font-size: 1.953rem;
25
+ $huge-font-size: 2.441rem;
26
+
27
+ //--------------------------------------------------
28
+ // FONT TYPES
29
+ //--------------------------------------------------
30
+
31
+ @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700');
32
+ .text-font {
33
+ font-family: 'Open Sans', sans-serif;
34
+ }
35
+
36
+ @import url('https://fonts.googleapis.com/css?family=Raleway:900');
37
+ .header-font{
38
+ font-family: 'Raleway', sans-serif;
39
+ font-weight: 900;
40
+ }
41
+
42
+ // @import url('https://fonts.googleapis.com/css?family=Raleway:700,700i');
43
+ // .summary-font{
44
+ // font-family: 'Raleway', sans-serif;
45
+ // font-weight: 700;
46
+ // }
47
+
48
+ @import url('https://fonts.googleapis.com/css?family=Raleway:400');
49
+ .light-font{
50
+ font-family: 'Raleway', sans-serif;
51
+ font-weight: 400;
52
+ }
53
+
54
+ //--------------------------------------------------
55
+ // DEFAULTS
56
+ //--------------------------------------------------
57
+
58
+ body, h1, h2, h3, h4, h5, h6, .author {
59
+ font-size-adjust: 0.5;
60
+ }
61
+
62
+ body {
63
+ font-size: 100%;
64
+ @extend .text-font;
65
+ color: $dark-black;
66
+ }
67
+
68
+ strong, .bold { font-weight: bold; }
69
+ em { font-style: italic; }
70
+ small { font-size: $script-font-size;}
71
+
72
+ a {
73
+ color: $dark-black;
74
+ text-decoration: none;
75
+ border-bottom: 1px solid $acid-blue;
76
+ // border-bottom: 1px solid #7f8c8d;
77
+ }
78
+
79
+ a.no-decoration {
80
+ text-decoration: none;
81
+ border-bottom: 0px;
82
+ }
83
+
84
+ // h1, .post-index h2 {
85
+ // @extend .header-font;
86
+ // font-size: $bigger-font-size;
87
+ // padding-top: 0;
88
+ // }
89
+ // h2 {
90
+ // @extend .header-font;
91
+ // font-size: $big-font-size;
92
+ // padding-top: $big-font-size;
93
+ // }
94
+ // h3 {
95
+ // @extend .header-font;
96
+ // font-size: $big-font-size;
97
+ // padding-top: $big-font-size;
98
+ // }
99
+ //
100
+ // h4, .page-summary h3 {
101
+ // @extend .summary-font;
102
+ // font-size: $mid-font-size;
103
+ // padding-top: $mid-font-size;
104
+ // }
105
+ // h5 {
106
+ // @extend .summary-font;
107
+ // font-size: $regular-font-size;
108
+ // padding-top: $regular-font-size;
109
+ // }
110
+
111
+ .page-text, .page-header {
112
+ h1 {
113
+ @extend .header-font;
114
+ font-size: $bigger-font-size;
115
+ padding-top: 0;
116
+ }
117
+ h2 {
118
+ @extend .header-font;
119
+ font-size: $big-font-size;
120
+ padding-top: $big-font-size;
121
+ }
122
+ h3 {
123
+ @extend .header-font;
124
+ font-size: $big-font-size;
125
+ padding-top: $big-font-size;
126
+ }
127
+
128
+ h4, .page-summary h3 {
129
+ // @extend .summary-font;
130
+ font-size: $mid-font-size;
131
+ padding-top: $mid-font-size;
132
+ }
133
+ h5 {
134
+ // @extend .summary-font;
135
+ font-size: $regular-font-size;
136
+ padding-top: $regular-font-size;
137
+ }
138
+ }
139
+ .index {
140
+ .title{
141
+ a {border: 0px;}
142
+ h2 {font-size: $mid-font-size; padding: $script-font-size 0 0 0;}
143
+ }
144
+ .author{
145
+ font-size: $regular-font-size; padding: $script-font-size 0 0 0;
146
+ }
147
+ .summary{
148
+ h3 {font-size: $mid-font-size; padding: $script-font-size 0 0 0;}
149
+ }
150
+ }
151
+
152
+ blockquote {
153
+ p {
154
+ // @extend .summary-font;
155
+ font-weight: bold;
156
+ margin: $script-font-size 0;
157
+ padding-left: $regular-font-size;
158
+ font-size: $mid-font-size;
159
+ border-left: $script-font-size solid $light-gray;
160
+ }
161
+ cite{
162
+ font-size: $regular-font-size;
163
+ color: $light-gray;
164
+ }
165
+ cite:before{content:"\2014"; padding-right: 0.2rem;}
166
+ }
167
+
168
+ p {
169
+ padding: $script-font-size 0rem;
170
+ line-height: strip-unit($big-font-size);
171
+ text-align: left;
172
+ }
173
+
174
+ .responsive-font-size {
175
+ font-size: $regular-font-size;
176
+ @media (min-width: $tablet) {
177
+ font-size: $mid-font-size;
178
+ }
179
+ }
@@ -0,0 +1,20 @@
1
+ ---
2
+ # Superwriter stylesheet for Jekyll.
3
+ ---
4
+ // Global variables
5
+ $tablet: 600px;
6
+ $desktop: 1024px;
7
+
8
+ // Functions
9
+ @function strip-unit($number) {
10
+ @if type-of($number) == 'number' and not unitless($number) {
11
+ @return $number / ($number * 0 + 1);
12
+ }
13
+ @return $number;
14
+ }
15
+
16
+ // Imports
17
+ @import "reset";
18
+ @import "palettes";
19
+ @import "typography";
20
+ @import "layout";
File without changes
metadata ADDED
@@ -0,0 +1,104 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: superwriter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Francesco Rao
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-12-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: 0.9.6
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.9.6
55
+ description:
56
+ email:
57
+ - ruvido@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE.txt
63
+ - README.md
64
+ - _includes/facebook_opengraph.html
65
+ - _includes/google_analytics.html
66
+ - _includes/head.html
67
+ - _layouts/archive.html
68
+ - _layouts/default.html
69
+ - _layouts/index.html
70
+ - _layouts/not-found.html
71
+ - _layouts/post.html
72
+ - _sass/layout.scss
73
+ - _sass/old-layout.scss
74
+ - _sass/palettes.scss
75
+ - _sass/reset.scss
76
+ - _sass/typography.scss
77
+ - assets/css/style.scss
78
+ - "assets/js/Icon\r"
79
+ homepage: https://github.com/ruvido/superwriter
80
+ licenses:
81
+ - MIT
82
+ metadata: {}
83
+ post_install_message:
84
+ rdoc_options: []
85
+ require_paths:
86
+ - lib
87
+ required_ruby_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ requirements: []
98
+ rubyforge_project:
99
+ rubygems_version: 2.0.14.1
100
+ signing_key:
101
+ specification_version: 4
102
+ summary: Superwriter is a minimalistic Jekyll theme for bloggers with post hero image
103
+ and well thought typography.
104
+ test_files: []