angular-strap icon indicating copy to clipboard operation
angular-strap copied to clipboard

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

Open dukehoops-zz opened this issue 12 years ago • 12 comments

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

dukehoops-zz avatar Jan 29 '14 15:01 dukehoops-zz

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.

mgcrea avatar Jan 29 '14 22:01 mgcrea

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

sche avatar Mar 03 '14 10:03 sche

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

asgeo1 avatar Mar 10 '14 12:03 asgeo1

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

k-funk avatar Mar 11 '14 23:03 k-funk

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

loranger avatar Apr 02 '14 19:04 loranger

I would really appreciate seeing this in the docs.

cmplank avatar Apr 03 '14 20:04 cmplank

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

nkpz avatar Apr 10 '14 14:04 nkpz

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

wigggins avatar Apr 10 '14 17:04 wigggins

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

phillycoder avatar Apr 25 '14 20:04 phillycoder

Landed in a1720d54be5e5fcf8abea6b2e1f55b7b95c8b08a.

mgcrea avatar Aug 02 '14 09:08 mgcrea

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.

dara0418 avatar May 30 '15 01:05 dara0418

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[bot] avatar Jan 26 '19 04:01 lock[bot]