jekyll-theme-centos 2.52.2 → 2.53.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 +4 -4
- data/_data/base/artwork_schema.yml +1 -1
- data/_data/base/fontawesome_schema.yml +16 -0
- data/_data/base/fonts_schema.yml +60 -0
- data/_data/base/head_schema.yml +9 -2
- data/_data/base/project_schema.yml +1 -1
- data/_includes/base/fontawesome.html.liquid +13 -2
- data/_includes/base/fonts.html.liquid +48 -0
- data/_includes/base/head.html.liquid +9 -7
- data/_includes/base/navbar.html.liquid +1 -1
- data/_sass/base/_alerts.scss +66 -0
- data/_sass/base/_backgrounds.scss +47 -0
- data/_sass/base/_bootstrap-components.scss +27 -0
- data/_sass/base/_bootstrap-core.scss +11 -0
- data/_sass/base/_bootstrap-utilities.scss +4 -0
- data/_sass/base/_calendar.scss +9 -9
- data/_sass/base/_content.scss +178 -0
- data/_sass/base/_customization.scss +12 -406
- data/_sass/base/_focus-ring.scss +12 -0
- data/_sass/base/_gradients.scss +8 -0
- data/_sass/base/_layout.scss +31 -0
- data/_sass/base/_light-dark.scss +2 -2
- data/_sass/base/_maps.scss +22 -20
- data/_sass/base/_page-toc.scss +15 -0
- data/_sass/base/_scroll-offset.scss +20 -0
- data/_sass/base/_setup-maps.scss +9 -0
- data/_sass/base/_setup-variables.scss +17 -0
- data/_sass/base/_sponsors.scss +17 -0
- data/_sass/base/_theme-colors.scss +22 -4
- data/_sass/base/_theme.scss +23 -0
- data/_sass/base/_variables.scss +52 -38
- data/assets/css/base/stylesheet.min.scss +1 -38
- data/assets/js/base/datatable.js +1 -1
- data/assets/js/base/highlight.js +1 -1
- metadata +18 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b689e7b6dc4c27d8311c5c7a8f9ecddb43ca8112a2a4b9e1339099b355d1bce
|
|
4
|
+
data.tar.gz: 4f9cd748cdae00a61bc2f246935b6cbe41f10adca2c53325d234b5d15b4fec69
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1bd46e6096797c3b5f574cecacdb19578d6a183f4858bf9e7aae6422c9289cde11a44a42934f4ead307309879ffcbd8f6777e4a88a212c444a6ac742fc845260
|
|
7
|
+
data.tar.gz: 21967ef2faa5686febf3e2a8df96de584e27e5c6fdcc1e543df1b1ed6f2e6612058ceba027efa4ae54ad2fda8c4c604365fe060660daba7677d3f6fe91648b87
|
|
@@ -17,7 +17,7 @@ properties:
|
|
|
17
17
|
The configuration dictionary for the Artwork component. This object contains
|
|
18
18
|
all necessary settings, such as container classes and alt text. The
|
|
19
19
|
artwork image itself is not configurable here — it is rendered via the
|
|
20
|
-
`.bg-artwork` CSS class (see src/SASS/
|
|
20
|
+
`.bg-artwork` CSS class (see src/SASS/_backgrounds.scss), which sets a
|
|
21
21
|
fixed, responsive background image per breakpoint.
|
|
22
22
|
properties:
|
|
23
23
|
class:
|
|
@@ -36,6 +36,22 @@ properties:
|
|
|
36
36
|
The Subresource Integrity (SRI) CSS checksum (`sha512-...`) for the
|
|
37
37
|
specified bundle. Must be updated when `version` or
|
|
38
38
|
`css_bundle_name` changes.
|
|
39
|
+
css_bundles:
|
|
40
|
+
type: array
|
|
41
|
+
items:
|
|
42
|
+
type: string
|
|
43
|
+
description: >-
|
|
44
|
+
Upstream stylesheets to load instead of `css_bundle_name`, each from its
|
|
45
|
+
own file, such as `fontawesome`, `solid`, and `brands`. A project that uses
|
|
46
|
+
no regular icons skips the regular and v4 fonts this way. Must be listed in
|
|
47
|
+
`x_integrity`, which holds hashes for the default `version` only.
|
|
48
|
+
x_integrity:
|
|
49
|
+
type: object
|
|
50
|
+
description: SRI hashes of the stylesheets `css_bundles` can load, keyed by bundle name.
|
|
51
|
+
properties:
|
|
52
|
+
fontawesome: "sha512-WAQldzapOKc+yIZB/g4npsWhF43dQ74uxwR6WkySVIKVGKaVNSuRw19CQeqN2OmYmg34g7TsZv3sh9nsQXYj3g=="
|
|
53
|
+
solid: "sha512-F65MsQcUqnYC7fOE5OrV/jETVn0ANBJjJ7Pe45tVmx7yr7SlHISUdPUiVap4+G79+7b5arc6xcoxPeJlPGepPg=="
|
|
54
|
+
brands: "sha512-JvNYE/c3wl/dRKs3ZHX+QHe21Et1/ouedfAKJsQPB0XJ+QjVWipm2MVgK3BgrJbdTBXTg/r4rmY4nj6fuzWPyg=="
|
|
39
55
|
js_bundle_name:
|
|
40
56
|
type: string
|
|
41
57
|
default: "all"
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
title: Fonts Component Configuration
|
|
2
|
+
description: >-
|
|
3
|
+
Schema for the fonts component, which loads a page's web fonts. Fonts load from
|
|
4
|
+
pinned package versions on a CDN, or from a default stylesheet when no packages
|
|
5
|
+
are configured.
|
|
6
|
+
type: object
|
|
7
|
+
properties:
|
|
8
|
+
with_fonts:
|
|
9
|
+
type: boolean
|
|
10
|
+
default: true
|
|
11
|
+
description: >-
|
|
12
|
+
Enables or disables web fonts. On unless set to `false`, so text then uses
|
|
13
|
+
the fallback in `$font-family-sans-serif`.
|
|
14
|
+
with_fonts_data:
|
|
15
|
+
type: object
|
|
16
|
+
description: >-
|
|
17
|
+
The web fonts to load. Upgrade a font by changing its `version` and `integrity`.
|
|
18
|
+
properties:
|
|
19
|
+
cdn:
|
|
20
|
+
type: string
|
|
21
|
+
default: "https://cdn.jsdelivr.net/npm"
|
|
22
|
+
description: The base address `families` load from.
|
|
23
|
+
default_stylesheet:
|
|
24
|
+
type: string
|
|
25
|
+
default: "https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Source+Code+Pro:ital,wght@0,400;0,700&display=swap"
|
|
26
|
+
description: >-
|
|
27
|
+
The stylesheet to load when `families` is unset. It's not versioned and
|
|
28
|
+
has no integrity value.
|
|
29
|
+
families:
|
|
30
|
+
type: array
|
|
31
|
+
description: >-
|
|
32
|
+
Pinned font packages to load instead of `default_stylesheet`. Set
|
|
33
|
+
`$font-family-sans-serif` or `$font-family-monospace` in your stylesheet to
|
|
34
|
+
the family name each package declares, such as `Montserrat Variable`.
|
|
35
|
+
items:
|
|
36
|
+
type: object
|
|
37
|
+
properties:
|
|
38
|
+
package:
|
|
39
|
+
type: string
|
|
40
|
+
description: The npm package name, such as `@fontsource-variable/montserrat`.
|
|
41
|
+
version:
|
|
42
|
+
type: string
|
|
43
|
+
description: The exact package version.
|
|
44
|
+
stylesheet:
|
|
45
|
+
type: string
|
|
46
|
+
default: "wght.css"
|
|
47
|
+
description: The stylesheet file inside the package.
|
|
48
|
+
integrity:
|
|
49
|
+
type: string
|
|
50
|
+
format: sri-hash
|
|
51
|
+
description: >-
|
|
52
|
+
The Subresource Integrity (SRI) checksum of that stylesheet. Must be
|
|
53
|
+
updated when `version` changes. It doesn't cover the font files the
|
|
54
|
+
stylesheet references.
|
|
55
|
+
required:
|
|
56
|
+
- package
|
|
57
|
+
- version
|
|
58
|
+
- integrity
|
|
59
|
+
additionalProperties: false
|
|
60
|
+
additionalProperties: false
|
data/_data/base/head_schema.yml
CHANGED
|
@@ -2,12 +2,19 @@ title: Head Component Configuration
|
|
|
2
2
|
description: >-
|
|
3
3
|
Schema for the head component. The head component is a layout coordinator
|
|
4
4
|
that assembles the HTML <head> section by conditionally including
|
|
5
|
-
sub-components (OGP, Font Awesome, Highlight.js, DataTables, Breaking
|
|
6
|
-
Back to Top, Copy Value, Heading Anchor). Each sub-component is configured
|
|
5
|
+
sub-components (OGP, Fonts, Font Awesome, Highlight.js, DataTables, Breaking
|
|
6
|
+
News, Back to Top, Copy Value, Heading Anchor). Each sub-component is configured
|
|
7
7
|
through its own schema. Only properties exclusive to the head component
|
|
8
8
|
itself are defined here.
|
|
9
9
|
type: object
|
|
10
10
|
properties:
|
|
11
|
+
with_head:
|
|
12
|
+
type: boolean
|
|
13
|
+
default: true
|
|
14
|
+
description: >-
|
|
15
|
+
Renders the `<head>` element. On unless set to `false`, which removes the whole
|
|
16
|
+
element, including its title, stylesheet, and scripts. The page then fails HTML
|
|
17
|
+
validation, because HTML requires a title.
|
|
11
18
|
theme_color:
|
|
12
19
|
type: string
|
|
13
20
|
default: "#A54C93"
|
|
@@ -23,7 +23,7 @@ properties:
|
|
|
23
23
|
description: >-
|
|
24
24
|
Custom Bootstrap classes for the main project container, controlling
|
|
25
25
|
alignment, background, and text colors. The `bg-project` class is required
|
|
26
|
-
— it supplies the responsive background image (see src/SASS/
|
|
26
|
+
— it supplies the responsive background image (see src/SASS/_backgrounds.scss)
|
|
27
27
|
that renders behind the card content; removing it leaves the container with
|
|
28
28
|
no background image, only whatever background color the remaining classes
|
|
29
29
|
(such as `text-bg-dark`) supply. For example, `flex-column` and `text-bg-dark`
|
|
@@ -25,8 +25,15 @@ Schema: src/YAML/fontawesome_schema.yml
|
|
|
25
25
|
{%- assign fontawesome_js_bundle_integrity = with_fontawesome_data.js_bundle_integrity | default: with_fontawesome_schema.js_bundle_integrity.default %}
|
|
26
26
|
{%- assign fontawesome_mode = with_fontawesome_data.mode | default: with_fontawesome_schema.mode.default %}
|
|
27
27
|
|
|
28
|
+
{%- assign fontawesome_css_bundles = with_fontawesome_data.css_bundles %}
|
|
29
|
+
{%- assign fontawesome_css_integrity = with_fontawesome_schema.css_bundles.x_integrity.properties %}
|
|
30
|
+
|
|
28
31
|
{%- capture html_fontawesome_preload %}
|
|
29
|
-
{%- if fontawesome_mode == "css" %}
|
|
32
|
+
{%- if fontawesome_mode == "css" and fontawesome_css_bundles %}
|
|
33
|
+
{%- for bundle in fontawesome_css_bundles %}
|
|
34
|
+
<link rel="preload" href="{{ fontawesome_cdn }}/{{ fontawesome_version }}/css/{{ bundle }}.min.css" as="style" fetchpriority="high" integrity="{{ fontawesome_css_integrity[bundle] }}" crossorigin="anonymous" />
|
|
35
|
+
{%- endfor %}
|
|
36
|
+
{%- elsif fontawesome_mode == "css" %}
|
|
30
37
|
<link rel="preload" href="{{ fontawesome_cdn }}/{{ fontawesome_version }}/css/{{ fontawesome_css_bundle_name }}.min.css" as="style" fetchpriority="high" integrity="{{ fontawesome_css_bundle_integrity }}" crossorigin="anonymous" />
|
|
31
38
|
{%- else %}
|
|
32
39
|
<link rel="preload" href="{{ fontawesome_cdn }}/{{ fontawesome_version }}/js/{{ fontawesome_js_bundle_name }}.min.js" as="script" fetchpriority="high" integrity="{{ fontawesome_js_bundle_integrity }}" crossorigin="anonymous" />
|
|
@@ -34,7 +41,11 @@ Schema: src/YAML/fontawesome_schema.yml
|
|
|
34
41
|
{%- endcapture %}
|
|
35
42
|
|
|
36
43
|
{%- capture html_fontawesome_head %}
|
|
37
|
-
{%- if fontawesome_mode == "css" %}
|
|
44
|
+
{%- if fontawesome_mode == "css" and fontawesome_css_bundles %}
|
|
45
|
+
{%- for bundle in fontawesome_css_bundles %}
|
|
46
|
+
<link rel="stylesheet" href="{{ fontawesome_cdn }}/{{ fontawesome_version }}/css/{{ bundle }}.min.css" integrity="{{ fontawesome_css_integrity[bundle] }}" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
47
|
+
{%- endfor %}
|
|
48
|
+
{%- elsif fontawesome_mode == "css" %}
|
|
38
49
|
<link rel="stylesheet" href="{{ fontawesome_cdn }}/{{ fontawesome_version }}/css/{{ fontawesome_css_bundle_name }}.min.css" integrity="{{ fontawesome_css_bundle_integrity }}" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
39
50
|
{%- endif %}
|
|
40
51
|
{%- endcapture %}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
fonts: loads the page's web fonts, from pinned packages on a CDN or from the default stylesheet. head.html.liquid calls it with type="hints" and type="preload".
|
|
3
|
+
Data: include.data > page.with_fonts_data > site.data.fonts > site.data.base.fonts
|
|
4
|
+
Schema: src/YAML/fonts_schema.yml
|
|
5
|
+
{% endcomment %}
|
|
6
|
+
|
|
7
|
+
{%- comment %} On unless explicitly false, so sites with no with_fonts setting keep their fonts. The default filter can't express this: it replaces false. {%- endcomment %}
|
|
8
|
+
{%- assign with_fonts = include.with_fonts %}
|
|
9
|
+
{%- if with_fonts == nil %}{% assign with_fonts = page.with_fonts %}{% endif %}
|
|
10
|
+
{%- if with_fonts == nil %}{% assign with_fonts = true %}{% endif %}
|
|
11
|
+
|
|
12
|
+
{%- assign with_fonts_data = include.data
|
|
13
|
+
| default: page.with_fonts_data
|
|
14
|
+
| default: site.data.fonts
|
|
15
|
+
| default: site.data.base.fonts
|
|
16
|
+
%}
|
|
17
|
+
|
|
18
|
+
{%- assign with_fonts_schema = site.data.base.fonts_schema.properties.with_fonts_data.properties %}
|
|
19
|
+
|
|
20
|
+
{%- if with_fonts %}
|
|
21
|
+
{%- assign fonts_cdn = with_fonts_data.cdn | default: with_fonts_schema.cdn.default %}
|
|
22
|
+
{%- assign fonts_default_stylesheet = with_fonts_data.default_stylesheet | default: with_fonts_schema.default_stylesheet.default %}
|
|
23
|
+
{%- assign fonts_families = with_fonts_data.families %}
|
|
24
|
+
{%- assign fonts_family_stylesheet = with_fonts_schema.families.items.properties.stylesheet.default %}
|
|
25
|
+
|
|
26
|
+
{%- assign type = include.type %}
|
|
27
|
+
{%- case type %}
|
|
28
|
+
{%- when "hints" %}
|
|
29
|
+
{%- if fonts_families == nil %}
|
|
30
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
31
|
+
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
|
|
32
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
33
|
+
<link rel="dns-prefetch" href="https://fonts.gstatic.com" />
|
|
34
|
+
{%- elsif fonts_families.size > 0 %}
|
|
35
|
+
<link rel="preconnect" href="{{ fonts_cdn }}" crossorigin />
|
|
36
|
+
<link rel="dns-prefetch" href="{{ fonts_cdn }}" />
|
|
37
|
+
{%- endif %}
|
|
38
|
+
{%- when "preload" %}
|
|
39
|
+
{%- if fonts_families == nil %}
|
|
40
|
+
<link rel="preload" href="{{ fonts_default_stylesheet }}" as="style" onload="this.onload=null;this.rel='stylesheet'" />
|
|
41
|
+
<noscript><link rel="stylesheet" href="{{ fonts_default_stylesheet }}" /></noscript>
|
|
42
|
+
{%- else %}
|
|
43
|
+
{%- for family in fonts_families %}
|
|
44
|
+
<link rel="stylesheet" href="{{ fonts_cdn }}/{{ family.package }}@{{ family.version }}/{{ family.stylesheet | default: fonts_family_stylesheet }}" integrity="{{ family.integrity }}" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
45
|
+
{%- endfor %}
|
|
46
|
+
{%- endif %}
|
|
47
|
+
{%- endcase %}
|
|
48
|
+
{%- endif %}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{% comment %}
|
|
2
|
-
head: renders the head element with meta tags, icons, fonts, the theme stylesheet, Bootstrap, and each enabled library's CSS and JS.
|
|
2
|
+
head: renders the head element, unless with_head is false, with meta tags, icons, fonts, the theme stylesheet, Bootstrap, and each enabled library's CSS and JS.
|
|
3
3
|
Schema: src/YAML/head_schema.yml
|
|
4
4
|
{% endcomment %}
|
|
5
5
|
|
|
6
|
+
{%- comment %} On unless explicitly false. The default filter can't express this: it replaces false. {%- endcomment %}
|
|
7
|
+
{%- assign with_head = page.with_head %}
|
|
8
|
+
{%- if with_head == nil %}{% assign with_head = true %}{% endif %}
|
|
9
|
+
|
|
10
|
+
{%- if with_head %}
|
|
6
11
|
<head>
|
|
7
12
|
<meta charset="utf-8" />
|
|
8
13
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
@@ -21,10 +26,7 @@ Schema: src/YAML/head_schema.yml
|
|
|
21
26
|
<link rel="manifest" href="{{ site.baseurl }}/site.webmanifest" />
|
|
22
27
|
{%- assign head_theme_color = page.theme_color | default: site.theme_color | default: site.data.base.head_schema.properties.theme_color.default %}
|
|
23
28
|
<meta name="theme-color" content="{{ head_theme_color }}" />
|
|
24
|
-
|
|
25
|
-
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
|
|
26
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
27
|
-
<link rel="dns-prefetch" href="https://fonts.gstatic.com" />
|
|
29
|
+
{%- include base/fonts.html.liquid type="hints" %}
|
|
28
30
|
{%- if page.with_fontawesome or page.with_highlight %}
|
|
29
31
|
<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossorigin />
|
|
30
32
|
<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com" />
|
|
@@ -43,8 +45,7 @@ Schema: src/YAML/head_schema.yml
|
|
|
43
45
|
{%- endif %}
|
|
44
46
|
<link rel="preload" href="{{ site.baseurl }}/assets/js/bootstrap.bundle.min.js" as="script" fetchpriority="high" />
|
|
45
47
|
{%- include base/fontawesome.html.liquid type="preload" %}
|
|
46
|
-
|
|
47
|
-
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Source+Code+Pro:ital,wght@0,400;0,700&display=swap" /></noscript>
|
|
48
|
+
{%- include base/fonts.html.liquid type="preload" %}
|
|
48
49
|
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/base/stylesheet.min.css" />
|
|
49
50
|
{%- comment %} Sets scroll-margin-top so anchor links land below the breaking news bar and navbar instead of under them. {%- endcomment %}
|
|
50
51
|
{%- assign breakingnews = page.with_breakingnews_data | default: site.data.breakingnews | default: site.data.base.breakingnews %}
|
|
@@ -102,3 +103,4 @@ Schema: src/YAML/head_schema.yml
|
|
|
102
103
|
{%- include base/backtotop.html.liquid %}
|
|
103
104
|
{%- include base/copyvalue.html.liquid %}
|
|
104
105
|
</head>
|
|
106
|
+
{%- endif %}
|
|
@@ -60,7 +60,7 @@ Schema: src/YAML/navbar_schema.yml
|
|
|
60
60
|
<button type="button" class="nav-link dropdown-toggle focus-ring w-100 text-start" id="navbarDropdown-{{ forloop.index }}" data-bs-toggle="dropdown" aria-expanded="false">
|
|
61
61
|
<i class="{{ navitem.icon }} me-1" aria-hidden="true"></i>{{ navitem.name }}
|
|
62
62
|
</button>
|
|
63
|
-
<ul class="dropdown-menu dropdown-menu-dark shadow">
|
|
63
|
+
<ul class="dropdown-menu dropdown-menu-end dropdown-menu-dark shadow">
|
|
64
64
|
{%- for dropdownitem in navitem.menu %}
|
|
65
65
|
{%- assign dropdownitem_link = dropdownitem.link | locale_url: page.locale %}
|
|
66
66
|
<li>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
// --------------------------------------------------------------------------------
|
|
3
|
+
// Alerts (p), announcements (div), and breakingnews (div)
|
|
4
|
+
// --------------------------------------------------------------------------------
|
|
5
|
+
// Breaking News: Use Font Awesome HTML icons (fa-solid fa-bullhorn) for consistent
|
|
6
|
+
// visual identity across all color variations.
|
|
7
|
+
// Positioned at page level with sticky positioning.
|
|
8
|
+
// Excluded from CSS icon styling via .breakingnews class.
|
|
9
|
+
// Announcements: Use Font Awesome HTML icons (fa-solid fa-bullhorn) for consistent
|
|
10
|
+
// visual identity across all color variations.
|
|
11
|
+
// Positioned within .content (inside main).
|
|
12
|
+
// Excluded from CSS icon styling via .announcement class.
|
|
13
|
+
// Alerts: Use CSS-based SVG icons ($centos-alert-icons map) for markdown-based
|
|
14
|
+
// alerts within .content, with type-specific icons per color.
|
|
15
|
+
// Only applied to .alert:not(.announcement):not(.breakingnews), to
|
|
16
|
+
// avoid styling announcements and breaking news.
|
|
17
|
+
|
|
18
|
+
$centos-alert-icons: (
|
|
19
|
+
"primary": url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='1rem' viewBox='0 0 42.333 42.333'><g transform='rotate(45 -180.13 -610.203) scale(1.0529)'><circle cx='388.123' cy='-290.716' r='20.103' style='fill:rgba(#{to-rgb(shade-color(map.get($theme-colors, 'primary'), 60%))},1);stroke:none;stroke-width:1.32292;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke;stop-color:#{to-rgb(shade-color(map.get($theme-colors, 'primary'), 60%))}'/><path d='M377.366-301.473v6.301l-4.456 4.456 4.456 4.456v6.302h6.302l4.456 4.456 4.456-4.456h6.301v-6.302l4.456-4.456-4.456-4.456v-6.301h-6.301l-4.456-4.456-4.456 4.456zm2.271 4.183 1.913-1.912 3.227 3.227v1.913h-1.912zm-2.163 5.222h4.565l1.352 1.352-1.352 1.353h-4.564zm9.297-9.297h2.705v4.564l-1.352 1.353-1.353-1.353zm.091 7.607 1.261 1.282 1.26-1.283-.015 1.798 1.798-.016-1.282 1.26 1.283 1.261-1.798-.015.016 1.798-1.26-1.282-1.261 1.283.015-1.799-1.798.016 1.282-1.26-1.283-1.26 1.799.015zm-7.225 9.617 3.228-3.228h1.912v1.913l-3.227 3.227zm11.833-11.834 3.228-3.227 1.913 1.912-3.228 3.228h-1.912zm-4.698 11.345 1.352-1.352 1.352 1.352v4.564h-2.704zm6.085-6.085 1.352-1.353h4.564v2.705h-4.564zm-1.387 3.346h1.913l3.228 3.228-1.913 1.912-3.228-3.227z' style='fill:%23fff;fill-opacity:1;stroke-width:9.12808;stroke-linecap:round;paint-order:fill markers stroke;stop-color:%23000'/></g></svg>"),
|
|
20
|
+
"secondary": url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='1rem' viewBox='0 0 42.333 42.333'><g transform='rotate(45 -180.13 -610.203) scale(1.0529)'><circle cx='388.123' cy='-290.716' r='20.103' style='fill:rgba(#{to-rgb(shade-color(map.get($theme-colors, 'secondary'), 60%))},1);stroke:none;stroke-width:1.32292;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke;stop-color:#{to-rgb(shade-color(map.get($theme-colors, 'secondary'), 60%))}'/><path d='M377.366-301.473v6.301l-4.456 4.456 4.456 4.456v6.302h6.302l4.456 4.456 4.456-4.456h6.301v-6.302l4.456-4.456-4.456-4.456v-6.301h-6.301l-4.456-4.456-4.456 4.456zm2.271 4.183 1.913-1.912 3.227 3.227v1.913h-1.912zm-2.163 5.222h4.565l1.352 1.352-1.352 1.353h-4.564zm9.297-9.297h2.705v4.564l-1.352 1.353-1.353-1.353zm.091 7.607 1.261 1.282 1.26-1.283-.015 1.798 1.798-.016-1.282 1.26 1.283 1.261-1.798-.015.016 1.798-1.26-1.282-1.261 1.283.015-1.799-1.798.016 1.282-1.26-1.283-1.26 1.799.015zm-7.225 9.617 3.228-3.228h1.912v1.913l-3.227 3.227zm11.833-11.834 3.228-3.227 1.913 1.912-3.228 3.228h-1.912zm-4.698 11.345 1.352-1.352 1.352 1.352v4.564h-2.704zm6.085-6.085 1.352-1.353h4.564v2.705h-4.564zm-1.387 3.346h1.913l3.228 3.228-1.913 1.912-3.228-3.227z' style='fill:%23fff;fill-opacity:1;stroke-width:9.12808;stroke-linecap:round;paint-order:fill markers stroke;stop-color:%23000'/></g></svg>"),
|
|
21
|
+
"warning": url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='1rem' fill='rgba(#{to-rgb(shade-color(map.get($theme-colors, 'warning'), 60%))},1)' viewBox='0 0 512 512'><path d='M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z'/></svg>"),
|
|
22
|
+
"info": url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='1rem' fill='rgba(#{to-rgb(shade-color(map.get($theme-colors, 'info'), 60%))},1)' viewBox='0 0 512 512'><path d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z'/></svg>"),
|
|
23
|
+
"danger": url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='1rem' fill='rgba(#{to-rgb(shade-color(map.get($theme-colors, 'danger'), 60%))},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>"),
|
|
24
|
+
"success": url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='1rem' fill='rgba(#{to-rgb(shade-color(map.get($theme-colors, 'success'), 60%))},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>"),
|
|
25
|
+
"light": url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='1rem' fill='rgba(#{to-rgb(shade-color(map.get($theme-colors, 'light'), 60%))},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>"),
|
|
26
|
+
"dark": url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='1rem' fill='rgba(#{to-rgb(shade-color(map.get($theme-colors, 'dark'), 60%))},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>")
|
|
27
|
+
) !default;
|
|
28
|
+
|
|
29
|
+
// Breaking news with HTML-based Font Awesome icons
|
|
30
|
+
// Positioned at page level (outside .content)
|
|
31
|
+
.sticky-top-breakingnews {
|
|
32
|
+
.breakingnews {
|
|
33
|
+
padding-left: $spacer * 1.25;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.content {
|
|
38
|
+
// Markdown-based alerts with CSS-generated icons
|
|
39
|
+
// Only apply to alerts that are neither announcements nor breaking news
|
|
40
|
+
.alert:not(.announcement):not(.breakingnews) {
|
|
41
|
+
border-left-width: 0.5rem;
|
|
42
|
+
|
|
43
|
+
// Reserve icon space only for the semantic types that have an icon
|
|
44
|
+
// defined in $centos-alert-icons. Shade-extended alert-centos-* classes
|
|
45
|
+
// keep the default padding so they don't carry an empty icon gutter.
|
|
46
|
+
@each $color, $icon-url in $centos-alert-icons {
|
|
47
|
+
&.alert-#{$color} {
|
|
48
|
+
padding-left: $spacer * 3;
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
content: "";
|
|
52
|
+
position: absolute;
|
|
53
|
+
left: 1rem;
|
|
54
|
+
top: 1.75rem;
|
|
55
|
+
transform: translateY(-50%);
|
|
56
|
+
width: 1.25rem;
|
|
57
|
+
height: 1.25rem;
|
|
58
|
+
background-image: #{$icon-url};
|
|
59
|
+
background-repeat: no-repeat;
|
|
60
|
+
background-position: center;
|
|
61
|
+
background-size: contain;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
// Background images. Sass settings in _variables.scss choose which sizes each class
|
|
4
|
+
// references, and the bundling step of a portable site ships only those files.
|
|
5
|
+
|
|
6
|
+
@mixin -centos-breakpoint-background($name, $sizes) {
|
|
7
|
+
background-repeat: no-repeat;
|
|
8
|
+
background-position: center;
|
|
9
|
+
background-size: cover;
|
|
10
|
+
|
|
11
|
+
@each $size in $sizes {
|
|
12
|
+
@if not map.has-key($grid-breakpoints, $size) {
|
|
13
|
+
@error "`#{$size}` in the #{$name} sizes is not a breakpoint.";
|
|
14
|
+
}
|
|
15
|
+
@if list.index($sizes, $size) == 1 {
|
|
16
|
+
background-image: url("../../img/bg-#{$name}-#{$size}.png");
|
|
17
|
+
} @else {
|
|
18
|
+
@include media-breakpoint-up($size) {
|
|
19
|
+
background-image: url("../../img/bg-#{$name}-#{$size}.png");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.bg-project {
|
|
26
|
+
@include -centos-breakpoint-background("project", $centos-project-sizes);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.bg-artwork {
|
|
30
|
+
@include -centos-breakpoint-background("artwork", $centos-artwork-sizes);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.bg-image-center {
|
|
34
|
+
background-position: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.bg-image-top {
|
|
38
|
+
background-position: top;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.bg-image-bottom {
|
|
42
|
+
background-position: bottom;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.bg-image-cover {
|
|
46
|
+
background-size: cover;
|
|
47
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Every Bootstrap component, in Bootstrap's order. To use only some, import them
|
|
2
|
+
// one by one from bootstrap/ between bootstrap-core and bootstrap-utilities.
|
|
3
|
+
@import "bootstrap/tables";
|
|
4
|
+
@import "bootstrap/forms";
|
|
5
|
+
@import "bootstrap/buttons";
|
|
6
|
+
@import "bootstrap/transitions";
|
|
7
|
+
@import "bootstrap/dropdown";
|
|
8
|
+
@import "bootstrap/button-group";
|
|
9
|
+
@import "bootstrap/nav";
|
|
10
|
+
@import "bootstrap/navbar";
|
|
11
|
+
@import "bootstrap/card";
|
|
12
|
+
@import "bootstrap/accordion";
|
|
13
|
+
@import "bootstrap/breadcrumb";
|
|
14
|
+
@import "bootstrap/pagination";
|
|
15
|
+
@import "bootstrap/badge";
|
|
16
|
+
@import "bootstrap/alert";
|
|
17
|
+
@import "bootstrap/progress";
|
|
18
|
+
@import "bootstrap/list-group";
|
|
19
|
+
@import "bootstrap/close";
|
|
20
|
+
@import "bootstrap/toasts";
|
|
21
|
+
@import "bootstrap/modal";
|
|
22
|
+
@import "bootstrap/tooltip";
|
|
23
|
+
@import "bootstrap/popover";
|
|
24
|
+
@import "bootstrap/carousel";
|
|
25
|
+
@import "bootstrap/spinners";
|
|
26
|
+
@import "bootstrap/offcanvas";
|
|
27
|
+
@import "bootstrap/placeholders";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// The Bootstrap parts every page relies on, in Bootstrap's order. Import after
|
|
2
|
+
// setup-maps, then any components, then bootstrap-utilities.
|
|
3
|
+
@import "bootstrap/mixins/banner";
|
|
4
|
+
@include bsBanner("");
|
|
5
|
+
|
|
6
|
+
@import "bootstrap/root";
|
|
7
|
+
@import "bootstrap/reboot";
|
|
8
|
+
@import "bootstrap/type";
|
|
9
|
+
@import "bootstrap/images";
|
|
10
|
+
@import "bootstrap/containers";
|
|
11
|
+
@import "bootstrap/grid";
|
data/_sass/base/_calendar.scss
CHANGED
|
@@ -46,12 +46,12 @@ body .ec {
|
|
|
46
46
|
--ec-button-hover-bg-color: var(--bs-tertiary-bg);
|
|
47
47
|
--ec-button-hover-text-color: var(--bs-link-hover-color);
|
|
48
48
|
|
|
49
|
-
--ec-today-bg-color: #{
|
|
50
|
-
--ec-highlight-color: #{
|
|
49
|
+
--ec-today-bg-color: #{centos-color('centos-orange-50')};
|
|
50
|
+
--ec-highlight-color: #{centos-color('centos-purple-50')};
|
|
51
51
|
|
|
52
52
|
--ec-event-bg-color: #{$primary};
|
|
53
53
|
--ec-event-text-color: #{$white};
|
|
54
|
-
--ec-bg-event-color: #{
|
|
54
|
+
--ec-bg-event-color: #{centos-color('centos-purple-200')};
|
|
55
55
|
|
|
56
56
|
--ec-now-indicator-color: #{$danger};
|
|
57
57
|
--ec-popup-bg-color: #{$white};
|
|
@@ -167,20 +167,20 @@ html [data-bs-theme="dark"] .ec {
|
|
|
167
167
|
--ec-surface-bg-color: #{$dark};
|
|
168
168
|
--ec-bg-color: #{$dark};
|
|
169
169
|
--ec-text-color: #{$light};
|
|
170
|
-
--ec-border-color: #{
|
|
170
|
+
--ec-border-color: #{centos-color('centos-purple-800')};
|
|
171
171
|
|
|
172
172
|
--ec-button-bg-color: #{$dark};
|
|
173
|
-
--ec-button-border-color: #{
|
|
173
|
+
--ec-button-border-color: #{centos-color('centos-purple-800')};
|
|
174
174
|
--ec-button-active-bg-color: #{$primary};
|
|
175
175
|
--ec-button-active-border-color: #{$primary};
|
|
176
176
|
--ec-button-active-text-color: #{$white};
|
|
177
177
|
|
|
178
|
-
--ec-today-bg-color: #{
|
|
179
|
-
--ec-highlight-color: #{
|
|
178
|
+
--ec-today-bg-color: #{centos-color('centos-orange-900')};
|
|
179
|
+
--ec-highlight-color: #{centos-color('centos-purple-900')};
|
|
180
180
|
|
|
181
|
-
--ec-event-bg-color: #{
|
|
181
|
+
--ec-event-bg-color: #{centos-color('centos-purple-400')};
|
|
182
182
|
--ec-event-text-color: #{$dark};
|
|
183
|
-
--ec-bg-event-color: #{
|
|
183
|
+
--ec-bg-event-color: #{centos-color('centos-purple-800')};
|
|
184
184
|
|
|
185
185
|
--ec-popup-bg-color: #{$dark};
|
|
186
186
|
}
|