ColorPalette.less 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* ColorPalette
  2. *
  3. * Styling of the ColorPalette consists of the following:
  4. *
  5. * 1. the whole color palette
  6. * .dijitColorPalette - for outline, border, and background color of the whole color palette
  7. * Note: outline does not work for IE
  8. *
  9. * 2. the color swatch
  10. * .dijitColorPalette .dijitPaletteImg
  11. * transparent (but clickable) <img> node inside of each <td>, overlaying the color swatch.
  12. * displays border around a color swatch
  13. *
  14. * 3. hovered swatch
  15. * .dijitColorPalette .dijitPaletteCell:hover .dijitPaletteImg
  16. * the hovered state of the color swatch - adds border
  17. *
  18. * 4. active and selected swatch
  19. * .dijitColorPalette .dijitPaletteCell:active .dijitPaletteImg
  20. * .dijitColorPalette .dijitPaletteCellSelected .dijitPaletteImg
  21. * adds border for active or selected state
  22. */
  23. @import "variables";
  24. .claro .dijitColorPalette {
  25. border: 1px solid @border-color;
  26. background: @colorpalette-background-color;
  27. .border-radius(0);
  28. }
  29. .claro .dijitColorPalette .dijitPaletteImg {
  30. /* transparent (but clickable) <img> node inside of each <td>, overlaying the color swatch.
  31. * displays border around a color swatch
  32. * overrides border color in dijit.css */
  33. border: 1px solid @minor-border-color;
  34. }
  35. .claro .dijitColorPalette .dijitPaletteCell:hover .dijitPaletteImg {
  36. border: 1px solid @swatch-hovered-border-color;
  37. }
  38. .claro .dijitColorPalette .dijitPaletteCell:active .dijitPaletteImg,
  39. .claro .dijitColorPalette .dijitPaletteTable .dijitPaletteCellSelected .dijitPaletteImg {
  40. border: 2px solid @swatch-selected-border-color;
  41. }