David Diaz 2022-06-15 13:14:30 +00:00 committed by Git OBS Bridge
parent b6fb1f0e9b
commit ab7bf00e42
23 changed files with 32 additions and 402 deletions

17
.gitattributes vendored
View File

@ -21,20 +21,3 @@
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
## Specific LFS patterns
LatoLatin-Bold.woff2 filter=lfs diff=lfs merge=lfs -text
LatoLatin-BoldItalic.woff2 filter=lfs diff=lfs merge=lfs -text
LatoLatin-Italic.woff2 filter=lfs diff=lfs merge=lfs -text
LatoLatin-Regular.woff2 filter=lfs diff=lfs merge=lfs -text
poppins-v19-latin-ext_latin_devanagari-300.woff filter=lfs diff=lfs merge=lfs -text
poppins-v19-latin-ext_latin_devanagari-300.woff2 filter=lfs diff=lfs merge=lfs -text
poppins-v19-latin-ext_latin_devanagari-300italic.woff filter=lfs diff=lfs merge=lfs -text
poppins-v19-latin-ext_latin_devanagari-300italic.woff2 filter=lfs diff=lfs merge=lfs -text
poppins-v19-latin-ext_latin_devanagari-500.woff filter=lfs diff=lfs merge=lfs -text
poppins-v19-latin-ext_latin_devanagari-500.woff2 filter=lfs diff=lfs merge=lfs -text
poppins-v19-latin-ext_latin_devanagari-500italic.woff filter=lfs diff=lfs merge=lfs -text
poppins-v19-latin-ext_latin_devanagari-500italic.woff2 filter=lfs diff=lfs merge=lfs -text
poppins-v19-latin-ext_latin_devanagari-regular.woff filter=lfs diff=lfs merge=lfs -text
poppins-v19-latin-ext_latin_devanagari-regular.woff2 filter=lfs diff=lfs merge=lfs -text
roboto-mono-v13-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff filter=lfs diff=lfs merge=lfs -text
roboto-mono-v13-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff2 filter=lfs diff=lfs merge=lfs -text

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:276401632a998400be8a5895038f4f72d3760d3c3d6aaf3cf445d109cb9d1540
size 44380

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7836ce59bd4d5c17aee9cbecfe58226b1d45f2a77b00f7c4e8616896fd06929e
size 45036

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:23d062b46761d2148b84ca93d72dfdf2f16833f2ebb54ebdafdf25f1e10afc50
size 45388

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ddd4ef7f97f4361b60841d59753218a57134b0f99f5b46a9612234f1c2733ab0
size 43760

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">https://github.com/dgdavid/cockpit-suse-theme.git</param>
<param name="versionformat">0.1</param>
<param name="scm">git</param>
<param name="revision">main</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="disabled">
<param name="compression">xz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/dgdavid/cockpit-suse-theme.git</param>
<param name="changesrevision">68ed98d309e1e0293527f94990fe6c080762152e</param></service></servicedata>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e7c868ce5d7ee07d146518edf63d12b430846cae09ff5c8015f2be4bc9f97688
size 1161924

View File

