Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add branding for SLE Micro #4

Merged
merged 1 commit into from
Mar 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
include src/branding/suse-microos/Makefile.am
include src/branding/registry/Makefile.am
include src/branding/rhel/Makefile.am
include src/branding/scientific/Makefile.am
Expand Down
11 changes: 11 additions & 0 deletions src/branding/suse-microos/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
susemicroosbrandingdir = $(datadir)/cockpit/branding/suse-microos

dist_susemicroosbranding_DATA = \
src/branding/suse-microos/branding.css \
$(NULL)

install-data-hook::
$(LN_S) -f /usr/share/wallpapers/SLEdefault/contents/images/1920x1200.png $(DESTDIR)$(susemicroosbrandingdir)/default-1920x1200.png
$(LN_S) -f /usr/share/pixmaps/distribution-logos/square-hicolor.svg $(DESTDIR)$(susemicroosbrandingdir)/square-hicolor.svg
$(LN_S) -f /usr/share/pixmaps/distribution-logos/favicon.ico $(DESTDIR)$(susemicroosbrandingdir)/favicon.ico
$(LN_S) -f /usr/share/pixmaps/distribution-logos/apple-touch-icon.png $(DESTDIR)$(susemicroosbrandingdir)/apple-touch-icon.png
87 changes: 87 additions & 0 deletions src/branding/suse-microos/branding.css
Original file line number Diff line number Diff line change
@@ -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}";
}