jekyll-theme-centos 2.51.1.beta.48 → 2.51.1.beta.49

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: f7728375c76ee725f604fcf58d7fa07136a5c31f94f6dd6581a31c93e35e21af
4
- data.tar.gz: 1e0bde71dbf65f2708867c7f9790267edf74c1ed40a3cc0c8a22350f3ab7bddd
3
+ metadata.gz: 6540593ed3dd8c216ad81416fe5db6ec328acbeafd20221e1b20b9a9c08d35f9
4
+ data.tar.gz: 4c740a0b2888d232f8c7a77e511c30cec8d14c85b7d30666982d9369d625eee2
5
5
  SHA512:
6
- metadata.gz: 6664f06d8297710ab58dd90ff73bce5c7d94d2226af652167e59a8e99550a1e2d1630940a4bfac1858f5e20c0d63f94f8ff3a6e2e807dcea7e223578a69be1b0
7
- data.tar.gz: adc6bdca929e8ecab6f4af74e7ce53dadaa4331b191009937276993603e3a0a4a6ba172b53c0db4488ccb36bbdef597a898cceecaf1b9a19540a56b7f1a29f51
6
+ metadata.gz: edc115f6d6a8f28539eb2aa9b7f3df341f3563b22674a44ecb6895d9de46709110b1db757558cd958df4f96a77b068163af641dec2d5cabe2566d0ff5aadc7a9
7
+ data.tar.gz: 791eb1c896ba0ae062606e9cae3cd33954813e71517f728ad0b63d8222126a042b9e637c3a4c5aed0f73ac886266d32c0ea6943b02c6ce2bcfe3db88f43a3434
@@ -0,0 +1,12 @@
1
+ ---
2
+ - title: Jekyll documentation
3
+ url: https://jekyllrb.com/docs/
4
+
5
+ - title: Liquid template language
6
+ url: https://shopify.github.io/liquid/
7
+
8
+ - title: The DITA style guide best practices for authors
9
+ url: https://www.oxygenxml.com/dita/styleguide/
10
+
11
+ - title: Modular documentation reference guide
12
+ url: https://redhat-documentation.github.io/modular-docs/
@@ -1,4 +1,13 @@
1
1
  <div class="alert alert-{{ include.color | default: 'primary' }} alert-dismissible fade show shadow" role="alert">
2
- <i class="fa-solid fa-bullhorn"></i> <strong>{{ include.title | default: '' }}</strong> {{ include.content | default: '' }}
2
+ <div class="container d-flex justify-content-between align-items-center">
3
+ <div class="me-3">
4
+ <div class="h5 mb-0"><i class="{{ include.icon | default: 'fa-solid fa-bullhorn' }}"></i></div>
5
+ </div>
6
+ <div class="flex-fill">
7
+ {%- if include.content != "" %}
8
+ {{ include.content }}
9
+ {%- endif %}
10
+ </div>
11
+ </div>
3
12
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
4
13
  </div>
@@ -1,13 +1,13 @@
1
1
  <nav aria-label="{{ include.arialabel | default: 'breadcrumb' }}">
2
2
  <ol class="breadcrumb">
