forked from csswizardry/csswizardry.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_components.annotate.scss
More file actions
53 lines (45 loc) · 1.14 KB
/
Copy path_components.annotate.scss
File metadata and controls
53 lines (45 loc) · 1.14 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
/*------------------------------------*\
#ANNOTATE
\*------------------------------------*/
.annotate {
position: relative;
}
.annotate__image {
display: block;
border-radius: $brand-round;
}
.annotate__list {
list-style: none;
margin: 0;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.annotate__item {
position: absolute;
width: 5%;
height: 5%;
overflow: hidden;
white-space: nowrap;
text-indent: 100%;
cursor: help;
border-width: 2px;
border-style: solid;
border-color: transparent;
border-radius: $brand-round;
@include vendor(transition, 0.2s);
.annotate:hover & {
border-color: #ccc;
border-color: rgba(255, 255, 255, 0.5);
&:hover {
z-index: 1;
border-color: #fff;
}
}
}
.annotate__caption {
position: relative;
z-index: 1;
}