programming-pages 0.5.14 → 0.5.15

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
  SHA256:
3
- metadata.gz: 24cc6b3708f8ac98b71592e093a96b6ab35ece97914cc38f7313c12cec037865
4
- data.tar.gz: 7a675425de808aacb44718c10f7ac6ea87ac672a7d996c86262b6bc65e384932
3
+ metadata.gz: ecc1bea77922f3f22419420d174f347a5b2c1628a9a38ed73a0e2aaa0a8ba45f
4
+ data.tar.gz: d642d0d4a3fb399f15ffbb0f2e0b42365bd4dc9bb369fcb536ad93e6d170aba5
5
5
  SHA512:
6
- metadata.gz: e918e7145f1acba9f5081e271a1150b2c09d610d86ad82fca234bb3e04a3e23a0cf6f65a2e56f4dd6e5add1b0c809e199f7629b4fade8dfdc01d50771c3553d4
7
- data.tar.gz: 02cdaea11098a7d2f84d38df713a914b48af071636122335f54774eda626dadccf2ed966a072df552ccbbfa3a402cfddf15395f14cf6a81a0a5ca9123b8f3d90
6
+ metadata.gz: 8ca318f198daf4290c3a4b121dbef2fcb890bb89c51f529501711b8e7581ece70b2e571268e82dea42c5701de8da63daf3f2e2a2d5d9c9ebd8615893063b943b
7
+ data.tar.gz: 2053628c08478ee2135419ea4127a2bd01c15b1a3372b41b49e2b25fadec0c3a20b6e744395da3f5d683c2618654452d1ea47df4581f9ff3f719cf3b65920823
data/_config.yml CHANGED
@@ -24,7 +24,6 @@ collections:
24
24
  title: Guides
25
25
  tab-order: 3
26
26
 
27
- code_indent: " "
28
27
  highlighter: rouge
29
28
  permalink: pretty
30
29
  sass:
@@ -20,7 +20,6 @@
20
20
  {% for collection in collection_list %}
21
21
  {% capture tab_class %}ui {% if forloop.first %}active {% endif %}inverted tab segment{% endcapture %}
22
22
  <div class="{{ tab_class }}" data-tab="{{ collection.label | downcase }}">
23
- <h4 class="ui header">{{ collection.title }}</h4>
24
23
  <div class="ui inverted link list">
25
24
  {% assign doc_list = collection.docs %}
26
25
 
@@ -201,7 +200,7 @@ so our strategy is to:
201
200
 
202
201
  {%- comment %} these fixed items (search & collection tabs) need to be above the tab segments {% endcomment -%}
203
202
 
204
- <div id="sidebar-collection-tabs" class="ui inverted stackable pointing secondary fixed menu">
203
+ <div id="sidebar-collection-tabs" class="ui inverted vertical secondary pointing fixed menu">
205
204
  {% for collection in collection_list %}
206
205
  {% capture tab_class %}{% if forloop.first %}active {% endif %}item{% endcapture %}
207
206
  <a class="{{ tab_class }}" data-tab="{{ collection.label | downcase }}">{{ collection.title }}</a>
@@ -1,5 +1,5 @@
1
1
  /*
2
- * CSS customizations for the programming pages template
2
+ * CSS customizations for the programming pages theme
3
3
  */
4
4
 
5
5
  /* add cross-platform support for unicode characters used in the theme */
@@ -75,6 +75,7 @@ sup:target::before {
75
75
  20% { text-shadow: -3px 0 0 rgba(255,221,0, 0.8), 0 5px 0 rgba(255,221,0, 0.8), 3px 0 0 rgba(255,221,0, 0.8); }
76
76
  100% { text-shadow: -1px 0 0 rgba(255,221,0, 0.0), 0 1px 0 rgba(255,221,0, 0.0), 1px 0 0 rgba(255,221,0, 0.0); }
77
77
  }
78
+
78
79
  /* adjustments to fixed top title */
79
80
  #page-container {
80
81
  margin-top: 3.4rem; /* position page under top menu */
@@ -86,6 +87,7 @@ sup:target::before {
86
87
  top: -.06em;
87
88
  margin-right: .18em;
88
89
  }
90
+
89
91
  /* tighten things up as viewport shrinks */
90
92
  #site-title {
91
93
  background-color: #eee;
@@ -122,42 +124,35 @@ sup:target::before {
122
124
  font-size: /* 10 - 14px */ calc(10px + 4 * ((100vw - 320px) / (1910 - 320)));
123
125
  }
124
126
 
125
- /* add space underneath indices so bottom-most item can scroll into view */
127
+ /* sidebar menu styling */
126
128
  #sidebar-collection-indices {
