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

Commit

Permalink
CSS touch-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Koo committed Mar 1, 2013
1 parent bb27668 commit 71393d3
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion js/hopscotch-0.0.4.js
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@
utils.invokeCallbacks('error', [currTour.id, currStepNum]);
return this.endTour(true, false);
}
changeStepCb(currStepNum);
changeStepCb.call(this, currStepNum);
}

return this;
Expand Down
File renamed without changes.
38 changes: 21 additions & 17 deletions css/hopscotch.less → less/hopscotch.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ div.hopscotch-bubble {
background-color: @bubbleColor;
border: @bubbleBorderWidth solid #000; /* default */
border: @bubbleBorderWidth solid @borderColor; /* transparent, if supported */
color: #000;
color: #333;
font-family: @bubbleFontFamily;
font-size: 13px;
position: absolute;
Expand Down Expand Up @@ -46,15 +46,18 @@ div.hopscotch-bubble {
display: none;
}

h3,
#hopscotch-bubble-number {
font-size: 18px;
.hopscotch-bubble-number {
font-size: 17px;
font-weight: bold;
}

h3 {
color: #000;
font-family: @bubbleFontFamily;
font-size: 16px;
font-weight: bold;
margin: 0 @bubblePadding 0 0;
line-height: 19px;
margin: -1px @bubblePadding 0 0;
padding: 0;
}

Expand All @@ -66,8 +69,8 @@ div.hopscotch-bubble {
p {
font-family: @bubbleFontFamily;
line-height: 17px;
margin: 10px 0;
padding: 0;
margin: -5px 0 11px;
padding-top: 8px;
}
}

Expand All @@ -83,13 +86,13 @@ div.hopscotch-bubble {
color: #000;
background: transparent @spriteUrl -200px -100px no-repeat;
display: block;
margin: @bubblePadding 10px 0 0;
margin: 8px 8px 0 0;
position: absolute;
text-decoration: none;
text-indent: -9999px;

width: 10px;
height: 10px;
width: 8px;
height: 8px;

top: 0;
right: 0;
Expand All @@ -101,19 +104,20 @@ div.hopscotch-bubble {
}

.hopscotch-bubble-number {
background: transparent @spriteUrl 0 0 no-repeat;
background: transparent @spriteUrl 3px 0 no-repeat;
color: #fff;
display: block;
float: left;
line-height: @circleWidth + 3px;
margin: 0 10px 0 0;
margin-left: -4px;
padding: 0 10px 0 4px;
text-align: center;
width: @circleWidth;
height: @circleWidth;
}

.hopscotch-bubble-arrow-container {
@arrowWidth: 20px;
@arrowWidth: 17px;
position: absolute;

width: @arrowWidth*2;
Expand All @@ -134,7 +138,7 @@ div.hopscotch-bubble {
border-left: @arrowWidth solid transparent;
border-right: @arrowWidth solid transparent;
position: relative;
top: 0 - @arrowWidth + 10px;
top: 0 - @arrowWidth + @bubbleBorderWidth + 2;
}
.hopscotch-bubble-arrow-border {
border-bottom: @arrowWidth solid #000;
Expand All @@ -152,7 +156,7 @@ div.hopscotch-bubble {
border-left: @arrowWidth solid transparent;
border-right: @arrowWidth solid transparent;
position: relative;
top: 0 - @arrowWidth - 10px;
top: 0 - @arrowWidth - @bubbleBorderWidth - 2;
}
.hopscotch-bubble-arrow-border {
border-top: @arrowWidth solid #000;
Expand All @@ -170,7 +174,7 @@ div.hopscotch-bubble {
border-right: @arrowWidth solid @bubbleColor;
border-top: @arrowWidth solid transparent;
position: relative;
left: 9px;
left: @bubbleBorderWidth + 2;
top: 0 - (2*@arrowWidth);
}
.hopscotch-bubble-arrow-border {
Expand All @@ -189,7 +193,7 @@ div.hopscotch-bubble {
border-left: @arrowWidth solid @bubbleColor;
border-top: @arrowWidth solid transparent;
position: relative;
left: 0 - @arrowWidth + 11px;
left: 0 - @bubbleBorderWidth - 2;
top: 0 - (2*@arrowWidth);
}
.hopscotch-bubble-arrow-border {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion css/vars.less → less/vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@anim-timing: ease-in-out;
@bubbleCornerRadius: 10px;
@bubbleColor: #fff;
@bubbleBorderWidth: 6px;
@bubbleBorderWidth: 5px;
@bubbleFontFamily: Helvetica, Arial;
@bubblePadding: 15px;
@borderColor: rgba(0, 0, 0, 0.5);
Expand Down

0 comments on commit 71393d3

Please sign in to comment.