build3.less 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // Datepicker .less buildfile. Includes select mixins/variables from bootstrap
  2. // and imports the included datepicker.less to output a minimal datepicker.css
  3. //
  4. // Usage:
  5. // lessc build3.less datepicker.css
  6. //
  7. // Variables and mixins copied from Bootstrap 3.3.5
  8. // Variables
  9. @gray: lighten(#000, 33.5%); // #555
  10. @gray-light: lighten(#000, 46.7%); // #777
  11. @gray-lighter: lighten(#000, 93.5%); // #eee
  12. @brand-primary: darken(#428bca, 6.5%); // #337ab7
  13. @btn-primary-color: #fff;
  14. @btn-primary-bg: @brand-primary;
  15. @btn-primary-border: darken(@btn-primary-bg, 5%);
  16. @btn-link-disabled-color: @gray-light;
  17. @state-info-bg: #d9edf7;
  18. @line-height-base: 1.428571429; // 20/14
  19. @border-radius-base: 4px;
  20. @dropdown-bg: #fff;
  21. @dropdown-border: rgba(0,0,0,.15);
  22. // Mixins
  23. // Button variants
  24. .button-variant(@color; @background; @border) {
  25. color: @color;
  26. background-color: @background;
  27. border-color: @border;
  28. &:focus,
  29. &.focus {
  30. color: @color;
  31. background-color: darken(@background, 10%);
  32. border-color: darken(@border, 25%);
  33. }
  34. &:hover {
  35. color: @color;
  36. background-color: darken(@background, 10%);
  37. border-color: darken(@border, 12%);
  38. }
  39. &:active,
  40. &.active {
  41. color: @color;
  42. background-color: darken(@background, 10%);
  43. border-color: darken(@border, 12%);
  44. &:hover,
  45. &:focus,
  46. &.focus {
  47. color: @color;
  48. background-color: darken(@background, 17%);
  49. border-color: darken(@border, 25%);
  50. }
  51. }
  52. &.disabled,
  53. &[disabled],
  54. fieldset[disabled] & {
  55. &:hover,
  56. &:focus,
  57. &.focus {
  58. background-color: @background;
  59. border-color: @border;
  60. }
  61. }
  62. }
  63. @import "../less/datepicker3.less";