alembic-jekyll-theme 2.2.5 → 2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 909dc585a1df6cd63e6b9a870bd91798763e6e7d
4
- data.tar.gz: d298d34725645a87a18f9b7a63577888099dfbe3
3
+ metadata.gz: 7aef90c1ad6cbf03f03950fd33be7ee5251ce59d
4
+ data.tar.gz: 2f31d0ae6fa39d03653bc88687e7c2a1581deaff
5
5
  SHA512:
6
- metadata.gz: cea3a78b2ee0c275571296490ff320394047af3e65401731b1f9eb32c134aecc5b4c572776dc3d9983328099605762b23facb732c0853a887439aa87049af403
7
- data.tar.gz: 638cfdc34f97cdb4e7026b8645083fdb79775adb8b596af8ae17576fd3740adaf64ba56137d849ca19216529db3dec34177bbc6f3390845ad73b73098d68e49d
6
+ metadata.gz: c212860c93ede8249adcfe1092688b0f898b9a5818f7b266b37831b1c63cb11f3a33c473a8d96373aa726ebb6b74a0d2d1a8ed6a25336f5c6870c24a336b530f
7
+ data.tar.gz: f0d2f251b5bd36acc4fb7641aa434c3b8218863e1ce966dc5c9ae557c2941ee4ba7091a9d465bf53cf01969b35d44a7524a7cf40255c23a67b650d1c4e28505c
data/README.md CHANGED
@@ -12,6 +12,7 @@
12
12
  - [Features](#features)
13
13
  - [Examples](#examples)
14
14
  - [Installation](#installation)
15
+ - [Customising](#customising)
15
16
  - [Configuration](#configuration)
16
17
  - [Gem dependency settings](#gem-dependency-settings)
17
18
  - [Site settings](#site-settings)
@@ -23,23 +24,22 @@
23
24
 
24
25
  ## About
25
26
 
26
- Alembic is a starting point for [Jekyll](https://jekyllrb.com/) projects. Rather than starting from scratch, this boilerplate is designed to get the ball rolling immediately. Install it, configure it, tweak it, push it.
27
+ **Alembic is a starting point for [Jekyll](https://jekyllrb.com/) projects. Rather than starting from scratch, this boilerplate theme is designed to get the ball rolling immediately. Install it, configure it, tweak it, push it.**
27
28
 
28
29
  ## Features
29
30
 
30
- - Available as a starter kit or as [Jekyll theme gem](http://jekyllrb.com/docs/themes/)
31
+ - Available as a **theme gem** and **GitHub Pages** theme
31
32
  - Simple and elegant design that can be used out of the box or as solid starting point
32
- - Tested in all major browsers, including IE and Edge
33
- - Configurable colours and typography in a single settings file
34
- - Extensive set of shortcodes to include various elements; such as buttons, icons, figure images and more
35
- - Solid typographic framework from [Sassline](https://sassline.com/)
33
+ - Tested in all major browsers, including **IE and Edge**
34
+ - **Configurable colours** and typography in a single settings file
35
+ - Extensive set of **shortcodes** to include various elements; such as buttons, icons, figure images and more
36
+ - Solid **typographic framework** from [Sassline](https://sassline.com/)
36
37
  - Configurable navigation via a single file
37
38
  - Modular Jekyll components
38
39
  - Post category support in the form of a single post index page grouped by category
39
40
  - Built in live search using JavaScript
40
- - Contact form built in using [Formspree](https://formspree.io/)
41
- - Works on [GitHub Pages](https://pages.github.com/) out of the box
42
- - Designed with [Siteleaf](http://www.siteleaf.com/) in mind
41
+ - **Contact form** built in using [Formspree](https://formspree.io/)
42
+ - Designed with **[Siteleaf](http://www.siteleaf.com/)** in mind
43
43
  - Has 9 of the most popular networks as performant sharing buttons
44
44
  - Has documentation
45
45
 
@@ -59,47 +59,56 @@ Here are a few examples of Alembic out in the wild being used in a variety of wa
59
59
 
60
60
  ## Installation
61
61
 
62
+ ### As a Jekyll theme
63
+
64
+ 1. Add `gem "alembic-jekyll-theme"` to your `Gemfile` to add the theme as a dependancy
65
+ 2. Run the command `bundle install` in the root of project to install the theme and its dependancies
66
+ 3. Add `theme: alembic-jekyll-theme` to your `_config.yml` file to set the site theme
67
+ 4. Run `bundle exec jekyll serve` to build and serve your site
68
+ 5. Done! Use the [configuration](#configuration) documentation and the example [`_config.yml`](https://github.com/daviddarnes/alembic/blob/master/_config.yml) file to set things like the navigation, contact form and social sharing buttons
69
+
70
+ ### As a GitHub Pages remote theme
71
+
72
+ 1. Add `gem "jekyll-remote-theme"` to your `Gemfile` to add the theme as a dependancy
73
+ 2. Run the command `bundle install` in the root of project to install the jekyll remote theme gem as a dependancy
74
+ 3. Add `jekyll-remote-theme` to the list of `plugins` in your `_config.yml` file
75
+ 4. Add `remote_theme: daviddarnes/alembic` to your `_config.yml` file to set the site theme
76
+ 5. Run `bundle exec jekyll serve` to build and serve your site
77
+ 6. Done! Use the [configuration](#configuration) documentation and the example [`_config.yml`](https://github.com/daviddarnes/alembic/blob/master/_config.yml) file to set things like the navigation, contact form and social sharing buttons
78
+
62
79
  ### As a Boilerplate / Fork
63
80
 
64
- 1. [Fork the repo](https://github.com/daviddarnes/alembic#fork-destination-box)
65
- 2. Clone down the repo with `git clone git@github.com:username/reponame.git`
66
- 3. Replace the `Gemfile` in the root of the repo with the one in `demo/Gemfile`
67
- 4. Delete the following unnecessary files/folders: `demo/`, `CODE_OF_CONDUCT.md`, `CONTRIBUTING.md`, `LICENSE`, `screenshot.png` and `alembic-jekyll-theme.gemspec`
68
- 5. Change the `logo.svg` and `default-social-image.png` in the `assets/` folder to your own branding
69
- 6. Configure your site settings using the `_config.yml`, more info can be found in [Configuration](#configuration)
70
- 7. Change the `CNAME` record to your projects' record
71
- 8. Install bundler with `gem install bundler`
72
- 9. Install gems with `bundle install`
73
- 10. Run Jekyll with `bundle exec jekyll serve --watch`
74
- 11. Begin hacking for your project
81
+ _(deprecated, not recommended)_
75
82
 
76
- ### As a Jekyll 3.3 theme gem
83
+ 1. [Fork the repo](https://github.com/daviddarnes/alembic#fork-destination-box)
84
+ 2. Replace the `Gemfile` with one stating all the gems used in your project
85
+ 3. Delete the following unnecessary files/folders: `CODE_OF_CONDUCT.md`, `CONTRIBUTING.md`, `LICENSE`, `screenshot.png`, `CNAME` and `alembic-jekyll-theme.gemspec`
86
+ 4. Run the command `bundle install` in the root of project to install the jekyll remote theme gem as a dependancy
87
+ 5. Run `bundle exec jekyll serve` to build and serve your site
88
+ 6. Done! Use the [configuration](#configuration) documentation and the example [`_config.yml`](https://github.com/daviddarnes/alembic/blob/master/_config.yml) file to set things like the navigation, contact form and social sharing buttons
77
89
 
78
- 1. Download the starter `/demo` content, [quick download link](https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/daviddarnes/alembic/tree/master/demo)
79
- 2. Configure your site settings using the `_config.yml`, more info can be found in [Configuration](#configuration)
80
- 3. Create a `logo.svg` and `default-social-image.png` in a new `assets/` folder
81
- 4. Install bundler with `gem install bundler`
82
- 5. Install gems with `bundle install`
83
- 6. Run Jekyll with `bundle exec jekyll serve --watch`
84
- 7. Begin hacking for your project
90
+ ## Customising
85
91
 
86
- ### Boilerplate & Theme differences
92
+ When using Alembic as a theme means you can take advantage of the file overriding method. This allows you to overwrite any file in this theme with your own custom file, simply by matching the file name and path. The most common example of this would be if you want to add your own styles or change the core style settings.
87
93
 
88
- The boilerplate kit is better for more drastic hacking and changes, a project that's quite different to any other and needs a lot of custom work done. Additionally you'll only be able to use this method if you want to host it on GitHub Pages, as [themes can't be submitted](https://pages.github.com/themes/)... yet.
94
+ To add your own styles copy the [`styles.scss`](https://github.com/daviddarnes/alembic/blob/master/assets/styles.scss) into your own project with the same file path (`assets/styles.scss`). From there you can add your own styles, you can even optionally ignore the theme styles by removing the `@import "alembic";` line.
89
95
 
90
- Using the theme will allow you to receive updates made and will be more programmatic. To make your own changes you'll need to overwrite the files with your own. For example: If I want to change the colours and typography of my site I'll need to copy the [`_settings.scss`](https://github.com/daviddarnes/alembic/blob/master/_sass/_settings.scss) file and create my own in `_sass/_settings.scss` with my own changes. This is the same for all files within the theme, which means your own project will be more lean than if you were to use the boilerplate.
96
+ If you're just looking to set your own colours and fonts copy the [`_settings.scss`](https://github.com/daviddarnes/alembic/blob/master/_sass/_settings.scss) file into your project at the same file path (`_sass/_settings.scss`) and change variables however you wish. The settings are a mixture of custom variables and settings from [Sassline](https://medium.com/@jakegiltsoff/sassline-v2-0-e424b2881e7e) - follow the link to find out how to configure the typographic settings.
91
97
 
92
98
  ## Configuration
93
99
 
94
- There's a number of settings you'll need to change before you can start hacking away at files. Here's a run down of what you'll need to change:
100
+ There are a number of optional settings for you to configure. Use the example [`_config.yml`](https://github.com/daviddarnes/alembic/blob/master/_config.yml) file in the repo and use the documentation below to configure your site:
95
101
 
96
102
  ### Gem dependency settings
103
+
97
104
  `twitter`, `author` and `social` values will need to be changed to the projects' social information or removed. Look for the `Gem settings` comment within the `/_config.yml` file. These values are for the [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag) - follow the link to find out more.
98
105
 
99
106
  ### Site settings
107
+
100
108
  You'll need to change the `description`, `title` and `url` to match with the project. You'll also need to replace the `/assets/logo.svg` and `/assets/default-social-image.png` with the project logo and default social image. Setting the site language can be done with `lang`, the theme will default to `en-US`. The `email` needs to be changed to the email you want to receive contact form enquires with. The `disqus` value can be changed to your project username on [Disqus](https://disqus.com), remove this from the `/_config.yml` file if you don't want comments enabled. Look for the `Site settings` comment within the `/_config.yml` file. The `repo` setting is optional, for now, and can be removed entirely, if you wish.
101
109
 
102
110
  ### Site navigation
111
+
103
112
  There are a total of 4 different navigation types:
104
113
 
105
114
  - `navigation_header`: The links shown in the header (it is also used on the 404 page)
@@ -124,7 +133,7 @@ Available options:
124
133
  - `text`: The text of the button _required_
125
134
  - `link`: The link that the button goes to _required_
126
135
  - `icon`: The icon that is added to the end of the button text
127
- - `color`: The color of the button
136
+ - `color`: The colour of the button
128
137
 
129
138
  ### `figure.html`
130
139
  An image with optional caption.
data/_sass/_theme.scss ADDED
@@ -0,0 +1,441 @@
1
+ // Structural elements
2
+ body {
3
+ background: $backgroundColour;
4
+ color: $bodyColour;
5
+ height: 100%;
6
+ display: flex;
7
+ @include flex-direction(column);
8
+ overflow-x: hidden;
9
+ }
10
+
11
+ .container {
12
+ width: 90%;
13
+ max-width: 1200px;
14
+ margin: 0 auto;
15
+ }
16
+
17
+
18
+ // Header, feature and footer
19
+ .header,
20
+ .footer {
21
+ .nav {
22
+ text-align: right;
23
+ }
24
+ .logo {
25
+ @include flex(0 0 auto);
26
+ }
27
+ .container {
28
+ @include flexbox;
29
+ @include flex-direction(row);
30
+ @include justify-content(space-between);
31
+ padding: 1rem 0;
32
+ @include breakpoint(break-1) {
33
+ @include align-items(center);
34
+ }
35
+ }
36
+ }
37
+
38
+ .header .nav {
39
+ display: flex;
40
+ flex-direction: column-reverse;
41
+ align-items: flex-end;
42
+ }
43
+
44
+ .feature {
45
+ padding-bottom: .4rem;
46
+ margin-bottom: 1.6rem;
47
+ text-align: center;
48
+ background: $featureBackgroundColour;
49
+ background-size: cover;
50
+ background-position: center;
51
+ .container {
52
+ min-height: 35vh;
53
+ max-width: 60%;
54
+ @include flex-direction(column);
55
+ @include justify-content(center);
56
+ }
57
+ }
58
+
59
+ .logo {
60
+ display: inline-block;
61
+ line-height: 0;
62
+ max-height: 4rem;
63
+ @include flexbox;
64
+ @include align-items(center);
65
+ img {
66
+ max-height: 4rem;
67
+ }
68
+ }
69
+
70
+ .nav {
71
+ a {
72
+ padding: .2rem;
73
+ }
74
+ &--social a {
75
+ display: inline-block;
76
+ line-height: 1;
77
+ }
78
+ }
79
+
80
+ .small {
81
+ padding-top: .8rem;
82
+ color: $captionColour;
83
+ display: inline-block;
84
+ }
85
+
86
+ .footer {
87
+ background: $headingColour;
88
+ color: $captionColour;
89
+ a {
90
+ color: $captionColour;
91
+ &:hover {
92
+ color: $backgroundColour;
93
+ }
94
+ }
95
+ .container {
96
+ @include flex-wrap(wrap);
97
+ }
98
+ .small {
99
+ padding-top: 0;
100
+ }
101
+ }
102
+
103
+
104
+ // Pagination nav
105
+ .nav--paginator {
106
+ @include flexbox;
107
+ @include justify-content(space-between);
108
+ color: $captionColour;
109
+ text-align: center;
110
+ }
111
+
112
+ .pagination {
113
+ min-width: 20%;
114
+ }
115
+
116
+
117
+ // Main content
118
+ .main {
119
+ @include flexbox;
120
+ @include flex-direction(column);
121
+ @include flex(1, 0, auto);
122
+ @include justify-content(flex-start);
123
+ margin-bottom: 1.6rem;
124
+ @include breakpoint(break-1) {
125
+ @include justify-content(center);
126
+ @include flex-direction(row);
127
+ }
128
+ }
129
+
130
+ .header,
131
+ .feature,
132
+ .footer {
133
+ @include flex(0, 0, auto);
134
+ }
135
+
136
+ .content {
137
+ @include breakpoint(break-1) {
138
+ width: 62%;
139
+ }
140
+ }
141
+
142
+ .share .button {
143
+ margin-right: .3rem;
144
+ }
145
+
146
+ .aside {
147
+ @include breakpoint(break-1) {
148
+ max-width: 34%;
149
+ margin-left: 4%;
150
+ @include flex(1, 0, auto);
151
+ opacity: 0.5;
152
+ transition: opacity .1s;
153
+ .section {
154
+ position: sticky;
155
+ top: 0;
156
+ }
157
+ &--left {
158
+ margin-left: 0;
159
+ margin-right: 4%;
160
+ order: -1;
161
+ }
162
+ &:hover {
163
+ opacity: 1;
164
+ }
165
+ }
166
+ }
167
+
168
+ .section {
169
+ margin: 0;
170
+ }
171
+
172
+
173
+ // Lists
174
+ .list {
175
+ list-style: none;
176
+ &--nav {
177
+ overflow: hidden;
178
+ transition: .2s;
179
+ }
180
+ .item--post,
181
+ .item--result,
182
+ .item--category {
183
+ margin-left: 0;
184
+ }
185
+ }
186
+
187
+ .item {
188
+ &--nav {
189
+ @include breakpoint(break-1) {
190
+ margin-left: .4rem;
191
+ display: inline-block;
192
+ }
193
+ &:first-of-type {
194
+ margin-left: 0;
195
+ }
196
+ }
197
+ &--current {
198
+ a {
199
+ opacity: 0.5;
200
+ }
201
+ }
202
+ }
203
+
204
+
205
+ // Links, icons and images
206
+ a .icon {
207
+ transition: fill .1s;
208
+ &:hover {
209
+ fill: currentColor;
210
+ }
211
+ }
212
+
213
+ .icon {
214
+ vertical-align: middle;
215
+ width: 1.1em;
216
+ height: 1.1em;
217
+ fill: CurrentColor;
218
+ }
219
+
220
+ // Media content
221
+ img {
222
+ max-width: 100%;
223
+ height: auto;
224
+ }
225
+
226
+ .figure {
227
+ line-height: 0;
228
+ &--left {
229
+ float: left;
230
+ padding-right: .8rem;
231
+ }
232
+ &--right {
233
+ float: right;
234
+ text-align: right;
235
+ padding-left: .8rem;
236
+ }
237
+ &--center {
238
+ text-align: center;
239
+ clear: both;
240
+ }
241
+ }
242
+
243
+ .video,
244
+ .map {
245
+ position: relative;
246
+ padding-bottom: 56.25%;
247
+ height: 0;
248
+ iframe {
249
+ position: absolute;
250
+ top: 0;
251
+ left: 0;
252
+ width: 100%;
253
+ height: 100%;
254
+ }
255
+ }
256
+
257
+ .map {
258
+ padding-bottom: 70%;
259
+ }
260
+
261
+ .figure,
262
+ .video,
263
+ .map {
264
+ margin-bottom: .8rem;
265
+ }
266
+
267
+ audio,
268
+ video {
269
+ width: 100%;
270
+ }
271
+
272
+
273
+ // Form elements and buttons
274
+ button,
275
+ .button,
276
+ input[type="text"],
277
+ input[type="email"],
278
+ input[type="search"],
279
+ input[type="submit"],
280
+ input[type="color"],
281
+ textarea,
282
+ select {
283
+ padding: .6rem 1.2rem;
284
+ margin-bottom: .6rem;
285
+ transition: color .1s, background-color .1s, border .1s;
286
+ line-height: inherit;
287
+ border: none;
288
+ box-shadow: none;
289
+ border-radius: 0;
290
+ -webkit-appearance: none;
291
+ .icon {
292
+ margin: 0 0 .35rem;
293
+ }
294
+ }
295
+
296
+ input[type="submit"],
297
+ button,
298
+ .button {
299
+ cursor: pointer;
300
+ display: inline-block;
301
+ color: $backgroundColour;
302
+ background: $accentColour;
303
+ transition: box-shadow .1s;
304
+ will-change: box-shadow;
305
+ box-shadow: inset 0 0 0 2rem transparent;
306
+ &:hover {
307
+ box-shadow: inset 0 0 0 2rem rgba(0,0,0,0.25);
308
+ }
309
+ &:active,
310
+ &:focus {
311
+ box-shadow: inset 0 0 0 2rem rgba(0,0,0,0.25);
312
+ }
313
+ }
314
+
315
+ .button--nav {
316
+ @include breakpoint(break-1) {
317
+ display: none;
318
+ }
319
+ background: none;
320
+ color: $linkColour;
321
+ margin-bottom: 0;
322
+ min-height: 4rem;
323
+ min-width: 4rem;
324
+ &:hover,
325
+ &:focus {
326
+ box-shadow: none;
327
+ color: $hoverColour;
328
+ }
329
+ }
330
+
331
+ a,
332
+ button,
333
+ .button,
334
+ input,
335
+ textarea,
336
+ select {
337
+ &:focus,
338
+ &:hover:focus {
339
+ outline: solid .12rem $focusColour;
340
+ outline-offset: -.12rem;
341
+ }
342
+ }
343
+
344
+ a:hover:focus {
345
+ outline: none;
346
+ }
347
+
348
+ input[type="text"],
349
+ input[type="email"],
350
+ input[type="search"],
351
+ input[type="color"],
352
+ textarea,
353
+ select {
354
+ width: 100%;
355
+ border: 1px solid $captionColour;
356
+ &:hover {
357
+ border-color: $bodyColour;
358
+ }
359
+ }
360
+
361
+ select {
362
+ background: $codeBackgroundColour;
363
+ }
364
+
365
+ textarea {
366
+ resize: vertical;
367
+ }
368
+
369
+ label {
370
+ @include baseline($fontsize: zeta, $font: $bodytype, $lineheight: 2, $below: 2, $breakpoint: all);
371
+ }
372
+
373
+ code {
374
+ padding: .12rem .2rem;
375
+ }
376
+
377
+ pre code {
378
+ padding: 0;
379
+ }
380
+
381
+ .required {
382
+ color: red;
383
+ }
384
+
385
+ ::-webkit-input-placeholder {
386
+ opacity: 0.5;
387
+ }
388
+ ::-moz-placeholder {
389
+ opacity: 0.5;
390
+ }
391
+ :-ms-input-placeholder {
392
+ opacity: 0.5;
393
+ }
394
+ :-moz-placeholder {
395
+ opacity: 0.5;
396
+ }
397
+
398
+ ::selection {
399
+ background: $headingColour;
400
+ color: $backgroundColour;
401
+ text-shadow: none;
402
+ }
403
+
404
+
405
+ // Sassline overrides
406
+ .typeset {
407
+ a > code {
408
+ text-shadow: none;
409
+ }
410
+ .button,
411
+ button {
412
+ background-image: none;
413
+ text-shadow: none;
414
+ color: $backgroundColour;
415
+ &:hover,
416
+ &:active,
417
+ &:focus {
418
+ background-image: none;
419
+ color: $backgroundColour;
420
+ }
421
+ }
422
+ hr {
423
+ width: 100%;
424
+ }
425
+ li {
426
+ > p {
427
+ padding: 0;
428
+ margin: 0;
429
+ }
430
+ }
431
+ .nav a {
432
+ padding-left: 0;
433
+ padding-right: 0;
434
+ margin-left: .2rem;
435
+ margin-right: .2rem;
436
+ }
437
+ pre {
438
+ white-space: pre;
439
+ overflow-x: scroll;
440
+ }
441
+ }
@@ -0,0 +1,11 @@
1
+ @charset "utf-8";
2
+
3
+ // Import frameworks & theme styles
4
+ @import
5
+ "normalize",
6
+ "settings",
7
+ "sassline-base",
8
+ "syntax",
9
+ "flex",
10
+ "theme"
11
+ ;
data/assets/styles.scss CHANGED
@@ -2,450 +2,4 @@
2
2
  title: false
3
3
  ---
4
4
 
5
- // Frameworks & Imports
6
- @charset "utf-8";
7
- @import "settings";
8
- @import "normalize";
9
- @import "sassline-base";
10
- @import "syntax";
11
- @import "flex";
12
-
13
-
14
- // Structural elements
15
- body {
16
- background: $backgroundColour;
17
- color: $bodyColour;
18
- height: 100%;
19
- display: flex;
20
- @include flex-direction(column);
21
- overflow-x: hidden;
22
- }
23
-
24
- .container {
25
- width: 90%;
26
- max-width: 1200px;
27
- margin: 0 auto;
28
- }
29
-
30
-
31
- // Header, feature and footer
32
- .header,
33
- .footer {
34
- .nav {
35
- text-align: right;
36
- }
37
- .logo {
38
- @include flex(0 0 auto);
39
- }
40
- .container {
41
- @include flexbox;
42
- @include flex-direction(row);
43
- @include justify-content(space-between);
44
- padding: 1rem 0;
45
- @include breakpoint(break-1) {
46
- @include align-items(center);
47
- }
48
- }
49
- }
50
-
51
- .header .nav {
52
- display: flex;
53
- flex-direction: column-reverse;
54
- align-items: flex-end;
55
- }
56
-
57
- .feature {
58
- padding-bottom: .4rem;
59
- margin-bottom: 1.6rem;
60
- text-align: center;
61
- background: $featureBackgroundColour;
62
- background-size: cover;
63
- background-position: center;
64
- .container {
65
- min-height: 35vh;
66
- max-width: 60%;
67
- @include flex-direction(column);
68
- @include justify-content(center);
69
- }
70
- }
71
-
72
- .logo {
73
- display: inline-block;
74
- line-height: 0;
75
- max-height: 4rem;
76
- @include flexbox;
77
- @include align-items(center);
78
- img {
79
- max-height: 4rem;
80
- }
81
- }
82
-
83
- .nav {
84
- a {
85
- padding: .2rem;
86
- }
87
- &--social a {
88
- display: inline-block;
89
- line-height: 1;
90
- }
91
- }
92
-
93
- .small {
94
- padding-top: .8rem;
95
- color: $captionColour;
96
- display: inline-block;
97
- }
98
-
99
- .footer {
100
- background: $headingColour;
101
- color: $captionColour;
102
- a {
103
- color: $captionColour;
104
- &:hover {
105
- color: $backgroundColour;
106
- }
107
- }
108
- .container {
109
- @include flex-wrap(wrap);
110
- }
111
- .small {
112
- padding-top: 0;
113
- }
114
- }
115
-
116
-
117
- // Pagination nav
118
- .nav--paginator {
119
- @include flexbox;
120
- @include justify-content(space-between);
121
- color: $captionColour;
122
- text-align: center;
123
- }
124
-
125
- .pagination {
126
- min-width: 20%;
127
- }
128
-
129
-
130
- // Main content
131
- .main {
132
- @include flexbox;
133
- @include flex-direction(column);
134
- @include flex(1, 0, auto);
135
- @include justify-content(flex-start);
136
- margin-bottom: 1.6rem;
137
- @include breakpoint(break-1) {
138
- @include justify-content(center);
139
- @include flex-direction(row);
140
- }
141
- }
142
-
143
- .header,
144
- .feature,
145
- .footer {
146
- @include flex(0, 0, auto);
147
- }
148
-
149
- .content {
150
- @include breakpoint(break-1) {
151
- width: 62%;
152
- }
153
- }
154
-
155
- .share .button {
156
- margin-right: .3rem;
157
- }
158
-
159
- .aside {
160
- @include breakpoint(break-1) {
161
- max-width: 34%;
162
- margin-left: 4%;
163
- @include flex(1, 0, auto);
164
- opacity: 0.5;
165
- transition: opacity .1s;
166
- .section {
167
- position: sticky;
168
- top: 0;
169
- }
170
- &--left {
171
- margin-left: 0;
172
- margin-right: 4%;
173
- order: -1;
174
- }
175
- &:hover {
176
- opacity: 1;
177
- }
178
- }
179
- }
180
-
181
- .section {
182
- margin: 0;
183
- }
184
-
185
-
186
- // Lists
187
- .list {
188
- list-style: none;
189
- &--nav {
190
- overflow: hidden;
191
- transition: .2s;
192
- }
193
- .item--post,
194
- .item--result,
195
- .item--category {
196
- margin-left: 0;
197
- }
198
- }
199
-
200
- .item {
201
- &--nav {
202
- @include breakpoint(break-1) {
203
- margin-left: .4rem;
204
- display: inline-block;
205
- }
206
- &:first-of-type {
207
- margin-left: 0;
208
- }
209
- }
210
- &--current {
211
- a {
212
- opacity: 0.5;
213
- }
214
- }
215
- }
216
-
217
-
218
- // Links, icons and images
219
- a .icon {
220
- transition: fill .1s;
221
- &:hover {
222
- fill: currentColor;
223
- }
224
- }
225
-
226
- .icon {
227
- vertical-align: middle;
228
- width: 1.1em;
229
- height: 1.1em;
230
- fill: CurrentColor;
231
- }
232
-
233
- // Media content
234
- img {
235
- max-width: 100%;
236
- height: auto;
237
- }
238
-
239
- .figure {
240
- line-height: 0;
241
- &--left {
242
- float: left;
243
- padding-right: .8rem;
244
- }
245
- &--right {
246
- float: right;
247
- text-align: right;
248
- padding-left: .8rem;
249
- }
250
- &--center {
251
- text-align: center;
252
- clear: both;
253
- }
254
- }
255
-
256
- .video,
257
- .map {
258
- position: relative;
259
- padding-bottom: 56.25%;
260
- height: 0;
261
- iframe {
262
- position: absolute;
263
- top: 0;
264
- left: 0;
265
- width: 100%;
266
- height: 100%;
267
- }
268
- }
269
-
270
- .map {
271
- padding-bottom: 70%;
272
- }
273
-
274
- .figure,
275
- .video,
276
- .map {
277
- margin-bottom: .8rem;
278
- }
279
-
280
- audio,
281
- video {
282
- width: 100%;
283
- }
284
-
285
-
286
- // Form elements and buttons
287
- button,
288
- .button,
289
- input[type="text"],
290
- input[type="email"],
291
- input[type="search"],
292
- input[type="submit"],
293
- input[type="color"],
294
- textarea,
295
- select {
296
- padding: .6rem 1.2rem;
297
- margin-bottom: .6rem;
298
- transition: color .1s, background-color .1s, border .1s;
299
- line-height: inherit;
300
- border: none;
301
- box-shadow: none;
302
- border-radius: 0;
303
- -webkit-appearance: none;
304
- .icon {
305
- margin: 0 0 .35rem;
306
- }
307
- }
308
-
309
- input[type="submit"],
310
- button,
311
- .button {
312
- cursor: pointer;
313
- display: inline-block;
314
- color: $backgroundColour;
315
- background: $accentColour;
316
- transition: box-shadow .1s;
317
- will-change: box-shadow;
318
- box-shadow: inset 0 0 0 2rem transparent;
319
- &:hover {
320
- box-shadow: inset 0 0 0 2rem rgba(0,0,0,0.25);
321
- }
322
- &:active,
323
- &:focus {
324
- box-shadow: inset 0 0 0 2rem rgba(0,0,0,0.25);
325
- }
326
- }
327
-
328
- .button--nav {
329
- @include breakpoint(break-1) {
330
- display: none;
331
- }
332
- background: none;
333
- color: $linkColour;
334
- margin-bottom: 0;
335
- min-height: 4rem;
336
- min-width: 4rem;
337
- &:hover,
338
- &:focus {
339
- box-shadow: none;
340
- color: $hoverColour;
341
- }
342
- }
343
-
344
- a,
345
- button,
346
- .button,
347
- input,
348
- textarea,
349
- select {
350
- &:focus,
351
- &:hover:focus {
352
- outline: solid .12rem $focusColour;
353
- outline-offset: -.12rem;
354
- }
355
- }
356
-
357
- a:hover:focus {
358
- outline: none;
359
- }
360
-
361
- input[type="text"],
362
- input[type="email"],
363
- input[type="search"],
364
- input[type="color"],
365
- textarea,
366
- select {
367
- width: 100%;
368
- border: 1px solid $captionColour;
369
- &:hover {
370
- border-color: $bodyColour;
371
- }
372
- }
373
-
374
- select {
375
- background: $codeBackgroundColour;
376
- }
377
-
378
- textarea {
379
- resize: vertical;
380
- }
381
-
382
- label {
383
- @include baseline($fontsize: zeta, $font: $bodytype, $lineheight: 2, $below: 2, $breakpoint: all);
384
- }
385
-
386
- code {
387
- padding: .12rem .2rem;
388
- }
389
-
390
- pre code {
391
- padding: 0;
392
- }
393
-
394
- .required {
395
- color: red;
396
- }
397
-
398
- ::-webkit-input-placeholder {
399
- opacity: 0.5;
400
- }
401
- ::-moz-placeholder {
402
- opacity: 0.5;
403
- }
404
- :-ms-input-placeholder {
405
- opacity: 0.5;
406
- }
407
- :-moz-placeholder {
408
- opacity: 0.5;
409
- }
410
-
411
- ::selection {
412
- background: $headingColour;
413
- color: $backgroundColour;
414
- text-shadow: none;
415
- }
416
-
417
-
418
- // Sassline overrides
419
- .typeset {
420
- .button,
421
- button {
422
- background-image: none;
423
- text-shadow: none;
424
- color: $backgroundColour;
425
- &:hover,
426
- &:active,
427
- &:focus {
428
- background-image: none;
429
- color: $backgroundColour;
430
- }
431
- }
432
- hr {
433
- width: 100%;
434
- }
435
- li {
436
- > p {
437
- padding: 0;
438
- margin: 0;
439
- }
440
- }
441
- .nav a {
442
- padding-left: 0;
443
- padding-right: 0;
444
- margin-left: .2rem;
445
- margin-right: .2rem;
446
- }
447
- pre {
448
- white-space: pre;
449
- overflow-x: scroll;
450
- }
451
- }
5
+ @import "alembic";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alembic-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: '2.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Darnes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-26 00:00:00.000000000 Z
11
+ date: 2017-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.4'
19
+ version: '3.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.4'
26
+ version: '3.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jekyll-sitemap
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.2'
75
+ version: '2.3'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '2.2'
82
+ version: '2.3'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: jekyll-redirect-from
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0.8'
131
+ version: '0.9'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0.8'
138
+ version: '0.9'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: bundler
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -197,6 +197,8 @@ files:
197
197
  - _sass/_sassline-base.scss
198
198
  - _sass/_settings.scss
199
199
  - _sass/_syntax.scss
200
+ - _sass/_theme.scss
201
+ - _sass/alembic.scss
200
202
  - _sass/sassline-base/_mixins.scss
201
203
  - _sass/sassline-base/_modular-scale.scss
202
204
  - _sass/sassline-base/_reset.scss