127
- padding-bottom: 75vh;
129
+ padding-bottom: 75vh; /* add space underneath indices so bottom-most item can scroll into view */
128
130
  }
129
131
  #sidebar-collection-indices .ui.large.fixed.menu .item {
130
132
  padding-top: 1.4em;
131
133
  }
132
-
133
- /* for sidebar fixed, keep search and tabs fixed at top */
134
- #sidebar-fixed #sidebar-collection-indices .ui.large.fixed.menu {
135
- top: 3.5rem;
136
- }
137
- #sidebar-fixed #sidebar-collection-indices .ui.tab.segment {
138
- top: 5rem;
134
+ #sidebar-collection-indices .ui.tab.segment {
135
+ /* adjust tab segment to to fit under n rendered collections */
136
+ {% assign n = 0 %}{% for c in site.collections %}{% unless c.label == 'posts' or c.docs.size == 0 %}{% assign n = n | plus: 1 %}{% endunless %}{% endfor %}
137
+ top: {{ n | minus: 1 | times: 1.5 | plus: 5 }}rem; /* 1 -> 5 , 2 -> 6.5 , 3 -> 8 , .. */
138
+ padding: 0 0 0 .7em;
139
139
  margin-top: 0;
140
140
  }
141
+ #sidebar-collection-tabs {
142
+ background-color: #292a2b; /* FIXME: this should be some theme variable for a lightened inverted background */
143
+ }
144
+ #sidebar-fixed #sidebar-collection-indices .ui.large.fixed.menu {
145
+ top: 3.5rem; /* for sidebar fixed, keep search and tabs fixed at top */
146
+ }
141
147
  #sidebar-fixed #sidebar-collection-tabs {
142
- top: 5.5rem;
143
- background-color: #1b1c1d; /* FIXME: this should pull the semantic sass variable for inverted backgrounds: @black */
148
+ top: 6rem;
144
149
  }
145
-
146
- /* for sidebar retractable, items still need to be positioned, since they've been fixed */
147
- /* FIXME: this is clunky and brittle */
148
150
  #sidebar-retractable #sidebar-collection-indices .ui.large.fixed.menu {
149
- top: 0;
150
- }
151
- #sidebar-retractable #sidebar-collection-indices .ui.tab.segment {
152
- top: 8.5rem; /* TODO: use liquid to make this {{ num_collections*2.5+1 }}; */
153
- margin-top: 0;
151
+ top: 0; /* for sidebar retractable, items still need to be positioned, since they've been fixed */
154
152
  }
155
153
  #sidebar-retractable #sidebar-collection-tabs {
156
154
  top: 2.5rem;
157
- background-color: rgba(255,255,255,.08); /* FIXME: this should pull the semantic sass variable for .ui.inverted.menu a.item:hover: @invertedHoverBackground */
158
155
  }
159
-
160
- /* tweaks to existing semantic-ui rules */
161
156
  #sidebar-retractable.ui.push.sidebar {
162
157
  z-index: 100; /* underneath top fixed menu */
163
158
  }
@@ -169,8 +164,22 @@ sup:target::before {
169
164
  top: 3.5rem; /* below top fixed menu */
170
165
  left: auto;
171
166
  }
167
+ .ui.menu {
168
+ min-height: 1em; /* SUI default is too large for a single item, at 2.75em */
169
+ }
170
+
171
+ /* tweaks to existing semantic-ui rules */
172
172
  .ui.secondary.pointing.menu .item {
173
- padding: .75em .75em;
173
+ padding: .5em .75em;
174
+ }
175
+ .ui.secondary.vertical.pointing.menu .item {
176
+ border-bottom: none;/* same as sui */
177
+ border-radius: 0!important;/* '' */
178
+ border-right: none;/* switch border from right to left */
179
+ border-left-style: solid;
180
+ border-left-color: transparent;
181
+ border-left-width: 2px;
182
+ margin: 0 0 0 -2px;
174
183
  }
175
184
  .ui.vertical.text.menu .tight.item {
176
185
  margin: 0;
@@ -180,6 +189,9 @@ sup:target::before {
180
189
  margin: 0;
181
190
  padding: .125em;
182
191
  }
192
+ .ui.segment {
193
+ overflow-x: auto;
194
+ }
183
195
  .ui.tight.header {
184
196
  margin-bottom: .5em;
185
197
  }
data/_layouts/page.html CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  layout: base
3
- theme_version: 0.5.14
3
+ theme_version: 0.5.15
4
4
  theme_url: https://github.com/pixeldroid/programming-pages
5
5
  ---
6
6
 
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.14
4
+ version: 0.5.15
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-17 00:00:00.000000000 Z
11
+ date: 2019-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-pages