TitlePane.less 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* TitlePane
  2. *
  3. * Styling TitlePane means styling the TitlePane title and its content container (dijitTitlePane)
  4. *
  5. * TitlePane title:
  6. * 1. TitlePane title (default styling):
  7. * .dijitTitlePaneTitle - TitlePane's title div style: background-color, border
  8. *
  9. * 2. hovered TitlePane title (ie, mouse hover on a title bar)
  10. * .dijitTitlePaneTitleHover - styles when mouse hover on the title div
  11. *
  12. * 3. active TitlePane title (ie, mouse down on a title bar)
  13. * .dijitTitlePaneTitleActive - styles when mouse down on the title div
  14. *
  15. *
  16. * TitlePane Content Container:
  17. * 1. outer/inner container:
  18. * .dijitTitlePaneContentOuter / dijitTitlePaneContentInner - styles for the content outer div
  19. */
  20. @import "variables";
  21. .claro .dijitTitlePaneTitle {
  22. background-color: @unselected-background-color; // TODO: Mailed Jason, shouldn't this toggle to @selected-background-color when pane opened?
  23. background-image: url("images/titlebar.png");
  24. background-repeat:repeat-x;
  25. border:1px solid @border-color;
  26. padding: 0 7px 3px 7px;
  27. min-height:17px;
  28. }
  29. .dj_ie6 .claro .dijitTitlePaneTitle {
  30. background-image: none;
  31. }
  32. .claro .dijitTitlePaneTitleHover {
  33. background-color: @hovered-background-color;
  34. border-color: @hovered-border-color;
  35. }
  36. .claro .dijitTitlePaneTitleActive {
  37. background-color: @pressed-background-color;
  38. border-color: @pressed-border-color;
  39. background-position:0 -136px;
  40. }
  41. .claro .dijitTitlePaneTitleFocus {
  42. margin-top:3px;
  43. padding-bottom:2px;
  44. }
  45. .claro .dijitTitlePane .dijitArrowNode {
  46. background-image: url('images/spriteArrows.png');
  47. background-repeat: no-repeat;
  48. height: 8px;
  49. width: 7px;
  50. }
  51. .claro .dijitTitlePane .dijitOpen .dijitArrowNode {
  52. background-position: 0 0;
  53. }
  54. .claro .dijitTitlePane .dijitClosed .dijitArrowNode {
  55. background-position: -14px 0;
  56. }
  57. .claro .dijitTitlePaneFocused .dijitTitlePaneTextNode {
  58. color:@text-color; /* TODO: do we need this? we usually don't change text color on focus */
  59. }
  60. .claro .dijitTitlePaneContentOuter {
  61. background: @pane-background-color;
  62. border:1px solid @border-color;
  63. border-top:none;
  64. }
  65. .claro .dijitTitlePaneContentInner {
  66. padding:10px;
  67. }
  68. .claro .dijitTitlePaneTextNode {
  69. margin-left: 4px;
  70. margin-right: 4px;
  71. vertical-align:text-top;
  72. }