Jellyfin Forum
Remove/unset inline styles in a theme - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Themes & Styles (https://forum.jellyfin.org/f-themes-styles)
+--- Thread: Remove/unset inline styles in a theme (/t-remove-unset-inline-styles-in-a-theme)



Remove/unset inline styles in a theme - User 3181 - 2023-10-27

Is there a way to prevent all or some of the automatically loaded inline styles from loading altogether rather than having to juggle 200 custom styles just to reset and unset them?

For example these:

@media(min-width:35em) {
  .overflowSquareCard {
    width:31.2vw
  }
  .overflowBackdropCard {
    width:45.5vw
  }
  .overflowSmallBackdropCard {
    width:30vw
  }
}
@media(min-width:43.75em) {
  .overflowPortraitCard,
  .overflowSquareCard {
    width:23.1vw
  }
}
@media(min-width:48.125em) {
  .overflowBackdropCard,
  .overflowSmallBackdropCard {
    width:30vw
  }
}
@media(orientation:landscape) {
  .overflowBackdropCard,
  .overflowSmallBackdropCard {
    width:30vw
  }
  .overflowPortraitCard,
  .overflowSquareCard {
    width:23.1vw
  }
}
@media(orientation:landscape)and (min-width:48.125em) {
  .overflowBackdropCard,
  .overflowSmallBackdropCard {
    width:23.1vw
  }
}
@media(orientation:landscape)and (min-width:50em) {
  .overflowSmallBackdropCard {
    width:15.5vw
  }
}
@media(min-width:50em) {
  .overflowPortraitCard,
  .overflowSquareCard {
    width:18.5vw
  }
}
@media(min-width:75em) {
  .overflowBackdropCard,
  .overflowSmallBackdropCard {
    width:23.1vw
  }
  .overflowPortraitCard,
  .overflowSquareCard {
    width:15.5vw
  }
}
@media(min-width:87.5em) {
  .overflowPortraitCard,
  .overflowSquareCard {
    width:13.3vw
  }
}


RE: Remove/unset inline styles in a theme - User 3181 - 2023-10-27

Update, I think it is this file, can I control it's inclusion somehow: https://github.com/jellyfin/jellyfin-web/blob/master/src/components/cardbuilder/card.scss


RE: Remove/unset inline styles in a theme - niels - 2023-10-27

No you cannot remove the standard CSS from the web client.


RE: Remove/unset inline styles in a theme - User 3181 - 2023-10-27

Is there a documentation available on what can be avoided?