jekyll-theme-centos 2.52.0.beta.76 → 2.52.0.beta.77
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 050d40b6de763b0dccb582c8a8e31e26d3386ec6dd63be4e44bf0a954541d8e5
|
|
4
|
+
data.tar.gz: ba24c6139c384c9e976432097eb25924c762b5e192c3ea147934960c97509d57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1e903b5f0db0bf4dcbe84c634be46a200c74dda1ab18bc07d4cdd03f42f1b84968ec5b56a4576cde1e408720dd0e37599181bb9b921d067fda7cb01d66fa52d
|
|
7
|
+
data.tar.gz: c4e6e228255ae261e636117313f00e4b95f4ccc37a0ed58fad0fa9931c7ab98a592fdb7792617f34f8f49552d3e3fa2e6f281293ecebf18161a640acd3f72dff
|
|
@@ -71,7 +71,7 @@ properties:
|
|
|
71
71
|
description: The visible title or name of the project. This field is typically required.
|
|
72
72
|
name_class:
|
|
73
73
|
type: string
|
|
74
|
-
default: display-3 fw-bold mb-1
|
|
74
|
+
default: display-3 fw-bold mb-1 text-center
|
|
75
75
|
description: Custom CSS classes applied to the project name text element.
|
|
76
76
|
description:
|
|
77
77
|
type: string
|
|
@@ -79,7 +79,7 @@ properties:
|
|
|
79
79
|
description: A detailed summary or description of the project.
|
|
80
80
|
description_class:
|
|
81
81
|
type: string
|
|
82
|
-
default: lead mb-
|
|
82
|
+
default: lead mb-0 text-center
|
|
83
83
|
description: Custom CSS classes applied to the project description text element.
|
|
84
84
|
actions:
|
|
85
85
|
type: array
|
|
@@ -93,7 +93,7 @@ properties:
|
|
|
93
93
|
additionalProperties: true
|
|
94
94
|
actions_class:
|
|
95
95
|
type: string
|
|
96
|
-
default: "mb-3"
|
|
96
|
+
default: "pt-5 mb-3"
|
|
97
97
|
description: Custom CSS classes applied to the container wrapping the action buttons list.
|
|
98
98
|
actions_btn_class:
|
|
99
99
|
type: string
|
|
@@ -80,7 +80,10 @@ Uses CSS custom properties for cleaner, more maintainable dynamic styling.
|
|
|
80
80
|
{%- assign breakingnews = page.with_breakingnews_data | default: site.data.breakingnews | default: site.data.base.breakingnews %}
|
|
81
81
|
{%- if page.with_breakingnews == true and breakingnews.size > 0 %}
|
|
82
82
|
{%- assign breakingnews_alert_height = site.data.base.breakingnews_schema.properties.breakingnews_alert_height.default %}
|
|
83
|
-
{%- assign navbar_height =
|
|
83
|
+
{%- assign navbar_height = 0 %}
|
|
84
|
+
{%- if page.with_navbar %}
|
|
85
|
+
{%- assign navbar_height = site.data.base.navbar_schema.properties.navbar_height.default %}
|
|
86
|
+
{%- endif %}
|
|
84
87
|
{%- assign breakingnews_offset = 0 %}
|
|
85
88
|
{%- for item in breakingnews %}
|
|
86
89
|
{%- if forloop.first %}
|
|
@@ -31,6 +31,10 @@ Data Source Hierarchy (priority):
|
|
|
31
31
|
| default: page.with_project
|
|
32
32
|
%}
|
|
33
33
|
|
|
34
|
+
{%- assign with_navbar = include.with_navbar
|
|
35
|
+
| default: page.with_navbar
|
|
36
|
+
%}
|
|
37
|
+
|
|
34
38
|
{%- assign with_project_data = include.data
|
|
35
39
|
| default: page.with_project_data
|
|
36
40
|
| default: site.data.project
|
|
@@ -63,9 +67,9 @@ Data Source Hierarchy (priority):
|
|
|
63
67
|
{% assign project_resources_btn_class = with_project_data.resources_btn_class | default: with_project_schema.resources_btn_class.default %}
|
|
64
68
|
|
|
65
69
|
<div class="d-flex{% if project_class != "" %} {{ project_class }}{% endif %}">
|
|
66
|
-
<div class="container pt-5">
|
|
70
|
+
<div class="container{% if with_navbar %} pt-5{% endif %}">
|
|
67
71
|
{% include base/card.html.liquid
|
|
68
|
-
class = "flex-column align-items-center
|
|
72
|
+
class = "flex-column align-items-center py-5"
|
|
69
73
|
color = "primary"
|
|
70
74
|
screenshot = project_screenshot
|
|
71
75
|
screenshot_class = project_screenshot_class
|
data/_layouts/base/default.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="{{ page.lang | default: 'en' }}"{% if page.with_ogp %} prefix="og: https://ogp.me/ns#"{% endif %}>
|
|
3
3
|
{% include base/head.html.liquid -%}
|
|
4
|
-
<body id="top" class="bg-body">
|
|
4
|
+
<body id="top" class="bg-body{% if page.with_navbar %} has-navbar{% endif %}">
|
|
5
5
|
|
|
6
6
|
{% include base/navbar.html.liquid -%}
|
|
7
7
|
|
|
@@ -22,10 +22,20 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
body {
|
|
25
|
-
padding-top:
|
|
25
|
+
padding-top: 0;
|
|
26
26
|
|
|
27
27
|
.sticky-top-breakingnews {
|
|
28
|
-
top:
|
|
28
|
+
top: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Fixed-top navbar reserves this vertical space; pages that disable it
|
|
32
|
+
// (with_navbar: false) get no compensation, since nothing needs clearing.
|
|
33
|
+
&.has-navbar {
|
|
34
|
+
padding-top: $breakingnews-height;
|
|
35
|
+
|
|
36
|
+
.sticky-top-breakingnews {
|
|
37
|
+
top: $breakingnews-height;
|
|
38
|
+
}
|
|
29
39
|
}
|
|
30
40
|
}
|
|
31
41
|
|
|
@@ -160,7 +170,6 @@ main {
|
|
|
160
170
|
.content > h4,
|
|
161
171
|
.content > h5,
|
|
162
172
|
.content > h6 {
|
|
163
|
-
scroll-margin-top: 80px;
|
|
164
173
|
scroll-margin-bottom: 100px;
|
|
165
174
|
margin-top: 3rem;
|
|
166
175
|
}
|
|
@@ -170,7 +179,6 @@ main {
|
|
|
170
179
|
margin-bottom: $spacer * 0.75;
|
|
171
180
|
}
|
|
172
181
|
.content > figure {
|
|
173
|
-
scroll-margin-top: 80px;
|
|
174
182
|
scroll-margin-bottom: 100px;
|
|
175
183
|
}
|
|
176
184
|
|
|
@@ -248,7 +256,6 @@ main {
|
|
|
248
256
|
// item internal layout while still providing proper scroll margin and visual spacing.
|
|
249
257
|
.content .accordion,
|
|
250
258
|
.content .accordion-item {
|
|
251
|
-
scroll-margin-top: 80px;
|
|
252
259
|
scroll-margin-bottom: 100px;
|
|
253
260
|
}
|
|
254
261
|
|
|
@@ -329,3 +336,24 @@ main {
|
|
|
329
336
|
}
|
|
330
337
|
}
|
|
331
338
|
}
|
|
339
|
+
|
|
340
|
+
// --------------------------------------------------------------------------------
|
|
341
|
+
// Navbar-dependent scroll offset (fixed-top navbar only)
|
|
342
|
+
// --------------------------------------------------------------------------------
|
|
343
|
+
// scroll-margin-top exists solely to keep anchored headings/figures/accordions from
|
|
344
|
+
// being hidden behind the fixed-top navbar. Scoped to .has-navbar (stamped on <body>
|
|
345
|
+
// in the layout only when page.with_navbar is true) so pages that disable the navbar
|
|
346
|
+
// get no phantom offset.
|
|
347
|
+
body.has-navbar main {
|
|
348
|
+
.content > h1,
|
|
349
|
+
.content > h2,
|
|
350
|
+
.content > h3,
|
|
351
|
+
.content > h4,
|
|
352
|
+
.content > h5,
|
|
353
|
+
.content > h6,
|
|
354
|
+
.content > figure,
|
|
355
|
+
.content .accordion,
|
|
356
|
+
.content .accordion-item {
|
|
357
|
+
scroll-margin-top: 80px;
|
|
358
|
+
}
|
|
359
|
+
}
|