forked from pablof7z/chardin.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chardinjs.scss
108 lines (89 loc) · 1.72 KB
/
chardinjs.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
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
@mixin transition($property) {
-webkit-transition: $property;
-moz-transition: $property;
-ms-transition: $property;
-o-transition: $property;
transition: $property;
}
.chardinjs-overlay {
position: absolute;
z-index: 9999990;
background-color: #000;
opacity: 0.8;
width: 100%;
left: 0;
top: 0;
@include transition(all 0.3s ease-out);
}
.chardinjs-helper-layer {
position: absolute;
z-index: 9999998;
color: white;
@include transition(all 0.3s ease-out);
&.chardinjs-left {
border-left: solid 1px;
padding-left: 10px;
}
&.chardinjs-right {
border-right: solid 1px;
padding-right: 10px;
}
&.chardinjs-bottom {
border-bottom: solid 1px;
padding-bottom: 10px;
}
&.chardinjs-top {
border-top: solid 1px;
padding-top: 10px;
}
}
.chardinjs-tooltip {
position: absolute;
@include transition(opacity 0.1s ease-out);
max-width: 200px;
&.chardinjs-left {
margin-left: -75px;
padding-right: 10px;
}
&.chardinjs-right {
margin-right: -75px;
padding-left: 10px;
}
&.chardinjs-bottom {
margin-bottom: -30px;
padding-top: 10px;
}
&.chardinjs-top {
margin-top: -30px;
padding-bottom: 10px;
}
&.chardinjs-right:before, &.chardinjs-left:after, &.chardinjs-bottom:before, &.chardinjs-top:after {
content: ".";
display: inline-block;
background-color: white;
height: 1px;
overflow: hidden;
position: absolute;
}
&.chardinjs-right:before, &.chardinjs-left:after {
width: 50px;
top: 50%;
}
&.chardinjs-bottom:before, &.chardinjs-top:after {
width: 1px;
height: 30px;
left: 50%;
}
&.chardinjs-bottom:before {
top: -30px;
}
&.chardinjs-top:after {
bottom: -30px;
}
&.chardinjs-right:before {
left: -50px;
}
&.chardinjs-left:after {
right: -50px;
}
}