catscope 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/assets/bower.json +1 -0
  3. data/assets/bower_components/foundation/LICENSE +22 -0
  4. data/assets/bower_components/foundation/README.md +46 -0
  5. data/assets/bower_components/foundation/bower.json +2 -4
  6. data/assets/bower_components/foundation/css/foundation.css +1695 -1230
  7. data/assets/bower_components/foundation/css/foundation.css.map +1 -1
  8. data/assets/bower_components/foundation/css/foundation.min.css +1 -0
  9. data/assets/bower_components/foundation/css/normalize.css +9 -12
  10. data/assets/bower_components/foundation/css/normalize.css.map +1 -1
  11. data/assets/bower_components/foundation/css/normalize.min.css +1 -0
  12. data/assets/bower_components/foundation/js/foundation/foundation.abide.js +171 -75
  13. data/assets/bower_components/foundation/js/foundation/foundation.accordion.js +70 -12
  14. data/assets/bower_components/foundation/js/foundation/foundation.alert.js +5 -5
  15. data/assets/bower_components/foundation/js/foundation/foundation.clearing.js +84 -40
  16. data/assets/bower_components/foundation/js/foundation/foundation.dropdown.js +104 -79
  17. data/assets/bower_components/foundation/js/foundation/foundation.equalizer.js +57 -26
  18. data/assets/bower_components/foundation/js/foundation/foundation.interchange.js +50 -38
  19. data/assets/bower_components/foundation/js/foundation/foundation.joyride.js +121 -110
  20. data/assets/bower_components/foundation/js/foundation/foundation.js +121 -79
  21. data/assets/bower_components/foundation/js/foundation/foundation.magellan.js +75 -59
  22. data/assets/bower_components/foundation/js/foundation/foundation.offcanvas.js +95 -22
  23. data/assets/bower_components/foundation/js/foundation/foundation.orbit.js +127 -123
  24. data/assets/bower_components/foundation/js/foundation/foundation.reveal.js +147 -69
  25. data/assets/bower_components/foundation/js/foundation/foundation.slider.js +101 -72
  26. data/assets/bower_components/foundation/js/foundation/foundation.tab.js +52 -39
  27. data/assets/bower_components/foundation/js/foundation/foundation.tooltip.js +97 -49
  28. data/assets/bower_components/foundation/js/foundation/foundation.topbar.js +70 -57
  29. data/assets/bower_components/foundation/js/foundation.js +1544 -951
  30. data/assets/bower_components/foundation/js/foundation.min.js +5 -4
  31. data/assets/bower_components/foundation/js/vendor/fastclick.js +8 -9
  32. data/assets/bower_components/foundation/js/vendor/jquery.js +6 -6
  33. data/assets/bower_components/foundation/js/vendor/modernizr.js +1 -1
  34. data/assets/bower_components/foundation/package.json +57 -0
  35. data/assets/bower_components/foundation/scss/foundation/_functions.scss +53 -43
  36. data/assets/bower_components/foundation/scss/foundation/_settings.scss +59 -37
  37. data/assets/bower_components/foundation/scss/foundation/components/_accordion.scss +12 -8
  38. data/assets/bower_components/foundation/scss/foundation/components/_alert-boxes.scss +12 -12
  39. data/assets/bower_components/foundation/scss/foundation/components/_block-grid.scss +14 -13
  40. data/assets/bower_components/foundation/scss/foundation/components/_breadcrumbs.scss +19 -19
  41. data/assets/bower_components/foundation/scss/foundation/components/_button-groups.scss +33 -25
  42. data/assets/bower_components/foundation/scss/foundation/components/_buttons.scss +30 -28
  43. data/assets/bower_components/foundation/scss/foundation/components/_clearing.scss +51 -47
  44. data/assets/bower_components/foundation/scss/foundation/components/_dropdown-buttons.scss +10 -11
  45. data/assets/bower_components/foundation/scss/foundation/components/_dropdown.scss +45 -38
  46. data/assets/bower_components/foundation/scss/foundation/components/_flex-video.scss +7 -7
  47. data/assets/bower_components/foundation/scss/foundation/components/_forms.scss +99 -62
  48. data/assets/bower_components/foundation/scss/foundation/components/_global.scss +152 -67
  49. data/assets/bower_components/foundation/scss/foundation/components/_grid.scss +39 -36
  50. data/assets/bower_components/foundation/scss/foundation/components/_icon-bar.scss +337 -235
  51. data/assets/bower_components/foundation/scss/foundation/components/_inline-lists.scss +9 -8
  52. data/assets/bower_components/foundation/scss/foundation/components/_joyride.scss +40 -42
  53. data/assets/bower_components/foundation/scss/foundation/components/_keystrokes.scss +2 -3
  54. data/assets/bower_components/foundation/scss/foundation/components/_labels.scss +6 -6
  55. data/assets/bower_components/foundation/scss/foundation/components/_magellan.scss +2 -2
  56. data/assets/bower_components/foundation/scss/foundation/components/_offcanvas.scss +259 -168
  57. data/assets/bower_components/foundation/scss/foundation/components/_orbit.scss +82 -62
  58. data/assets/bower_components/foundation/scss/foundation/components/_pagination.scss +16 -15
  59. data/assets/bower_components/foundation/scss/foundation/components/_panels.scss +21 -15
  60. data/assets/bower_components/foundation/scss/foundation/components/_pricing-tables.scss +16 -16
  61. data/assets/bower_components/foundation/scss/foundation/components/_progress-bars.scss +10 -4
  62. data/assets/bower_components/foundation/scss/foundation/components/_range-slider.scss +28 -20
  63. data/assets/bower_components/foundation/scss/foundation/components/_reveal.scss +38 -28
  64. data/assets/bower_components/foundation/scss/foundation/components/_side-nav.scss +15 -11
  65. data/assets/bower_components/foundation/scss/foundation/components/_split-buttons.scss +22 -18
  66. data/assets/bower_components/foundation/scss/foundation/components/_sub-nav.scss +14 -12
  67. data/assets/bower_components/foundation/scss/foundation/components/_switches.scss +22 -19
  68. data/assets/bower_components/foundation/scss/foundation/components/_tables.scss +8 -8
  69. data/assets/bower_components/foundation/scss/foundation/components/_tabs.scss +50 -31
  70. data/assets/bower_components/foundation/scss/foundation/components/_thumbs.scss +8 -8
  71. data/assets/bower_components/foundation/scss/foundation/components/_tooltips.scss +25 -25
  72. data/assets/bower_components/foundation/scss/foundation/components/_top-bar.scss +176 -122
  73. data/assets/bower_components/foundation/scss/foundation/components/_type.scss +38 -38
  74. data/assets/bower_components/foundation/scss/foundation/components/_visibility.scss +33 -16
  75. data/assets/bower_components/foundation/scss/foundation.scss +37 -40
  76. data/assets/bower_components/foundation/scss/normalize.scss +8 -11
  77. data/assets/bower_components/jquery/bower.json +2 -1
  78. data/assets/bower_components/jquery/dist/jquery.js +9 -4
  79. data/assets/bower_components/jquery/dist/jquery.min.js +4 -4
  80. data/assets/bower_components/jquery/dist/jquery.min.map +1 -1
  81. data/assets/bower_components/jquery/src/core.js +6 -1
  82. data/assets/scss/_settings.scss +2 -0
  83. data/assets/stylesheets/app.css +3066 -2429
  84. data/lib/catscope/version.rb +1 -1
  85. data/lib/catscope/views/layout.erb +6 -2
  86. metadata +8 -4
  87. data/assets/bower_components/foundation/scss/foundation/components/_toolbar.scss +0 -70
