Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

Commit 3cc4ff8

Browse files
author
Gordon Koo
committed
add check for document.readyState, fallback for transparent borders
1 parent fd22841 commit 3cc4ff8

File tree

4 files changed

+40
-10
lines changed

4 files changed

+40
-10
lines changed

css/hopscotch.css

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/hopscotch.less

+7-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ div#hopscotch-bubble {
7474
}
7575

7676
&.up {
77-
top: (@arrowWidth + @bubbleBorderWidth) * (-1);
77+
top: 0 - @arrowWidth - @bubbleBorderWidth;
7878
left: @bubbleCornerRadius;
7979

8080
.hopscotch-bubble-arrow {
@@ -85,6 +85,7 @@ div#hopscotch-bubble {
8585
top: 0 - @arrowWidth + (@borderAngledWidth);
8686
}
8787
.hopscotch-bubble-arrow-border {
88+
border-bottom: @arrowWidth solid #000;
8889
border-bottom: @arrowWidth solid @borderColor;
8990
border-left: @arrowWidth solid transparent;
9091
border-right: @arrowWidth solid transparent;
@@ -102,6 +103,7 @@ div#hopscotch-bubble {
102103
top: 0 - @arrowWidth - (@borderAngledWidth);
103104
}
104105
.hopscotch-bubble-arrow-border {
106+
border-top: @arrowWidth solid #000;
105107
border-top: @arrowWidth solid @borderColor;
106108
border-left: @arrowWidth solid transparent;
107109
border-right: @arrowWidth solid transparent;
@@ -120,8 +122,9 @@ div#hopscotch-bubble {
120122
top: 0 - (2*@arrowWidth);
121123
}
122124
.hopscotch-bubble-arrow-border {
123-
border-bottom: @arrowWidth solid transparent;
125+
border-right: @arrowWidth solid #000;
124126
border-right: @arrowWidth solid @borderColor;
127+
border-bottom: @arrowWidth solid transparent;
125128
border-top: @arrowWidth solid transparent;
126129
}
127130
}
@@ -138,8 +141,9 @@ div#hopscotch-bubble {
138141
top: 0 - (2*@arrowWidth);
139142
}
140143
.hopscotch-bubble-arrow-border {
141-
border-bottom: @arrowWidth solid transparent;
144+
border-left: @arrowWidth solid #000;
142145
border-left: @arrowWidth solid @borderColor;
146+
border-bottom: @arrowWidth solid transparent;
143147
border-top: @arrowWidth solid transparent;
144148
}
145149
}

0 commit comments

Comments
 (0)