jekyll-theme-upskill 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.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +66 -0
- data/_includes/footer.html +19 -0
- data/_includes/head.html +9 -0
- data/_includes/header.html +29 -0
- data/_includes/toc.html +7 -0
- data/_layouts/article.html +5 -0
- data/_layouts/default.html +48 -0
- data/_sass/callout.scss +52 -0
- data/_sass/jekyll-theme-upskill.scss +129 -0
- data/assets/css/site.scss +5 -0
- data/assets/js/app.js +32 -0
- data/assets/js/sticky-kit.min.js +10 -0
- metadata +72 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2f1971fe1f04214263bb669442747c2b011d3b094f779d73d3888438f1027435
|
4
|
+
data.tar.gz: 1ec0d7bfcebb49d554bf42a46604da569fbe4ccaf7e176ea272d8621e7bda4d4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6fcb0eb4b4a57827aa2e97192d2d8ace421482f81fe8d358b3649f42663de542e96307ad0b030dde6cbcb96487d1a8a20e71a2e53deb8d826f818d6a192f1b44
|
7
|
+
data.tar.gz: '0189ca335018c5e27d91a6df0df3316e4aefea91d132debd52a070ca7baf575ed752b9d41ad1ecbd3302008e790d0a7b634158f974c9e83546496cf01e4d4e61'
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2019 Przemysław Pogorzelec
|
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 all
|
13
|
+
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 THE
|
21
|
+
SOFTWARE.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2019 Przemysław Pogorzelec
|
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 all
|
13
|
+
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 THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# jekyll-theme-upskill
|
2
|
+
|
3
|
+
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
|
4
|
+
|
5
|
+
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
6
|
+
|
7
|
+
TODO: Delete this and the text above, and describe your gem
|
8
|
+
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your Jekyll site's `Gemfile`:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem "jekyll-theme-upskill"
|
16
|
+
```
|
17
|
+
|
18
|
+
And add this line to your Jekyll site's `_config.yml`:
|
19
|
+
|
20
|
+
```yaml
|
21
|
+
theme: jekyll-theme-upskill
|
22
|
+
```
|
23
|
+
|
24
|
+
And then execute:
|
25
|
+
|
26
|
+
$ bundle
|
27
|
+
|
28
|
+
Or install it yourself as:
|
29
|
+
|
30
|
+
$ gem install jekyll-theme-upskill
|
31
|
+
|
32
|
+
## Usage
|
33
|
+
|
34
|
+
### Menu
|
35
|
+
|
36
|
+
To generate menu add the `menus` section to you _config.yaml file. Example:
|
37
|
+
|
38
|
+
```yaml
|
39
|
+
menus:
|
40
|
+
- title: Home
|
41
|
+
url: index.html
|
42
|
+
```
|
43
|
+
|
44
|
+
### Table of content
|
45
|
+
|
46
|
+
To generate proper table of content add `sections` sections to your page. Example
|
47
|
+
|
48
|
+
```yaml
|
49
|
+
sections:
|
50
|
+
- sec1
|
51
|
+
- sec2
|
52
|
+
```
|
53
|
+
|
54
|
+
## Development
|
55
|
+
|
56
|
+
To set up your environment to develop this theme, run `bundle install`.
|
57
|
+
|
58
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
59
|
+
|
60
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
61
|
+
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-upskill.gemspec` accordingly.
|
62
|
+
|
63
|
+
## License
|
64
|
+
|
65
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
66
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<footer class="footer">
|
2
|
+
<div class="container">
|
3
|
+
<div class="row text-center">
|
4
|
+
<div class="col-lg-12">
|
5
|
+
<p>
|
6
|
+
This content is available on <a
|
7
|
+
href="https://github.com/pogosoftware/jekyll-theme-upskill/blob/master/LICENSE">MIT</a> license
|
8
|
+
</p>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
<div class="row text-center">
|
12
|
+
<div class="col-lg-12">
|
13
|
+
<p>
|
14
|
+
Design was made by Przemysław Pogorzelec
|
15
|
+
</p>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
4
|
+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
|
5
|
+
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
6
|
+
<link rel="stylesheet"
|
7
|
+
href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />
|
8
|
+
<link rel="stylesheet" href="assets/css/site.css">
|
9
|
+
</head>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<header class="header">
|
2
|
+
<!-- Navigation -->
|
3
|
+
<div class="container">
|
4
|
+
<div class="row">
|
5
|
+
<div class="col-lg-12">
|
6
|
+
<nav class="navbar navbar-expand-lg navbar-light">
|
7
|
+
<button class="navbar-toggler" type="button" data-toggle="collapse"
|
8
|
+
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
|
9
|
+
aria-expanded="false" aria-label="Toggle navigation">
|
10
|
+
<span class="navbar-toggler-icon"></span>
|
11
|
+
</button>
|
12
|
+
|
13
|
+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
14
|
+
<ul class="navbar-nav text-uppercase ml-auto">
|
15
|
+
{% for menu in site.menus %}
|
16
|
+
<li class="nav-item active">
|
17
|
+
<a class="nav-link" href="{{ menu.url }}">{{ menu.title }} <span
|
18
|
+
class="sr-only">(current)</span></a>
|
19
|
+
</li>
|
20
|
+
{% endfor %}
|
21
|
+
</ul>
|
22
|
+
</div>
|
23
|
+
</nav>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<!-- /Navigation -->
|
29
|
+
</header>
|
data/_includes/toc.html
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{%- include head.html -%}
|
5
|
+
|
6
|
+
<body data-spy="scroll" data-target="#toc" class="container-flex">
|
7
|
+
<a class="github-fork-ribbon left-top" href="https://github.com/pogosoftware/upskill-aks"
|
8
|
+
data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
|
9
|
+
|
10
|
+
{%- include header.html -%}
|
11
|
+
|
12
|
+
<section class="container-flex-content">
|
13
|
+
<div class="container">
|
14
|
+
<div class="row justify-content-between">
|
15
|
+
<!-- /Article -->
|
16
|
+
<article class="col-lg-9 text-justify">
|
17
|
+
{{ content }}
|
18
|
+
</article>
|
19
|
+
<!-- /Article -->
|
20
|
+
<!-- Table of Content -->
|
21
|
+
<aside class="col-lg-3">
|
22
|
+
<div class="sticky">
|
23
|
+
{%- include toc.html -%}
|
24
|
+
</div>
|
25
|
+
</aside>
|
26
|
+
<!-- /Table of Content -->
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</section>
|
30
|
+
|
31
|
+
{%- include footer.html -%}
|
32
|
+
|
33
|
+
<script src="https://kit.fontawesome.com/9e4ba468e1.js"></script>
|
34
|
+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
|
35
|
+
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
|
36
|
+
crossorigin="anonymous"></script>
|
37
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
|
38
|
+
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
|
39
|
+
crossorigin="anonymous"></script>
|
40
|
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
|
41
|
+
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
|
42
|
+
crossorigin="anonymous"></script>
|
43
|
+
<script src="assets/js/sticky-kit.min.js"></script>
|
44
|
+
<script src="assets/js/app.js"></script>
|
45
|
+
|
46
|
+
</body>
|
47
|
+
|
48
|
+
</html>
|
data/_sass/callout.scss
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
.bd-callout {
|
2
|
+
position: relative;
|
3
|
+
display: flex;
|
4
|
+
align-items: center;
|
5
|
+
font-size: 1rem;
|
6
|
+
line-height: 3.75rem;
|
7
|
+
flex: 0;
|
8
|
+
width: 100%;
|
9
|
+
padding: 0.75rem;
|
10
|
+
margin-top: 1.25rem;
|
11
|
+
margin-bottom: 1.25rem;
|
12
|
+
border: 1px solid #e3e3e3;
|
13
|
+
border-left-width: .25rem;
|
14
|
+
border-radius: .25rem;
|
15
|
+
}
|
16
|
+
|
17
|
+
.bd-callout i {
|
18
|
+
margin-right: 0.85rem;
|
19
|
+
}
|
20
|
+
|
21
|
+
.bd-callout p:last-child {
|
22
|
+
margin-bottom: 0
|
23
|
+
}
|
24
|
+
|
25
|
+
.bd-callout-success {
|
26
|
+
border-left-color: #5cb85c;
|
27
|
+
}
|
28
|
+
|
29
|
+
.bd-callout-success i {
|
30
|
+
color: #5cb85c;
|
31
|
+
}
|
32
|
+
|
33
|
+
.bd-callout-info {
|
34
|
+
border-left-color: #5bc0de;
|
35
|
+
}
|
36
|
+
|
37
|
+
.bd-callout-info i {
|
38
|
+
color: #5bc0de;
|
39
|
+
}
|
40
|
+
|
41
|
+
.bd-callout-danger {
|
42
|
+
border-left-color: #d9534f;
|
43
|
+
}
|
44
|
+
|
45
|
+
.bd-callout-danger i {
|
46
|
+
color: #d9534f;
|
47
|
+
}
|
48
|
+
|
49
|
+
.bd-callout a {
|
50
|
+
line-height: 1.8;
|
51
|
+
color: #000;
|
52
|
+
}
|
@@ -0,0 +1,129 @@
|
|
1
|
+
html, body {
|
2
|
+
width: 100%;
|
3
|
+
height: 100%;
|
4
|
+
}
|
5
|
+
|
6
|
+
body {
|
7
|
+
margin: 0;
|
8
|
+
font-family: "Open Sans", sans-serif;
|
9
|
+
font-size: 1rem;
|
10
|
+
font-weight: 400;
|
11
|
+
line-height: 1.5;
|
12
|
+
color: #555555;
|
13
|
+
text-align: left;
|
14
|
+
background-color: #f8f8f8;
|
15
|
+
}
|
16
|
+
|
17
|
+
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
|
18
|
+
margin-bottom: 0.5rem;
|
19
|
+
font-family: "Muli", sans-serif;
|
20
|
+
font-weight: 400;
|
21
|
+
line-height: 1.4;
|
22
|
+
color: #000;
|
23
|
+
}
|
24
|
+
|
25
|
+
.github-fork-ribbon:before {
|
26
|
+
background-color: #fa9107;
|
27
|
+
}
|
28
|
+
|
29
|
+
.header {
|
30
|
+
position: static;
|
31
|
+
width: 100%;
|
32
|
+
z-index: 100;
|
33
|
+
}
|
34
|
+
|
35
|
+
.header + section {
|
36
|
+
padding-top: 8rem;
|
37
|
+
}
|
38
|
+
|
39
|
+
article > section:not(:first-child) {
|
40
|
+
margin-top: 3.125rem;
|
41
|
+
}
|
42
|
+
|
43
|
+
.section-title::before {
|
44
|
+
content: '';
|
45
|
+
flex-grow: 1;
|
46
|
+
margin-right: .625rem;
|
47
|
+
border-top: 1px solid #fa9107;
|
48
|
+
}
|
49
|
+
|
50
|
+
.section-title {
|
51
|
+
position: relative;
|
52
|
+
display: flex;
|
53
|
+
align-items: center;
|
54
|
+
justify-content: space-between;
|
55
|
+
font-size: 1.5rem;
|
56
|
+
line-height: 3.75rem;
|
57
|
+
flex: 0;
|
58
|
+
width: 100%;
|
59
|
+
margin-bottom: 15px;
|
60
|
+
}
|
61
|
+
|
62
|
+
.section-title::after {
|
63
|
+
content: '';
|
64
|
+
flex-grow: 1;
|
65
|
+
margin-left: .625rem;
|
66
|
+
border-top: 1px solid #fa9107;
|
67
|
+
}
|
68
|
+
|
69
|
+
.section-title + img {
|
70
|
+
padding-bottom: 20px;
|
71
|
+
}
|
72
|
+
|
73
|
+
p {
|
74
|
+
line-height: 1.8;
|
75
|
+
margin-bottom: 20px;
|
76
|
+
}
|
77
|
+
|
78
|
+
.container {
|
79
|
+
max-width: 1100px;
|
80
|
+
}
|
81
|
+
|
82
|
+
.container-flex {
|
83
|
+
display: flex;
|
84
|
+
flex-direction: column;
|
85
|
+
}
|
86
|
+
|
87
|
+
.container-flex-content {
|
88
|
+
flex-grow: 1;
|
89
|
+
flex-shrink: 0;
|
90
|
+
}
|
91
|
+
|
92
|
+
.toc {
|
93
|
+
list-style: none;
|
94
|
+
margin-top: 2rem;
|
95
|
+
font-family: "Muli", sans-serif;
|
96
|
+
font-weight: 400;
|
97
|
+
}
|
98
|
+
|
99
|
+
.toc-link {
|
100
|
+
display: block;
|
101
|
+
transition: all 0.2s;
|
102
|
+
transition-delay: 0s;
|
103
|
+
position: relative;
|
104
|
+
width: 100%;
|
105
|
+
font-size: 1rem;
|
106
|
+
color: #000;
|
107
|
+
border-left: 2px solid transparent;
|
108
|
+
padding: 0.5rem 1rem;
|
109
|
+
box-sizing: content-box;
|
110
|
+
}
|
111
|
+
|
112
|
+
.toc-link:hover {
|
113
|
+
border-color: #fa9107;
|
114
|
+
}
|
115
|
+
|
116
|
+
.footer {
|
117
|
+
height: 80px;
|
118
|
+
}
|
119
|
+
|
120
|
+
.footer .container {
|
121
|
+
background-color: #fa9107;
|
122
|
+
}
|
123
|
+
|
124
|
+
.footer p {
|
125
|
+
margin: 10px 0px 0px 0px;
|
126
|
+
color: #fff;
|
127
|
+
font: 700 0.85em "Helvetica Neue",Helvetica,Arial,sans-serif;
|
128
|
+
line-height: 1.54em;
|
129
|
+
}
|
data/assets/js/app.js
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
(function ($) {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
$(document).ready(function () {
|
5
|
+
var window_width = jQuery(window).width();
|
6
|
+
|
7
|
+
if (window_width < 768) {
|
8
|
+
$(".sticky").trigger("sticky_kit:detach");
|
9
|
+
} else {
|
10
|
+
make_sticky();
|
11
|
+
}
|
12
|
+
|
13
|
+
$(window).resize(function () {
|
14
|
+
window_width = jQuery(window).width();
|
15
|
+
if (window_width < 768) {
|
16
|
+
$(".sticky").trigger("sticky_kit:detach");
|
17
|
+
} else {
|
18
|
+
make_sticky();
|
19
|
+
}
|
20
|
+
});
|
21
|
+
|
22
|
+
// recalc on collapse
|
23
|
+
$('.nav-item .collapse').on('shown.bs.collapse hidden.bs.collapse', function () {
|
24
|
+
$(".sticky").trigger("sticky_kit:recalc");
|
25
|
+
});
|
26
|
+
|
27
|
+
function make_sticky() {
|
28
|
+
$(".sticky").stick_in_parent();
|
29
|
+
}
|
30
|
+
});
|
31
|
+
|
32
|
+
})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
Sticky-kit v1.1.3 | MIT | Leaf Corcoran 2015 | http://leafo.net
|
3
|
+
*/
|
4
|
+
(function(){var c,f;c=window.jQuery;f=c(window);c.fn.stick_in_parent=function(b){var A,w,J,n,B,K,p,q,L,k,E,t;null==b&&(b={});t=b.sticky_class;B=b.inner_scrolling;E=b.recalc_every;k=b.parent;q=b.offset_top;p=b.spacer;w=b.bottoming;null==q&&(q=0);null==k&&(k=void 0);null==B&&(B=!0);null==t&&(t="is_stuck");A=c(document);null==w&&(w=!0);L=function(a){var b;return window.getComputedStyle?(a=window.getComputedStyle(a[0]),b=parseFloat(a.getPropertyValue("width"))+parseFloat(a.getPropertyValue("margin-left"))+
|
5
|
+
parseFloat(a.getPropertyValue("margin-right")),"border-box"!==a.getPropertyValue("box-sizing")&&(b+=parseFloat(a.getPropertyValue("border-left-width"))+parseFloat(a.getPropertyValue("border-right-width"))+parseFloat(a.getPropertyValue("padding-left"))+parseFloat(a.getPropertyValue("padding-right"))),b):a.outerWidth(!0)};J=function(a,b,n,C,F,u,r,G){var v,H,m,D,I,d,g,x,y,z,h,l;if(!a.data("sticky_kit")){a.data("sticky_kit",!0);I=A.height();g=a.parent();null!=k&&(g=g.closest(k));if(!g.length)throw"failed to find stick parent";
|
6
|
+
v=m=!1;(h=null!=p?p&&a.closest(p):c("<div />"))&&h.css("position",a.css("position"));x=function(){var d,f,e;if(!G&&(I=A.height(),d=parseInt(g.css("border-top-width"),10),f=parseInt(g.css("padding-top"),10),b=parseInt(g.css("padding-bottom"),10),n=g.offset().top+d+f,C=g.height(),m&&(v=m=!1,null==p&&(a.insertAfter(h),h.detach()),a.css({position:"",top:"",width:"",bottom:""}).removeClass(t),e=!0),F=a.offset().top-(parseInt(a.css("margin-top"),10)||0)-q,u=a.outerHeight(!0),r=a.css("float"),h&&h.css({width:L(a),
|
7
|
+
height:u,display:a.css("display"),"vertical-align":a.css("vertical-align"),"float":r}),e))return l()};x();if(u!==C)return D=void 0,d=q,z=E,l=function(){var c,l,e,k;if(!G&&(e=!1,null!=z&&(--z,0>=z&&(z=E,x(),e=!0)),e||A.height()===I||x(),e=f.scrollTop(),null!=D&&(l=e-D),D=e,m?(w&&(k=e+u+d>C+n,v&&!k&&(v=!1,a.css({position:"fixed",bottom:"",top:d}).trigger("sticky_kit:unbottom"))),e<F&&(m=!1,d=q,null==p&&("left"!==r&&"right"!==r||a.insertAfter(h),h.detach()),c={position:"",width:"",top:""},a.css(c).removeClass(t).trigger("sticky_kit:unstick")),
|
8
|
+
B&&(c=f.height(),u+q>c&&!v&&(d-=l,d=Math.max(c-u,d),d=Math.min(q,d),m&&a.css({top:d+"px"})))):e>F&&(m=!0,c={position:"fixed",top:d},c.width="border-box"===a.css("box-sizing")?a.outerWidth()+"px":a.width()+"px",a.css(c).addClass(t),null==p&&(a.after(h),"left"!==r&&"right"!==r||h.append(a)),a.trigger("sticky_kit:stick")),m&&w&&(null==k&&(k=e+u+d>C+n),!v&&k)))return v=!0,"static"===g.css("position")&&g.css({position:"relative"}),a.css({position:"absolute",bottom:b,top:"auto"}).trigger("sticky_kit:bottom")},
|
9
|
+
y=function(){x();return l()},H=function(){G=!0;f.off("touchmove",l);f.off("scroll",l);f.off("resize",y);c(document.body).off("sticky_kit:recalc",y);a.off("sticky_kit:detach",H);a.removeData("sticky_kit");a.css({position:"",bottom:"",top:"",width:""});g.position("position","");if(m)return null==p&&("left"!==r&&"right"!==r||a.insertAfter(h),h.remove()),a.removeClass(t)},f.on("touchmove",l),f.on("scroll",l),f.on("resize",y),c(document.body).on("sticky_kit:recalc",y),a.on("sticky_kit:detach",H),setTimeout(l,
|
10
|
+
0)}};n=0;for(K=this.length;n<K;n++)b=this[n],J(c(b));return this}}).call(this);
|
metadata
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-theme-upskill
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Przemysław Pogorzelec
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-07-11 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.8'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.8'
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- opensource+jekyll-theme-upskill@github.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- LICENSE
|
35
|
+
- LICENSE.txt
|
36
|
+
- README.md
|
37
|
+
- _includes/footer.html
|
38
|
+
- _includes/head.html
|
39
|
+
- _includes/header.html
|
40
|
+
- _includes/toc.html
|
41
|
+
- _layouts/article.html
|
42
|
+
- _layouts/default.html
|
43
|
+
- _sass/callout.scss
|
44
|
+
- _sass/jekyll-theme-upskill.scss
|
45
|
+
- assets/css/site.scss
|
46
|
+
- assets/js/app.js
|
47
|
+
- assets/js/sticky-kit.min.js
|
48
|
+
homepage: https://github.com/pogosoftware/jekyll-theme-upskill
|
49
|
+
licenses:
|
50
|
+
- MIT
|
51
|
+
metadata: {}
|
52
|
+
post_install_message:
|
53
|
+
rdoc_options: []
|
54
|
+
require_paths:
|
55
|
+
- lib
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
requirements: []
|
67
|
+
rubyforge_project:
|
68
|
+
rubygems_version: 2.7.6.2
|
69
|
+
signing_key:
|
70
|
+
specification_version: 4
|
71
|
+
summary: Upskill is a Jekyll theme for GitHub Pages
|
72
|
+
test_files: []
|