3
- {% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
4
- <li class="breadcrumb-item"><a href="{{ site.baseurl }}/">Home</a></li>
5
- {% for crumb in crumbs offset: 1 %}
6
- {% if forloop.last %}
3
+ {%- assign crumbs = page.url | remove:'/index.html' | split: '/' %}
4
+ <li class="breadcrumb-item"><a class="link-offset-3 link-offset-3-hover link-underline link-underline-opacity-25 link-underline-opacity-75-hover" href="{{ site.baseurl }}/">Home</a></li>
5
+ {%- for crumb in crumbs offset: 1 %}
6
+ {%- if forloop.last %}
7
7
  <li class="breadcrumb-item active">{{ page.title }}</li>
8
- {% else %}
9
- <li class="breadcrumb-item"><a href="{{ site.baseurl }}{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a></li>
10
- {% endif %}
11
- {% endfor %}
8
+ {%- else %}
9
+ <li class="breadcrumb-item"><a class="link-offset-3 link-offset-3-hover link-underline link-underline-opacity-25 link-underline-opacity-75-hover" href="{{ site.baseurl }}{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a></li>
10
+ {%- endif %}
11
+ {%- endfor %}
12
12
  </ol>
13
13
  </nav>
@@ -4,14 +4,14 @@
4
4
  <div class="h5 mb-0"><i class="{{ include.icon | default: 'fa-solid fa-bullhorn' }}"></i></div>
5
5
  </div>
6
6
  <div class="flex-fill">
7
- {% if include.content != "" %}
7
+ {%- if include.content != "" %}
8
8
  {{ include.content }}
9
- {% endif %}
9
+ {%- endif %}
10
10
  </div>
11
- {% if include.url != "" %}
11
+ {%- if include.url != "" %}
12
12
  <div class="">
13
13
  <a class="btn btn-sm btn-{{ include.color | default: 'primary') }} text-nowrap" href="{{ include.url }}" role="button">Know more <i class="fa-solid fa-arrow-right"></i></a>
14
14
  </div>
15
- {% endif %}
15
+ {%- endif %}
16
16
  </div>
17
17
  </div>
@@ -3,15 +3,18 @@
3
3
  {% else %}
4
4
  {% assign copyright = site.data.base.copyright %}
5
5
  {% endif %}
6
+
7
+ {%- assign color = include.color | default: "light" -%}
8
+ {%- capture legals -%}
9
+ {%- for item in copyright.legals -%}
10
+ {%- assign name = item.text -%}
11
+ {%- assign url = item.link -%}
12
+ <span class="border-start ms-2 ps-2">{% include base/link.html name=name url=url color=color %}</span>
13
+ {%- endfor -%}
14
+ {%- endcapture -%}
15
+
6
16
  <div class="row my-3">
7
17
  <div class="col">
8
- <span>Copyright &copy;</span>
9
- <span>{{ site.time | date: "%Y" }}</span>
10
- <span>{{ copyright.author }}</span>
11
- {% for item in copyright.legals -%}
12
- <span class="border-start ms-2 ps-2">
13
- <a class="link-light link-offset-3 link-underline-opacity-25 link-underline-opacity-100-hover link-underline-light" href="{{ item.link }}">{{ item.text }}</a>
14
- </span>
15
- {% endfor %}
18
+ <div>Copyright &copy; {{ site.time | date: "%Y" }} {{ copyright.author }} {{ legals }}</div>
16
19
  </div>
17
20
  </div>
@@ -11,7 +11,7 @@
11
11
  {{ modal_title }}
12
12
  </button>
13
13
 
14
- <div class="modal fade" id="languageModal-{{ modal_id }}" tabindex="-1" aria-labelledby="languageModalLabel-{{ modal_id }}" aria-hidden="true">
14
+ <div class="modal fade" id="languageModal-{{ modal_id }}" tabindex="-1" aria-labelledby="languageModalLabel-{{ modal_id }}">
15
15
  <div class="modal-dialog">
16
16
  <div class="modal-content">
17
17
  <div class="modal-header">
@@ -20,9 +20,9 @@
20
20
  </div>
21
21
  <div class="modal-body">
22
22
  <p>{{ modal_preamble }}</p>
23
- <a href="{{ site.baseurl }}{{ page.url }}" role="button" class="btn btn-primary">{{ site.data.base.languages["en"] }}</a>
23
+ <a href="{{ site.baseurl }}{{ page.url }}" role="button" class="btn btn-sm btn-primary">{{ site.data.base.languages["en"] }}</a>
24
24
  {% for locale in page.with_locales %}
25
- <a href="{{ site.baseurl }}/{{ locale }}{{ page.url }}" role="button" class="btn btn-primary">{{ site.data.base.languages[locale] }}</a>
25
+ <a href="{{ site.baseurl }}/{{ locale }}{{ page.url }}" role="button" class="btn btn-sm btn-primary">{{ site.data.base.languages[locale] }}</a>
26
26
  {% endfor %}
27
27
  </div>
28
28
  {% if modal_footer != "" %}
@@ -0,0 +1 @@
1
+ <a class="link-{{ include.color | default: 'primary' }} link-offset-3 link-offset-3-hover link-underline-{{ include.color | default: 'primary' }} link-underline-opacity-25 link-underline-opacity-75-hover" href="{{ include.url }}">{{ include.name }}</a>
@@ -0,0 +1,16 @@
1
+ {% if site.data[site.component_data_dirname]["social"] %}
2
+ {% assign social_networks = site.data[site.component_data_dirname]["social"] %}
3
+ {% else %}
4
+ {% assign social_networks = site.data.base.social %}
5
+ {% endif %}
6
+ <div class="row">
7
+ <div class="mt-3 col-sm-12 col-lg-8">
8
+ <div class="lead">{{ site.description }}</div>
9
+ </div>
10
+
11
+ <div class="my-3 col-sm-12 col-lg-4 d-flex justify-content-sm-start justify-content-lg-end">
12
+ {% for item in social_networks -%}
13
+ <a class="btn border-0 btn-outline-primary fs-4" href="{{ item.link }}" role="button" aria-label="{{ item.name }}" data-bs-placement="bottom" data-bs-title="{{ item.name }}"><i class="{{ item.icon }}"></i></a>
14
+ {% endfor %}
15
+ </div>
16
+ </div>
@@ -6,8 +6,11 @@
6
6
  <div id="flush-collapseOne" class="accordion-collapse collapse" aria-labelledby="flush-headingOne" data-bs-parent="#pageTocAccordion">
7
7
  <div class="accordion-body small">
8
8
  {% include base/toc.html
9
+ id="page-toc"
9
10
  html=content
10
- anchor_class="link-underline link-underline-opacity-0 link-underline-opacity-75-hover"
11
+ class="list-group"
12
+ item_class="list-unstyled"
13
+ anchor_class="link-primary list-group-item list-group-item-light list-group-item-action border-top-0 border-end-0 border-bottom-0 border-2 border-primary-subtle rounded-0 my-1"
11
14
  %}
12
15
  </div>
13
16
  </div>
@@ -0,0 +1,13 @@
1
+ <div class="row my-4">
2
+ {%- for topic in include.topics %}
3
+ {%- if topic.title != page.title %}
4
+ <div class="col-sm-6">
5
+ {%- if site.url contains "http://" or site.url contains "https://" %}
6
+ <p><a class="link-offset-3 link-offset-3-hover link-underline link-underline-opacity-25 link-underline-opacity-75-hover" href="{{ topic.url }}">{{ topic.title }}</a></p>
7
+ {%- else %}
8
+ <p><a class="link-offset-3 link-offset-3-hover link-underline link-underline-opacity-25 link-underline-opacity-75-hover" href="{{ site.url }}{{ site.baseurl }}{{ topic.url }}">{{ topic.title }}</a></p>
9
+ {%- endif %}
10
+ </div>
11
+ {%- endif %}
12
+ {%- endfor %}
13
+ </div>
@@ -32,7 +32,7 @@
32
32
  </div>
33
33
  {% endif %}
34
34
 
35
- <main class="container bg-body py-4">
35
+ <main class="container bg-body py-3">
36
36
 
37
37
  {% if page.with_announcements and page.with_announcements.size > 0 -%}
38
38
  {% for announcement in page.with_announcements %}
@@ -45,7 +45,7 @@
45
45
  {% endif -%}
46
46
 
47
47
  {% if page.with_breadcrumbs == true or page.with_locales.size > 0 %}
48
- <div class="row justify-content-center mb-4">
48
+ <div class="row justify-content-center mb-5 small">
49
49
  <div class="col">
50
50
  {% if page.with_breadcrumbs == true %}
51
51
  {% include base/breadcrumbs.html %}
@@ -60,7 +60,7 @@
60
60
  {% endif %}
61
61
 
62
62
  {% if page.with_title == true -%}
63
- <div class="row justify-content-center mb-4">
63
+ <div class="row justify-content-center my-5">
64
64
  <div class="col-sm-12 col-lg-8">
65
65
  <div class="h1">{{ page.title }}</div>
66
66
  {% if page.with_preamble == true -%}
@@ -88,6 +88,42 @@ nav {
88
88
  }
89
89
  }
