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
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// Rendered page content under main.
|
|
2
|
+
|
|
3
|
+
main {
|
|
4
|
+
// --------------------------------------------------------------------------------
|
|
5
|
+
// Linked headings' bottom clearance.
|
|
6
|
+
// --------------------------------------------------------------------------------
|
|
7
|
+
// Navbar-independent baseline spacing for anchor-linked headings/figures.
|
|
8
|
+
// The fixed-navbar top clearance for these same selectors lives in the
|
|
9
|
+
// `.has-navbar main` block near the end of this file.
|
|
10
|
+
.content > h1,
|
|
11
|
+
.content > h2,
|
|
12
|
+
.content > h3,
|
|
13
|
+
.content > h4,
|
|
14
|
+
.content > h5,
|
|
15
|
+
.content > h6 {
|
|
16
|
+
scroll-margin-bottom: 100px;
|
|
17
|
+
margin-top: 3rem;
|
|
18
|
+
}
|
|
19
|
+
.content > h2 {
|
|
20
|
+
border-bottom: 0.35rem solid $primary;
|
|
21
|
+
padding-bottom: $spacer * 0.5;
|
|
22
|
+
margin-bottom: $spacer * 0.75;
|
|
23
|
+
}
|
|
24
|
+
.content > figure {
|
|
25
|
+
scroll-margin-bottom: 100px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// -------------------------------------------------------------------------------
|
|
29
|
+
// Heading Anchor Component
|
|
30
|
+
// -------------------------------------------------------------------------------
|
|
31
|
+
// :has() guard: position context for the anchor icon.
|
|
32
|
+
// No padding change — the icon translates left of the text start to preserve heading alignment.
|
|
33
|
+
.content > h1:has(.heading-anchor),
|
|
34
|
+
.content > h2:has(.heading-anchor),
|
|
35
|
+
.content > h3:has(.heading-anchor),
|
|
36
|
+
.content > h4:has(.heading-anchor),
|
|
37
|
+
.content > h5:has(.heading-anchor),
|
|
38
|
+
.content > h6:has(.heading-anchor) {
|
|
39
|
+
position: relative;
|
|
40
|
+
}
|
|
41
|
+
.content > h1 .heading-anchor,
|
|
42
|
+
.content > h2 .heading-anchor,
|
|
43
|
+
.content > h3 .heading-anchor,
|
|
44
|
+
.content > h4 .heading-anchor,
|
|
45
|
+
.content > h5 .heading-anchor,
|
|
46
|
+
.content > h6 .heading-anchor {
|
|
47
|
+
position: absolute;
|
|
48
|
+
left: 0;
|
|
49
|
+
top: 0;
|
|
50
|
+
height: 1lh;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
transform: translateX(calc(-100% - #{$spacer * 0.5}));
|
|
54
|
+
transition: transform 200ms ease-out, opacity 200ms ease-out;
|
|
55
|
+
font-size: 1em;
|
|
56
|
+
margin-left: 0 !important;
|
|
57
|
+
margin-right: 0 !important;
|
|
58
|
+
opacity: 0;
|
|
59
|
+
pointer-events: auto;
|
|
60
|
+
text-decoration: none;
|
|
61
|
+
}
|
|
62
|
+
.content > h1 .heading-anchor > i,
|
|
63
|
+
.content > h1 .heading-anchor > svg,
|
|
64
|
+
.content > h2 .heading-anchor > i,
|
|
65
|
+
.content > h2 .heading-anchor > svg,
|
|
66
|
+
.content > h3 .heading-anchor > i,
|
|
67
|
+
.content > h3 .heading-anchor > svg,
|
|
68
|
+
.content > h4 .heading-anchor > i,
|
|
69
|
+
.content > h4 .heading-anchor > svg,
|
|
70
|
+
.content > h5 .heading-anchor > i,
|
|
71
|
+
.content > h5 .heading-anchor > svg,
|
|
72
|
+
.content > h6 .heading-anchor > i,
|
|
73
|
+
.content > h6 .heading-anchor > svg {
|
|
74
|
+
font-size: 0.5em;
|
|
75
|
+
}
|
|
76
|
+
.content > h1:hover .heading-anchor,
|
|
77
|
+
.content > h2:hover .heading-anchor,
|
|
78
|
+
.content > h3:hover .heading-anchor,
|
|
79
|
+
.content > h4:hover .heading-anchor,
|
|
80
|
+
.content > h5:hover .heading-anchor,
|
|
81
|
+
.content > h6:hover .heading-anchor,
|
|
82
|
+
.content > h1 .heading-anchor:focus,
|
|
83
|
+
.content > h2 .heading-anchor:focus,
|
|
84
|
+
.content > h3 .heading-anchor:focus,
|
|
85
|
+
.content > h4 .heading-anchor:focus,
|
|
86
|
+
.content > h5 .heading-anchor:focus,
|
|
87
|
+
.content > h6 .heading-anchor:focus {
|
|
88
|
+
opacity: 1;
|
|
89
|
+
transform: translateX(-100%);
|
|
90
|
+
}
|
|
91
|
+
// Plain "#" glyph — replaces the Font Awesome icon so this component has no
|
|
92
|
+
// icon-font dependency; font-style reset since it's text, not an icon glyph.
|
|
93
|
+
.heading-anchor-hash {
|
|
94
|
+
font-style: normal;
|
|
95
|
+
}
|
|
96
|
+
.heading-anchor-hash::before {
|
|
97
|
+
content: "#";
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Accordion containers' bottom clearance — same as the headings/figure
|
|
101
|
+
// block above, applied to both `.accordion` and `.accordion-item` since an
|
|
102
|
+
// anchor can target either level.
|
|
103
|
+
.content .accordion,
|
|
104
|
+
.content .accordion-item {
|
|
105
|
+
scroll-margin-bottom: 100px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// --------------------------------------------------------------------------------
|
|
109
|
+
// Copy Value Component
|
|
110
|
+
// --------------------------------------------------------------------------------
|
|
111
|
+
.content {
|
|
112
|
+
// `.copy-btn` is a real <button>, so it gets native focus and
|
|
113
|
+
// Enter/Space activation. These rules restyle it as a plain icon
|
|
114
|
+
// trigger. Border, background, and padding reset separately below,
|
|
115
|
+
// scoped to skip `.input-group-text.copy-btn` (checksum and SRI-hash
|
|
116
|
+
// rows), which keeps Bootstrap's own addon box styling instead.
|
|
117
|
+
.copy-btn {
|
|
118
|
+
appearance: none;
|
|
119
|
+
-webkit-appearance: none;
|
|
120
|
+
margin: 0;
|
|
121
|
+
font: inherit;
|
|
122
|
+
line-height: inherit;
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
|
|
125
|
+
text-decoration: none;
|
|
126
|
+
|
|
127
|
+
&:hover {
|
|
128
|
+
--bs-link-color-rgb: var(--bs-link-hover-color-rgb);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.copy-btn:not(.input-group-text) {
|
|
133
|
+
border: 0;
|
|
134
|
+
background: none;
|
|
135
|
+
padding: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.alert .copy-btn {
|
|
139
|
+
color: var(--bs-alert-link-color);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// --------------------------------------------------------------------------------
|
|
143
|
+
// Inline code
|
|
144
|
+
// --------------------------------------------------------------------------------
|
|
145
|
+
// Bootstrap's inline `code` sets a text color ($code-color) but no
|
|
146
|
+
// background, so it barely stands out from surrounding text. This adds
|
|
147
|
+
// a muted background chip: padding, border-radius, and the same light
|
|
148
|
+
// background as the preview toolbar (_preview.scss's centos-purple-50);
|
|
149
|
+
// a darker shade reads as too strong next to body text.
|
|
150
|
+
//
|
|
151
|
+
// Code inside .preview-code is excluded — it's a block sample with its
|
|
152
|
+
// own background and padding already (_preview.scss).
|
|
153
|
+
code {
|
|
154
|
+
padding: 0.1em 0.4em;
|
|
155
|
+
background-color: var(--bs-centos-purple-50);
|
|
156
|
+
border-radius: var(--bs-border-radius);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.preview-code code {
|
|
160
|
+
padding: 0;
|
|
161
|
+
background-color: transparent;
|
|
162
|
+
border-radius: 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// A configuration default's long unbroken token (an SRI hash, a CDN
|
|
166
|
+
// URL, ...) has no natural break point, so it needs an explicit
|
|
167
|
+
// permission to wrap — otherwise it either overflows or forces its
|
|
168
|
+
// column wide (configuration_variables-default-cell.html.liquid, used
|
|
169
|
+
// by both configuration_variables.html.liquid and its nested
|
|
170
|
+
// counterpart). `anywhere` (not `break-word`) also lets it contribute
|
|
171
|
+
// a single-character min-content width, so table auto layout gives the
|
|
172
|
+
// column only the space it actually needs, regardless of how many
|
|
173
|
+
// columns the table has.
|
|
174
|
+
.long-value {
|
|
175
|
+
overflow-wrap: anywhere;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
@@ -4,409 +4,15 @@
|
|
|
4
4
|
// over these in turn).
|
|
5
5
|
// Here, you define and generate custom utility classes using the variables and
|
|
6
6
|
// maps that were set up previously.
|
|
7
|
-
|
|
8
|
-
//
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
body {
|
|
21
|
-
padding-top: 0;
|
|
22
|
-
|
|
23
|
-
.sticky-top-breakingnews {
|
|
24
|
-
top: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Fixed-top navbar reserves this vertical space; pages that disable it
|
|
28
|
-
// (with_navbar: false) get no compensation, since nothing needs clearing.
|
|
29
|
-
&.has-navbar {
|
|
30
|
-
padding-top: $breakingnews-height;
|
|
31
|
-
|
|
32
|
-
.sticky-top-breakingnews {
|
|
33
|
-
top: $breakingnews-height;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Text gradient classes (no native Bootstrap equivalent)
|
|
39
|
-
@each $color, $value in $centos-text-gradients {
|
|
40
|
-
.text-gradient-#{$color} {
|
|
41
|
-
background-image: $value;
|
|
42
|
-
-webkit-background-clip: text;
|
|
43
|
-
-webkit-text-fill-color: transparent;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.bg-project {
|
|
48
|
-
background-repeat: no-repeat;
|
|
49
|
-
background-position: center;
|
|
50
|
-
background-size: cover;
|
|
51
|
-
background-image: url("../../img/bg-project-sm.png");
|
|
52
|
-
|
|
53
|
-
@include media-breakpoint-up(md) {
|
|
54
|
-
background-image: url("../../img/bg-project-md.png");
|
|
55
|
-
}
|
|
56
|
-
@include media-breakpoint-up(lg) {
|
|
57
|
-
background-image: url("../../img/bg-project-lg.png");
|
|
58
|
-
}
|
|
59
|
-
@include media-breakpoint-up(xl) {
|
|
60
|
-
background-image: url("../../img/bg-project-xl.png");
|
|
61
|
-
}
|
|
62
|
-
@include media-breakpoint-up(xxl) {
|
|
63
|
-
background-image: url("../../img/bg-project-xxl.png");
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.bg-artwork {
|
|
68
|
-
background-repeat: no-repeat;
|
|
69
|
-
background-position: center;
|
|
70
|
-
background-size: cover;
|
|
71
|
-
background-image: url("../../img/bg-artwork-sm.png");
|
|
72
|
-
|
|
73
|
-
@include media-breakpoint-up(md) {
|
|
74
|
-
background-image: url("../../img/bg-artwork-md.png");
|
|
75
|
-
}
|
|
76
|
-
@include media-breakpoint-up(lg) {
|
|
77
|
-
background-image: url("../../img/bg-artwork-lg.png");
|
|
78
|
-
}
|
|
79
|
-
@include media-breakpoint-up(xl) {
|
|
80
|
-
background-image: url("../../img/bg-artwork-xl.png");
|
|
81
|
-
}
|
|
82
|
-
@include media-breakpoint-up(xxl) {
|
|
83
|
-
background-image: url("../../img/bg-artwork-xxl.png");
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.bg-image-center {
|
|
88
|
-
background-position: center;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.bg-image-top {
|
|
92
|
-
background-position: top;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.bg-image-bottom {
|
|
96
|
-
background-position: bottom;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.bg-image-cover {
|
|
100
|
-
background-size: cover;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// --------------------------------------------------------------------------------
|
|
104
|
-
// Lists
|
|
105
|
-
// --------------------------------------------------------------------------------
|
|
106
|
-
#pageToc {
|
|
107
|
-
li {
|
|
108
|
-
list-style: none;
|
|
109
|
-
}
|
|
110
|
-
li::before {
|
|
111
|
-
content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='6' height='6'><circle cx='256' cy='256' r='256' fill='rgba(#{to-rgb($body-color)},1)'/></svg>");
|
|
112
|
-
vertical-align: middle;
|
|
113
|
-
position: relative;
|
|
114
|
-
left: -0.5rem;
|
|
115
|
-
top: -0.2rem;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// --------------------------------------------------------------------------------
|
|
120
|
-
// Alerts (p), announcements (div), and breakingnews (div)
|
|
121
|
-
// --------------------------------------------------------------------------------
|
|
122
|
-
// Breaking News: Use Font Awesome HTML icons (fa-solid fa-bullhorn) for consistent
|
|
123
|
-
// visual identity across all color variations.
|
|
124
|
-
// Positioned at page level with sticky positioning.
|
|
125
|
-
// Excluded from CSS icon styling via .breakingnews class.
|
|
126
|
-
// Announcements: Use Font Awesome HTML icons (fa-solid fa-bullhorn) for consistent
|
|
127
|
-
// visual identity across all color variations.
|
|
128
|
-
// Positioned within .content (inside main).
|
|
129
|
-
// Excluded from CSS icon styling via .announcement class.
|
|
130
|
-
// Alerts: Use CSS-based SVG icons ($centos-alert-icons map) for markdown-based
|
|
131
|
-
// alerts within .content, with type-specific icons per color.
|
|
132
|
-
// Only applied to .alert:not(.announcement):not(.breakingnews), to
|
|
133
|
-
// avoid styling announcements and breaking news.
|
|
134
|
-
|
|
135
|
-
$centos-alert-icons: (
|
|
136
|
-
"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>"),
|
|
137
|
-
"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>"),
|
|
138
|
-
"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>"),
|
|
139
|
-
"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>"),
|
|
140
|
-
"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>"),
|
|
141
|
-
"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>"),
|
|
142
|
-
"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>"),
|
|
143
|
-
"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>")
|
|
144
|
-
);
|
|
145
|
-
|
|
146
|
-
// Breaking news with HTML-based Font Awesome icons
|
|
147
|
-
// Positioned at page level (outside .content)
|
|
148
|
-
.sticky-top-breakingnews {
|
|
149
|
-
.breakingnews {
|
|
150
|
-
padding-left: $spacer * 1.25;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.content {
|
|
155
|
-
// Markdown-based alerts with CSS-generated icons
|
|
156
|
-
// Only apply to alerts that are neither announcements nor breaking news
|
|
157
|
-
.alert:not(.announcement):not(.breakingnews) {
|
|
158
|
-
border-left-width: 0.5rem;
|
|
159
|
-
|
|
160
|
-
// Reserve icon space only for the semantic types that have an icon
|
|
161
|
-
// defined in $centos-alert-icons. Shade-extended alert-centos-* classes
|
|
162
|
-
// keep the default padding so they don't carry an empty icon gutter.
|
|
163
|
-
@each $color, $icon-url in $centos-alert-icons {
|
|
164
|
-
&.alert-#{$color} {
|
|
165
|
-
padding-left: $spacer * 3;
|
|
166
|
-
|
|
167
|
-
&::before {
|
|
168
|
-
content: "";
|
|
169
|
-
position: absolute;
|
|
170
|
-
left: 1rem;
|
|
171
|
-
top: 1.75rem;
|
|
172
|
-
transform: translateY(-50%);
|
|
173
|
-
width: 1.25rem;
|
|
174
|
-
height: 1.25rem;
|
|
175
|
-
background-image: #{$icon-url};
|
|
176
|
-
background-repeat: no-repeat;
|
|
177
|
-
background-position: center;
|
|
178
|
-
background-size: contain;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
main {
|
|
186
|
-
// --------------------------------------------------------------------------------
|
|
187
|
-
// Linked headings' bottom clearance.
|
|
188
|
-
// --------------------------------------------------------------------------------
|
|
189
|
-
// Navbar-independent baseline spacing for anchor-linked headings/figures.
|
|
190
|
-
// The fixed-navbar top clearance for these same selectors lives in the
|
|
191
|
-
// `.has-navbar main` block near the end of this file.
|
|
192
|
-
.content > h1,
|
|
193
|
-
.content > h2,
|
|
194
|
-
.content > h3,
|
|
195
|
-
.content > h4,
|
|
196
|
-
.content > h5,
|
|
197
|
-
.content > h6 {
|
|
198
|
-
scroll-margin-bottom: 100px;
|
|
199
|
-
margin-top: 3rem;
|
|
200
|
-
}
|
|
201
|
-
.content > h2 {
|
|
202
|
-
border-bottom: 0.35rem solid $primary;
|
|
203
|
-
padding-bottom: $spacer * 0.5;
|
|
204
|
-
margin-bottom: $spacer * 0.75;
|
|
205
|
-
}
|
|
206
|
-
.content > figure {
|
|
207
|
-
scroll-margin-bottom: 100px;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
// -------------------------------------------------------------------------------
|
|
211
|
-
// Heading Anchor Component
|
|
212
|
-
// -------------------------------------------------------------------------------
|
|
213
|
-
// :has() guard: position context for the anchor icon.
|
|
214
|
-
// No padding change — the icon translates left of the text start to preserve heading alignment.
|
|
215
|
-
.content > h1:has(.heading-anchor),
|
|
216
|
-
.content > h2:has(.heading-anchor),
|
|
217
|
-
.content > h3:has(.heading-anchor),
|
|
218
|
-
.content > h4:has(.heading-anchor),
|
|
219
|
-
.content > h5:has(.heading-anchor),
|
|
220
|
-
.content > h6:has(.heading-anchor) {
|
|
221
|
-
position: relative;
|
|
222
|
-
}
|
|
223
|
-
.content > h1 .heading-anchor,
|
|
224
|
-
.content > h2 .heading-anchor,
|
|
225
|
-
.content > h3 .heading-anchor,
|
|
226
|
-
.content > h4 .heading-anchor,
|
|
227
|
-
.content > h5 .heading-anchor,
|
|
228
|
-
.content > h6 .heading-anchor {
|
|
229
|
-
position: absolute;
|
|
230
|
-
left: 0;
|
|
231
|
-
top: 0;
|
|
232
|
-
height: 1lh;
|
|
233
|
-
display: flex;
|
|
234
|
-
align-items: center;
|
|
235
|
-
transform: translateX(calc(-100% - #{$spacer * 0.5}));
|
|
236
|
-
transition: transform 200ms ease-out, opacity 200ms ease-out;
|
|
237
|
-
font-size: 1em;
|
|
238
|
-
margin-left: 0 !important;
|
|
239
|
-
margin-right: 0 !important;
|
|
240
|
-
opacity: 0;
|
|
241
|
-
pointer-events: auto;
|
|
242
|
-
text-decoration: none;
|
|
243
|
-
}
|
|
244
|
-
.content > h1 .heading-anchor > i,
|
|
245
|
-
.content > h1 .heading-anchor > svg,
|
|
246
|
-
.content > h2 .heading-anchor > i,
|
|
247
|
-
.content > h2 .heading-anchor > svg,
|
|
248
|
-
.content > h3 .heading-anchor > i,
|
|
249
|
-
.content > h3 .heading-anchor > svg,
|
|
250
|
-
.content > h4 .heading-anchor > i,
|
|
251
|
-
.content > h4 .heading-anchor > svg,
|
|
252
|
-
.content > h5 .heading-anchor > i,
|
|
253
|
-
.content > h5 .heading-anchor > svg,
|
|
254
|
-
.content > h6 .heading-anchor > i,
|
|
255
|
-
.content > h6 .heading-anchor > svg {
|
|
256
|
-
font-size: 0.5em;
|
|
257
|
-
}
|
|
258
|
-
.content > h1:hover .heading-anchor,
|
|
259
|
-
.content > h2:hover .heading-anchor,
|
|
260
|
-
.content > h3:hover .heading-anchor,
|
|
261
|
-
.content > h4:hover .heading-anchor,
|
|
262
|
-
.content > h5:hover .heading-anchor,
|
|
263
|
-
.content > h6:hover .heading-anchor,
|
|
264
|
-
.content > h1 .heading-anchor:focus,
|
|
265
|
-
.content > h2 .heading-anchor:focus,
|
|
266
|
-
.content > h3 .heading-anchor:focus,
|
|
267
|
-
.content > h4 .heading-anchor:focus,
|
|
268
|
-
.content > h5 .heading-anchor:focus,
|
|
269
|
-
.content > h6 .heading-anchor:focus {
|
|
270
|
-
opacity: 1;
|
|
271
|
-
transform: translateX(-100%);
|
|
272
|
-
}
|
|
273
|
-
// Plain "#" glyph — replaces the Font Awesome icon so this component has no
|
|
274
|
-
// icon-font dependency; font-style reset since it's text, not an icon glyph.
|
|
275
|
-
.heading-anchor-hash {
|
|
276
|
-
font-style: normal;
|
|
277
|
-
}
|
|
278
|
-
.heading-anchor-hash::before {
|
|
279
|
-
content: "#";
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
// Accordion containers' bottom clearance — same as the headings/figure
|
|
283
|
-
// block above, applied to both `.accordion` and `.accordion-item` since an
|
|
284
|
-
// anchor can target either level.
|
|
285
|
-
.content .accordion,
|
|
286
|
-
.content .accordion-item {
|
|
287
|
-
scroll-margin-bottom: 100px;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
// --------------------------------------------------------------------------------
|
|
291
|
-
// Copy Value Component
|
|
292
|
-
// --------------------------------------------------------------------------------
|
|
293
|
-
.content {
|
|
294
|
-
// `.copy-btn` is a real <button>, so it gets native focus and
|
|
295
|
-
// Enter/Space activation. These rules restyle it as a plain icon
|
|
296
|
-
// trigger. Border, background, and padding reset separately below,
|
|
297
|
-
// scoped to skip `.input-group-text.copy-btn` (checksum and SRI-hash
|
|
298
|
-
// rows), which keeps Bootstrap's own addon box styling instead.
|
|
299
|
-
.copy-btn {
|
|
300
|
-
appearance: none;
|
|
301
|
-
-webkit-appearance: none;
|
|
302
|
-
margin: 0;
|
|
303
|
-
font: inherit;
|
|
304
|
-
line-height: inherit;
|
|
305
|
-
cursor: pointer;
|
|
306
|
-
color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
|
|
307
|
-
text-decoration: none;
|
|
308
|
-
|
|
309
|
-
&:hover {
|
|
310
|
-
--bs-link-color-rgb: var(--bs-link-hover-color-rgb);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.copy-btn:not(.input-group-text) {
|
|
315
|
-
border: 0;
|
|
316
|
-
background: none;
|
|
317
|
-
padding: 0;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.alert .copy-btn {
|
|
321
|
-
color: var(--bs-alert-link-color);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
// --------------------------------------------------------------------------------
|
|
325
|
-
// Inline code
|
|
326
|
-
// --------------------------------------------------------------------------------
|
|
327
|
-
// Bootstrap's inline `code` sets a text color ($code-color) but no
|
|
328
|
-
// background, so it barely stands out from surrounding text. This adds
|
|
329
|
-
// a muted background chip: padding, border-radius, and the same light
|
|
330
|
-
// background as the preview toolbar (_preview.scss's centos-purple-50);
|
|
331
|
-
// a darker shade reads as too strong next to body text.
|
|
332
|
-
//
|
|
333
|
-
// Code inside .preview-code is excluded — it's a block sample with its
|
|
334
|
-
// own background and padding already (_preview.scss).
|
|
335
|
-
code {
|
|
336
|
-
padding: 0.1em 0.4em;
|
|
337
|
-
background-color: var(--bs-centos-purple-50);
|
|
338
|
-
border-radius: var(--bs-border-radius);
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.preview-code code {
|
|
342
|
-
padding: 0;
|
|
343
|
-
background-color: transparent;
|
|
344
|
-
border-radius: 0;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
// A configuration default's long unbroken token (an SRI hash, a CDN
|
|
348
|
-
// URL, ...) has no natural break point, so it needs an explicit
|
|
349
|
-
// permission to wrap — otherwise it either overflows or forces its
|
|
350
|
-
// column wide (configuration_variables-default-cell.html.liquid, used
|
|
351
|
-
// by both configuration_variables.html.liquid and its nested
|
|
352
|
-
// counterpart). `anywhere` (not `break-word`) also lets it contribute
|
|
353
|
-
// a single-character min-content width, so table auto layout gives the
|
|
354
|
-
// column only the space it actually needs, regardless of how many
|
|
355
|
-
// columns the table has.
|
|
356
|
-
.long-value {
|
|
357
|
-
overflow-wrap: anywhere;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
// --------------------------------------------------------------------------------
|
|
363
|
-
// Focus Ring Utility
|
|
364
|
-
// --------------------------------------------------------------------------------
|
|
365
|
-
// Bootstrap's `.focus-ring` utility draws its ring on `:focus`, including
|
|
366
|
-
// mouse clicks. Every theme component that uses the class (copy buttons,
|
|
367
|
-
// links, card actions, navbar items, download buttons) needs the ring to
|
|
368
|
-
// show only on keyboard focus, so this single rule suppresses it whenever
|
|
369
|
-
// `:focus-visible` wouldn't otherwise match — instead of re-deriving
|
|
370
|
-
// `:focus-visible` behavior per component.
|
|
371
|
-
.focus-ring:focus:not(:focus-visible) {
|
|
372
|
-
box-shadow: none;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
// --------------------------------------------------------------------------------
|
|
376
|
-
// Navbar-dependent scroll offset (fixed-top navbar only)
|
|
377
|
-
// --------------------------------------------------------------------------------
|
|
378
|
-
// scroll-margin-top exists solely to keep anchored headings/figures/accordions from
|
|
379
|
-
// being hidden behind the fixed-top navbar. Scoped to .has-navbar (stamped on <body>
|
|
380
|
-
// in the layout only when page.with_navbar is true) so pages that disable the navbar
|
|
381
|
-
// get no phantom offset.
|
|
382
|
-
body.has-navbar main {
|
|
383
|
-
.content > h1,
|
|
384
|
-
.content > h2,
|
|
385
|
-
.content > h3,
|
|
386
|
-
.content > h4,
|
|
387
|
-
.content > h5,
|
|
388
|
-
.content > h6,
|
|
389
|
-
.content > figure,
|
|
390
|
-
.content .accordion,
|
|
391
|
-
.content .accordion-item {
|
|
392
|
-
scroll-margin-top: 80px;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
// --------------------------------------------------------------------------------
|
|
397
|
-
// Sponsor logos
|
|
398
|
-
// --------------------------------------------------------------------------------
|
|
399
|
-
// Caps logo size in sponsors-cards (card and image) and sponsors-carousel (image).
|
|
400
|
-
// Bootstrap has no max-height/max-width utilities beyond mh-100/mw-100, and a
|
|
401
|
-
// class keeps the size out of inline styles, which html-validate flags.
|
|
402
|
-
.sponsors-logo {
|
|
403
|
-
max-height: 60px;
|
|
404
|
-
max-width: 242px;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
// Fixed slide box so the carousel keeps a stable height as logos of
|
|
408
|
-
// different sizes fade in and out.
|
|
409
|
-
.sponsors-carousel-slide {
|
|
410
|
-
height: 80px;
|
|
411
|
-
width: 262px;
|
|
412
|
-
}
|
|
7
|
+
//
|
|
8
|
+
// Aggregates the theme's own rules. Import a single partial to use only that part.
|
|
9
|
+
|
|
10
|
+
@import "layout";
|
|
11
|
+
@import "gradients";
|
|
12
|
+
@import "backgrounds";
|
|
13
|
+
@import "page-toc";
|
|
14
|
+
@import "alerts";
|
|
15
|
+
@import "content";
|
|
16
|
+
@import "focus-ring";
|
|
17
|
+
@import "scroll-offset";
|
|
18
|
+
@import "sponsors";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// --------------------------------------------------------------------------------
|
|
2
|
+
// Focus Ring Utility
|
|
3
|
+
// --------------------------------------------------------------------------------
|
|
4
|
+
// Bootstrap's `.focus-ring` utility draws its ring on `:focus`, including
|
|
5
|
+
// mouse clicks. Every theme component that uses the class (copy buttons,
|
|
6
|
+
// links, card actions, navbar items, download buttons) needs the ring to
|
|
7
|
+
// show only on keyboard focus, so this single rule suppresses it whenever
|
|
8
|
+
// `:focus-visible` wouldn't otherwise match — instead of re-deriving
|
|
9
|
+
// `:focus-visible` behavior per component.
|
|
10
|
+
.focus-ring:focus:not(:focus-visible) {
|
|
11
|
+
box-shadow: none;
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Page-level rules: the unused custom properties and the fixed-navbar body offset.
|
|
2
|
+
|
|
3
|
+
// ================================================================================
|
|
4
|
+
// CSS Custom Properties (currently unused)
|
|
5
|
+
// ================================================================================
|
|
6
|
+
// Not read anywhere — head.html.liquid computes its own scroll-offset values
|
|
7
|
+
// inline from Liquid data instead.
|
|
8
|
+
:root {
|
|
9
|
+
// Breaking News Component
|
|
10
|
+
--breakingnews-alert-height: 31px;
|
|
11
|
+
--navbar-height: 42px;
|
|
12
|
+
--heading-margin-top: 48px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
body {
|
|
16
|
+
padding-top: 0;
|
|
17
|
+
|
|
18
|
+
.sticky-top-breakingnews {
|
|
19
|
+
top: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Fixed-top navbar reserves this vertical space; pages that disable it
|
|
23
|
+
// (with_navbar: false) get no compensation, since nothing needs clearing.
|
|
24
|
+
&.has-navbar {
|
|
25
|
+
padding-top: $breakingnews-height;
|
|
26
|
+
|
|
27
|
+
.sticky-top-breakingnews {
|
|
28
|
+
top: $breakingnews-height;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
data/_sass/base/_light-dark.scss
CHANGED
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
// To regenerate after color changes, run:
|
|
7
7
|
// python3 scripts/colors/generate-scss-light-dark.py
|
|
8
8
|
|
|
9
|
-
$light: #F6EDF4; // centos-purple-50: reduced saturation (~60%), high lightness (~95%)
|
|
10
|
-
$dark: #22061B; // centos-purple-950: enhanced saturation (100%), low lightness (8%)
|
|
9
|
+
$light: #F6EDF4 !default; // centos-purple-50: reduced saturation (~60%), high lightness (~95%)
|
|
10
|
+
$dark: #22061B !default; // centos-purple-950: enhanced saturation (100%), low lightness (8%)
|