@ -20,30 +20,13 @@ Name: cockpit-suse-theme
Version: 0.1
Release: 0
Summary: A Cockpit green-ish theme
Source: %{name}-%{version}.tar.xz
Url: https://github.com/dgdavid/cockpit-suse-theme
License: MIT
Requires: cockpit-ws
BuildRequires: cockpit-ws
Source0: overrides.css
Source1: fonts.css
Source2: LatoLatin-BoldItalic.woff2
Source3: LatoLatin-Bold.woff2
Source4: LatoLatin-Italic.woff2
Source5: LatoLatin-Regular.woff2
Source6: poppins-v19-latin-ext_latin_devanagari-300italic.woff
Source7: poppins-v19-latin-ext_latin_devanagari-300italic.woff2
Source8: poppins-v19-latin-ext_latin_devanagari-300.woff
Source9: poppins-v19-latin-ext_latin_devanagari-300.woff2
Source10: poppins-v19-latin-ext_latin_devanagari-500italic.woff
Source11: poppins-v19-latin-ext_latin_devanagari-500italic.woff2
Source12: poppins-v19-latin-ext_latin_devanagari-500.woff
Source13: poppins-v19-latin-ext_latin_devanagari-500.woff2
Source14: poppins-v19-latin-ext_latin_devanagari-regular.woff
Source15: poppins-v19-latin-ext_latin_devanagari-regular.woff2
Source16: roboto-mono-v13-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff
Source17: roboto-mono-v13-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff2
%description
A package holding needed resources for changing Cockpit styling to match the
SUSE look&feel by using the workaround described at
@ -52,45 +35,17 @@ https://github.com/cockpit-project/cockpit/pull/17437
Intended changes only take effect when using a Cockpit version patched for
loading the CSS overrides file in each HTML page.
%prep
%setup -q
%install
mkdir -p %{buildroot}%{_datadir}/cockpit/branding/default/fonts
cp %{SOURCE0} %{buildroot}%{_datadir}/cockpit/branding/default/css-overrides.css
cp %{SOURCE1} %{buildroot}%{_datadir}/cockpit/branding/default/fonts.css
cp %{SOURCE2} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE3} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE4} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE5} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE6} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE7} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE8} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE9} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE10} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE11} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE12} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE13} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE14} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE15} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE16} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
cp %{SOURCE17} %{buildroot}%{_datadir}/cockpit/branding/default/fonts/
mkdir -p %{buildroot}%{_datadir}/cockpit/branding/default
cp src/css-overrides.css %{buildroot}%{_datadir}/cockpit/branding/default
cp src/fonts.css %{buildroot}%{_datadir}/cockpit/branding/default
cp -a src/fonts %{buildroot}%{_datadir}/cockpit/branding/default
%files
%{_datadir}/cockpit
%{_datadir}/cockpit/branding/default/css-overrides.css
%{_datadir}/cockpit/branding/default/fonts.css
%{_datadir}/cockpit/branding/default/fonts/LatoLatin-Bold.woff2
%{_datadir}/cockpit/branding/default/fonts/LatoLatin-Italic.woff2
%{_datadir}/cockpit/branding/default/fonts/LatoLatin-Regular.woff2
%{_datadir}/cockpit/branding/default/fonts/poppins-v19-latin-ext_latin_devanagari-300italic.woff
%{_datadir}/cockpit/branding/default/fonts/poppins-v19-latin-ext_latin_devanagari-300italic.woff2
%{_datadir}/cockpit/branding/default/fonts/poppins-v19-latin-ext_latin_devanagari-300.woff
%{_datadir}/cockpit/branding/default/fonts/poppins-v19-latin-ext_latin_devanagari-300.woff2
%{_datadir}/cockpit/branding/default/fonts/poppins-v19-latin-ext_latin_devanagari-500italic.woff
%{_datadir}/cockpit/branding/default/fonts/poppins-v19-latin-ext_latin_devanagari-500italic.woff2
%{_datadir}/cockpit/branding/default/fonts/poppins-v19-latin-ext_latin_devanagari-500.woff
%{_datadir}/cockpit/branding/default/fonts/poppins-v19-latin-ext_latin_devanagari-500.woff2
%{_datadir}/cockpit/branding/default/fonts/poppins-v19-latin-ext_latin_devanagari-regular.woff
%{_datadir}/cockpit/branding/default/fonts/poppins-v19-latin-ext_latin_devanagari-regular.woff2
%{_datadir}/cockpit/branding/default/fonts/roboto-mono-v13-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff
%{_datadir}/cockpit/branding/default/fonts/roboto-mono-v13-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff2
%dir %{_datadir}/cockpit
%{_datadir}/cockpit/branding/default/*
%changelog

120
fonts.css
View File

@ -1,120 +0,0 @@
/**
* Lato font, a sanserif family designed by Łukasz Dziedzic and others (see
* http://www.latofonts.com/team) and published under the open-source Open Font License
* https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
*
* Font files downloaded brom its web page https://www.latofonts.com/
* Note: At the time of writing, Google Fonts only use the older version (1.0)
*/
/* LatoLatin-Regular */
@font-face {
font-family: 'Lato';
src: url('./fonts/LatoLatin-Regular.woff2') format('woff2');
font-style: normal;
font-weight: normal;
text-rendering: optimizeLegibility;
}
/* LatoLatin-Italic */
@font-face {
font-family: 'Lato';
src: url('./fonts/LatoLatin-Italic.woff2') format('woff2');
font-style: italic;
font-weight: normal;
text-rendering: optimizeLegibility;
}
/* LatoLatin-Bold */
@font-face {
font-family: 'Lato';
src: url('./fonts/LatoLatin-Bold.woff2') format('woff2');
font-style: normal;
font-weight: bold;
text-rendering: optimizeLegibility;
}
/* LatoLatin-BoldItalic */
@font-face {
font-family: 'Lato';
src: url('./fonts/LatoLatin-BoldItalic.woff2') format('woff2');
font-style: italic;
font-weight: bold;
text-rendering: optimizeLegibility;
}
/**
* Poppins is a geometric sans serif designed by Indian Type Foundry and Jonny Pinhorn and licensed
* under the Open Font License, https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
*
* https://github.com/itfoundry/poppins
*
* Fonts files downloaded from Google Fonts https://fonts.google.com/ by using https://github.com/majodev/google-webfonts-helper
**/
/* poppins-300 - latin-ext_latin_devanagari */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 300;
src: local(''),
url('./fonts/poppins-v19-latin-ext_latin_devanagari-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('./fonts/poppins-v19-latin-ext_latin_devanagari-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* poppins-300italic - latin-ext_latin_devanagari */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 300;
src: local(''),
url('./fonts/poppins-v19-latin-ext_latin_devanagari-300italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('./fonts/poppins-v19-latin-ext_latin_devanagari-300italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* poppins-regular - latin-ext_latin_devanagari */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
src: local(''),
url('./fonts/poppins-v19-latin-ext_latin_devanagari-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('./fonts/poppins-v19-latin-ext_latin_devanagari-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* poppins-500 - latin-ext_latin_devanagari */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 500;
src: local(''),
url('./fonts/poppins-v19-latin-ext_latin_devanagari-500.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('./fonts/poppins-v19-latin-ext_latin_devanagari-500.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* poppins-500italic - latin-ext_latin_devanagari */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 500;
src: local(''),
url('./fonts/poppins-v19-latin-ext_latin_devanagari-500italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('./fonts/poppins-v19-latin-ext_latin_devanagari-500italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/**
* Roboto Mono is a monospaced addition to the Roboto type family, designec by Christina Robertson
* and licensed under Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0
*
* Fonts files downloaded from Google Fonts https://fonts.google.com/ by using https://github.com/majodev/google-webfonts-helper
*/
/* roboto-mono-regular - vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Roboto Mono';
font-style: normal;
font-weight: 400;
src: local(''),
url('./fonts/roboto-mono-v13-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('./fonts/roboto-mono-v13-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

View File

@ -1,161 +0,0 @@
@import "fonts.css";
/**
* A stylesheet for theming Cockpit via CSS overrides workaround described at
* https://github.com/cockpit-project/cockpit/pull/17437
*
* Only works when using a Cockpit version patched for loading this file in
* each HTML page.
*/
:root {
/* Custom theme: variables */
/* See https://brand.suse.com and https://suse.eosdesignsystem.com/typography */
--PineGreen: #0C322C;
--JungleGreen: #30BA78;
--DarkerJungleGreen: #0E7E3C;
--Mint: #90EBCD;
--Fog: #EFEFEF;
--Persimmon: #FE7C3F;
--MidnightBlue: #192072;
--WaterholeBlue: #2453FF;
--BaseFont: Lato, arial, helvetica, sans-serif;
--HeadlinesFont: Poppins, san-serif;
--MonospaceFont: 'Roboto Mono', monospace;
--Headings: "Poppins";
/* Custom theme: PatternFly overrides */
/** Fonts **/
--pf-global--FontFamily--sans-serif: var(--BaseFont);
--pf-global--FontFamily--heading--sans-serif: var(--HeadlinesFont);
--pf-global--FontFamily--monospace: var(--MonospaceFont);
--pf-global--FontFamily--redhat-updated--sans-serif: var(--BaseFont);
--pf-global--FontFamily--redhat-updated--heading--sans-serif: var(--HeadlinesFont);
--pf-global--FontFamily--redhat--monospace: var(--MonospaceFont);
--pf-global--FontFamily--redhatVF--sans-serif: var(--BaseFont);
--pf-global--FontFamily--redhatVF--heading--sans-serif: var(--HeadlinesFont);
--pf-global--FontFamily--redhatVF--monospace: var(--MonospaceFont);
--pf-global--FontFamily--overpass--sans-serif: var(--BaseFont);
--pf-global--FontFamily--overpass--monospace: var(--BaseFont);
/** Colors **/
--pf-global--primary-color--100: var(--JungleGreen);
--pf-global--primary-color--200: var(--DarkerJungleGreen);
--pf-global--link--Color: var(--DarkerJungleGreen);
--pf-global--link--Color--hover: var(--PineGreen);
--pf-global--BackgroundColor--dark-100: var(--PineGreen);
--pf-global--BackgroundColor--ligth-100: var(--JungleGreen);
--pf-global--danger-color--100: var(--Persimmon);
/* Custom theme: Cockpit overrides */
--ct-color-nav-text: var(--Mint);
--ct-color-nav-active-text: var(--Mint);
}
/* Links and buttons */
a {
color: var(--DarkerJungleGreen);
}
a:hover {
color: var(--PineGreen);
}
.pf-c-button {
--pf-c-button--m-primary--BackgroundColor: var(--JungleGreen);
}
.pf-c-button.pf-m-link {
color: var(--DarkerJungleGreen);
}
.pf-c-button.pf-m-link:hover {
color: var(--PineGreen);
}
/* Progress bars */
.pf-c-progress {
--pf-c-progress__indicator--BackgroundColor: var(--JungleGreen);
--pf-c-progress__bar--BackgroundColor: var(--Fog);
--pf-c-progress__bar--before--Opacity: 0;
}
.pf-c-progress.pf-m-danger {
--pf-c-progress__indicator--BackgroundColor: var(--Persimmon);
}
/* Main content */
.pf-c-page__main-section {
--pf-c-page__main-section--BackgroundColor: var(--Fog);
}
.pf-c-page__main-section.pf-m-light {
--pf-c-page__main-section--BackgroundColor: white;
}
/* Alerts */
.pf-c-alert.pf-m-info {
--pf-c-alert--BorderTopColor: var(--WaterholeBlue);
--pf-c-alert__icon--Color: var(--WaterholeBlue);
}
.pf-l-gallery > .pf-c-alert.pf-m-info,
.pf-c-alert.pf-m-info {
--pf-c-alert--BackgroundColor: white;
}
.pf-c-alert.pf-m-warning {
--pf-c-alert--BorderTopColor: var(--Persimmon);
--pf-c-alert__icon--Color: var(--Persimmon);
}
/* Sidebar navigation */
#host-apps,
.ct-switcher .pf-m-dark > .pf-c-select__toggle {
background-color: var(--pf-global--BackgroundColor--dark-100);
}
#host-apps a {
color: var(--Fog);
}
.view-hosts a:hover {
color: var(--Fog);
}
#host-apps .pf-c-nav__link.pf-m-current::after {
border-color: var(--Mint);
}
#view-hosts > #page-sidebar {
background-color: var(--DarkerJugnleGreen);
}
/* Subnav search */
.area-ct-subnav .search {
margin: 1rem 0;
}
.area-ct-subnav .pf-c-button.pf-m-link.hint {
color: var(--Fog);
}
/* Charts */
.ct-plot-paths > path {
fill: var(--JungleGreen);
stroke: var(--JungleGreen);
}
/* Others */
.cockpit-log-time {
font-family: var(--MonospaceFont);
}

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:df04639997df53ab626f3fb35fc6bd9a5bbf81f1d809b943554076c185a9026f
size 66448

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1fe1c3144a1b4dd66f8b6e2754b9c4059a6c3eed4c65b6367f25b8c11f6ed588
size 49476

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1aea4b2bb5d6720ebb9275dda394f6e23bfe6397414d3a236b7b49af3fc3ca78
size 76672

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13127c59228c485dc59e44c7715f4da7d540df4299b6573a5ffbdfadf2f911b4
size 56652

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9ec8c55ca9a20762804eddbda1f3bb327d2d19245d89a7ee6f2076421c60c6c1
size 65760

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:72d422ca01aa5059f41ff11b170fe69f993a39c7b0b06dc17fd072866b187d83
size 48956

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ffd88f32229db42a60b3ad22893b85c915a1e3711c83ef538be6d5d230398248
size 75268

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6a5db723124649c8666e5b2e718d91626c77650471f4095f646784d3a56958b5
size 55660

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c68e1edb2e2414da9f1a46a81131ceeb09e082363d20c8605d5edb929a1bf648
size 66572

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:078a838f0e1e77b39512df1902c5197ac824cfb8d6f13e988126a8bdf597edb2
size 49652

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0bdd8d4009a28ef64ef1c3993c267e4f39e3ce33805aa394a60b73fef9fd2712
size 47300

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0735372f56f4589605c7513431f4970be66099254878de7c38b61cb91aa8bd5e
size 37656