Skip to content

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

@ngekoding

Description

@ngekoding

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions