jekyll-theme-centos 2.52.3 → 2.54.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4590e93a8cdac7d3d7b7ccfedf7974149203c246fad39677a969839c42b525b7
4
- data.tar.gz: 8f08a9085cde6ab7d471512e283cbe5247bbf43036a030529b88f18696d0a365
3
+ metadata.gz: bdb468b18c687f3ea2d89e228876fb5e950401aa373369a3f5c02cdc4d381cdd
4
+ data.tar.gz: 40a5806469e905febdc66f58fab59d79099e084c09069069a2f201692d3a7693
5
5
  SHA512:
6
- metadata.gz: 32d10cac9f1fb4be9cd6acff384ea1b19ce9c20c29ec6215c0c94d47795f1533ed1f17617d7ce5b138db8f1fa25e086fdf1e041006faae90c039d037dc631181
7
- data.tar.gz: 524d638cb2c26bafffcadd7575644a4521a6f14666a0563fe9c1c0e5402d4a0d8ecd423bd5674c8f1e77e761060f3062650eba5123b1ed7a290207dde1f1a9cd
6
+ metadata.gz: 982163366a80290122baf41902c6421316837b407531e8fdbd6390fbf622ae0fbaac60491bc595e96fef43f02bba811f29e7e782678ed2ca3ad8c57f3fbb467e
7
+ data.tar.gz: 4df77dbaa773f4c3207ebcc2c0712101b205608c99598aa40895c165ba56e228ee0ca97b5ee492ced26ef7ba497ca78f6633148d498927c82b82049e2648b8ec
@@ -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/_customization.scss), which sets a
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. A bundle not listed
47
+ in `x_integrity` isn't loaded. Those hashes match 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,68 @@
1
+ title: Fonts Component Configuration
2
+ description: >-
3
+ Schema for the fonts component, which loads a page's web fonts from pinned
4
+ package versions on a CDN, each verified by an integrity value.
5
+ type: object
6
+ properties:
7
+ with_fonts:
8
+ type: boolean
9
+ default: true
10
+ description: >-
11
+ Enables or disables web fonts. On unless set to `false`. With it off, text
12
+ uses the next fonts in `$font-family-sans-serif` and `$font-family-monospace`.
13
+ with_fonts_data:
14
+ type: object
15
+ description: >-
16
+ The web fonts to load. Upgrade a font by changing its `version` and `integrity`.
17
+ properties:
18
+ cdn:
19
+ type: string
20
+ default: "https://cdn.jsdelivr.net/npm"
21
+ description: The base address `families` load from.
22
+ families:
23
+ type: array
24
+ description: >-
25
+ Pinned font packages to load. Setting it replaces the whole default list, so
26
+ list every stylesheet you want. To load none, set `with_fonts` to `false`.
27
+ The theme's `$font-family-sans-serif` and `$font-family-monospace` name the
28
+ default families. For another family, set them in your stylesheet to the name
29
+ its package declares.
30
+ default:
31
+ - package: "@fontsource-variable/montserrat"
32
+ version: "5.3.0"
33
+ integrity: "sha384-8jDOv+ApqxPcTcTiickyn3l0lr/mHWtyOHCPEt1u4BpmwMPabmeiJ4CzYRHuAb4w"
34
+ - package: "@fontsource-variable/source-code-pro"
35
+ version: "5.3.1"
36
+ integrity: "sha384-L5Fbf0AbXda7oQ5OSSCWnjFeeBBT7XLlpb6C/VHZaLwOFn9LMDRpgByW+PRMg4Ub"
37
+ - package: "@fontsource-variable/source-code-pro"
38
+ version: "5.3.1"
39
+ stylesheet: "wght-italic.css"
40
+ integrity: "sha384-+T9cq7EeA2KsDGomJPm5/Bsbe6ayOABEuDUgNkHSeHFAzHbAyH49dJdG/wkIXNCR"
41
+
42
+ items:
43
+ type: object
44
+ properties:
45
+ package:
46
+ type: string
47
+ description: The npm package name, such as `@fontsource-variable/montserrat`.
48
+ version:
49
+ type: string
50
+ description: The exact package version.
51
+ stylesheet:
52
+ type: string
53
+ default: "wght.css"
54
+ description: The stylesheet file inside the package.
55
+ integrity:
56
+ type: string
57
+ format: sri-hash
58
+ description: >-
59
+ The Subresource Integrity (SRI) checksum of that stylesheet. Must be
60
+ updated when `version` changes. A family with a missing or blank
61
+ value isn't loaded. It doesn't cover the font files the stylesheet
62
+ references.
63
+ required:
64
+ - package
65
+ - version
66
+ - integrity
67
+ additionalProperties: false
68
+ additionalProperties: false
@@ -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 News,
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/_customization.scss)
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,26 @@ 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
+
31
+ {%- comment %} Escaped once here, since every value below goes into an attribute. {%- endcomment %}
32
+ {%- assign fontawesome_version = fontawesome_version | escape %}
33
+ {%- assign fontawesome_cdn = fontawesome_cdn | escape %}
34
+ {%- assign fontawesome_css_bundle_name = fontawesome_css_bundle_name | escape %}
35
+ {%- assign fontawesome_css_bundle_integrity = fontawesome_css_bundle_integrity | escape %}
36
+ {%- assign fontawesome_js_bundle_name = fontawesome_js_bundle_name | escape %}
37
+ {%- assign fontawesome_js_bundle_integrity = fontawesome_js_bundle_integrity | escape %}
38
+
28
39
  {%- capture html_fontawesome_preload %}
29
- {%- if fontawesome_mode == "css" %}
40
+ {%- if fontawesome_mode == "css" and fontawesome_css_bundles %}
41
+ {%- for bundle in fontawesome_css_bundles %}
42
+ {%- comment %} A bundle with no integrity value in the schema is left out, so nothing loads unverified. {%- endcomment %}
43
+ {%- assign bundle_integrity = fontawesome_css_integrity[bundle] %}
44
+ {%- unless bundle_integrity %}{% continue %}{% endunless %}
45
+ <link rel="preload" href="{{ fontawesome_cdn }}/{{ fontawesome_version }}/css/{{ bundle | escape }}.min.css" as="style" fetchpriority="high" integrity="{{ bundle_integrity | escape }}" crossorigin="anonymous" />
46
+ {%- endfor %}
47
+ {%- elsif fontawesome_mode == "css" %}
30
48
  <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
49
  {%- else %}
32
50
  <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 +52,14 @@ Schema: src/YAML/fontawesome_schema.yml
34
52
  {%- endcapture %}
35
53
 
36
54
  {%- capture html_fontawesome_head %}
37
- {%- if fontawesome_mode == "css" %}
55
+ {%- if fontawesome_mode == "css" and fontawesome_css_bundles %}
56
+ {%- for bundle in fontawesome_css_bundles %}
57
+ {%- comment %} A bundle with no integrity value in the schema is left out, so nothing loads unverified. {%- endcomment %}
58
+ {%- assign bundle_integrity = fontawesome_css_integrity[bundle] %}
59
+ {%- unless bundle_integrity %}{% continue %}{% endunless %}
60
+ <link rel="stylesheet" href="{{ fontawesome_cdn }}/{{ fontawesome_version }}/css/{{ bundle | escape }}.min.css" integrity="{{ bundle_integrity | escape }}" crossorigin="anonymous" referrerpolicy="no-referrer" />
61
+ {%- endfor %}
62
+ {%- elsif fontawesome_mode == "css" %}
38
63
  <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
64
  {%- endif %}
40
65
  {%- endcapture %}
@@ -0,0 +1,39 @@
1
+ {% comment %}
2
+ fonts: loads the page's web fonts from pinned packages on a CDN, each verified by its integrity value. 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_families = with_fonts_data.families | default: with_fonts_schema.families.default %}
23
+ {%- assign fonts_family_stylesheet = with_fonts_schema.families.items.properties.stylesheet.default %}
24
+
25
+ {%- assign type = include.type %}
26
+ {%- case type %}
27
+ {%- when "hints" %}
28
+ <link rel="preconnect" href="{{ fonts_cdn | escape }}" crossorigin />
29
+ <link rel="dns-prefetch" href="{{ fonts_cdn | escape }}" />
30
+ {%- when "preload" %}
31
+ {%- comment %} A family with a missing or blank integrity value is left out, so nothing loads unverified. An empty string is truthy in Liquid, so check its size. {%- endcomment %}
32
+ {%- for family in fonts_families %}
33
+ {%- assign family_integrity = family.integrity | strip %}
34
+ {%- if family_integrity.size == 0 %}{% continue %}{% endif %}
35
+ {%- capture family_href %}{{ fonts_cdn }}/{{ family.package }}@{{ family.version }}/{{ family.stylesheet | default: fonts_family_stylesheet }}{% endcapture %}
36
+ <link rel="stylesheet" href="{{ family_href | escape }}" integrity="{{ family_integrity | escape }}" crossorigin="anonymous" referrerpolicy="no-referrer" />
37
+ {%- endfor %}
38
+ {%- endcase %}
39
+ {%- 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
- <link rel="preconnect" href="https://fonts.googleapis.com" />
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
- <link rel="preload" 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" as="style" onload="this.onload=null;this.rel='stylesheet'" />
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 %}
@@ -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";
@@ -0,0 +1,4 @@
1
+ // Helpers and the utilities API. Import after every component, so utility classes
2
+ // win the cascade, as Bootstrap requires.
3
+ @import "bootstrap/helpers";
4
+ @import "bootstrap/utilities/api";
@@ -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: #{map-get($theme-colors, 'centos-orange-50')};
50
- --ec-highlight-color: #{map-get($theme-colors, 'centos-purple-50')};
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: #{map-get($theme-colors, 'centos-purple-200')};
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: #{map-get($theme-colors, 'centos-purple-800')};
170
+ --ec-border-color: #{centos-color('centos-purple-800')};
171
171
 
172
172
  --ec-button-bg-color: #{$dark};
173
- --ec-button-border-color: #{map-get($theme-colors, 'centos-purple-800')};
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: #{map-get($theme-colors, 'centos-orange-900')};
179
- --ec-highlight-color: #{map-get($theme-colors, 'centos-purple-900')};
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: #{map-get($theme-colors, 'centos-purple-400')};
181
+ --ec-event-bg-color: #{centos-color('centos-purple-400')};
182
182
  --ec-event-text-color: #{$dark};
183
- --ec-bg-event-color: #{map-get($theme-colors, 'centos-purple-800')};
183
+ --ec-bg-event-color: #{centos-color('centos-purple-800')};
184
184
 
185
185
  --ec-popup-bg-color: #{$dark};
186
186
  }