@@ -4,11 +4,11 @@
4
4
  Foundation.libs.offcanvas = {
5
5
  name : 'offcanvas',
6
6
 
7
- version : '5.5.0',
7
+ version : '5.5.3',
8
8
 
9
9
  settings : {
10
- open_method: 'move',
11
- close_on_click: false
10
+ open_method : 'move',
11
+ close_on_click : false
12
12
  },
13
13
 
14
14
  init : function (scope, method, options) {
@@ -20,16 +20,22 @@
20
20
  S = self.S,
21
21
  move_class = '',
22
22
  right_postfix = '',
23
- left_postfix = '';
23
+ left_postfix = '',
24
+ top_postfix = '',
25
+ bottom_postfix = '';
24
26
 
25
27
  if (this.settings.open_method === 'move') {
26
28
  move_class = 'move-';
27
29
  right_postfix = 'right';
28
30
  left_postfix = 'left';
31
+ top_postfix = 'top';
32
+ bottom_postfix = 'bottom';
29
33
  } else if (this.settings.open_method === 'overlap_single') {
30
34
  move_class = 'offcanvas-overlap-';
31
35
  right_postfix = 'right';
32
36
  left_postfix = 'left';
37
+ top_postfix = 'top';
38
+ bottom_postfix = 'bottom';
33
39
  } else if (this.settings.open_method === 'overlap') {
34
40
  move_class = 'offcanvas-overlap';
35
41
  }
@@ -37,7 +43,7 @@
37
43
  S(this.scope).off('.offcanvas')
38
44
  .on('click.fndtn.offcanvas', '.left-off-canvas-toggle', function (e) {
39
45
  self.click_toggle_class(e, move_class + right_postfix);
40
- if (self.settings.open_method !== 'overlap'){
46
+ if (self.settings.open_method !== 'overlap') {
41
47
  S('.left-submenu').removeClass(move_class + right_postfix);
42
48
  }
43
49
  $('.left-off-canvas-toggle').attr('aria-expanded', 'true');
@@ -46,21 +52,22 @@
46
52
  var settings = self.get_settings(e);
47
53
  var parent = S(this).parent();
48
54
 
49
- if(settings.close_on_click && !parent.hasClass('has-submenu') && !parent.hasClass('back')){
55
+ if (settings.close_on_click && !parent.hasClass('has-submenu') && !parent.hasClass('back')) {
50
56
  self.hide.call(self, move_class + right_postfix, self.get_wrapper(e));
51
57
  parent.parent().removeClass(move_class + right_postfix);
52
- }else if(S(this).parent().hasClass('has-submenu')){
58
+ } else if (S(this).parent().hasClass('has-submenu')) {
53
59
  e.preventDefault();
54
60
  S(this).siblings('.left-submenu').toggleClass(move_class + right_postfix);
55
- }else if(parent.hasClass('back')){
61
+ } else if (parent.hasClass('back')) {
56
62
  e.preventDefault();
57
63
  parent.parent().removeClass(move_class + right_postfix);
58
64
  }
59
65
  $('.left-off-canvas-toggle').attr('aria-expanded', 'true');
60
66
  })
67
+ //end of left canvas
61
68
  .on('click.fndtn.offcanvas', '.right-off-canvas-toggle', function (e) {
62
69
  self.click_toggle_class(e, move_class + left_postfix);
63
- if (self.settings.open_method !== 'overlap'){
70
+ if (self.settings.open_method !== 'overlap') {
64
71
  S('.right-submenu').removeClass(move_class + left_postfix);
65
72
  }
66
73
  $('.right-off-canvas-toggle').attr('aria-expanded', 'true');
@@ -69,22 +76,71 @@
69
76
  var settings = self.get_settings(e);
70
77
  var parent = S(this).parent();
71
78
 
72
- if(settings.close_on_click && !parent.hasClass('has-submenu') && !parent.hasClass('back')){
79
+ if (settings.close_on_click && !parent.hasClass('has-submenu') && !parent.hasClass('back')) {
73
80
  self.hide.call(self, move_class + left_postfix, self.get_wrapper(e));
74
81
  parent.parent().removeClass(move_class + left_postfix);
75
- }else if(S(this).parent().hasClass('has-submenu')){
82
+ } else if (S(this).parent().hasClass('has-submenu')) {
76
83
  e.preventDefault();
77
84
  S(this).siblings('.right-submenu').toggleClass(move_class + left_postfix);
78
- }else if(parent.hasClass('back')){
85
+ } else if (parent.hasClass('back')) {
79
86
  e.preventDefault();
80
87
  parent.parent().removeClass(move_class + left_postfix);
81
88
  }
82
89
  $('.right-off-canvas-toggle').attr('aria-expanded', 'true');
83
90
  })
91
+ //end of right canvas
92
+ .on('click.fndtn.offcanvas', '.top-off-canvas-toggle', function (e) {
93
+ self.click_toggle_class(e, move_class + bottom_postfix);
94
+ if (self.settings.open_method !== 'overlap') {
95
+ S('.top-submenu').removeClass(move_class + bottom_postfix);
96
+ }
97
+ $('.top-off-canvas-toggle').attr('aria-expanded', 'true');
98
+ })
99
+ .on('click.fndtn.offcanvas', '.top-off-canvas-menu a', function (e) {
100
+ var settings = self.get_settings(e);
101
+ var parent = S(this).parent();
102
+
103
+ if (settings.close_on_click && !parent.hasClass('has-submenu') && !parent.hasClass('back')) {
104
+ self.hide.call(self, move_class + bottom_postfix, self.get_wrapper(e));
105
+ parent.parent().removeClass(move_class + bottom_postfix);
106
+ } else if (S(this).parent().hasClass('has-submenu')) {
107
+ e.preventDefault();
108
+ S(this).siblings('.top-submenu').toggleClass(move_class + bottom_postfix);
109
+ } else if (parent.hasClass('back')) {
110
+ e.preventDefault();
111
+ parent.parent().removeClass(move_class + bottom_postfix);
112
+ }
113
+ $('.top-off-canvas-toggle').attr('aria-expanded', 'true');
114
+ })
115
+ //end of top canvas
116
+ .on('click.fndtn.offcanvas', '.bottom-off-canvas-toggle', function (e) {
117
+ self.click_toggle_class(e, move_class + top_postfix);
118
+ if (self.settings.open_method !== 'overlap') {
119
+ S('.bottom-submenu').removeClass(move_class + top_postfix);
120
+ }
121
+ $('.bottom-off-canvas-toggle').attr('aria-expanded', 'true');
122
+ })
123
+ .on('click.fndtn.offcanvas', '.bottom-off-canvas-menu a', function (e) {
124
+ var settings = self.get_settings(e);
125
+ var parent = S(this).parent();
126
+
127
+ if (settings.close_on_click && !parent.hasClass('has-submenu') && !parent.hasClass('back')) {
128
+ self.hide.call(self, move_class + top_postfix, self.get_wrapper(e));
129
+ parent.parent().removeClass(move_class + top_postfix);
130
+ } else if (S(this).parent().hasClass('has-submenu')) {
131
+ e.preventDefault();
132
+ S(this).siblings('.bottom-submenu').toggleClass(move_class + top_postfix);
133
+ } else if (parent.hasClass('back')) {
134
+ e.preventDefault();
135
+ parent.parent().removeClass(move_class + top_postfix);
136
+ }
137
+ $('.bottom-off-canvas-toggle').attr('aria-expanded', 'true');
138
+ })
139
+ //end of bottom
84
140
  .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
85
141
  self.click_remove_class(e, move_class + left_postfix);
86
142
  S('.right-submenu').removeClass(move_class + left_postfix);
87
- if (right_postfix){
143
+ if (right_postfix) {
88
144
  self.click_remove_class(e, move_class + right_postfix);
89
145
  S('.left-submenu').removeClass(move_class + left_postfix);
90
146
  }
@@ -97,10 +153,27 @@
97
153
  self.click_remove_class(e, move_class + right_postfix);
98
154
  $('.right-off-canvas-toggle').attr('aria-expanded', 'false');
99
155
  }
156
+ })
157
+ .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
158
+ self.click_remove_class(e, move_class + top_postfix);
159
+ S('.bottom-submenu').removeClass(move_class + top_postfix);
160
+ if (bottom_postfix) {
161
+ self.click_remove_class(e, move_class + bottom_postfix);
162
+ S('.top-submenu').removeClass(move_class + top_postfix);
163
+ }
164
+ $('.bottom-off-canvas-toggle').attr('aria-expanded', 'true');
165
+ })
166
+ .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
167
+ self.click_remove_class(e, move_class + top_postfix);
168
+ $('.top-off-canvas-toggle').attr('aria-expanded', 'false');
169
+ if (bottom_postfix) {
170
+ self.click_remove_class(e, move_class + bottom_postfix);
171
+ $('.bottom-off-canvas-toggle').attr('aria-expanded', 'false');
172
+ }
100
173
  });
