forked from scala/docs.scala-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarker.scss
executable file
·64 lines (56 loc) · 1.23 KB
/
marker.scss
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
// MARKER
//------------------------------------------------
//------------------------------------------------
.marker {
position: absolute;
width: 16px;
height: 8px;
background: #A4302E;
left: 0px;
top: 0px;
border-radius: 100%;
cursor: pointer;
@include bp(xxlarge) {
display: none;
}
&:hover {
.info-marker,
.arrow {
visibility: visible;
opacity: 1;
transition: $base-transition;
}
}
&:before {
content: "";
position: absolute;
background: rgba(#A4302E, 0.3);
left: -8px;
top: -4px;
width: 32px;
height: 16px;
border-radius: 100%;
z-index: 1;
}
.info-marker {
width: 472px;
position: absolute;
left: -13px;
top: 30px;
font-size: $font-size-small;
color: #fff;
font-family: $heading-font-family;
background: rgba($gray-dark, 0.8);
padding: 20px;
visibility: hidden;
opacity: 0;
.arrow {
position: absolute;
left: 0;
top: -16px;
width: 23px;
height: 13px;
z-index: 1;
}
}
}