90
90
  }
91
+ // --------------------------------------------------------------------------------
92
+ // Alerts (p), announcements (div), and breakingnews (div)
93
+ // --------------------------------------------------------------------------------
94
+ p {
95
+ &.alert {
96
+ padding-left: $spacer * 3;
97
+ background-repeat: no-repeat;
98
+ background-position-y: $spacer * 1.2;
99
+ background-position-x: $spacer;
100
+ border-left-width: 0.5rem;
101
+ }
102
+ &.alert-primary {
103
+ background-image: $alert-primary-icon;
104
+ }
105
+ &.alert-secondary {
106
+ background-image: $alert-secondary-icon;
107
+ }
108
+ &.alert-danger {
109
+ background-image: $alert-danger-icon;
110
+ }
111
+ &.alert-warning {
112
+ background-image: $alert-warning-icon;
113
+ }
114
+ &.alert-info {
115
+ background-image: $alert-info-icon;
116
+ }
117
+ &.alert-light {
118
+ background-image: $alert-light-icon;
119
+ }
120
+ &.alert-dark {
121
+ background-image: $alert-dark-icon;
122
+ }
123
+ &.alert-success {
124
+ background-image: $alert-success-icon;
125
+ }
126
+ }
91
127
 
92
128
  main {
93
129
  // --------------------------------------------------------------------------------
@@ -107,6 +143,11 @@ main {
107
143
  scroll-margin-bottom: 100px;
108
144
  margin-top: 3rem;
109
145
  }
146
+ .content > h2 {
147
+ border-bottom: 5px solid $primary;
148
+ padding-bottom: $spacer * 0.5;
149
+ margin-bottom: $spacer * 0.75;
150
+ }
110
151
  .content > figure {
111
152
  scroll-margin-top: 80px;
112
153
  scroll-margin-bottom: 100px;
@@ -130,39 +171,6 @@ main {
130
171
  }
131
172
  }
132
173
  // --------------------------------------------------------------------------------
133
- // Alerts
134
- // --------------------------------------------------------------------------------
135
- p {
136
- &.alert {
137
- padding-left: 2.5rem;
138
- background-repeat: no-repeat;
139
- background-position-y: 1.25rem;
140
- background-position-x: 0.8rem;
141
- border-width: 0 0 0 0.5rem;
142
- }
143
- &.alert-primary {
144
- background-image: $alert-primary-icon;
145
- }
146
- &.alert-secondary {
147
- background-image: $alert-secondary-icon;
148
- }
149
- &.alert-danger {
150
- background-image: $alert-danger-icon;
151
- }
152
- &.alert-warning {
153
- background-image: $alert-warning-icon;
154
- }
155
- &.alert-info {
156
- background-image: $alert-info-icon;
157
- }
158
- &.alert-light {
159
- background-image: $alert-light-icon;
160
- }
161
- &.alert-success {
162
- background-image: $alert-success-icon;
163
- }
164
- }
165
- // --------------------------------------------------------------------------------
166
174
  // Tuneup first paragraph top margin when it is the first element inside
167
175
  // content.
168
176
  // --------------------------------------------------------------------------------
@@ -13,9 +13,9 @@ $centos-green: #9ccd2a;
13
13
  $primary: $centos-purple;
14
14
  $secondary: $centos-orange;
15
15
  $dark: #200735;
16
- $success: #198754;
17
- $info: #0dcaf0;
18
- $warning: #ffc107;
16
+ $success: $centos-green;
17
+ $info: $centos-blue;
18
+ $warning: $centos-orange;
19
19
  $danger: #dc3545;
20
20
  $light: #f8f9fa;
21
21
 
@@ -25,6 +25,7 @@ $success-text-emphasis: shade-color($success, 60%);
25
25
  $info-text-emphasis: shade-color($info, 60%);
26
26
  $warning-text-emphasis: shade-color($warning, 60%);
27
27
  $light-text-emphasis: shade-color($light, 60%);
28
+ $dark-text-emphasis: shade-color($dark, 60%);
28
29
  $danger-text-emphasis: shade-color($danger, 60%);
29
30
  $dropdown-dark-bg: $dark;
30
31
 
@@ -34,6 +35,9 @@ $dropdown-dark-bg: $dark;
34
35
  $font-family-sans-serif: "Montserrat", sans-serif;
35
36
  $font-family-monospace: "Source Code Pro", monospace;
36
37
  $headings-font-weight: 700;
38
+ $font-size-base: 1rem; // Assumes the browser default, typically `16px`
39
+ $h1-font-size: $font-size-base * 2.75;
40
+
37
41
 
38
42
  // --------------------------------------------------------------------------------
39
43
  // Breadcrumb
@@ -50,6 +54,7 @@ $alert-info-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg
50
54
  $alert-danger-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1rem" fill="rgba(#{to-rgb($danger-text-emphasis)},1)" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"/></svg>');
51
55
  $alert-success-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1rem" fill="rgba(#{to-rgb($success-text-emphasis)},1)" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"/></svg>');
52
56
  $alert-light-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1rem" fill="rgba(#{to-rgb($light-text-emphasis)},1)" viewBox="0 0 512 512"><path d="M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"/></svg>');
57
+ $alert-dark-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1rem" fill="rgba(#{to-rgb($dark-text-emphasis)},1)" viewBox="0 0 512 512"><path d="M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"/></svg>');
53
58
 
54
59
  // --------------------------------------------------------------------------------
55
60
  // Negative margins