Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

[question] cannot get styling locally on calendar, timepicker popups #398

Closed
dukehoops-zz opened this issue Jan 29, 2014 · 12 comments
Closed

Comments

@dukehoops-zz
Copy link

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

@mgcrea
Copy link
Owner

mgcrea commented Jan 29, 2014

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.

@sche
Copy link

sche commented Mar 3, 2014

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

@asgeo1
Copy link

asgeo1 commented Mar 10, 2014

The styles work OK for me. Just make sure you add them to a SCSS / SASS file - it's not CSS.

@k-funk
Copy link
Contributor

k-funk commented Mar 11, 2014

Is this in the docs yet? Didn't see any custom css in there.

@loranger
Copy link

loranger commented Apr 2, 2014

I also miss this extra-styles stylesheet.
And CSS would really be better than pre-processored styles.

@cmplank
Copy link

cmplank commented Apr 3, 2014

I would really appreciate seeing this in the docs.

@nkpz
Copy link
Contributor

nkpz commented Apr 10, 2014

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;
}

@wigggins
Copy link

@nnjpp Thanks a ton for this. Needed it quick for a project and you just happened to have posted it 3 hours ago.

@phillycoder
Copy link

@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?

@mgcrea
Copy link
Owner

mgcrea commented Aug 2, 2014

Landed in a1720d5.

@mgcrea mgcrea closed this as completed Aug 2, 2014
@dara0418
Copy link

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.

@lock
Copy link

lock bot commented Jan 26, 2019

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.

@lock lock bot added the outdated label Jan 26, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests