fingerpich / jalali-angular-datepicker

Highly configurable jalali (shamsi, khorshidi, persian) date picker built for Angular ( 2 or more ) applications
https://fingerpich.github.io/jalali-angular-datepicker/
MIT License
152 stars 60 forks source link

need to change the styles for the input field how and where i can do that? #119

Closed sakenk closed 4 years ago

sakenk commented 4 years ago

can i do that?

mm580486 commented 4 years ago

you can applying the ::ng-deep( or /deep/ depends your angular version) pseudo-class to any css code , when u using this combinator u can access every element in your page or other component So then u most use some code like this

# Angular 9
::ng-deep .dp-picker-input {
   color: #fuckingred;
}
# Angular 2 ~ 8
/deep/ .dp-picker-input {
   color: #fuckingred;
}

also u can write your custome style in ./project_path/src/styles.(s)css It depends on yourself 😉