8
8
// .element{
9
9
// @include arrow(top, #000, 50px);
10
10
// }
11
-
12
11
$arrow-size-border : 8px ;
13
12
$arrow-size : $arrow-size-border * 2 ;
14
13
$intro-element-z-index : 10000000 ;
15
14
$intro-backdrop-z-index : $intro-element-z-index - 100 ;
15
+ @mixin arrow ($direction , $color , $size ) {
16
+ display : block ;
17
+ height : 0 ;
18
+ width : 0 ;
16
19
17
- @mixin arrow ($direction , $color , $size ){
18
- display : block ;
19
- height : 0 ;
20
- width : 0 ;
21
-
22
- @if $direction == ' top' {
23
- border-left : $size solid transparent ;
24
- border-right : $size solid transparent ;
25
- border-bottom : $size solid $color ;
26
- } @else if $direction == ' right' {
27
- border-top : $size solid transparent ;
28
- border-bottom : $size solid transparent ;
29
- border-left : $size solid $color ;
30
- } @else if $direction == ' bottom' {
31
- border-top : $size solid $color ;
32
- border-right : $size solid transparent ;
33
- border-left : $size solid transparent ;
34
- } @else if $direction == ' left' {
35
- border-top : $size solid transparent ;
36
- border-right : $size solid $color ;
37
- border-bottom : $size solid transparent ;
38
- } @else if $direction == ' top-left' {
39
- border-top : $size solid $color ;
40
- border-right : $size solid transparent ;
41
- } @else if $direction == ' top-right' {
42
- border-top : $size solid $color ;
43
- border-left : $size solid transparent ;
44
- } @else if $direction == ' bottom-left' {
45
- border-bottom : $size solid $color ;
46
- border-right : $size solid transparent ;
47
- } @else if $direction == ' bottom-right' {
48
- border-bottom : $size solid $color ;
49
- border-left : $size solid transparent ;
50
- }
51
- }
20
+ @if $direction == ' top' {
21
+ border-left : $size solid transparent ;
22
+ border-right : $size solid transparent ;
23
+ border-bottom : $size solid $color ;
24
+ }
25
+
26
+ @else if $direction == ' right' {
27
+ border-top : $size solid transparent ;
28
+ border-bottom : $size solid transparent ;
29
+ border-left : $size solid $color ;
30
+ }
31
+
32
+ @else if $direction == ' bottom' {
33
+ border-top : $size solid $color ;
34
+ border-right : $size solid transparent ;
35
+ border-left : $size solid transparent ;
36
+ }
37
+
38
+ @else if $direction == ' left' {
39
+ border-top : $size solid transparent ;
40
+ border-right : $size solid $color ;
41
+ border-bottom : $size solid transparent ;
42
+ }
43
+
44
+ @else if $direction == ' top-left' {
45
+ border-top : $size solid $color ;
46
+ border-right : $size solid transparent ;
47
+ }
48
+
49
+ @else if $direction == ' top-right' {
50
+ border-top : $size solid $color ;
51
+ border-left : $size solid transparent ;
52
+ }
52
53
54
+ @else if $direction == ' bottom-left' {
55
+ border-bottom : $size solid $color ;
56
+ border-right : $size solid transparent ;
57
+ }
58
+
59
+ @else if $direction == ' bottom-right' {
60
+ border-bottom : $size solid $color ;
61
+ border-left : $size solid transparent ;
62
+ }
63
+ }
53
64
/* intro */
54
65
.intro-hint {
55
66
$hint-size : 52px ;
@@ -60,61 +71,63 @@ $intro-backdrop-z-index: $intro-element-z-index - 100;
60
71
pointer-events : none ;
61
72
position : absolute !important ;
62
73
}
74
+
63
75
.intro-tooltip {
64
76
position : absolute ;
65
- min-width : 400px ;
66
- min-height : 200px ;
67
- background : rgba (#5F2D4A , .8 );
68
- color : #FFF ;
69
- border : solid 2px blue ;
70
77
z-index : $intro-element-z-index ;
71
78
72
- .intro-tooltip-arrow {
79
+ .intro-tooltip-arrow {
73
80
display : block ;
74
81
position : absolute ;
75
82
}
76
83
77
84
.intro-tooltip-arrow {
78
- & [position = right ]{
79
- @include arrow (' left' , blue , $arrow-size-border );
85
+ & [position = right ] {
86
+ @include arrow ( ' left' , blue , $arrow-size-border );
80
87
}
81
- & [position = left ]{
82
- @include arrow (' right' , blue , $arrow-size-border );
88
+
89
+ & [position = left ] {
90
+ @include arrow ( ' right' , blue , $arrow-size-border );
83
91
}
84
- & [position = bottom ]{
85
- @include arrow (' top' , blue , $arrow-size-border );
92
+
93
+ & [position = bottom ] {
94
+ @include arrow ( ' top' , blue , $arrow-size-border );
86
95
}
87
- & [position = top ]{
88
- @include arrow (' bottom' , blue , $arrow-size-border );
96
+
97
+ & [position = top ] {
98
+ @include arrow ( ' bottom' , blue , $arrow-size-border );
89
99
top : 0 ;
90
100
}
91
101
}
92
102
}
103
+
93
104
.intro-element {
94
105
z-index : $intro-element-z-index !important ;
95
- box-shadow : 0 0 1px 1px red ;
96
106
opacity : 1 !important ;
107
+ background-color : #FFF ;
97
108
98
- & .intro-element-disabled {
109
+ & .intro-element-disabled {
99
110
pointer-events : none ;
100
- * {
111
+
112
+ * {
101
113
pointer-events : none ;
102
114
}
103
115
}
104
- & .intro-element-disabled :before {
116
+
117
+ & .intro-element-disabled :before {
105
118
content : ' ' ;
106
119
left : 0 ;
107
120
top : 0 ;
108
121
bottom : 0 ;
109
122
right : 0 ;
110
123
z-index : 1 ;
111
- background : rgba ( blue , 0.3 ) ;
124
+ background : transparent ;
112
125
width : 100% ;
113
126
height : 100% ;
114
127
position : absolute ;
115
128
}
116
129
117
- & .intro-element-relative {
130
+ & .intro-element-relative {
118
131
position : relative ;
119
132
}
120
133
}
@@ -136,8 +149,3 @@ $intro-backdrop-z-index: $intro-element-z-index - 100;
136
149
opacity : 1.0 !important ;
137
150
transform : none !important ;
138
151
}
139
-
140
- .intro-tooltip-content {
141
- height : 270px ;
142
- overflow : auto ;
143
- }
0 commit comments