2022-03-18 15:45:12 +01:00
|
|
|
From b95f55365f3b221be032b1008bb8032856e31a12 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jacek Tomasiak <jacek.tomasiak@gmail.com>
|
|
|
|
Date: Tue, 15 Mar 2022 23:57:12 +0100
|
|
|
|
Subject: [PATCH] Add branding for SLE Micro
|
|
|
|
|
|
|
|
This change requires distribution-logos-SLE and wallpaper-branding-SLE
|
|
|
|
to be available during build and installed on the target system to work
|
|
|
|
properly.
|
|
|
|
---
|
|
|
|
Makefile.am | 1 +
|
2022-07-28 15:45:38 +02:00
|
|
|
src/branding/sle-micro/Makefile.am | 11 ++++
|
|
|
|
src/branding/sle-micro/branding.css | 87 ++++++++++++++++++++++++++
|
2022-03-18 15:45:12 +01:00
|
|
|
3 files changed, 99 insertions(+)
|
2022-07-28 15:45:38 +02:00
|
|
|
create mode 100644 src/branding/sle-micro/Makefile.am
|
|
|
|
create mode 100644 src/branding/sle-micro/branding.css
|
2022-03-18 15:45:12 +01:00
|
|
|
|
|
|
|
diff --git a/Makefile.am b/Makefile.am
|
|
|
|
index fb619f3f253..ec761210a52 100644
|
|
|
|
--- a/Makefile.am
|
|
|
|
+++ b/Makefile.am
|
|
|
|
@@ -249,6 +249,7 @@ include src/branding/default/Makefile.am
|
|
|
|
include src/branding/fedora/Makefile.am
|
|
|
|
include src/branding/kubernetes/Makefile.am
|
|
|
|
include src/branding/opensuse/Makefile.am
|
2022-07-28 15:45:38 +02:00
|
|
|
+include src/branding/sle-micro/Makefile.am
|
2022-03-18 15:45:12 +01:00
|
|
|
include src/branding/registry/Makefile.am
|
|
|
|
include src/branding/rhel/Makefile.am
|
|
|
|
include src/branding/scientific/Makefile.am
|
2022-07-28 15:45:38 +02:00
|
|
|
diff --git a/src/branding/sle-micro/Makefile.am b/src/branding/sle-micro/Makefile.am
|
2022-03-18 15:45:12 +01:00
|
|
|
new file mode 100644
|
|
|
|
index 00000000000..3f4b762afa5
|
|
|
|
--- /dev/null
|
2022-07-28 15:45:38 +02:00
|
|
|
+++ b/src/branding/sle-micro/Makefile.am
|
2022-03-18 15:45:12 +01:00
|
|
|
@@ -0,0 +1,11 @@
|
2022-07-28 15:45:38 +02:00
|
|
|
+slemicrobrandingdir = $(datadir)/cockpit/branding/sle-micro
|
2022-03-18 15:45:12 +01:00
|
|
|
+
|
2022-07-28 15:45:38 +02:00
|
|
|
+dist_slemicrobranding_DATA = \
|
|
|
|
+ src/branding/sle-micro/branding.css \
|
2022-03-18 15:45:12 +01:00
|
|
|
+ $(NULL)
|
|
|
|
+
|
|
|
|
+install-data-hook::
|
2022-07-28 15:45:38 +02:00
|
|
|
+ $(LN_S) -f /usr/share/wallpapers/SLEdefault/contents/images/1920x1200.png $(DESTDIR)$(slemicrobrandingdir)/default-1920x1200.png
|
|
|
|
+ $(LN_S) -f /usr/share/pixmaps/distribution-logos/square-hicolor.svg $(DESTDIR)$(slemicrobrandingdir)/square-hicolor.svg
|
|
|
|
+ $(LN_S) -f /usr/share/pixmaps/distribution-logos/favicon.ico $(DESTDIR)$(slemicrobrandingdir)/favicon.ico
|
|
|
|
+ $(LN_S) -f /usr/share/pixmaps/distribution-logos/apple-touch-icon.png $(DESTDIR)$(slemicrobrandingdir)/apple-touch-icon.png
|
|
|
|
diff --git a/src/branding/sle-micro/branding.css b/src/branding/sle-micro/branding.css
|
2022-03-18 15:45:12 +01:00
|
|
|
new file mode 100644
|
|
|
|
index 00000000000..e3c7939c464
|
|
|
|
--- /dev/null
|
2022-07-28 15:45:38 +02:00
|
|
|
+++ b/src/branding/sle-micro/branding.css
|
2022-03-18 15:45:12 +01:00
|
|
|
@@ -0,0 +1,87 @@
|
|
|
|
+/* Extra overrides */
|
|
|
|
+:root {
|
|
|
|
+ --eos-bc-green-500: #30ba78;
|
|
|
|
+ --eos-bc-pine-500: #0c322c;
|
|
|
|
+ --eos-bc-gray-50: #F2F2F2;
|
|
|
|
+ --eos-bc-white: #ffffff;
|
|
|
|
+ --eos-bc-text: #333;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+#brand:before {
|
|
|
|
+ content: "${PRETTY_NAME}";
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.login-pf .container {
|
|
|
|
+ background-color: rgba(255, 255, 255);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+#option-group svg polygon {
|
|
|
|
+ fill: var(--eos-bc-text);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/* Nav & sidebar overwrites */
|
|
|
|
+.navbar-pf {
|
|
|
|
+ background: var(--eos-bc-pine-500);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.navbar-pf-vertical {
|
|
|
|
+ border-top: none;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/* Default overrides */
|
|
|
|
+
|
|
|
|
+.login-note {
|
|
|
|
+ color: transparent;
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+body.login-pf {
|
|
|
|
+ background-color: var(--eos-bc-pine-500);
|
|
|
|
+ color: var(--eos-bc-text);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/* Only use background image on desktops */
|
|
|
|
+@media(min-width: 1024px) {
|
|
|
|
+ body.login-pf {
|
|
|
|
+ background-image: url("default-1920x1200.png");
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
+ background-position: 100% 0 !important;
|
|
|
|
+ background-size: cover;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+/* Hide badge on desktops (already included in background) */
|
|
|
|
+@media(max-width: 1023px) {
|
|
|
|
+ #badge {
|
|
|
|
+ width: 51px;
|
|
|
|
+ height: 45px;
|
|
|
|
+ background-image: url("square-hicolor.svg");
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+#brand {
|
|
|
|
+ width: auto;
|
|
|
|
+ height: auto;
|
|
|
|
+ background-image: none;
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
+ font-size: 2em;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+}
|
|
|
|
+/* Switch to small font faster to not clip long name */
|
|
|
|
+@media(max-width: 560px) {
|
|
|
|
+ #brand {
|
|
|
|
+ font-size: inherit;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+#index-brand {
|
|
|
|
+ font-weight: bold;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+#index-brand:before {
|
|
|
|
+ content: "${PRETTY_NAME}";
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|