ws: Drop OpenSans fonts

They are shipped by PF3, and have not been used in a long time.
This commit is contained in:
Martin Pitt 2022-06-23 09:38:39 +02:00 committed by Martin Pitt
parent de2c8932e4
commit ac9ad17ce7
2 changed files with 1 additions and 17 deletions

View File

@ -29,12 +29,6 @@
font-weight: 300;
src: url('/cockpit/static/fonts/RedHatDisplay-Medium.woff2') format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: url('/cockpit/static/fonts/OpenSans-Light-webfont.woff') format('woff');
}
.blank-slate-pf {
text-align: center;
padding: 90px 120px;

View File

@ -331,14 +331,6 @@ const redhat_fonts = [
};
});
// deprecated OpenSans static font for cockpit-ws package (still necessary for RHEL 7 remote hosts)
const opensans_fonts = [
"Bold", "BoldItalic", "ExtraBold", "ExtraBoldItalic", "Italic", "Light",
"LightItalic", "Regular", "Semibold", "SemiboldItalic"
].map(name => (
{ from: path.resolve(nodedir, 'patternfly/dist/fonts/OpenSans-' + name + '-webfont.woff'), to: 'static/fonts/' }
));
function get_translation_reference_patterns () {
// shell needs all manifest translations for search
if (section === 'shell/')
@ -384,10 +376,8 @@ if (stylelint) {
if (section.startsWith('base1'))
plugins.push(new Copy({ patterns: base1_fonts }));
if (section.startsWith('static')) {
if (section.startsWith('static'))
plugins.push(new Copy({ patterns: redhat_fonts }));
plugins.push(new Copy({ patterns: opensans_fonts }));
}
/* Fill in the tests properly */
info.tests.forEach(test => {