101
174
  },
102
175
 
103
- toggle: function(class_name, $off_canvas) {
176
+ toggle : function (class_name, $off_canvas) {
104
177
  $off_canvas = $off_canvas || this.get_wrapper();
105
178
  if ($off_canvas.is('.' + class_name)) {
106
179
  this.hide(class_name, $off_canvas);
@@ -109,36 +182,36 @@
109
182
  }
110
183
  },
111
184
 
112
- show: function(class_name, $off_canvas) {
185
+ show : function (class_name, $off_canvas) {
113
186
  $off_canvas = $off_canvas || this.get_wrapper();
114
- $off_canvas.trigger('open').trigger('open.fndtn.offcanvas');
187
+ $off_canvas.trigger('open.fndtn.offcanvas');
115
188
  $off_canvas.addClass(class_name);
116
189
  },
117
190
 
118
- hide: function(class_name, $off_canvas) {
191
+ hide : function (class_name, $off_canvas) {
119
192
  $off_canvas = $off_canvas || this.get_wrapper();
120
- $off_canvas.trigger('close').trigger('close.fndtn.offcanvas');
193
+ $off_canvas.trigger('close.fndtn.offcanvas');
121
194
  $off_canvas.removeClass(class_name);
122
195
  },
123
196
 
124
- click_toggle_class: function(e, class_name) {
197
+ click_toggle_class : function (e, class_name) {
125
198
  e.preventDefault();
126
199
  var $off_canvas = this.get_wrapper(e);
127
200
  this.toggle(class_name, $off_canvas);
128
201
  },
129
202
 
130
- click_remove_class: function(e, class_name) {
203
+ click_remove_class : function (e, class_name) {
131
204
  e.preventDefault();
132
205
  var $off_canvas = this.get_wrapper(e);
133
206
  this.hide(class_name, $off_canvas);
134
207
  },
135
208
 
136
- get_settings: function(e) {
209
+ get_settings : function (e) {
137
210
  var offcanvas = this.S(e.target).closest('[' + this.attr_name() + ']');
138
211
  return offcanvas.data(this.attr_name(true) + '-init') || this.settings;
139
212
  },
140
213
 
141
- get_wrapper: function(e) {
214
+ get_wrapper : function (e) {
142
215
  var $off_canvas = this.S(e ? e.target : this.scope).closest('.off-canvas-wrap');
143
216
 
144
217
  if ($off_canvas.length === 0) {