Jump to content

Content ::after pseudo element with the logo


Recommended Posts

Posted

My goal is pretty basic "Add text after the logo", but I am not finding the best flow to get it to work.

 

Changing HTML is not really an option due to the way the web app is driven and due to any HTML changes that I could get away with would be overwritten (and rightly so) to ensure everything works properly.

 

So, CSS to the rescue. Specifically the ::before and ::after content pseudo elements.

 

Playing around with various CSS methods inside pageTitle, pageTitleWithLogo or pageTitleWithDefaultLogo does not seem to have any effect.

 

Any help with this would be great :)

 

Thanks so much!!

Happy2Play
Posted

Can provide a specific example?

  • Like 1
Posted

Can provide a specific example?

 

Absolutely. The following example should place the text after the Emby logo for it to show LOGO Web App (with Web App in green color)

 
pageTitleWithLogo::after {
conent: ' Web App';
color: green;
}
 
it's "after" so it tshould place that text after whatever content is in pageTitleWithLogo which in this case would be the logo.
Happy2Play
Posted

 

Absolutely. The following example should place the text after the Emby logo for it to show LOGO Web App (with Web App in green color)

 
pageTitleWithLogo::after {
conent: ' Web App';
color: green;
}
 
it's "after" so it tshould place that text after whatever content is in pageTitleWithLogo which in this case would be the logo.

 

 

Something like this.

.pageTitleWithLogo:after {
    content: ' Web App';
    position: absolute;
    color: green;
    left: 10%;
}
  • Like 1
Posted

That did it, thanks. I don't know whyit was not working for me. The only one of the options you ued that I did not was left: 10%;

 

But hey, I am just glad it works. Thanks so much!!!!!! As always, you rock!

Happy2Play
Posted

I believe it is do it being a image placeholder it doesn't know a position to apply the content so both image and content were overlapping.

  • Like 1
Posted (edited)

Follow up - kinda off topic question for you @@Happy2Play

 

Is there a simple text file I can edit that holds the custom CSS? I am doing a lot of work on CSS and a good amount of trial and error. The user experience in my three browsers of editing that CSS text box is horrific. Jumping to the top and such.

Edited by Lyfesaver
Happy2Play
Posted

Follow up - kinda off topic question for you @@Happy2Play

 

Is there a simple text file I can edit that holds the custom CSS? I am doing a lot of work on CSS and a good amount of trial and error. The user experience in my three browsers of editing that CSS text box is horrific. Jumping to the top and such.

 

Well the custom css box saves everything to the branding.xml (\Emby-Server\programdata\config).  But editing it directly won't load the changes.

Posted

Well the custom css box saves everything to the branding.xml (\Emby-Server\programdata\config).  But editing it directly won't load the changes.

 

 

Crud

PenkethBoy
Posted

@@Lyfesaver

 

try this at the top of your css box - should make it behave better

 

/* CSS Box */
#txtCustomCss {height: 300px !important;  overflow-y: scroll !important; }
  • Like 2
Posted

 

@@Lyfesaver

 

try this at the top of your css box - should make it behave better

 

/* CSS Box */
#txtCustomCss {height: 300px !important;  overflow-y: scroll !important; }

 

 

OMG THAT IS SO MUCH BETTER!!!!!!!!!!!!!!!!!!!!!!!!!!

Happy2Play
Posted
:)  I forgot about that change.  Buried in Emby Dark Themes in different accent colors custom css.
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...