Skip to content

Commit b640d37

Browse files
authored
Merge pull request #38 from edcdavid/fix-sri
Integrity of bootstrap and dayjs files changed on delivery erver
2 parents c73b03f + 8951a35 commit b640d37

File tree

12 files changed

+604
-6
lines changed

12 files changed

+604
-6
lines changed

.github/workflows/linters.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
- name: Run Standard
1818
run: yarn standard html/index.js
1919
- uses: crate-ci/typos@master
20+
with:
21+
files: html/*
2022
css-linter:
2123
name: CSS linter (stylelint)
2224
runs-on: ubuntu-latest

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
build:
22
cd html && node build.js
3+
backup-refs:
4+
mkdir -p backup
5+
cat html/index.html | sed -Enr 's/<(link|script)(.*?)(href|src)(=")(https:\/\/.[^"]*?\.(js|css))"(.*)/wget -P backup \5/p'|bash

backup/ansi_up.js

Lines changed: 433 additions & 0 deletions
Large diffs are not rendered by default.

backup/bootstrap.bundle.min.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backup/bootstrap.min.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backup/dayjs.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backup/docs.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backup/es-module-shims.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backup/jquery.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backup/rh-footer-lightdom.css

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) a {
2+
/* TODO remove --rh-color-link-inline-on-dark for v2 */
3+
/* stylelint-disable-next-line */
4+
color: var(--rh-color-link-inline-on-dark, var(--rh-color-interactive-blue-lighter, #92c5f9));
5+
text-decoration: none;
6+
}
7+
8+
:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) a:hover {
9+
/* TODO remove --rh-color-link-inline-hover-on-dark for v2 */
10+
/* stylelint-disable-next-line */
11+
color: var(--rh-color-link-inline-hover-on-dark, var(--rh-color-interactive-blue-lightest, #b9dafc));
12+
text-decoration: underline;
13+
}
14+
15+
:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) a:is(:focus, :focus-within) {
16+
/* TODO remove --rh-color-link-inline-focus-on-dark for v2 */
17+
/* stylelint-disable-next-line */
18+
color: var(--rh-color-link-inline-focus-on-dark, var(--rh-color-interactive-blue-lightest, #b9dafc));
19+
text-decoration: underline;
20+
}
21+
22+
:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) a:visited {
23+
/* TODO remove --rh-color-link-inline-visited-on-dark for v2 */
24+
/* stylelint-disable-next-line */
25+
color: var(--rh-color-link-inline-visited-on-dark, var(--rh-color-interactive-blue-lightest, #b9dafc));
26+
text-decoration: none;
27+
}
28+
29+
/* ensure links fully wrap img tags */
30+
:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) a[slot^="logo"] {
31+
display: block;
32+
}
33+
34+
:is(rh-footer) a[slot^="logo"] > img {
35+
display: block;
36+
width: auto;
37+
height: 100%;
38+
height: var(--rh-size-icon-04, 40px);
39+
}
40+
41+
:is(rh-footer, rh-footer-universal, rh-global-footer) :is(h1, h2, h3, h4, h5, h6) {
42+
font-family: var(--rh-font-family-heading, RedHatDisplay, "Red Hat Display", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Helvetica, Arial, sans-serif);
43+
line-height: var(--rh-line-height-heading, 1.3);
44+
}
45+
46+
rh-footer [slot="links"]:is(h1, h2, h3, h4, h5):nth-of-type(n+5) {
47+
--_link-header-margin: calc(var(--rh-space-2xl, 32px) - var(--rh-space-lg, 16px));
48+
}
49+
50+
rh-footer [slot^="links"] a {
51+
gap: var(--rh-footer-links-gap, var(--rh-space-md, 8px));
52+
}
53+
54+
:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) [slot^="links"] li {
55+
margin: 0;
56+
padding: 0;
57+
display: contents;
58+
}
59+
60+
:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) [slot^="links"] a {
61+
display: block;
62+
color: var(--rh-color-text-primary-on-dark, #ffffff) !important;
63+
font-size: var(--rh-footer-link-font-size, var(--rh-font-size-body-text-sm, 0.875rem));
64+
width: fit-content;
65+
}
66+
67+
:is(rh-footer-universal, rh-global-footer) [slot^="links"] a {
68+
font-size: inherit;
69+
}
70+
71+
/**
72+
* Section side gap
73+
*/
74+
:is(rh-footer, rh-footer-universal, rh-global-footer) {
75+
--rh-footer-section-side-gap: var(--rh-space-lg, 16px);
76+
}
77+
78+
/* (min-width: --rh-breakpoint-sm) */
79+
@media screen and (min-width: 768px) {
80+
:is(rh-footer, rh-footer-universal, rh-global-footer) {
81+
--rh-footer-section-side-gap: var(--rh-space-2xl, 32px);
82+
}
83+
}
84+
85+
/* (min-width: --rh-breakpoint-xl) */
86+
@media screen and (min-width: 1440px) {
87+
:is(rh-footer, rh-footer-universal, rh-global-footer) {
88+
--rh-footer-section-side-gap: var(--rh-space-4xl, 64px);
89+
}
90+
}
91+
92+
/**
93+
* No JS Experience
94+
*/
95+
rh-footer:not(:defined) {
96+
background-color: var(--rh-color-surface-darker, #1f1f1f);
97+
width: 100%;
98+
display: grid;
99+
grid-template-areas:
100+
"footer"
101+
"global";
102+
grid-template-rows: 1fr auto;
103+
min-height: var(--rh-footer-nojs-min-height, 750px);
104+
}
105+
106+
:is(rh-footer-universal, rh-global-footer):not(:defined):before {
107+
grid-area: global;
108+
}
109+
110+
/* Adding styles to logo */
111+
rh-footer:not(:defined) > [slot="logo"] {
112+
padding: var(--rh-space-2xl, 32px) var(--_section-side-gap);
113+
}
114+
115+
/* A11y hide child components */
116+
rh-footer:not(:defined) > :not([slot="logo"], :is(rh-footer-universal, rh-global-footer)),
117+
:is(rh-footer-universal, rh-global-footer):not(:defined) > * {
118+
border: 0;
119+
clip: rect(1px, 1px, 1px, 1px);
120+
height: 1px;
121+
margin: -1px;
122+
overflow: hidden;
123+
padding: 0;
124+
position: absolute;
125+
width: 1px;
126+
}
127+
128+
:is(rh-footer-universal, rh-global-footer):not(:defined) {
129+
background-color: var(--rh-color-surface-darkest, #151515);
130+
display: block;
131+
width: 100%;
132+
min-height: 176px;
133+
}
134+
135+
rh-footer-universal rh-footer-copyright {
136+
grid-column: -1/1;
137+
}

0 commit comments

Comments
 (0)