waterfall_bourbon_neat_rails 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/dialog.js +1 -1
  3. data/app/assets/javascripts/modal.js +69 -0
  4. data/app/assets/javascripts/waterfall_bourbon_neat_rails/application.js +6 -4
  5. data/app/assets/libs/bPopup/jquery-bpopup.js +7 -0
  6. data/app/assets/libs/chosen/chosen.jquery.css +447 -0
  7. data/app/assets/{javascripts/libs → libs/chosen}/chosen.jquery.js +0 -0
  8. data/app/assets/libs/jQueryUI/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  9. data/app/assets/libs/jQueryUI/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  10. data/app/assets/libs/jQueryUI/images/ui-bg_flat_10_000000_40x100.png +0 -0
  11. data/app/assets/libs/jQueryUI/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  12. data/app/assets/libs/jQueryUI/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  13. data/app/assets/libs/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  14. data/app/assets/libs/jQueryUI/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  15. data/app/assets/libs/jQueryUI/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  16. data/app/assets/libs/jQueryUI/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  17. data/app/assets/libs/jQueryUI/images/ui-icons_222222_256x240.png +0 -0
  18. data/app/assets/libs/jQueryUI/images/ui-icons_228ef1_256x240.png +0 -0
  19. data/app/assets/libs/jQueryUI/images/ui-icons_ef8c08_256x240.png +0 -0
  20. data/app/assets/libs/jQueryUI/images/ui-icons_ffd27a_256x240.png +0 -0
  21. data/app/assets/libs/jQueryUI/images/ui-icons_ffffff_256x240.png +0 -0
  22. data/app/assets/libs/jQueryUI/index.html +513 -0
  23. data/app/assets/libs/jQueryUI/jquery-ui.css +1225 -0
  24. data/app/assets/libs/jQueryUI/jquery-ui.js +13953 -0
  25. data/app/assets/libs/jQueryUI/jquery-ui.min.css +7 -0
  26. data/app/assets/libs/jQueryUI/jquery-ui.structure.css +833 -0
  27. data/app/assets/libs/jQueryUI/jquery-ui.structure.min.css +5 -0
  28. data/app/assets/libs/jQueryUI/jquery-ui.theme.css +410 -0
  29. data/app/assets/libs/jQueryUI/jquery-ui.theme.min.css +5 -0
  30. data/app/assets/{stylesheets/libs → libs/timepicker}/jquery.ui.timepicker.css +0 -0
  31. data/app/assets/{javascripts/libs → libs/timepicker}/jquery.ui.timepicker.js +0 -0
  32. data/app/assets/stylesheets/custom/{_style.scss → _config.scss} +1 -0
  33. data/app/assets/stylesheets/custom/_general.scss +10 -0
  34. data/app/assets/stylesheets/custom/components/_ajax_spinner.scss +20 -14
  35. data/app/assets/stylesheets/custom/components/_config.scss +3 -5
  36. data/app/assets/stylesheets/custom/components/_modals.scss +52 -0
  37. data/app/assets/stylesheets/custom/components/_view_profile.scss +0 -1
  38. data/app/assets/stylesheets/custom/components/related/_body.scss +0 -0
  39. data/app/assets/stylesheets/custom/components/related/_config.scss +2 -0
  40. data/app/assets/stylesheets/{partials → custom/components/related}/_flash.scss +0 -0
  41. data/app/assets/stylesheets/custom/components/related/_landing_page.scss +3 -0
  42. data/app/assets/stylesheets/custom/components/related/_main_page.scss +3 -0
  43. data/app/assets/stylesheets/partials/_layout.scss +2 -2
  44. data/app/assets/stylesheets/waterfall_bourbon_neat_rails/application.scss +1 -3
  45. data/app/assets/stylesheets/waterfall_bourbon_neat_rails.css +3 -2
  46. data/lib/waterfall_bourbon_neat_rails/version.rb +1 -1
  47. metadata +35 -10
  48. data/app/assets/javascripts/libs/jquery-ui-1.10.4.min.js +0 -7
  49. data/app/assets/libs/abc.js +0 -3
  50. data/app/assets/stylesheets/libs/jquery-ui-1.10.4.min.css +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49abf88ea9cce07a6c121e1d83b755070a027623
