forked from iamdanfox/anno.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanno.css
155 lines (155 loc) · 3.89 KB
/
anno.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/* Anno.js version 1.1.2 */
.anno {
position: absolute;
padding: 15px;
z-index: 5000;
width: 300px;
cursor: default;
text-transform: none;
text-align: left;
line-height: 0.9em;
-webkit-transition: all 300ms cubic-bezier(0.68, 0, 0.265, 1);
-moz-transition: all 300ms cubic-bezier(0.68, 0, 0.265, 1);
-ms-transition: all 300ms cubic-bezier(0.68, 0, 0.265, 1);
-o-transition: all 300ms cubic-bezier(0.68, 0, 0.265, 1);
transition: all 300ms cubic-bezier(0.68, 0, 0.265, 1);
}
.anno .anno-inner {
position: relative;
background: #ffffff;
-webkit-box-shadow: 0 5px 20px 0px rgba(0, 0, 0, 0.35);
}
.anno .anno-inner .anno-content {
padding: 15px 20px;
font-family: sans-serif;
font-weight: normal;
font-size: 15px;
color: #56565a;
}
.anno .anno-inner .anno-btn-container {
text-align: right;
}
.anno .anno-inner .anno-btn-container .anno-btn {
margin: 0 20px 15px -10px;
padding: 7px 14px;
height: auto;
width: auto;
background: #11a2dc;
border: none;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
-ms-border-radius: 0px;
-o-border-radius: 0px;
border-radius: 0px;
font-family: sans-serif;
font-weight: bold;
font-size: 12px;
color: #ffffff;
-webkit-transition: all 200ms cubic-bezier(0.68, 0, 0.265, 1);
-moz-transition: all 200ms cubic-bezier(0.68, 0, 0.265, 1);
-ms-transition: all 200ms cubic-bezier(0.68, 0, 0.265, 1);
-o-transition: all 200ms cubic-bezier(0.68, 0, 0.265, 1);
transition: all 200ms cubic-bezier(0.68, 0, 0.265, 1);
}
.anno .anno-inner .anno-btn-container .anno-btn.anno-btn-low-importance {
background: none;
color: #bbbbbd;
}
.anno .anno-inner .anno-btn-container .anno-btn.anno-btn-low-importance:hover {
color: #78787b;
}
.anno .anno-arrow {
position: absolute;
border: 8px solid #ffffff;
}
.anno.anno-target-center-bottom .anno-arrow,
.anno.anno-target-bottom .anno-arrow {
top: 100%;
left: 20px;
border-bottom: none;
border-color: #ffffff transparent;
}
.anno.anno-target-center-bottom.anno-hidden,
.anno.anno-target-bottom.anno-hidden {
margin-top: -20px;
}
.anno.anno-target-center-left .anno-arrow,
.anno.anno-target-left .anno-arrow {
right: 100%;
top: 15px;
border-left: none;
border-color: transparent #ffffff;
}
.anno.anno-target-center-left.anno-hidden,
.anno.anno-target-left.anno-hidden {
margin-left: 20px;
}
.anno.anno-target-center-top .anno-arrow,
.anno.anno-target-top .anno-arrow {
bottom: 100%;
left: 20px;
border-top: none;
border-color: #ffffff transparent;
}
.anno.anno-target-center-top.anno-hidden,
.anno.anno-target-top.anno-hidden {
margin-top: 20px;
}
.anno.anno-target-center-right .anno-arrow,
.anno.anno-target-right .anno-arrow {
left: 100%;
top: 15px;
border-right: none;
border-color: transparent #ffffff;
}
.anno.anno-target-center-right.anno-hidden,
.anno.anno-target-right.anno-hidden {
margin-left: -20px;
}
.anno.anno-target-center-left .anno-arrow,
.anno.anno-target-center-right .anno-arrow {
top: 50%;
margin-top: -8px;
}
.anno.anno-target-center-bottom .anno-arrow,
.anno.anno-target-center-top .anno-arrow {
left: 50%;
margin-left: -8px;
}
.anno.anno-hidden {
opacity: 0;
}
.anno.anno-width-250 {
width: 250px;
}
.anno.anno-width-200 {
width: 200px;
}
.anno.anno-width-175 {
width: 175px;
}
.anno.anno-width-150 {
width: 150px;
}
.anno-overlay {
position: fixed;
z-index: 1000;
height: 100%;
width: 100%;
top: 0;
left: 0;
/*pointer-events:none; // allows clickthrough*/
background: rgba(0, 0, 0, 0.7);
-webkit-transition: all 300ms cubic-bezier(0.68, 0, 0.265, 1);
-moz-transition: all 300ms cubic-bezier(0.68, 0, 0.265, 1);
-ms-transition: all 300ms cubic-bezier(0.68, 0, 0.265, 1);
-o-transition: all 300ms cubic-bezier(0.68, 0, 0.265, 1);
transition: all 300ms cubic-bezier(0.68, 0, 0.265, 1);
}
.anno-overlay.anno-hidden {
pointer-events: none;
opacity: 0;
}
.anno-emphasise-target {
z-index: 1001 !important !important;
}