Jump to content

Lets see how much we can do with CSS, need some help


cd01

Recommended Posts

Hi,

 

I find it really difficult to edit emby with css but that being said i'm far from an css expert, i am limited in my knowledge when it comes to finding the right anchor, usually inspecting an element has done the trick for me when i've done smaller web development work but in emby none of the elements seem to be unique so it's difficult to point css to edit one particular element without messing up a lot of other stuff.

 

I am therefor reaching out for some help.

 

Here's what i want to do:

 

Completely hide favorites, playlists, add to collections, edit playlists and some other stuff:

 

All the red circled stuff i would like to hide using CSS, it this possible?

 

 

yQADpte.png

Link to comment
Share on other sites

  • 2 weeks later...
rechigo

Here is the code I wrote up quickly. This code will hide the Favorite and More buttons from the media pages, as well as Add to Collection, Playlist, and Edit Subtitles from the context menus: https://paste.memester.cf/obimetekec.css

 

I tried my best to make the selections as specific as possible to avoid having unintended side effects on other elements. I tested them and they seem to work without any clashes.

 

For the tab buttons, however, I'm not exactly sure how to do them without unintentionally hiding tabs on other pages as well. At first I thought it would be as simple as just making a CSS selection based on the data-index attribute on the tabs, however, I soon realized that tabs on other pages (e.x. Music, Movies) also have the same indexes, so those tabs would be unintentionally hidden. The only way I could think of doing this would be manually go into the Emby dashboard-ui code and remove those elements. 

  • Like 1
Link to comment
Share on other sites

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...