hooch 0.10.0 → 0.10.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9a38d4ae28c3ecc514f90569f9ac3a2aeb2dd84
4
- data.tar.gz: aebb4ffb7cf8b1074948882573d42a70ab0484ac
3
+ metadata.gz: d261ec58dce2ebb61da1e7c523194897ab6a27cd
4
+ data.tar.gz: 41696ea92bc5f2daffa1af084820a2863091cde2
5
5
  SHA512:
6
- metadata.gz: 7357e41994cd20bf8281f91f3c5a4c5c6e15423291a38cc6a41524b57640d1436db20ecc0668fb87cae770a2cfbf535848ecc459ffe9fb5f913f544dd8c102e8
7
- data.tar.gz: 2cd39841cdc986fe739314d72a4f37dfc3fd096eb701c558beadf242dcfa33af5d7050111a3285f0e2d43a8085512c38c2fd7e7a3db4ec987e965d8e3bd73829
6
+ metadata.gz: 04f25abd153c92beab28e60e3ab119e0a8d854df9f736ae6e84e3c859c5089b6673beaabe711647e463252ba73af78b678e5bec30f57f63796296b86fafc3d20
7
+ data.tar.gz: 1ddf08334534bacc261e576fd9a4c8b492405df27e7db8ad3a7d370f7c9e836ff8c6e282e280558e2634f21cdd97a9346c86ffcd1cd6f1ae450b2dd72c76eb95
@@ -130,20 +130,33 @@ var initHooch = function(){
130
130
  },
131
131
  getMask: function(){
132
132
  this.$modal_mask = $('#hooch-mask')
133
- this.$modal_mask.css({height: this.mask_height + 'px', top: this.mask_top + 'px'})
133
+ this.$modal_mask.css({height: this.mask_height + 'px', top: this.mask_top + 'px',
134
+ position: 'absolute', 'z-index': 100000,
135
+ left: 0, right: 0, bottom: 0,
136
+ 'background-color': 'rgba(0,0,0,0.5)'
137
+ })
134
138
  },
135
139
  getModal: function(){
136
140
  this.$modal_element = this.$modal_mask.find('#hooch-modal')
137
- this.$modal_element.css({'max-height': this.modal_height, 'margin-top': this.margin, 'margin-bottom': this.margin, 'padding-bottom': this.padding, 'padding-left': this.padding, 'padding-right': this.padding})
141
+ this.$modal_element.css({'max-height': this.modal_height,
142
+ 'margin-top': this.margin, 'margin-bottom': this.margin,
143
+ 'padding-bottom': this.padding, 'padding-left': this.padding, 'padding-right': this.padding,
144
+ position: 'relative', float: 'left', 'margin-left': '50%',
145
+ '-webkit-transform': 'translateX(-50%)',
146
+ '-moz-transform': 'translateX(-50%)',
147
+ '-ms-transform': 'translateX(-50%)',
148
+ '-o-transform': 'translateX(-50%)',
149
+ transform: 'translateX(-50%)'})
138
150
  },
139
151
  getContentWrapper: function(){
140
152
  this.$modal_content_wrapper = this.$modal_element.find('#hooch-content')
141
153
  var content_height = this.modal_height - (this.padding*2)
142
- this.$modal_content_wrapper.css({'overflow-y': 'scroll', 'max-height': content_height})
154
+ this.$modal_content_wrapper.css({'overflow-y': 'scroll', 'max-height': content_height, position: 'relative', float: 'left'})
143
155
  this.$modal_content_wrapper.html(this.$modal_content)
144
156
  },
145
157
  getDismisser: function(){
146
158
  this.$dismisser = this.$modal_mask.find('#hooch-dismiss')
159
+ this.$dismisser.css({position: 'relative', float: 'right', 'font-size': '22px', 'line-height': '30px'})
147
160
  this.dismisser = new hooch.ModalDismisser(this.$dismisser,this)
148
161
  },
149
162
  close: function(){
@@ -160,7 +173,7 @@ var initHooch = function(){
160
173
  'mousewheel.hoochModalScroll DOMMouseScroll.hoochModalScroll': function(e) {
161
174
  if(($(e.target).attr('id') == 'hooch-content') || ($(e.target).parents('#hooch-content').length > 0)){
162
175
  var delta = e.originalEvent.wheelDelta
163
- new_scrolltop = $('#hooch-content').scrollTop() + delta
176
+ new_scrolltop = $('#hooch-content').scrollTop() - delta
164
177
  $('#hooch-content').scrollTop(new_scrolltop)
165
178
  }
166
179
  e.preventDefault();
data/lib/hooch/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hooch
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hooch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut