Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

Need help with CSS for Service Portal header bar

patricklatella
Mega Sage

Hi all,

I'm trying to fix the CSS so that the content in the header bar on a portal lines up properly, see the screen shot.  I'm tinkering with the CSS in Chrome dev tools but cannot isolate why that extra space is showing beneath the logo.  any help would be great, thanks!

 

find_real_file.png

1 ACCEPTED SOLUTION

Yeah, I think this got all blown out of proportion, lol.

Basically to end this whole thing, create new image with the wording in it that you'd like, then go to the Service Portal > Configuration, then click Branding Editor, and just make sure you pick the right portal (you could have multiple) [drop down should be in upper top-left of screen] and upload your new image right there, that's it.

No HTML, CSS, etc.

No cloning widgets...

Please mark reply as Helpful/Correct, if applicable. Thanks!

View solution in original post

21 REPLIES 21

patricklatella
Mega Sage

the white space is part of the logo itself...and this is the script in the CSS Variable field on the Theme record...am I tinkering in the right spot?

$sp-logo-margin-x: 15px !default;
$sp-tagline-color: $text-color !default;
$navbar-inverse-bg: #3a3f51 !default;
$navbar-inverse-link-color: #bdc0c4 !default;
$navbar-inverse-link-hover-color: #ffffff !default;
$body-bg: #f0f3f4 !default;
$dropdown-link-disabled-color: #ccc;

a.navbar-brand.navbar-brand-logo.ng-scope::after {
margin-left: 222px;
position: fixed;
top: 23px;
font-size: 2em;
font-size: 1vw;
content: "Welcome To the XXXXXX Service Platform";
}

a.navbar-brand.navbar-brand-logo.ng-scope {
width: calc(200px + 20vw);
}

patricklatella
Mega Sage

to clarify, the white space beneath the logo is not the issue...the issue is all the extra grey area beneath the logo...I need the logo and the "Welcome to ..." text to line up with the other links in the header.

You need to fix your HTML for that

The widget name is Header Menu

Hi Sanjiv!  good to hear from you.  Do I need to clone the widget to do this?