Question / Help How to use file path in Custom CSS field (Browser Source)

Tearzz

New Member
So, I have a browser source that looks like this. I can't choose "Local file" since it's not a local file (duh). But I can't point the custom CSS field to a stylesheet which should be possible using:
CSS:
@import path/to/file.css;
but it doesn't change style. However, when I paste the code from the file into the custom CSS field it works, but the process becomes quite tedious in the long run.
So I have two questions.
  1. Is it possible to use a local stylesheet and point to it in the custom CSS field?
  2. Where does OBS check for stylesheets? What I mean by this is, when I type
    CSS:
    @import
    , where does it look / what directory am I currently in by default?

1546834387381.png
 

Osiris

Active Member
Couldn't test it before but this also works:

Code:
@import url("http://absolute/c:/path/to/file.css")
 

ManedCalico

New Member
Couldn't test it before but this also works:

Code:
@import url("http://absolute/c:/path/to/file.css")

Sorry to necro this post, but do you know if this still works in OBS 27.1.3?

The CSS works fine within the browser source, but OBS just completely ignores it when I try to offload it to a file with this method. I don't think I'm doing anything wrong, but I can't figure out why it's not working.
 
Top