KingSora / OverlayScrollbars

A javascript scrollbar plugin that hides the native scrollbars, provides custom styleable overlay scrollbars, and preserves the native functionality and feel.
https://kingsora.github.io/OverlayScrollbars
MIT License
3.9k stars 215 forks source link

Can you provide the. scss format for the style #623

Closed ajiho closed 7 months ago

ajiho commented 7 months ago

As the title suggests, thank you again for this great library

KingSora commented 7 months ago

Good day @ajiho :)

What benefit would that bring to you? - I believe I'm not really using any scss feature which could be useful for consumers

ajiho commented 7 months ago

Because I am not the ultimate consumer

I also have an open-source JavaScript project, and I would like to directly include your style in my final generated style instead of introducing it as an external style sheet

Just like how I introduced the scss tool provided by bootstrap, it directly includes your style

my.scss

@import '../../node_modules/bootstrap/scss/functions';
@import '../../node_modules/bootstrap/scss/variables';
@import '../../node_modules/bootstrap/scss/variables-dark';
@import '../../node_modules/bootstrap/scss/mixins';

// I hope to import directly through this method
@import "../../node_modules/overlayscrollbars/styles/scss/overlayscrollbars";

Although I can directly copy and rename node.modules/overlay scrollbars/styles/overlay scrollbars. css, it seems cumbersome

KingSora commented 7 months ago

@ajiho I see.. if you just want to import the styles, the file doesn't have to be a scss or sass file - css should work as well. https://sass-lang.com/documentation/at-rules/import/#finding-the-file

Importing css has its own section in the docs as well: https://sass-lang.com/documentation/at-rules/import/#importing-css

KingSora commented 7 months ago

@ajiho did my previous reply solve the issue or do you still need the .scss file? If yes, please explain why :)

ajiho commented 7 months ago

@ajiho did my previous reply solve the issue or do you still need the .scss file? If yes, please explain why :)

I only started reviewing this issue today. Yes, your answer has already solved the problem. Sass can directly process. css files. Lastly, your library is really great