jombo 0.0.1.beta12 → 0.0.1.beta13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/jombo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jombo
2
- VERSION = "0.0.1.beta12"
2
+ VERSION = "0.0.1.beta13"
3
3
  end
@@ -91,7 +91,7 @@
91
91
 
92
92
  $(function () {
93
93
  $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
94
- $(e.srcElement).button('toggle')
94
+ $(e.target).button('toggle')
95
95
  })
96
96
  })
97
97
 
@@ -44,10 +44,12 @@
44
44
  }
45
45
 
46
46
  , next: function () {
47
+ if (this.sliding) return
47
48
  return this.slide('next')
48
49
  }
49
50
 
50
51
  , prev: function () {
52
+ if (this.sliding) return
51
53
  return this.slide('prev')
52
54
  }
53
55
 
@@ -59,21 +61,29 @@
59
61
  , fallback = type == 'next' ? 'first' : 'last'
60
62
  , that = this
61
63
 
64
+ this.sliding = true
65
+
62
66
  isCycling && this.pause()
63
67
 
64
68
  $next = $next.length ? $next : this.$element.find('.item')[fallback]()
65
69
 
66
70
  if (!$.support.transition && this.$element.hasClass('slide')) {
71
+ this.$element.trigger('slide')
67
72
  $active.removeClass('active')
68
73
  $next.addClass('active')
74
+ this.$element.trigger('slid')
75
+ this.sliding = false
69
76
  } else {
70
77
  $next.addClass(type)
71
78
  $next[0].offsetWidth // force reflow
72
79
  $active.addClass(direction)
73
80
  $next.addClass(direction)
81
+ this.$element.trigger('slide')
74
82
  this.$element.one($.support.transition.end, function () {
75
83
  $next.removeClass([type, direction].join(' ')).addClass('active')
76
84
  $active.removeClass(['active', direction].join(' '))
85
+ that.$element.trigger('slid')
86
+ that.sliding = false
77
87
  })
78
88
  }
79
89
 
@@ -38,12 +38,14 @@
38
38
  var $this = $(this)
39
39
  , selector = $this.attr('data-target') || $this.attr('href')
40
40
  , $parent = $(selector)
41
+ , isActive
41
42
 
42
43
  $parent.length || ($parent = $this.parent())
44
+ isActive = $parent.hasClass('open')
43
45
 
44
46
  clearMenus()
45
47
 
46
- !$parent.hasClass('open') && $parent.toggleClass('open')
48
+ !isActive && $parent.toggleClass('open')
47
49
 
48
50
  return false
49
51
  }
