programming-pages 0.5.13 → 0.5.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/elements/indices.html +1 -1
- data/_includes/scripts/indices.js +2 -2
- data/_includes/scripts/page.js +4 -4
- data/_includes/styles/emoji.css +16 -0
- data/_includes/styles/tweaks.css +19 -8
- data/_layouts/page.html +3 -3
- data/assets/fonts/progp-symbol.woff2 +0 -0
- data/assets/fonts/progp_symbol.svg +13 -0
- data/assets/site.css +1 -0
- data/screenshot.png +0 -0
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24cc6b3708f8ac98b71592e093a96b6ab35ece97914cc38f7313c12cec037865
|
4
|
+
data.tar.gz: 7a675425de808aacb44718c10f7ac6ea87ac672a7d996c86262b6bc65e384932
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e918e7145f1acba9f5081e271a1150b2c09d610d86ad82fca234bb3e04a3e23a0cf6f65a2e56f4dd6e5add1b0c809e199f7629b4fade8dfdc01d50771c3553d4
|
7
|
+
data.tar.gz: 02cdaea11098a7d2f84d38df713a914b48af071636122335f54774eda626dadccf2ed966a072df552ccbbfa3a402cfddf15395f14cf6a81a0a5ca9123b8f3d90
|
@@ -201,7 +201,7 @@ so our strategy is to:
|
|
201
201
|
|
202
202
|
{%- comment %} these fixed items (search & collection tabs) need to be above the tab segments {% endcomment -%}
|
203
203
|
|
204
|
-
<div id="collection-tabs" class="ui inverted stackable pointing secondary fixed menu">
|
204
|
+
<div id="sidebar-collection-tabs" class="ui inverted stackable pointing secondary fixed menu">
|
205
205
|
{% for collection in collection_list %}
|
206
206
|
{% capture tab_class %}{% if forloop.first %}active {% endif %}item{% endcapture %}
|
207
207
|
<a class="{{ tab_class }}" data-tab="{{ collection.label | downcase }}">{{ collection.title }}</a>
|
@@ -3,12 +3,12 @@ set_indices_scrolltop = function() {
|
|
3
3
|
var active_item = $('#active-page-index').first();
|
4
4
|
if (active_item.length < 1) return;
|
5
5
|
|
6
|
-
var y = active_item.position().top - 50; {% comment %} an arbitrary amount below the collection-tabs element {% endcomment %}
|
6
|
+
var y = active_item.position().top - 50; {% comment %} an arbitrary amount below the sidebar-collection-tabs element {% endcomment %}
|
7
7
|
$('#sidebar-fixed').scrollTop(y);
|
8
8
|
}
|
9
9
|
|
10
10
|
collection_tabs_init = function() {
|
11
|
-
$('#collection-tabs .item').tab({
|
11
|
+
$('#sidebar-collection-tabs .item').tab({
|
12
12
|
history: true,
|
13
13
|
historyType: 'hash',
|
14
14
|
onFirstLoad: set_indices_scrolltop,
|
data/_includes/scripts/page.js
CHANGED
@@ -12,13 +12,13 @@ sidebar_init = function() {
|
|
12
12
|
$(sidebar_init);
|
13
13
|
|
14
14
|
ensure_mobile_view = function() {
|
15
|
-
if (0 == $('#sidebar-retractable').has('#collection-indices').length) {
|
16
|
-
$('#collection-indices').appendTo( $('#sidebar-retractable') );
|
15
|
+
if (0 == $('#sidebar-retractable').has('#sidebar-collection-indices').length) {
|
16
|
+
$('#sidebar-collection-indices').appendTo( $('#sidebar-retractable') );
|
17
17
|
}
|
18
18
|
};
|
19
19
|
ensure_desktop_view = function() {
|
20
|
-
if (0 == $('#sidebar-fixed').has('#collection-indices').length) {
|
21
|
-
$('#collection-indices').appendTo( $('#sidebar-fixed') );
|
20
|
+
if (0 == $('#sidebar-fixed').has('#sidebar-collection-indices').length) {
|
21
|
+
$('#sidebar-collection-indices').appendTo( $('#sidebar-fixed') );
|
22
22
|
}
|
23
23
|
if ($('#sidebar-retractable').sidebar('is visible')) {
|
24
24
|
$('#sidebar-retractable').sidebar('hide');
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/*
|
2
|
+
* Emoji sizes to match semantic ui vocabulary and leverage souce being 128px x 128px
|
3
|
+
*/
|
4
|
+
|
5
|
+
img.emoji {
|
6
|
+
width: auto;
|
7
|
+
vertical-align: middle;
|
8
|
+
height: 1.25em; /* medium */
|
9
|
+
}
|
10
|
+
.ui.mini > img.emoji { height: 1.5em; }
|
11
|
+
.ui.tiny > img.emoji { height: 1.25em; }
|
12
|
+
.ui.small > img.emoji { height: 1.125em; }
|
13
|
+
.ui.large > img.emoji { height: 1.5em; }
|
14
|
+
.ui.big > img.emoji { height: 1.75em; }
|
15
|
+
.ui.huge > img.emoji { height: 2em; }
|
16
|
+
.ui.massive > img.emoji { height: 3em; }
|
data/_includes/styles/tweaks.css
CHANGED
@@ -2,6 +2,17 @@
|
|
2
2
|
* CSS customizations for the programming pages template
|
3
3
|
*/
|
4
4
|
|
5
|
+
/* add cross-platform support for unicode characters used in the theme */
|
6
|
+
@font-face {
|
7
|
+
font-family: 'progp-symbol';
|
8
|
+
src: url('fonts/progp-symbol.woff2') format('woff2'); /* path relative to /assets/site.css */
|
9
|
+
unicode-range: U+2B8C; /* ⮌ | U+2B8C: ANTICLOCKWISE TRIANGLE-HEADED RIGHT U-SHAPED ARROW */
|
10
|
+
}
|
11
|
+
.reversefootnote { /* kramdown applies this class to footnote backlinks */
|
12
|
+
font-family: 'progp-symbol', 'Segoe UI Symbol', sans-serif;
|
13
|
+
font-size: 80%;
|
14
|
+
}
|
15
|
+
|
5
16
|
/* use flexbox to keep footer stuck to bottom */
|
6
17
|
.pusher {
|
7
18
|
display: flex;
|
@@ -112,36 +123,36 @@ sup:target::before {
|
|
112
123
|
}
|
113
124
|
|
114
125
|
/* add space underneath indices so bottom-most item can scroll into view */
|
115
|
-
#collection-indices {
|
126
|
+
#sidebar-collection-indices {
|
116
127
|
padding-bottom: 75vh;
|
117
128
|
}
|
118
|
-
#collection-indices .ui.large.fixed.menu .item {
|
129
|
+
#sidebar-collection-indices .ui.large.fixed.menu .item {
|
119
130
|
padding-top: 1.4em;
|
120
131
|
}
|
121
132
|
|
122
133
|
/* for sidebar fixed, keep search and tabs fixed at top */
|
123
|
-
#sidebar-fixed #collection-indices .ui.large.fixed.menu {
|
134
|
+
#sidebar-fixed #sidebar-collection-indices .ui.large.fixed.menu {
|
124
135
|
top: 3.5rem;
|
125
136
|
}
|
126
|
-
#sidebar-fixed #collection-indices .ui.tab.segment {
|
137
|
+
#sidebar-fixed #sidebar-collection-indices .ui.tab.segment {
|
127
138
|
top: 5rem;
|
128
139
|
margin-top: 0;
|
129
140
|
}
|
130
|
-
#sidebar-fixed #collection-tabs {
|
141
|
+
#sidebar-fixed #sidebar-collection-tabs {
|
131
142
|
top: 5.5rem;
|
132
143
|
background-color: #1b1c1d; /* FIXME: this should pull the semantic sass variable for inverted backgrounds: @black */
|
133
144
|
}
|
134
145
|
|
135
146
|
/* for sidebar retractable, items still need to be positioned, since they've been fixed */
|
136
147
|
/* FIXME: this is clunky and brittle */
|
137
|
-
#sidebar-retractable #collection-indices .ui.large.fixed.menu {
|
148
|
+
#sidebar-retractable #sidebar-collection-indices .ui.large.fixed.menu {
|
138
149
|
top: 0;
|
139
150
|
}
|
140
|
-
#sidebar-retractable #collection-indices .ui.tab.segment {
|
151
|
+
#sidebar-retractable #sidebar-collection-indices .ui.tab.segment {
|
141
152
|
top: 8.5rem; /* TODO: use liquid to make this {{ num_collections*2.5+1 }}; */
|
142
153
|
margin-top: 0;
|
143
154
|
}
|
144
|
-
#sidebar-retractable #collection-tabs {
|
155
|
+
#sidebar-retractable #sidebar-collection-tabs {
|
145
156
|
top: 2.5rem;
|
146
157
|
background-color: rgba(255,255,255,.08); /* FIXME: this should pull the semantic sass variable for .ui.inverted.menu a.item:hover: @invertedHoverBackground */
|
147
158
|
}
|
data/_layouts/page.html
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
layout: base
|
3
|
-
theme_version: 0.5.
|
3
|
+
theme_version: 0.5.14
|
4
4
|
theme_url: https://github.com/pixeldroid/programming-pages
|
5
5
|
---
|
6
6
|
|
@@ -11,7 +11,7 @@ theme_url: https://github.com/pixeldroid/programming-pages
|
|
11
11
|
|
12
12
|
<!-- animated sidebar (can be revealed in mobile view) -->
|
13
13
|
<div id="sidebar-retractable" class="ui vertical inverted sidebar menu">
|
14
|
-
<!-- #collection-indices is re-parented here for mobile view -->
|
14
|
+
<!-- #sidebar-collection-indices is re-parented here for mobile view -->
|
15
15
|
</div>
|
16
16
|
|
17
17
|
<!-- pushing container (will be pushed right when retractable sidebar opens) -->
|
@@ -20,7 +20,7 @@ theme_url: https://github.com/pixeldroid/programming-pages
|
|
20
20
|
<div class="ui left attached internal rail">
|
21
21
|
<!-- static sidebar (visible in non-mobile view) -->
|
22
22
|
<div id="sidebar-fixed" class="ui vertical inverted menu">
|
23
|
-
<div id="collection-indices">
|
23
|
+
<div id="sidebar-collection-indices">
|
24
24
|
{% include elements/indices.html %}
|
25
25
|
</div>
|
26
26
|
</div>
|
Binary file
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg">
|
4
|
+
<metadata>generated by fontello.com</metadata>
|
5
|
+
<metadata>glyph U+2B8C (back) from Iconic, copyright P.J Onori</metadata>
|
6
|
+
<defs>
|
7
|
+
<font id="progp_symbol" horiz-adv-x="1000" >
|
8
|
+
<font-face font-family="progp_symbol" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
|
9
|
+
<missing-glyph horiz-adv-x="1000" />
|
10
|
+
<glyph glyph-name="back" unicode="⮌" d="M804 694q107-107 107-262 0-150-107-257l-84-84-79 80 84 84q74 74 74 177 0 108-74 183-72 72-180 72t-180-72l-153-155 141 0 0-109-335 0 0 334 112 0 0-147 156 156q103 103 259 103t259-103z m-271-791l-79 79 79 81 79-81z" horiz-adv-x="928" />
|
11
|
+
</font>
|
12
|
+
</defs>
|
13
|
+
</svg>
|
data/assets/site.css
CHANGED
data/screenshot.png
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: programming-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pixeldroid
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-pages
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '196'
|
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: '
|
26
|
+
version: '196'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- _includes/scripts/semantic-ui/sticky.min.js
|
93
93
|
- _includes/scripts/semantic-ui/tab.min.js
|
94
94
|
- _includes/scripts/semantic-ui/transition.min.js
|
95
|
+
- _includes/styles/emoji.css
|
95
96
|
- _includes/styles/kbd.css
|
96
97
|
- _includes/styles/semantic-ui/_version.css
|
97
98
|
- _includes/styles/semantic-ui/breadcrumb.min.css
|
@@ -127,6 +128,8 @@ files:
|
|
127
128
|
- _layouts/guide-index.html
|
128
129
|
- _layouts/layout.html
|
129
130
|
- _layouts/page.html
|
131
|
+
- assets/fonts/progp-symbol.woff2
|
132
|
+
- assets/fonts/progp_symbol.svg
|
130
133
|
- assets/site.css
|
131
134
|
- assets/site.js
|
132
135
|
- favicon.png
|