Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make the style (css) works? #2

Open
ngekoding opened this issue Nov 24, 2022 · 0 comments
Open

How to make the style (css) works? #2

ngekoding opened this issue Nov 24, 2022 · 0 comments

Comments

@ngekoding
Copy link

Hi, thanks for this awesome fork.
I go here after found your issue here mariomka/vue-datetime#265

I already use original version of vue-datetime, and want to change it with yours.

So I just run:

npm i https://github.com/tripflex/vue-datetime

And comment the css import.

import Vue from "vue";

import DateTime from "vue-datetime/src";

// Just comment, because the style included in the vue file
// import "vue-datetime/dist/vue-datetime.css";

Vue.use(DateTime);

But I got the css styles not working because the nested style, it is not configured with scss, so maybe the bundler can't resolve it?

Here is the result with error css:

CSS Not Working

And found it just use <style> without <style lang="scss">
https://github.com/tripflex/vue-datetime/blob/v1.x/src/DatetimeCalendar.vue#L117

How to solve this?
Or must I fork and change it myself?

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant