-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
66 lines (54 loc) · 1.46 KB
/
style.css
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
.colorswatch {
display: inline-block;
vertical-align: top;
margin: 0.3rem;
/* sizes etc. as CSS variables */
--tiny-height: 1;
--tiny-width: 2;
--small-height: 4;
--small-width: 6;
--middle-height: 6;
--middle-width: 8;
--large-height: 8;
--large-width: 10;
--ratio: 0.66;
}
.colorswatch.colorswatch_tiny {
min-height: calc(var(--tiny-height) * 1rem);
min-width: calc(var(--tiny-width) * 1rem);
}
.colorswatch.colorswatch_tiny .colorswatch_swatch {
height: calc(var(--ratio) * var(--tiny-height) * 1rem);
}
.colorswatch.colorswatch_small {
min-height: calc(var(--small-height) * 1rem);
min-width: calc(var(--small-width) * 1rem);
}
.colorswatch.colorswatch_small .colorswatch_swatch {
height: calc(var(--ratio) * var(--small-height) * 1rem);
}
.colorswatch.colorswatch_middle {
min-height: calc(var(--middle-height) * 1rem);
min-width: calc(var(--middle-width) * 1rem);
}
.colorswatch.colorswatch_middle .colorswatch_swatch {
height: calc(var(--ratio) * var(--middle-height) * 1rem);
}
.colorswatch.colorswatch_large {
min-height: calc(var(--large-height) * 1rem);
min-width: calc(var(--large-width) * 1rem);
}
.colorswatch.colorswatch_large .colorswatch_swatch {
height: calc(var(--ratio) * var(--large-height) * 1rem);
}
.colorswatch .colorswatch_swatch {
width: 100%;
border-radius: 0.3rem;
}
.colorswatch .colorswatch_info {
width: 100%;
height: 34%;
font-size: 85%;
text-align: center;
padding: 0.3rem 0 0;
}