4
- data.tar.gz: 8f2a272ce527c613eca65de76b52cde0919778bd
3
+ metadata.gz: 6990c4525c1aab12db6843fcb829e91c794c849d
4
+ data.tar.gz: dfdc8fa027c60f0817f4340a9fe591f9bdb5752a
5
5
  SHA512:
6
- metadata.gz: 59f5f4c8bd671a68a1c341ea6ee60d5e29399dda444d5c456c00acf938651f65b293297ca198d94912b419fe03e96a9c27769dfc628e6f4d555f1669b9d515df
7
- data.tar.gz: 91aee45f4038b362bf87007986e4a9506fc4994130fbcb39584aed27e945def2c584b885597b51a3312c588cca47dee3273b58c11c7669e1ac4e22c89f4f3885
6
+ metadata.gz: 79bf1320b6e4f49f5c2312decb8aede2995a8f31495bfcc185bdfcee35ee0a11d2e67726d4f5f2fe0312693c13fb0c3ce9bb384eb9354fb0a1fde931e9bdf266
7
+ data.tar.gz: f864041d8e7e0b36ee7d11e7b645384550c74ea7ffb38e65c18c4f5a6c48da0c6de10403c13b75976a2779cfbc227e5af304640df4b8cdbb633a78844fe19da6
@@ -10,7 +10,7 @@ var Dialog = function(type, options){
10
10
  this.messages = {
11
11
  information: "Information",
12
12
  error: "This is an error",
13
- question: "You sure you want to delet this?"
13
+ question: "You sure you want to delete this?"
14
14
  }
15
15
  this.config = {};
16
16
 
@@ -0,0 +1,69 @@
1
+ //General popup ~ singleton
2
+
3
+ var Modal = function(){
4
+ var $popup = $(".modal"),
5
+ $header = $popup.find(".header"),
6
+ $content = $popup.find(".content"),
7
+ $footer = $popup.find('footer');
8
+
9
+
10
+ this.$header = $header.find(".header-text");
11
+ this.$content_header = $content.find(".question");
12
+ this.$content_text = $content.find(".text");
13
+ this.$content_other_html = $content.find(".other_html");
14
+ this.$footer = $footer.find(".footer-text");
15
+
16
+ Modal.prototype.setHeader = function(text){
17
+ //can be a type of content like ERROR, INFORMATION, QUESTION, etc
18
+ this.$header.text(text);
19
+
20
+ return this;
21
+ }
22
+
23
+ Modal.prototype.setContentHeader = function(qtext){
24
+ //can set a secondary header/title like , a question or something general
25
+ this.$content_header.text(qtext);
26
+
27
+ return this;
28
+ }
29
+
30
+ Modal.prototype.setContentText = function(text){
31
+ // can set a text for the content section, we can have some details for it
32
+ this.$content_text.text(text);
33
+
34
+ return this;
35
+ }
36
+
37
+ Modal.prototype.setOtherHtml = function(html){
38
+ //can set some html code like ajax loader, etc
39
+ this.$content_other_html.html(html);
40
+
41
+ return this;
42
+ }
43
+
44
+ Modal.prototype.setFooter = function(text){
45
+ //set the footer text
46
+ this.$footer.text(text);
47
+
48
+ return this;
49
+ }
50
+
51
+ Modal.prototype.getPopupReference = function(){
52
+
53
+ return $popup;
54
+ }
55
+
56
+ Modal.prototype.init = function(options){
57
+ console.log("Modal - Init");
58
+ if(options){
59
+ options.type && this.$header.text(options.type);
60
+ options.content_head && this.$content_header.text(options.content_head);
61
+ options.content_text && this.$content_text.text(options.content_text);
62
+ options.footer && this.$footer.text(options.footer);
63
+ }
64
+ }
65
+
66
+ if(arguments.callee._singletonInstance)
67
+ return arguments.callee._singletonInstance;
68
+ arguments.callee._singletonInstance = this;
69
+ }
@@ -3,8 +3,10 @@
3
3
  //= require autocomplete-rails
4
4
  //= require jquery.validate
5
5
  //= require jquery.validate.additional-methods
6
- //= require dialog
7
6
 
8
- //= require libs/chosen.jquery
9
- //= require libs/jquery-ui-1.10.4.min
10
- //= require libs/jquery.ui.timepicker
7
+ //= require dialog
8
+ //= require modal
9
+ //= require ../../libs/chosen/chosen.jquery.js
10
+ //= require ../../libs/jQueryUI/jquery-ui.js
11
+ //= require ../../libs/timepicker/jquery.ui.timepicker.js
12
+ //= require ../../libs/bPopup/jquery-bpopup.js
@@ -0,0 +1,7 @@
1
+ /*================================================================================
2
+ * @name: bPopup - if you can't get it up, use bPopup
3
+ * @author: (c)Bjoern Klinggaard (twitter@bklinggaard)
4
+ * @demo: http://dinbror.dk/bpopup
5
+ * @version: 0.9.4.min
6
+ ================================================================================*/
7
+ (function(b){b.fn.bPopup=function(z,F){function K(){a.contentContainer=b(a.contentContainer||c);switch(a.content){case "iframe":var h=b('<iframe class="b-iframe" '+a.iframeAttr+"></iframe>");h.appendTo(a.contentContainer);r=c.outerHeight(!0);s=c.outerWidth(!0);A();h.attr("src",a.loadUrl);k(a.loadCallback);break;case "image":A();b("<img />").load(function(){k(a.loadCallback);G(b(this))}).attr("src",a.loadUrl).hide().appendTo(a.contentContainer);break;default:A(),b('<div class="b-ajax-wrapper"></div>').load(a.loadUrl,a.loadData,function(){k(a.loadCallback);G(b(this))}).hide().appendTo(a.contentContainer)}}function A(){a.modal&&b('<div class="b-modal '+e+'"></div>').css({backgroundColor:a.modalColor,position:"fixed",top:0,right:0,bottom:0,left:0,opacity:0,zIndex:a.zIndex+t}).appendTo(a.appendTo).fadeTo(a.speed,a.opacity);D();c.data("bPopup",a).data("id",e).css({left:"slideIn"==a.transition||"slideBack"==a.transition?"slideBack"==a.transition?g.scrollLeft()+u:-1*(v+s):l(!(!a.follow[0]&&m||f)),position:a.positionStyle||"absolute",top:"slideDown"==a.transition||"slideUp"==a.transition?"slideUp"==a.transition?g.scrollTop()+w:x+-1*r:n(!(!a.follow[1]&&p||f)),"z-index":a.zIndex+t+1}).each(function(){a.appending&&b(this).appendTo(a.appendTo)});H(!0)}function q(){a.modal&&b(".b-modal."+c.data("id")).fadeTo(a.speed,0,function(){b(this).remove()});a.scrollBar||b("html").css("overflow","auto");b(".b-modal."+e).unbind("click");g.unbind("keydown."+e);d.unbind("."+e).data("bPopup",0<d.data("bPopup")-1?d.data("bPopup")-1:null);c.undelegate(".bClose, ."+a.closeClass,"click."+e,q).data("bPopup",null);H();return!1}function G(h){var b=h.width(),e=h.height(),d={};a.contentContainer.css({height:e,width:b});e>=c.height()&&(d.height=c.height());b>=c.width()&&(d.width=c.width());r=c.outerHeight(!0);s=c.outerWidth(!0);D();a.contentContainer.css({height:"auto",width:"auto"});d.left=l(!(!a.follow[0]&&m||f));d.top=n(!(!a.follow[1]&&p||f));c.animate(d,250,function(){h.show();B=E()})}function L(){d.data("bPopup",t);c.delegate(".bClose, ."+a.closeClass,"click."+e,q);a.modalClose&&b(".b-modal."+e).css("cursor","pointer").bind("click",q);M||!a.follow[0]&&!a.follow[1]||d.bind("scroll."+e,function(){B&&c.dequeue().animate({left:a.follow[0]?l(!f):"auto",top:a.follow[1]?n(!f):"auto"},a.followSpeed,a.followEasing)}).bind("resize."+e,function(){w=y.innerHeight||d.height();u=y.innerWidth||d.width();if(B=E())clearTimeout(I),I=setTimeout(function(){D();c.dequeue().each(function(){f?b(this).css({left:v,top:x}):b(this).animate({left:a.follow[0]?l(!0):"auto",top:a.follow[1]?n(!0):"auto"},a.followSpeed,a.followEasing)})},50)});a.escClose&&g.bind("keydown."+e,function(a){27==a.which&&q()})}function H(b){function d(e){c.css({display:"block",opacity:1}).animate(e,a.speed,a.easing,function(){J(b)})}switch(b?a.transition:a.transitionClose||a.transition){case "slideIn":d({left:b?l(!(!a.follow[0]&&m||f)):g.scrollLeft()-(s||c.outerWidth(!0))-C});break;case "slideBack":d({left:b?l(!(!a.follow[0]&&m||f)):g.scrollLeft()+u+C});break;case "slideDown":d({top:b?n(!(!a.follow[1]&&p||f)):g.scrollTop()-(r||c.outerHeight(!0))-C});break;case "slideUp":d({top:b?n(!(!a.follow[1]&&p||f)):g.scrollTop()+w+C});break;default:c.stop().fadeTo(a.speed,b?1:0,function(){J(b)})}}function J(b){b?(L(),k(F),a.autoClose&&setTimeout(q,a.autoClose)):(c.hide(),k(a.onClose),a.loadUrl&&(a.contentContainer.empty(),c.css({height:"auto",width:"auto"})))}function l(a){return a?v+g.scrollLeft():v}function n(a){return a?x+g.scrollTop():x}function k(a){b.isFunction(a)&&a.call(c)}function D(){x=p?a.position[1]:Math.max(0,(w-c.outerHeight(!0))/2-a.amsl);v=m?a.position[0]:(u-c.outerWidth(!0))/2;B=E()}function E(){return w>c.outerHeight(!0)&&u>c.outerWidth(!0)}b.isFunction(z)&&(F=z,z=null);var a=b.extend({},b.fn.bPopup.defaults,z);a.scrollBar||b("html").css("overflow","hidden");var c=this,g=b(document),y=window,d=b(y),w=y.innerHeight||d.height(),u=y.innerWidth||d.width(),M=/OS 6(_\d)+/i.test(navigator.userAgent),C=200,t=0,e,B,p,m,f,x,v,r,s,I;c.close=function(){a=this.data("bPopup");e="__b-popup"+d.data("bPopup")+"__";q()};return c.each(function(){b(this).data("bPopup")||(k(a.onOpen),t=(d.data("bPopup")||0)+1,e="__b-popup"+t+"__",p="auto"!==a.position[1],m="auto"!==a.position[0],f="fixed"===a.positionStyle,r=c.outerHeight(!0),s=c.outerWidth(!0),a.loadUrl?K():A())})};b.fn.bPopup.defaults={amsl:50,appending:!0,appendTo:"body",autoClose:!1,closeClass:"b-close",content:"ajax",contentContainer:!1,easing:"swing",escClose:!0,follow:[!0,!0],followEasing:"swing",followSpeed:500,iframeAttr:'scrolling="no" frameborder="0"',loadCallback:!1,loadData:!1,loadUrl:!1,modal:!0,modalClose:0,modalColor:"#000",onClose:!1,onOpen:!1,opacity:0.7,position:["auto","auto"],positionStyle:"absolute",scrollBar:!0,speed:250,transition:"fadeIn",transitionClose:!1,zIndex:9997}})(jQuery);
@@ -0,0 +1,447 @@
1
+ /* @group Base */
2
+ .chosen-container {
3
+ position: relative;
4
+ display: inline-block;
5
+ vertical-align: middle;
6
+ font-size: 13px;
7
+ zoom: 1;
8
+ *display: inline;
9
+ -webkit-user-select: none;
10
+ -moz-user-select: none;
11
+ user-select: none;
12
+
13
+ //custom
14
+ margin-bottom: 30px;
15
+ }
16
+ .chosen-container .chosen-drop {
17
+ position: absolute;
18
+ top: 100%;
19
+ left: -9999px;
20
+ z-index: 1010;
21
+ -webkit-box-sizing: border-box;
22
+ -moz-box-sizing: border-box;
23
+ box-sizing: border-box;
24
+ width: 100%;
25
+ border: 1px solid #aaa;
26
+ border-top: 0;
27
+ background: #fff;
28
+ box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
29
+ }
30
+ .chosen-container.chosen-with-drop .chosen-drop {
31
+ left: 0;
32
+ }
33
+ .chosen-container a {
34
+ cursor: pointer;
35
+ }
36
+
37
+ /* @end */
38
+ /* @group Single Chosen */
39
+ .chosen-container-single .chosen-single {
40
+ position: relative;
41
+ display: block;
42
+ overflow: hidden;
43
+ padding: 0 0 0 8px;
44
+ height: 23px;
45
+ border: 1px solid #aaa;
46
+ border-radius: 5px;
47
+ background-color: #fff;
48
+ background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
49
+ background: -webkit-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
50
+ background: -moz-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
51
+ background: -o-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
52
+ background: linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
53
+ background-clip: padding-box;
54
+ box-shadow: 0 0 3px white inset, 0 1px 1px rgba(0, 0, 0, 0.1);
55
+ color: #444;
56
+ text-decoration: none;
57
+ white-space: nowrap;
58
+ line-height: 24px;
59
+ }
60
+ .chosen-container-single .chosen-default {
61
+ color: #999;
62
+ }
63
+ .chosen-container-single .chosen-single span {
64
+ display: block;
65
+ overflow: hidden;
66
+ margin-right: 26px;
67
+ text-overflow: ellipsis;
68
+ white-space: nowrap;
69
+ }
70
+ .chosen-container-single .chosen-single-with-deselect span {
71
+ margin-right: 38px;
72
+ }
73
+ .chosen-container-single .chosen-single abbr {
74
+ position: absolute;
75
+ top: 6px;
76
+ right: 26px;
77
+ display: block;
78
+ width: 12px;
79
+ height: 12px;
80
+ background: url('chosen-sprite.png') -42px 1px no-repeat;
81
+ font-size: 1px;
82
+ }
83
+ .chosen-container-single .chosen-single abbr:hover {
84
+ background-position: -42px -10px;
85
+ }
86
+ .chosen-container-single.chosen-disabled .chosen-single abbr:hover {
87
+ background-position: -42px -10px;
88
+ }
89
+ .chosen-container-single .chosen-single div {
90
+ position: absolute;
91
+ top: 0;
92
+ right: 0;
93
+ display: block;
94
+ width: 18px;
95
+ height: 100%;
96
+ }
97
+ .chosen-container-single .chosen-single div b {
98
+ display: block;
99
+ width: 100%;
100
+ height: 100%;
101
+ background: url('chosen-sprite.png') no-repeat 0px 2px;
102
+ }
103
+ .chosen-container-single .chosen-search {
104
+ position: relative;
105
+ z-index: 1010;
106
+ margin: 0;
107
+ padding: 3px 4px;
108
+ white-space: nowrap;
109
+ }
110
+ .chosen-container-single .chosen-search input[type="text"] {
111
+ -webkit-box-sizing: border-box;
112
+ -moz-box-sizing: border-box;
113
+ box-sizing: border-box;
114
+ margin: 1px 0;
115
+ padding: 4px 20px 4px 5px;
116
+ width: 100%;
117
+ height: auto;
118
+ outline: 0;
119
+ border: 1px solid #aaa;
120
+ background: white url('chosen-sprite.png') no-repeat 100% -20px;
121
+ background: url('chosen-sprite.png') no-repeat 100% -20px, -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
122
+ background: url('chosen-sprite.png') no-repeat 100% -20px, -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
123
+ background: url('chosen-sprite.png') no-repeat 100% -20px, -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
124
+ background: url('chosen-sprite.png') no-repeat 100% -20px, -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
125
+ background: url('chosen-sprite.png') no-repeat 100% -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
126
+ font-size: 1em;
127
+ font-family: sans-serif;
128
+ line-height: normal;
129
+ border-radius: 0;
130
+ }
131
+ .chosen-container-single .chosen-drop {
132
+ margin-top: -1px;
133
+ border-radius: 0 0 4px 4px;
134
+ background-clip: padding-box;
135
+ }
136
+ .chosen-container-single.chosen-container-single-nosearch .chosen-search {
137
+ position: absolute;
138
+ left: -9999px;
139
+ }
140
+
141
+ /* @end */
142
+ /* @group Results */
143
+ .chosen-container .chosen-results {
144
+ position: relative;
145
+ overflow-x: hidden;
146
+ overflow-y: auto;
147
+ margin: 0 4px 4px 0;
148
+ padding: 0 0 0 4px;
149
+ max-height: 240px;
150
+ -webkit-overflow-scrolling: touch;
151
+ }
152
+ .chosen-container .chosen-results li {
153
+ display: none;
154
+ margin: 0;
155
+ padding: 5px 6px;
156
+ list-style: none;
157
+ line-height: 15px;
158
+ }
159
+ .chosen-container .chosen-results li.active-result {
160
+ display: list-item;
161
+ cursor: pointer;
162
+ }
163
+ .chosen-container .chosen-results li.disabled-result {
164
+ display: list-item;
165
+ color: #ccc;
166
+ cursor: default;
167
+ }
168
+ .chosen-container .chosen-results li.highlighted {
169
+ background-color: #3875d7;
170
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
171
+ background-image: -webkit-linear-gradient(#3875d7 20%, #2a62bc 90%);
172
+ background-image: -moz-linear-gradient(#3875d7 20%, #2a62bc 90%);
173
+ background-image: -o-linear-gradient(#3875d7 20%, #2a62bc 90%);
174
+ background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
175
+ color: #fff;
176
+ }
177
+ .chosen-container .chosen-results li.no-results {
178
+ display: list-item;
179
+ background: #f4f4f4;
180
+ }
181
+ .chosen-container .chosen-results li.group-result {
182
+ display: list-item;
183
+ font-weight: bold;
184
+ cursor: default;
185
+ }
186
+ .chosen-container .chosen-results li.group-option {
187
+ padding-left: 15px;
188
+ }
189
+ .chosen-container .chosen-results li em {
190
+ font-style: normal;
191
+ text-decoration: underline;
192
+ }
193
+
194
+ /* @end */
195
+ /* @group Multi Chosen */
196
+ .chosen-container-multi .chosen-choices {
197
+ position: relative;
198
+ overflow: hidden;
199
+ -webkit-box-sizing: border-box;
200
+ -moz-box-sizing: border-box;
201
+ box-sizing: border-box;
202
+ margin: 0;
203
+ padding: 0;
204
+ width: 100%;
205
+ // height: auto !important;
206
+ height: 1%;
207
+ border: 1px solid #aaa;
208
+ background-color: #fff;
209
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
210
+ background-image: -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
211
+ background-image: -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
212
+ background-image: -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
213
+ background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);
214
+ cursor: text;
215
+
216
+ //custom
217
+ height: 87px;
218
+ overflow-y:scroll;
219
+ }
220
+ .chosen-container-multi .chosen-choices li {
221
+ float: left;
222
+ list-style: none;
223
+ }
224
+ .chosen-container-multi .chosen-choices li.search-field {
225
+ margin: 0;
226
+ padding: 0;
227
+ white-space: nowrap;
228
+ }
229
+ .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
230
+ margin: 1px 0;
231
+ padding: 5px;
232
+ height: 15px;
233
+ outline: 0;
234
+ border: 0 !important;
235
+ background: transparent !important;
236
+ box-shadow: none;
237
+ color: #666;
238
+ font-size: 100%;
239
+ font-family: sans-serif;
240
+ line-height: normal;
241
+ border-radius: 0;
242
+ }
243
+ .chosen-container-multi .chosen-choices li.search-field .default {
244
+ color: #999;
245
+
246
+ //custom
247
+ min-height: 40px;
248
+ }
249
+ .chosen-container-multi .chosen-choices li.search-choice {
250
+ position: relative;
251
+ margin: 3px 0 3px 5px;
252
+ padding: 3px 20px 3px 5px;
253
+ border: 1px solid #aaa;
254
+ border-radius: 3px;
255
+ background-color: #e4e4e4;
256
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
257
+ background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
258
+ background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
259
+ background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
260
+ background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
261
+ background-clip: padding-box;
262
+ box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
263
+ color: #333;
264
+ line-height: 13px;
265
+ cursor: default;
266
+
267
+ //custom
268
+ height: 35px;
269
+ line-height: 35px;
270
+ }
271
+ .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
272
+ position: absolute;
273
+ top: 4px;
274
+ right: 3px;
275
+ display: block;
276
+ width: 12px;
277
+ height: 12px;
278
+ background: url('chosen-sprite.png') -42px 1px no-repeat;
279
+ font-size: 1px;
280
+
281
+ //custom
282
+ top:7px;
283
+ }
284
+ .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
285
+ background-position: -42px -10px;
286
+ }
287
+ .chosen-container-multi .chosen-choices li.search-choice-disabled {
288
+ padding-right: 5px;
289
+ border: 1px solid #ccc;
290
+ background-color: #e4e4e4;
291
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
292
+ background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
293
+ background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
294
+ background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
295
+ background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
296
+ color: #666;
297
+ }
298
+ .chosen-container-multi .chosen-choices li.search-choice-focus {
299
+ background: #d4d4d4;
300
+ }
301
+ .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
302
+ background-position: -42px -10px;
303
+ }
304
+ .chosen-container-multi .chosen-results {
305
+ margin: 0;
306
+ padding: 0;
307
+ }
308
+ .chosen-container-multi .chosen-drop .result-selected {
309
+ display: list-item;
310
+ color: #ccc;
311
+ cursor: default;
312
+ }
313
+
314
+ /* @end */
315
+ /* @group Active */
316
+ .chosen-container-active .chosen-single {
317
+ border: 1px solid #5897fb;
318
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
319
+ }
320
+ .chosen-container-active.chosen-with-drop .chosen-single {
321
+ border: 1px solid #aaa;
322
+ -moz-border-radius-bottomright: 0;
323
+ border-bottom-right-radius: 0;
324
+ -moz-border-radius-bottomleft: 0;
325
+ border-bottom-left-radius: 0;
326
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));
327
+ background-image: -webkit-linear-gradient(#eeeeee 20%, #ffffff 80%);
328
+ background-image: -moz-linear-gradient(#eeeeee 20%, #ffffff 80%);
329
+ background-image: -o-linear-gradient(#eeeeee 20%, #ffffff 80%);
330
+ background-image: linear-gradient(#eeeeee 20%, #ffffff 80%);
331
+ box-shadow: 0 1px 0 #fff inset;
332
+ }
333
+ .chosen-container-active.chosen-with-drop .chosen-single div {
334
+ border-left: none;
335
+ background: transparent;
336
+ }
337
+ .chosen-container-active.chosen-with-drop .chosen-single div b {
338
+ background-position: -18px 2px;
339
+ }
340
+ .chosen-container-active .chosen-choices {
341
+ border: 1px solid #5897fb;
342
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
343
+ }
344
+ .chosen-container-active .chosen-choices li.search-field input[type="text"] {
345
+ color: #111 !important;
346
+ }
347
+
348
+ /* @end */
349
+ /* @group Disabled Support */
350
+ .chosen-disabled {
351
+ opacity: 0.5 !important;
352
+ cursor: default;
353
+ }
354
+ .chosen-disabled .chosen-single {
355
+ cursor: default;
356
+ }
357
+ .chosen-disabled .chosen-choices .search-choice .search-choice-close {
358
+ cursor: default;
359
+ }
360
+
361
+ /* @end */
362
+ /* @group Right to Left */
363
+ .chosen-rtl {
364
+ text-align: right;
365
+ }
366
+ .chosen-rtl .chosen-single {
367
+ overflow: visible;
368
+ padding: 0 8px 0 0;
369
+ }
370
+ .chosen-rtl .chosen-single span {
371
+ margin-right: 0;
372
+ margin-left: 26px;
373
+ direction: rtl;
374
+ }
375
+ .chosen-rtl .chosen-single-with-deselect span {
376
+ margin-left: 38px;
377
+ }
378
+ .chosen-rtl .chosen-single div {
379
+ right: auto;
380
+ left: 3px;
381
+ }
382
+ .chosen-rtl .chosen-single abbr {
383
+ right: auto;
384
+ left: 26px;
385
+ }
386
+ .chosen-rtl .chosen-choices li {
387
+ float: right;
388
+ }
389
+ .chosen-rtl .chosen-choices li.search-field input[type="text"] {
390
+ direction: rtl;
391
+ }
392
+ .chosen-rtl .chosen-choices li.search-choice {
393
+ margin: 3px 5px 3px 0;
394
+ padding: 3px 5px 3px 19px;
395
+ }
396
+ .chosen-rtl .chosen-choices li.search-choice .search-choice-close {
397
+ right: auto;
398
+ left: 4px;
399
+ }
400
+ .chosen-rtl.chosen-container-single-nosearch .chosen-search,
401
+ .chosen-rtl .chosen-drop {
402
+ left: 9999px;
403
+ }
404
+ .chosen-rtl.chosen-container-single .chosen-results {
405
+ margin: 0 0 4px 4px;
406
+ padding: 0 4px 0 0;
407
+ }
408
+ .chosen-rtl .chosen-results li.group-option {
409
+ padding-right: 15px;
410
+ padding-left: 0;
411
+ }
412
+ .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
413
+ border-right: none;
414
+ }
415
+ .chosen-rtl .chosen-search input[type="text"] {
416
+ padding: 4px 5px 4px 20px;
417
+ background: white url('../assets/images/chosen-sprite.png') no-repeat -30px -20px;
418
+ background: url('../assets/images/chosen-sprite.png') no-repeat -30px -20px, -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
419
+ background: url('../assets/images/chosen-sprite.png') no-repeat -30px -20px, -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
420
+ background: url('../assets/images/chosen-sprite.png') no-repeat -30px -20px, -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
421
+ background: url('../assets/images/chosen-sprite.png') no-repeat -30px -20px, -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
422
+ background: url('../assets/images/chosen-sprite.png') no-repeat -30px -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
423
+ direction: rtl;
424
+ }
425
+ .chosen-rtl.chosen-container-single .chosen-single div b {
426
+ background-position: 6px 2px;
427
+ }
428
+ .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
429
+ background-position: -12px 2px;
430
+ }
431
+
432
+ /* @end */
433
+ /* @group Retina compatibility */
434
+ @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
435
+ .chosen-rtl .chosen-search input[type="text"],
436
+ .chosen-container-single .chosen-single abbr,
437
+ .chosen-container-single .chosen-single div b,
438
+ .chosen-container-single .chosen-search input[type="text"],
439
+ .chosen-container-multi .chosen-choices .search-choice .search-choice-close,
440
+ .chosen-container .chosen-results-scroll-down span,
441
+ .chosen-container .chosen-results-scroll-up span {
442
+ background-image: url('chosen-sprite@2x.png') !important;
443
+ background-size: 52px 37px !important;
444
+ background-repeat: no-repeat !important;
445
+ }
446
+ }
447
+ /* @end */