diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-11-08 14:25:10 (GMT) |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-11-08 14:25:10 (GMT) |
commit | 1c7e3475a0f66138e48b770ce82c74b960932d09 (patch) | |
tree | b56d97f74f4f0a16441c9353accde83784a3566b /lib/viewers/odf/editor/dijit/themes/claro/ColorPalette.less | |
parent | 7ecb80d380346e0204828d568834019c49c598a0 (diff) | |
download | kolab-chwala-1c7e3475a0f66138e48b770ce82c74b960932d09.tar.gz |
Integrated webodf editor
Diffstat (limited to 'lib/viewers/odf/editor/dijit/themes/claro/ColorPalette.less')
-rw-r--r-- | lib/viewers/odf/editor/dijit/themes/claro/ColorPalette.less | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/viewers/odf/editor/dijit/themes/claro/ColorPalette.less b/lib/viewers/odf/editor/dijit/themes/claro/ColorPalette.less new file mode 100644 index 0000000..ffa3ac0 --- /dev/null +++ b/lib/viewers/odf/editor/dijit/themes/claro/ColorPalette.less @@ -0,0 +1,44 @@ +/* ColorPalette + * + * Styling of the ColorPalette consists of the following: + * + * 1. the whole color palette + * .dijitColorPalette - for outline, border, and background color of the whole color palette + * Note: outline does not work for IE + * + * 2. the color swatch + * .dijitColorPalette .dijitPaletteImg + * transparent (but clickable) <img> node inside of each <td>, overlaying the color swatch. + * displays border around a color swatch + * + * 3. hovered swatch + * .dijitColorPalette .dijitPaletteCell:hover .dijitPaletteImg + * the hovered state of the color swatch - adds border + * + * 4. active and selected swatch + * .dijitColorPalette .dijitPaletteCell:active .dijitPaletteImg + * .dijitColorPalette .dijitPaletteCellSelected .dijitPaletteImg + * adds border for active or selected state + */ + +@import "variables"; + +.claro .dijitColorPalette { + border: 1px solid @border-color; + background: @colorpalette-background-color; + .border-radius(0); +} + +.claro .dijitColorPalette .dijitPaletteImg { + /* transparent (but clickable) <img> node inside of each <td>, overlaying the color swatch. + * displays border around a color swatch + * overrides border color in dijit.css */ + border: 1px solid @minor-border-color; +} +.claro .dijitColorPalette .dijitPaletteCell:hover .dijitPaletteImg { + border: 1px solid @swatch-hovered-border-color; +} +.claro .dijitColorPalette .dijitPaletteCell:active .dijitPaletteImg, +.claro .dijitColorPalette .dijitPaletteTable .dijitPaletteCellSelected .dijitPaletteImg { + border: 2px solid @swatch-selected-border-color; +} |