TimePicker.less 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /* Time Picker
  2. *
  3. * Styling the Time Picker consists of the following:
  4. *
  5. * 1. minor time values
  6. * .dijitTimePickerTick - set text color, size, background color of minor values
  7. * .dijitTimePickerTickHover - set hover style of minor time values
  8. * dijitTimePickerTickSelected - set selected style of minor time values
  9. *
  10. * 2. major time values - 1:00, 2:00, times on the hour
  11. * set text color, size, background color, left/right margins for "zoom" affect
  12. * .dijitTimePickerMarkerHover - to set hover style of major time values
  13. * .dijitTimePickerMarkerSelected - set selected style of major time values
  14. *
  15. * 3. up and down arrow buttons
  16. * .dijitTimePicker .dijitButtonNode - background-color, border
  17. * .dijitTimePicker .dijitUpArrowHover, .dijitTimePicker .dijitDownArrowHover - set background-color for hover state
  18. *
  19. * Other classes provide the fundamental structure of the TimePicker and should not be modified.
  20. */
  21. @import "variables";
  22. /* override Button.css */
  23. .claro .dijitTimePicker .dijitButtonNode {
  24. padding: 0 0;
  25. .border-radius(0);
  26. }
  27. .claro .dijitTimePicker{
  28. border:1px @border-color solid;
  29. border-top:none;
  30. border-bottom:none;
  31. background-color:#fff; /* TODO: useless? Appears to be overridden by settings on individual elements */
  32. }
  33. .claro .dijitTimePickerItem{
  34. /* dijitTimePickerItem refers to both Tick's (minor values like 2:15, 2:30, 2:45) and Marker's (major values like 2PM, 3PM) */
  35. .standard-gradient;
  36. border-top:solid 1px @border-color;
  37. border-bottom:solid 1px @border-color;
  38. margin-right:-1px;
  39. margin-left:-1px;
  40. margin-top:-1px;
  41. }
  42. .claro .dijitTimePickerTick {
  43. /* minor value */
  44. color:@timepicker-minorvalue-text-color;
  45. background-color:@timepicker-minorvalue-background-color;
  46. font-size:0.818em;
  47. }
  48. .claro .dijitTimePickerMarker {
  49. /* major value - 1:00, 2:00, times on the hour */
  50. background-color: @timepicker-majorvalue-background-color;
  51. font-size: 1em;
  52. white-space: nowrap;
  53. }
  54. .claro .dijitTimePickerTickHover,
  55. .claro .dijitTimePickerMarkerHover,
  56. .claro .dijitTimePickerMarkerSelected,
  57. .claro .dijitTimePickerTickSelected {
  58. background-color: @timepicker-value-hovered-background-color;
  59. border:solid 1px @border-color;
  60. margin-left:-7px;
  61. margin-right:-7px;
  62. color:@timepicker-value-hovered-text-color;
  63. }
  64. .claro .dijitTimePickerMarkerSelected,
  65. .claro .dijitTimePickerTickSelected {
  66. font-size: 1em;
  67. }
  68. .dj_ie .claro .dijitTimePickerTickHover,
  69. .dj_ie .claro .dijitTimePickerMarkerHover,
  70. .dj_ie .claro .dijitTimePickerMarkerSelected,
  71. .dj_ie .claro .dijitTimePickerTickSelected {
  72. width: 114%;
  73. }
  74. .dj_ie6 .claro .dijitTimePickerTickHover,
  75. .dj_ie6 .claro .dijitTimePickerMarkerHover,
  76. .dj_ie6 .claro .dijitTimePickerMarkerSelected,
  77. .dj_ie6 .claro .dijitTimePickerTickSelected {
  78. position: relative; /* creates widening of element */
  79. zoom: 1; /* creates widening of element */
  80. }
  81. .claro .dijitTimePickerTick .dijitTimePickerItemInner {
  82. padding:1px;
  83. margin:0;
  84. }
  85. .claro .dijitTimePicker .dijitButtonNode {
  86. border-left:none;
  87. border-right:none;
  88. border-color:@border-color;
  89. background-color: @unselected-background-color;
  90. .standard-gradient;
  91. }
  92. .claro .dijitTimePicker .dijitArrowButtonInner{
  93. height: 100%; /* hack claro.button.css */
  94. background-image: url(@image-form-common-arrows);
  95. background-repeat: no-repeat;
  96. background-position:-140px 45%;
  97. }
  98. .claro .dijitTimePicker .dijitDownArrowButton .dijitArrowButtonInner{
  99. background-position:-35px 45%;
  100. }
  101. /* hover */
  102. .claro .dijitTimePicker .dijitUpArrowHover,
  103. .claro .dijitTimePicker .dijitDownArrowHover {
  104. background-color: @timepicker-arrow-hovered-background-color;
  105. }
  106. .claro .dijitTimePicker .dijitUpArrowHover .dijitArrowButtonInner {
  107. background-position:-175px 45%;
  108. }
  109. .claro .dijitTimePicker .dijitDownArrowHover .dijitArrowButtonInner {
  110. background-position:-70px 45%;
  111. }
  112. // TODO: should have active rule, for clicking a .dijitTimePickerItem