build_standalone3.less 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Datepicker standalone .less buildfile. Includes all necessary mixins/variables/rules from bootstrap
  2. // and imports the included datepicker.less to output a minimal standalone datepicker.css
  3. //
  4. // Usage:
  5. // lessc build_standalone3.less datepicker.css
  6. //
  7. // Variables, mixins, and rules copied from Bootstrap 3.3.5
  8. @import "build3.less";
  9. // Dropdown css
  10. @zindex-dropdown: 1000;
  11. @dropdown-fallback-border: #ccc;
  12. // Drop shadows
  13. .box-shadow(@shadow) {
  14. -webkit-box-shadow: @shadow;
  15. -moz-box-shadow: @shadow;
  16. box-shadow: @shadow;
  17. }
  18. // The dropdown menu (ul)
  19. // ----------------------
  20. .datepicker {
  21. &.dropdown-menu {
  22. position: absolute;
  23. top: 100%;
  24. left: 0;
  25. z-index: @zindex-dropdown;
  26. display: none; // none by default, but block on "open" of the menu
  27. float: left;
  28. min-width: 160px;
  29. list-style: none;
  30. background-color: @dropdown-bg;
  31. border: 1px solid @dropdown-fallback-border; // IE8 fallback
  32. border: 1px solid @dropdown-border;
  33. border-radius: @border-radius-base;
  34. .box-shadow(0 6px 12px rgba(0,0,0,.175));
  35. -webkit-background-clip: padding-box;
  36. -moz-background-clip: padding;
  37. background-clip: padding-box;
  38. // Normally inherited from bootstrap's `body`
  39. color: #333333;
  40. font-size: 13px;
  41. line-height: @line-height-base;
  42. }
  43. &.dropdown-menu, &.datepicker-inline {
  44. th, td {
  45. padding: 0px 5px;
  46. }
  47. }
  48. }