@@ -51,8 +51,9 @@
51
51
  backdrop.call(this, function () {
52
52
  var transition = $.support.transition && that.$element.hasClass('fade')
53
53
 
54
+ !that.$element.parent().length && that.$element.appendTo(document.body) //don't move modals dom position
55
+
54
56
  that.$element
55
- .appendTo(document.body)
56
57
  .show()
57
58
 
58
59
  if (transition) {
@@ -77,6 +77,8 @@
77
77
  if (transition) {
78
78
  element[0].offsetWidth // reflow for transition
79
79
  element.addClass('in')
80
+ } else {
81
+ element.removeClass('fade')
80
82
  }
81
83
 
82
84
  if ( element.parent('.dropdown-menu') ) {
@@ -88,8 +88,8 @@
88
88
  if (!self.options.delay || !self.options.delay.hide) {
89
89
  self.hide()
90
90
  } else {
91
+ self.hoverState = 'out'
91
92
  setTimeout(function() {
92
- self.hoverState = 'out'
93
93
  if (self.hoverState == 'out') {
94
94
  self.hide()
95
95
  }
@@ -123,7 +123,7 @@
123
123
  $tip
124
124
  .remove()
125
125
  .css({ top: 0, left: 0, display: 'block' })
126
- .prependTo(inside ? this.$element : document.body)
126
+ .appendTo(inside ? this.$element : document.body)
127
127
 
128
128
  pos = this.getPosition(inside)
129
129
 
@@ -6,7 +6,7 @@
6
6
  * http://www.apache.org/licenses/LICENSE-2.0
7
7
  *
8
8
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
- * Date: Sun Jan 8 02:58:37 PST 2012
9
+ * Date: Sun Jan 8 15:38:44 PST 2012
10
10
  */
11
11
  html, body {
12
12
  margin: 0;
@@ -241,18 +241,6 @@ a:hover {
241
241
  color: #005580;
242
242
  text-decoration: underline;
243
243
  }
244
- .pull-right {
245
- float: right;
246
- }
247
- .pull-left {
248
- float: left;
249
- }
250
- .hide {
251
- display: none;
252
- }
253
- .show {
254
- display: block;
255
- }
256
244
  .row {
257
245
  margin-left: -20px;
258
246
  zoom: 1;
@@ -1493,7 +1481,7 @@ i {
1493
1481
  line-height: 18px;
1494
1482
  color: #555555;
1495
1483
  }
1496
- .dropdown-menu a:hover, .dropdown-menu .active > a {
1484
+ .dropdown-menu li > a:hover {
1497
1485
  color: #fff;
1498
1486
  text-decoration: none;
1499
1487
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
@@ -1511,6 +1499,11 @@ i {
1511
1499
  -moz-box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.075), inset 0 -1px rgba(0, 0, 0, 0.075);
1512
1500
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.075), inset 0 -1px rgba(0, 0, 0, 0.075);
1513
1501
  }
1502
+ .dropdown-menu .active > a, .dropdown-menu .active > a:hover {
1503
+ color: #fff;
1504
+ background-color: #999;
1505
+ background-image: none;
1506
+ }
1514
1507
  .dropdown.open .dropdown-toggle {
1515
1508
  color: #ffffff;
1516
1509
  background: #ccc;
@@ -1604,11 +1597,9 @@ i {
1604
1597
  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
1605
1598
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
1606
1599
  }
1607
- .navbar .brand:hover, .navbar .nav .active > a {
1600
+ .navbar .brand:hover {
1608
1601
  color: #ffffff;
1609
1602
  text-decoration: none;
1610
- background-color: #333333;
1611
- background-color: rgba(255, 255, 255, 0.05);
1612
1603
  }
1613
1604
  .navbar .brand {
1614
1605
  float: left;
@@ -1701,7 +1692,7 @@ i {
1701
1692
  top: 0;
1702
1693
  right: 0;
1703
1694
  left: 0;
1704
- z-index: 1010;
1695
+ z-index: 1030;
1705
1696
  }
1706
1697
  .navbar .nav {
1707
1698
  position: relative;
@@ -1731,6 +1722,8 @@ i {
1731
1722
  text-decoration: none;
1732
1723
  }
1733
1724
  .navbar .nav .active > a {
1725
+ color: #ffffff;
1726
+ text-decoration: none;
1734
1727
  background-color: #222;
1735
1728
  background-color: rgba(0, 0, 0, 0.5);
1736
1729
  }
@@ -1870,7 +1863,7 @@ i {
1870
1863
  .tabs > li > a:hover {
1871
1864
  border-color: #eee #eee #ddd;
1872
1865
  }
1873
- .tabs .active > a, .tabs .active > a:hover {
1866
+ .tabs > .active > a, .tabs > .active > a:hover {
1874
1867
  color: #555555;
1875
1868
  background-color: #ffffff;
1876
1869
  border: 1px solid #ddd;
@@ -1925,7 +1918,7 @@ i {
1925
1918
  .pills.stacked > li:last-child > a {
1926
1919
  margin-bottom: 1px;
1927
1920
  }
1928
- .nav .dropdown-menu {
1921
+ .pills .dropdown-menu, .tabs .dropdown-menu {
1929
1922
  top: 33px;
1930
1923
  border-width: 1px;
1931
1924
  }
@@ -1934,18 +1927,26 @@ i {
1934
1927
  -moz-border-radius: 4px;
1935
1928
  border-radius: 4px;
1936
1929
  }
1937
- .nav .dropdown-toggle .caret {
1930
+ .tabs .dropdown-toggle .caret, .pills .dropdown-toggle .caret {
1938
1931
  border-top-color: #0088cc;
1939
1932
  margin-top: 6px;
1940
1933
  }
1941
- .nav .dropdown-toggle:hover .caret {
1934
+ .tabs .dropdown-toggle:hover .caret, .pills .dropdown-toggle:hover .caret {
1942
1935
  border-top-color: #005580;
1943
1936
  }
1944
- .nav .open .dropdown-toggle {
1937
+ .tabs .active .dropdown-toggle .caret, .pills .active .dropdown-toggle .caret {
1938
+ border-top-color: #333;
1939
+ }
1940
+ .nav > .dropdown.active > a:hover {
1941
+ color: #000;
1942
+ cursor: pointer;
1943
+ }
1944
+ .tabs .open .dropdown-toggle, .pills .open .dropdown-toggle, .nav > .open.active > a:hover {
1945
+ color: #fff;
1945
1946
  background-color: #999;
1946
1947
  border-color: #999;
1947
1948
  }
1948
- .nav .open .caret, .nav .open a:hover .caret {
1949
+ .nav .open .caret, .nav .open.active .caret, .nav .open a:hover .caret {
1949
1950
  border-top-color: #fff;
1950
1951
  filter: alpha(opacity=100);
1951
1952
  -moz-opacity: 1;
@@ -2123,7 +2124,7 @@ i {
2123
2124
  right: 0;
2124
2125
  bottom: 0;
2125
2126
  left: 0;
2126
- z-index: 1020;
2127
+ z-index: 1040;
2127
2128
  background-color: #000000;
2128
2129
  }
2129
2130
  .modal-backdrop.fade {
@@ -2138,7 +2139,7 @@ i {
2138
2139
  position: fixed;
2139
2140
  top: 50%;
2140
2141
  left: 50%;
2141
- z-index: 1030;
2142
+ z-index: 1050;
2142
2143
  max-height: 500px;
2143
2144
  overflow: auto;
2144
2145
  width: 560px;
@@ -2208,7 +2209,7 @@ i {
2208
2209
  }
2209
2210
  .twipsy {
2210
2211
  position: absolute;
2211
- z-index: 1050;
2212
+ z-index: 1020;
2212
2213
  display: block;
2213
2214
  visibility: visible;
2214
2215
  padding: 5px;
@@ -2286,7 +2287,7 @@ i {
2286
2287
  position: absolute;
2287
2288
  top: 0;
2288
2289
  left: 0;
2289
- z-index: 1040;
2290
+ z-index: 1010;
2290
2291
  display: none;
2291
2292
  padding: 5px;
2292
2293
  }
@@ -2789,6 +2790,9 @@ a.thumbnail:hover {
2789
2790
  .carousel .active, .carousel .next, .carousel .prev {
2790
2791
  display: block;
2791
2792
  }
2793
+ .carousel .active {
2794
+ left: 0;
2795
+ }
2792
2796
  .carousel .next, .carousel .prev {
2793
2797
  position: absolute;
2794
2798
  top: 0;
@@ -3002,6 +3006,21 @@ a.thumbnail:hover {
3002
3006
  background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
3003
3007
  background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
3004
3008
  }
3009
+ .pull-right {
3010
+ float: right;
3011
+ }
3012
+ .pull-left {
3013
+ float: left;
3014
+ }
3015
+ .hide {
3016
+ display: none;
3017
+ }
3018
+ .show {
3019
+ display: block;
3020
+ }
3021
+ .invisible {
3022
+ visibility: hidden;
3023
+ }
3005
3024
  .hidden {
3006
3025
  display: none;
3007
3026
  visibility: hidden;
@@ -3062,13 +3081,6 @@ a.thumbnail:hover {
3062
3081
  .navbar .nav:hover > li > a:hover {
3063
3082
  background-color: #333;
3064
3083
  }
3065
- .modal {
3066
- width: auto;
3067
- margin: 0;
3068
- }
3069
- .modal.fade.in {
3070
- top: auto;
3071
- }
3072
3084
  .horizontal-form .control-group > label {
3073
3085
  float: none;
3074
3086
  width: auto;
@@ -3091,7 +3103,10 @@ a.thumbnail:hover {
3091
3103
  right: 20px;
3092
3104
  width: auto;
3093
3105
  }
3094
- .modal .close {
3106
+ .modal.fade.in {
3107
+ top: auto;
3108
+ }
3109
+ .modal-header .close {
3095
3110
  padding: 10px;
3096
3111
  }
3097
3112
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jombo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta12
4
+ version: 0.0.1.beta13
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-08 00:00:00.000000000 Z
12
+ date: 2012-01-09 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Package Bootstrap from Twitter (2.0 work-in-progress branch) assets as
15
15
  a gem.