Any way to link to a Stylesheet to another?
Is there any way to link Stylesheets to one another? I'm doing a big project and I like being really neat and it would be very useful if I could just link multiple style sheets all into one. I do use comments, but it's not enough. I've only a header and nav menu for this website and already have 300+ lines JUST FROM THOSE and I'm not even done with them yet. It's really hard to look for something also while looking through all of it.
Comments
No @import directives. If an @import is done to a slow-loading server, it will cause browser hangs.
http://forum.userstyles.org/discussion/comment/59411#Comment_59411
It's been discussed before, the policy won't change.
Is there any way to @import a local stylesheet? I've tried @import 'user.css'; which is the Stylish name of the css, to no avail.
I've also tried url("file:///C:\Users\Paul_2\AppData\Roaming\Opera\Opera\styles\user\_user dark.css"), which points to another css on the local machine, to no avail.
In both cases it was the first line of the css.
Thanks.
@import url(file:///C:/Users/Paul_2/Desktop/drudge.css) ;
I thought it was maybe because the target was an Opera css rather than mozilla, but I copied a file off userstyles.org and it doesn't work either. So neither external file or internal Stylish imports are working.
BTW, I'm setting the site specs of the css I want to import to NULL, assuming that the site specs of the controlling css will override it.
https://github.com/JasonBarnabe/stylish/issues/29 (first sentence) -- says nothing about whether "slimjet" would also work however
When you don't know what you're talking about, stop talking and listen until you learn something worth saying.
Webkit-ty Stylish adds elements to the webpage; the website is the security principal for loading subdocuments like stylesheets and images. Unless that top-level document was loaded from a file: URL, your Stylish stylesheet (and any stylesheets it @imports) won't have access to the filesystem. Firefox-y Stylish passes stylesheets to the browser and the browser itself applies the styles as needed without changing the page's DOM; file: origins are OK because the browser, not the web page, is the security principal.
You can work around the restriction by "hosting" your stylesheets in an otherwise empty extension, and retrieving them with chrome: URLs. This is no longer practical in Chrome - Google has made it ridiculously difficult to use your own private extensions in Chrome - but it's still feasible in Opera.
https://forum.userstyles.org/discussion/34792/how-to-use-local-image#Item_5
Now that I've corrected you--again, I'll return to ignoring you completely.
Earl