wangzuo / input-moment

React datetime picker powered by momentjs
https://wangzuo.github.io/input-moment
ISC License
527 stars 173 forks source link

how to get styles to work #58

Closed jeffwillette closed 7 years ago

jeffwillette commented 7 years ago

I got the main component working but I am having a hangup on getting the styling to work, I have imported the less file with

require('input-moment/src/less/input-moment.less')

in my main js file and then also imported the css from ionic in the html file...

<link rel="stylesheet" type="text/css" href="//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">

but I am seeing this when I try to follow the example...

screen shot 2017-04-11 at 8 34 42 pm

so I must be missing some crucial styling somewhere, do you have any idea where that would be?

pavanmehta91 commented 7 years ago

+1. getting the same issue with styles.

jeffwillette commented 7 years ago

@pavanmehta91 it was a mistake on my part with importing the styles. You should be importing the stylesheets from the dist folder instead of the .less. files...

import "input-moment/dist/input-moment.css";

this worked for me, I am new to react so I wasn't sure which sheets I should be importing. Hope it helps you!