Skip to content

Commit

Permalink
Update javascripts and less to version 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
decioferreira committed Feb 18, 2012
1 parent 8b95a8b commit a81bfa8
Show file tree
Hide file tree
Showing 32 changed files with 322 additions and 155 deletions.
1 change: 1 addition & 0 deletions .rvmrc
@@ -0,0 +1 @@
rvm use @bootstrap-generators
13 changes: 8 additions & 5 deletions vendor/assets/javascripts/bootstrap-alert.js
@@ -1,5 +1,5 @@
/* ==========================================================
* bootstrap-alert.js v2.0.0
* bootstrap-alert.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#alerts
* ==========================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -51,11 +51,14 @@

$parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())

$parent.removeClass('in')
$parent
.trigger('close')
.removeClass('in')

function removeElement() {
$parent.remove()
$parent.trigger('closed')
$parent
.trigger('closed')
.remove()
}

$.support.transition && $parent.hasClass('fade') ?
Expand Down Expand Up @@ -88,4 +91,4 @@
$('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
})

}( window.jQuery )
}( window.jQuery );
6 changes: 3 additions & 3 deletions vendor/assets/javascripts/bootstrap-button.js
@@ -1,5 +1,5 @@
/* ============================================================
* bootstrap-button.js v2.0.0
* bootstrap-button.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#buttons
* ============================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -91,8 +91,8 @@

$(function () {
$('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
$(e.target).button('toggle')
$(e.currentTarget).button('toggle')
})
})

}( window.jQuery )
}( window.jQuery );
7 changes: 5 additions & 2 deletions vendor/assets/javascripts/bootstrap-carousel.js
@@ -1,5 +1,5 @@
/* ==========================================================
* bootstrap-carousel.js v2.0.0
* bootstrap-carousel.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#carousel
* ==========================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -61,6 +61,7 @@

, pause: function () {
clearInterval(this.interval)
this.interval = null
return this
}

Expand All @@ -82,6 +83,8 @@
, fallback = type == 'next' ? 'first' : 'last'
, that = this

if (!$next.length) return

this.sliding = true

isCycling && this.pause()
Expand Down Expand Up @@ -151,4 +154,4 @@
})
})

}( window.jQuery )
}( window.jQuery );
4 changes: 2 additions & 2 deletions vendor/assets/javascripts/bootstrap-collapse.js
@@ -1,5 +1,5 @@
/* =============================================================
* bootstrap-collapse.js v2.0.0
* bootstrap-collapse.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#collapse
* =============================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -133,4 +133,4 @@
})
})

}( window.jQuery )
}( window.jQuery );
4 changes: 2 additions & 2 deletions vendor/assets/javascripts/bootstrap-dropdown.js
@@ -1,5 +1,5 @@
/* ============================================================
* bootstrap-dropdown.js v2.0.0
* bootstrap-dropdown.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#dropdowns
* ============================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -89,4 +89,4 @@
$('body').on('click.dropdown.data-api', toggle, Dropdown.prototype.toggle)
})

}( window.jQuery )
}( window.jQuery );
6 changes: 3 additions & 3 deletions vendor/assets/javascripts/bootstrap-modal.js
@@ -1,5 +1,5 @@
/* =========================================================
* bootstrap-modal.js v2.0.0
* bootstrap-modal.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#modals
* =========================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -177,7 +177,7 @@
return this.each(function () {
var $this = $(this)
, data = $this.data('modal')
, options = $.extend({}, $.fn.modal.defaults, typeof option == 'object' && option)
, options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
if (!data) $this.data('modal', (data = new Modal(this, options)))
if (typeof option == 'string') data[option]()
else if (options.show) data.show()
Expand Down Expand Up @@ -207,4 +207,4 @@
})
})

}( window.jQuery )
}( window.jQuery );
4 changes: 2 additions & 2 deletions vendor/assets/javascripts/bootstrap-popover.js
@@ -1,5 +1,5 @@
/* ===========================================================
* bootstrap-popover.js v2.0.0
* bootstrap-popover.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#popovers
* ===========================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -92,4 +92,4 @@
, template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'
})

}( window.jQuery )
}( window.jQuery );
4 changes: 2 additions & 2 deletions vendor/assets/javascripts/bootstrap-scrollspy.js
@@ -1,5 +1,5 @@
/* =============================================================
* bootstrap-scrollspy.js v2.0.0
* bootstrap-scrollspy.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
* =============================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -122,4 +122,4 @@
})
})

}( window.jQuery )
}( window.jQuery );
4 changes: 2 additions & 2 deletions vendor/assets/javascripts/bootstrap-tab.js
@@ -1,5 +1,5 @@
/* ========================================================
* bootstrap-tab.js v2.0.0
* bootstrap-tab.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#tabs
* ========================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -127,4 +127,4 @@
})
})

}( window.jQuery )
}( window.jQuery );
4 changes: 2 additions & 2 deletions vendor/assets/javascripts/bootstrap-tooltip.js
@@ -1,5 +1,5 @@
/* ===========================================================
* bootstrap-tooltip.js v2.0.0
* bootstrap-tooltip.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#tooltips
* Inspired by the original jQuery.tipsy by Jason Frame
* ===========================================================
Expand Down Expand Up @@ -267,4 +267,4 @@
, template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
}

}( window.jQuery )
}( window.jQuery );
6 changes: 3 additions & 3 deletions vendor/assets/javascripts/bootstrap-transition.js
@@ -1,5 +1,5 @@
/* ===================================================
* bootstrap-transition.js v2.0.0
* bootstrap-transition.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#transitions
* ===================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -47,5 +47,5 @@
})()

})
}( window.jQuery )

}( window.jQuery );
4 changes: 2 additions & 2 deletions vendor/assets/javascripts/bootstrap-typeahead.js
@@ -1,5 +1,5 @@
/* =============================================================
* bootstrap-typeahead.js v2.0.0
* bootstrap-typeahead.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#typeahead
* =============================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -268,4 +268,4 @@
})
})

}( window.jQuery )
}( window.jQuery );
2 changes: 1 addition & 1 deletion vendor/assets/stylesheets/less/bootstrap.less
@@ -1,5 +1,5 @@
/*!
* Bootstrap v2.0.0
* Bootstrap v2.0.1
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
Expand Down
2 changes: 1 addition & 1 deletion vendor/assets/stylesheets/less/breadcrumbs.less
Expand Up @@ -9,7 +9,7 @@
.border-radius(3px);
.box-shadow(inset 0 1px 0 @white);
li {
display: inline;
display: inline-block;
text-shadow: 0 1px 0 @white;
}
.divider {
Expand Down
3 changes: 2 additions & 1 deletion vendor/assets/stylesheets/less/button-groups.less
Expand Up @@ -133,7 +133,8 @@
.btn-primary,
.btn-danger,
.btn-info,
.btn-success {
.btn-success,
.btn-inverse {
.caret {
border-top-color: @white;
.opacity(75);
Expand Down
32 changes: 25 additions & 7 deletions vendor/assets/stylesheets/less/buttons.less
Expand Up @@ -9,12 +9,14 @@
.btn {
display: inline-block;
padding: 4px 10px 4px;
margin-bottom: 0; // For input.btn
font-size: @baseFontSize;
line-height: @baseLineHeight;
color: @grayDark;
text-align: center;
text-shadow: 0 1px 1px rgba(255,255,255,.75);
#gradient > .vertical-three-colors(@white, @white, 25%, darken(@white, 10%)); // Don't use .gradientbar() here since it does a three-color gradient
vertical-align: middle;
.buttonBackground(@white, darken(@white, 10%));
border: 1px solid #ccc;
border-bottom-color: #bbb;
.border-radius(4px);
Expand All @@ -23,6 +25,7 @@
cursor: pointer;

// Give IE7 some love
.reset-filter();
.ie7-restore-left-whitespace();
}

Expand Down Expand Up @@ -51,7 +54,6 @@
.box-shadow(@shadow);
background-color: darken(@white, 10%);
background-color: darken(@white, 15%) e("\9");
color: rgba(0,0,0,.5);
outline: 0;
}

Expand All @@ -76,7 +78,7 @@
line-height: normal;
.border-radius(5px);
}
.btn-large .icon {
.btn-large [class^="icon-"] {
margin-top: 1px;
}

Expand All @@ -86,10 +88,17 @@
font-size: @baseFontSize - 2px;
line-height: @baseLineHeight - 2px;
}
.btn-small .icon {
.btn-small [class^="icon-"] {
margin-top: -1px;
}

// Mini
.btn-mini {
padding: 2px 6px;
font-size: @baseFontSize - 2px;
line-height: @baseLineHeight - 4px;
}


// Alternate buttons
// --------------------------------------------------
Expand All @@ -105,7 +114,9 @@
.btn-success,
.btn-success:hover,
.btn-info,
.btn-info:hover {
.btn-info:hover,
.btn-inverse,
.btn-inverse:hover {
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
color: @white;
}
Expand All @@ -114,7 +125,8 @@
.btn-warning.active,
.btn-danger.active,
.btn-success.active,
.btn-info.active {
.btn-info.active,
.btn-dark.active {
color: rgba(255,255,255,.75);
}

Expand All @@ -139,15 +151,21 @@
.btn-info {
.buttonBackground(#5bc0de, #2f96b4);
}
// Inverse appears as dark gray
.btn-inverse {
.buttonBackground(#454545, #262626);
}


// Cross-browser Jank
// --------------------------------------------------

button.btn,
input[type="submit"].btn {

// Firefox 3.6 only I believe
&::-moz-focus-inner {
padding: 0;
padding: 0;
border: 0;
}

Expand Down
13 changes: 13 additions & 0 deletions vendor/assets/stylesheets/less/code.less
Expand Up @@ -11,12 +11,16 @@ pre {
color: @grayDark;
.border-radius(3px);
}

// Inline code
code {
padding: 3px 4px;
color: #d14;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}

// Blocks of code
pre {
display: block;
padding: (@baseLineHeight - 1) / 2;
Expand All @@ -30,6 +34,7 @@ pre {
white-space: pre;
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;

// Make prettyprint styles more spaced out for readability
&.prettyprint {
Expand All @@ -39,6 +44,14 @@ pre {
// Account for some code outputs that place code tags in pre tags
code {
padding: 0;
color: inherit;
background-color: transparent;
border: 0;
}
}

// Enable scrollable blocks of code
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
}

0 comments on commit a81bfa8

Please sign in to comment.