[question] cannot get styling locally on calendar, timepicker popups
After following quick start steps in docs (as well as adding Font Awesome) I cannot get proper styling to appear on timepicker and calendar popups. Instead day and hour/min selectors render as bordered buttons. Which CSS file (or JS?) - though it does work correctly on plunker demos. need help tracking down what's missing. which css/js file(s) are responsible for this styling?
thank you, -nikita
Some CSS style is required for your date pickers to look like the docs:
.datepicker.dropdown-menu {
width: 250px;
height: 250px;
button {
outline: none;
border: 0px;
}
tbody {
height: 180px;
}
tbody button {
padding: 6px;
}
&.datepicker-mode-1, &.datepicker-mode-2 {
tbody button {
height: 65px;
}
}
}
.timepicker.dropdown-menu {
padding: 0 4px;
button {
outline: none;
border: 0px;
}
tbody button {
padding: 6px;
}
}
I'll add it to the docs.
Hi, After adding these styles my datepicker/timepicker still has borders and doesn't look like in examples page. I try v2.0.0-rc.3
The styles work OK for me. Just make sure you add them to a SCSS / SASS file - it's not CSS.
Is this in the docs yet? Didn't see any custom css in there.
I also miss this extra-styles stylesheet. And CSS would really be better than pre-processored styles.
I would really appreciate seeing this in the docs.
Here's the compiled scss for those wanting pure css:
.datepicker.dropdown-menu {
width: 250px;
height: 250px;
}
.datepicker.dropdown-menu button {
outline: none;
border: 0px;
}
.datepicker.dropdown-menu tbody {
height: 180px;
}
.datepicker.dropdown-menu tbody button {
padding: 6px;
}
.datepicker.dropdown-menu.datepicker-mode-1 tbody button, .datepicker.dropdown-menu.datepicker-mode-2 tbody button {
height: 65px;
}
.timepicker.dropdown-menu {
padding: 0 4px;
}
.timepicker.dropdown-menu button {
outline: none;
border: 0px;
}
.timepicker.dropdown-menu tbody button {
padding: 6px;
}
@nnjpp Thanks a ton for this. Needed it quick for a project and you just happened to have posted it 3 hours ago.
@nnjpp css works fine, but still current date is not highlighted . Even in the demo site it's not highlighted, is there a option i am missing?
Landed in a1720d54be5e5fcf8abea6b2e1f55b7b95c8b08a.
Well this style never work for me. The datepicker keeps the default style, don't know why. I've imported my less file to the index page.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.