| 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 |
|
| 24 |
@import 'dijit_variables'; |
| 25 |
|
| 26 |
.{$theme-name} { |
| 27 |
|
| 28 |
.dijitColorPalette { |
| 29 |
border: 1px solid $colorpalette-border-color; |
| 30 |
background-color: $colorpalette-background-color; |
| 31 |
border-radius: $colorpalette-border-radius; |
| 32 |
|
| 33 |
.dijitPaletteTable { |
| 34 |
padding: $colorpalette-padding; |
| 35 |
} |
| 36 |
|
| 37 |
/* swatch */ |
| 38 |
|
| 39 |
.dijitColorPaletteSwatch { |
| 40 |
height: $colorpalette-swatch-height; |
| 41 |
width: $colorpalette-swatch-width; |
| 42 |
border-radius:$colorpalette-swatch-radius; |
| 43 |
} |
| 44 |
|
| 45 |
.dijitPaletteImg { |
| 46 |
/* transparent (but clickable) <img> node inside of each <td>, overlaying the color swatch. |
| 47 |
* displays border around a color swatch |
| 48 |
* overrides border color in dijit.css */ |
| 49 |
border: 1px solid $colorpalette-swatch-border-color; |
| 50 |
line-height: normal; |
| 51 |
} |
| 52 |
|
| 53 |
.dijitPaletteCell:hover .dijitPaletteImg { |
| 54 |
border-color: $colorpalette-swatch-hover-border-color; |
| 55 |
box-shadow: $colorpalette-swatch-hover-box-shadow; |
| 56 |
border-radius: $colorpalette-swatch-radius; |
| 57 |
transform: scale(1.2); |
| 58 |
} |
| 59 |
|
| 60 |
.dijitPaletteCell:active .dijitPaletteImg, |
| 61 |
.dijitPaletteTable .dijitPaletteCellSelected .dijitPaletteImg { |
| 62 |
border: 1px solid $colorpalette-swatch-selected-border-color; |
| 63 |
box-shadow: $colorpalette-swatch-selected-box-shadow; |
| 64 |
border-radius: $colorpalette-swatch-radius; |
| 65 |
transform: scale(1.2); |
| 66 |
} |
| 67 |
} |
| 68 |
|
| 69 |
} |