1
0
forked from cockpit/cockpit
cockpit/0001-openSUSE-Tumbleweed-branding.patch

80 lines
2.5 KiB
Diff
Raw Normal View History

From 43541b196f8816b743f83e38a4e33367610dbde8 Mon Sep 17 00:00:00 2001
From: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Tue, 31 Mar 2020 13:12:18 +0200
Subject: [PATCH] openSUSE Tumbleweed branding
---
Makefile.am | 1 +
src/branding/opensuse-tumbleweed/Makefile.am | 11 ++++++++++
src/branding/opensuse-tumbleweed/branding.css | 30 +++++++++++++++++++++++++++
tools/cockpit.spec | 2 +-
4 files changed, 43 insertions(+), 1 deletion(-)
create mode 100644 src/branding/opensuse-tumbleweed/Makefile.am
create mode 100644 src/branding/opensuse-tumbleweed/branding.css
diff --git a/Makefile.am b/Makefile.am
index bee855890..f76b4a349 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -444,6 +444,7 @@ include src/branding/debian/Makefile.am
include src/branding/default/Makefile.am
include src/branding/fedora/Makefile.am
include src/branding/kubernetes/Makefile.am
+include src/branding/opensuse-tumbleweed/Makefile.am
include src/branding/registry/Makefile.am
include src/branding/rhel/Makefile.am
include src/branding/scientific/Makefile.am
diff --git a/src/branding/opensuse-tumbleweed/Makefile.am b/src/branding/opensuse-tumbleweed/Makefile.am
new file mode 100644
index 000000000..f45234ccb
--- /dev/null
+++ b/src/branding/opensuse-tumbleweed/Makefile.am
@@ -0,0 +1,11 @@
+tumbleweedbrandingdir = $(datadir)/cockpit/branding/opensuse-tumbleweed
+
+tumbleweedbranding_DATA = \
+ src/branding/opensuse-tumbleweed/branding.css \
+ $(NULL)
+
+EXTRA_DIST += $(tumbleweedbranding_DATA)
+
+install-data-hook::
+ $(LN_S) -f /usr/share/wallpapers/default-1920x1200.jpg $(DESTDIR)$(tumbleweedbrandingdir)/default-1920x1200.jpg
+ $(LN_S) -f /usr/share/pixmaps/distribution-logos/square-hicolor.svg $(DESTDIR)$(tumbleweedbrandingdir)/square-hicolor.svg
diff --git a/src/branding/opensuse-tumbleweed/branding.css b/src/branding/opensuse-tumbleweed/branding.css
new file mode 100644
index 000000000..e9191d4ef
--- /dev/null
+++ b/src/branding/opensuse-tumbleweed/branding.css
@@ -0,0 +1,30 @@
+.navbar-pf {
+ border-color: #73ba25 !important;
+}
+
+body.login-pf {
+ background: url("default-1920x1200.jpg") no-repeat 50% 0;
+ background-size: cover;
+ background-color: #42474c;
+}
+
+#badge {
+ width: 5em;
+ height: 5em;
+ background-image: url("square-hicolor.svg");
+ background-size: contain;
+ background-repeat: no-repeat;
+}
+
+#brand {
+ font-size: 18pt;
+ text-transform: uppercase;
+}
+
+#brand:before {
+ content: "${NAME}";
+}
+
+#index-brand:before {
+ content: "${NAME}";
+}