aboutsummaryrefslogtreecommitdiff
path: root/docs/assets
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-09-10 15:29:53 -0700
committerMark Otto <[email protected]>2011-09-10 15:29:53 -0700
commita95a0ed71c935c61c7c3d045e82df0b1d0cf5725 (patch)
tree4f99c3837487851e475f317977169a389d277c6e /docs/assets
parent99ede580cf85611bf446abd46fa1ad4daf850a59 (diff)
parenta8d447582741486e66a6a073015a9e9bd431af29 (diff)
downloadbootstrap-a95a0ed71c935c61c7c3d045e82df0b1d0cf5725.tar.xz
bootstrap-a95a0ed71c935c61c7c3d045e82df0b1d0cf5725.zip
conflict
Diffstat (limited to 'docs/assets')
-rw-r--r--docs/assets/css/docs.css3
-rw-r--r--docs/assets/js/application.js47
2 files changed, 12 insertions, 38 deletions
diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css
index 536446c23..187fc7984 100644
--- a/docs/assets/css/docs.css
+++ b/docs/assets/css/docs.css
@@ -46,7 +46,7 @@ section > .row {
font-weight: bold;
}
#masthead {
- margin-top: 40px;
+ padding-top: 40px;
}
#masthead h1,
#masthead p {
@@ -175,6 +175,7 @@ section > .row {
box-shadow: 0 1px 2px rgba(0,0,0,.075);
}
.diagram {
+ height: 140px;
padding: 4px;
}
.mini-layout {
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js
index db59c79f9..86eefa89d 100644
--- a/docs/assets/js/application.js
+++ b/docs/assets/js/application.js
@@ -42,42 +42,15 @@ $(document).ready(function(){
// POSITION STATIC TWIPSIES
// ========================
- $('.twipsies.well a').each(function () {
- var type = this.title
- , $anchor = $(this)
- , $twipsy = $('.twipsy.' + type)
-
- , twipsy = {
- width: $twipsy.width() + 10
- , height: $twipsy.height() + 10
- }
-
- , anchor = {
- position: $anchor.position()
- , width: $anchor.width()
- , height: $anchor.height()
- }
-
- , offset = {
- above: {
- top: anchor.position.top - twipsy.height
- , left: anchor.position.left + (anchor.width/2) - (twipsy.width/2)
- }
- , below: {
- top: anchor.position.top + anchor.height
- , left: anchor.position.left + (anchor.width/2) - (twipsy.width/2)
- }
- , left: {
- top: anchor.position.top + (anchor.height/2) - (twipsy.height/2)
- , left: anchor.position.left - twipsy.width - 5
- }
- , right: {
- top: anchor.position.top + (anchor.height/2) - (twipsy.height/2)
- , left: anchor.position.left + anchor.width + 5
- }
- }
-
- $twipsy.css(offset[type])
- });
+ $(".twipsies a").each(function () {
+ $(this)
+ .twipsy({
+ live: false
+ , placement: $(this).attr('title')
+ , trigger: 'manual'
+ , offset: 2
+ })
+ .trigger('twipsy:show')
+ })
});