-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathstyle.scss
More file actions
87 lines (75 loc) · 1.51 KB
/
style.scss
File metadata and controls
87 lines (75 loc) · 1.51 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
// TODO: these are global vars in Forced Migration,
// should they be global for @panorama?
$colorLighterGreen: #E9EDEC;
$colorLightGrey: #b3b3b3;
$bulletSize: 10px;
$bulletBorder: 1px;
$colorBlack: rgb(0, 0, 0);
$colorGreen: rgb(146, 131, 106);
$colorKhaki: rgb(118, 138, 102);
.panorama.legend {
position: relative;
width: auto;
display: inline-block;
zoom: 1;
ul {
margin: 0;
padding: 0;
li {
position: relative;
opacity: 0.5;
margin: 0;
margin-bottom: 0;
cursor: pointer;
list-style-type: none;
background-color: $colorLighterGreen;
border-radius: 4px;
border: 1px solid $colorLightGrey;
border-bottom: 0;
padding: 5px;
padding-left: 22px;
&:last-child {
border-bottom: 1px solid $colorLightGrey;
}
&.selected {
opacity: 1.0;
}
span {
&:before {
display: inline-block;
position: absolute;
left: calc(0.5 * #{$bulletSize});
content: "";
border: solid #{$bulletBorder} black;
width: $bulletSize;
height: $bulletSize;
top: calc(50% - 0.5 * #{$bulletSize + 2*$bulletBorder});
}
}
&:nth-child(1) {
span {
&:before {
border-radius: 100%;
background-color: $colorBlack;
}
}
}
&:nth-child(2) {
span {
&:before {
border-color: $colorGreen;
background-color: rgba($colorGreen, 0.7);
}
}
}
&:nth-child(3) {
span {
&:before {
border-color: $colorKhaki;
background-color: rgba($colorKhaki, 0.7);
}
}
}
}
}
}