forked from jdan/tota11y
/
style.less
74 lines (63 loc) · 1.32 KB
/
style.less
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
70
71
72
73
74
.tota11y-swatches {
margin-left: 5px;
margin-right: 5px;
position: relative;
top: 1px;
}
.tota11y-swatch {
@size: 12px;
border: 1px solid #000;
display: inline-block;
height: @size;
width: @size;
}
.tota11y-contrast-suggestion {
margin: 0 0 15px 15px;
}
.tota11y-color-hexes {
font-family: monospace;
}
.tota11y-blindness {
width: 11px !important;
height: 11px !important;
display: inline-block;
> .tota11y-cone {
border-radius: 50%;
width: 5px !important;
height: 5px !important;
position: relative;
border: 1px solid rgba(0, 0, 0, 0.5);
}
> .tota11y-short {
background-color: #00F;
left: 0px;
top: 0px;
}
> .tota11y-medium {
background-color: #0F0;
margin-top: -5px;
left: 3px;
top: 5px;
}
> .tota11y-long {
background-color: #F00;
margin-top: -5px;
top: 0px;
left: 6px;
}
&.tota11y-protanopia {
> .tota11y-long {
background-color: transparent;
}
}
&.tota11y-deuteranopia {
> .tota11y-medium {
background-color: transparent;
}
}
&.tota11y-tritanopia {
> .tota11y-short {
background-color: transparent;
}
}
}