From 0e11aa8f776b9e8b61887b0d029962fc17e9ffde Mon Sep 17 00:00:00 2001 From: Gordon Koo Date: Tue, 24 Jul 2012 10:31:36 -0700 Subject: [PATCH] Get rid of Hopscotch Manager add nav buttons for bubble add some positioning utils --- css/hopscotch.less | 12 +- css/util.less | 7 + index.html | 52 +++--- js/hopscotch.js | 426 ++++++++++++++++++++++++++++----------------- 4 files changed, 310 insertions(+), 187 deletions(-) diff --git a/css/hopscotch.less b/css/hopscotch.less index 8a19a7e9..6fd865fe 100644 --- a/css/hopscotch.less +++ b/css/hopscotch.less @@ -2,8 +2,8 @@ @anim-duration: .5s; -#hopscotch-bubble { - background-color: #eee; +div#hopscotch-bubble { + background-color: #fff; border: 1px solid #000; padding: 20px; position: absolute; @@ -12,4 +12,12 @@ &.animate { .transition('top, left', @anim-duration, ease-in-out); } + + .round-corners; + + .hopscotch-nav-button { + &.hide { + display: none; + } + } } diff --git a/css/util.less b/css/util.less index 73350eec..7eabb85b 100644 --- a/css/util.less +++ b/css/util.less @@ -1,3 +1,10 @@ +.round-corners (@radius: 5px) { + -moz-border-radius: @radius; + -ms-border-radius: @radius; + -o-border-radius: @radius; + -webkit-border-radius: @radius; + border-radius: @radius; +} .transition (@property, @duration, @timing) { -moz-transition-property: @property; -moz-transition-duration: @duration; diff --git a/index.html b/index.html index 55de4377..6576cd7f 100644 --- a/index.html +++ b/index.html @@ -38,45 +38,40 @@

Content

  • Welcome to my hopscotch test page
  • Welcome to myWelcome to myWelcome to myWelcome to my Welcom Welcom Welcom Welcom Welcom Welcome to my hopscotch test page
  • -
    - +
    +
    -
    - +
    +
    -
    - +
    +
    - - -
    -