summaryrefslogtreecommitdiff
path: root/lib/flat-ttrss/dijit/ColorPalette.styl
blob: 87f2806c506f8224c4bdb0ea515e01bb25a22ecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/* 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 'dijit_variables';

.{$theme-name} {

	.dijitColorPalette {
		border: 1px solid $colorpalette-border-color;
		background-color: $colorpalette-background-color;
		border-radius: $colorpalette-border-radius;

		.dijitPaletteTable {
			padding: $colorpalette-padding;
		}

		/* swatch */

		.dijitColorPaletteSwatch {
			height: $colorpalette-swatch-height;
			width: $colorpalette-swatch-width;
			border-radius:$colorpalette-swatch-radius;
		}

		.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 $colorpalette-swatch-border-color;
			line-height: normal;
		}

		.dijitPaletteCell:hover .dijitPaletteImg {
			border-color: $colorpalette-swatch-hover-border-color;
			box-shadow: $colorpalette-swatch-hover-box-shadow;
			border-radius: $colorpalette-swatch-radius;
			transform: scale(1.2);
		}

		.dijitPaletteCell:active .dijitPaletteImg,
		.dijitPaletteTable .dijitPaletteCellSelected .dijitPaletteImg {
			border: 1px solid $colorpalette-swatch-selected-border-color;
			box-shadow: $colorpalette-swatch-selected-box-shadow;
			border-radius: $colorpalette-swatch-radius;
			transform: scale(1.2);
		}
	}
	
}