groundworkcss-rails 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. data/lib/generators/groundworkcss/layout/templates/_sidebar.html.erb +5 -5
  2. data/lib/groundworkcss/rails/version.rb +1 -1
  3. data/vendor/assets/javascripts/groundworkcss/components/responsiveText.js +19 -2
  4. data/vendor/assets/javascripts/groundworkcss/groundwork.all.js +754 -744
  5. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.modals.js +152 -158
  6. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.popover.js +170 -176
  7. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.responsiveTables.js +44 -50
  8. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.responsiveText.js +26 -32
  9. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.tooltip.js +111 -117
  10. data/vendor/assets/stylesheets/groundworkcss-scss/_buttons.scss +67 -16
  11. data/vendor/assets/stylesheets/groundworkcss-scss/_callouts.scss +21 -11
  12. data/vendor/assets/stylesheets/groundworkcss-scss/_font-awesome.scss +1 -0
  13. data/vendor/assets/stylesheets/groundworkcss-scss/_forms.scss +4 -4
  14. data/vendor/assets/stylesheets/groundworkcss-scss/_messages.scss +20 -10
  15. data/vendor/assets/stylesheets/groundworkcss-scss/_typography.scss +2 -0
  16. data/vendor/assets/stylesheets/groundworkcss-scss/_variables.scss +30 -5
  17. data/vendor/assets/stylesheets/groundworkcss-scss/{groundwork.css.scss → groundwork.scss} +0 -0
  18. metadata +15 -22
  19. data/vendor/assets/fonts/groundworkcss/fontawesome.otf +0 -0
  20. data/vendor/assets/javascripts/groundworkcss/groundwork.js +0 -264
  21. data/vendor/assets/javascripts/groundworkcss/libs/html5shiv.js +0 -299
  22. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.orbit-1.4.0.js +0 -919
  23. data/vendor/assets/stylesheets/groundworkcss-scss/_classes.scss +0 -143
  24. data/vendor/assets/stylesheets/groundworkcss-scss/_layout.scss +0 -78
  25. data/vendor/assets/stylesheets/groundworkcss-scss/_orbit.scss +0 -239
@@ -20,20 +20,30 @@
20
20
  &.large {
21
21
  font-size:1.5em;
22
22
  }
23
- &.error {
24
- background:$error-color;
25
- border:1px solid darken($error-color, 10%);
26
- color:$button-text;
23
+ &.info {
24
+ background-color:$info-background;
25
+ color:$info-color;
26
+ border-color:$info-border;
27
+ }
28
+ &.alert {
29
+ background-color:$alert-background;
30
+ color:$alert-color;
31
+ border-color:$alert-border;
27
32
  }
28
33
  &.warning {
29
- background:$warning-color;
30
- border:1px solid darken($warning-color, 10%);
31
- color:$button-text;
34
+ background:$warning-background;
35
+ color:$warning-color;
36
+ border-color:$warning-border;
37
+ }
38
+ &.error {
39
+ background:$error-background;
40
+ color:$error-color;
41
+ border-color:$error-border;
32
42
  }
33
43
  &.success {
34
- background:$success-color;
35
- border:1px solid darken($success-color, 10%);
36
- color:$button-text;
44
+ background:$success-background;
45
+ color:$success-color;
46
+ border-color:$success-border;
37
47
  }
38
48
  &.square {
39
49
  @include rounded(0);
@@ -46,7 +56,7 @@
46
56
  }
47
57
  // content overrides
48
58
  h1, h2, h3, h4, h5, h6 {
49
- color:$button-text;
59
+ color:inherit;
50
60
  }
51
61
  *:last-child {
52
62
  margin-bottom:0;
@@ -21,6 +21,7 @@
21
21
  * Work: Lead Product Designer @ http://kyruus.com
22
22
  */
23
23
 
24
+ $fontAwesomePath: "#{$root_path}#{$fonts_path}" !default;
24
25
  $borderColor: #eee;
25
26
  $iconMuted: #eee;
26
27
  @mixin border-radius($radius) { -webkit-border-radius: $radius; -moz-border-radius: $radius; border-radius: $radius; }
@@ -58,9 +58,9 @@ input, select, textarea {
58
58
  }
59
59
  .error, .invalid {
60
60
  input, select, textarea {
61
+ background:$error-background;
61
62
  color:$error-color;
62
- background:lighten($error-color, 62%);
63
- border-color:$error-color;
63
+ border-color:$error-border;
64
64
  }
65
65
  .prefix, .suffix {
66
66
  color:lighten($error-color, 62%);;
@@ -70,9 +70,9 @@ input, select, textarea {
70
70
  }
71
71
  .success, .valid {
72
72
  input, select, textarea {
73
+ background:$success-background;
73
74
  color:$success-color;
74
- background:lighten($success-color, 56%);
75
- border-color:$success-color;
75
+ border-color:$success-border;
76
76
  }
77
77
  .prefix, .suffix {
78
78
  color:lighten($success-color, 62%);;
@@ -21,20 +21,30 @@
21
21
  &.large {
22
22
  font-size:1.5em;
23
23
  }
24
- &.error {
25
- background:$error-color;
26
- border:1px solid darken($error-color, 10%);
27
- color:$button-text;
24
+ &.info {
25
+ background-color:$info-background;
26
+ color:$info-color;
27
+ border-color:$info-border;
28
+ }
29
+ &.alert {
30
+ background-color:$alert-background;
31
+ color:$alert-color;
32
+ border-color:$alert-border;
28
33
  }
29
34
  &.warning {
30
- background:$warning-color;
31
- border:1px solid darken($warning-color, 10%);
32
- color:$button-text;
35
+ background:$warning-background;
36
+ color:$warning-color;
37
+ border-color:$warning-border;
38
+ }
39
+ &.error {
40
+ background:$error-background;
41
+ color:$error-color;
42
+ border-color:$error-border;
33
43
  }
34
44
  &.success {
35
- background:$success-color;
36
- border:1px solid darken($success-color, 10%);
37
- color:$button-text;
45
+ background:$success-background;
46
+ color:$success-color;
47
+ border-color:$success-border;
38
48
  }
39
49
  &.square {
40
50
  @include rounded(0);
@@ -29,6 +29,7 @@ a, a:visited {
29
29
  color:$link-color;
30
30
  @include transition(color 0.25s);
31
31
  &:hover, &:focus {
32
+ color:$link-active;
32
33
  text-decoration:underline;
33
34
  }
34
35
  }
@@ -202,6 +203,7 @@ pre {
202
203
  border-left:#{$border} solid gray;
203
204
  counter-reset:linenumber;
204
205
  code {
206
+ display:block;
205
207
  background:inherit;
206
208
  margin:0;
207
209
  padding:0;
@@ -14,30 +14,55 @@ $fonts_path: 'font/'; // path to fonts (relative from $root_path)
14
14
  $boxsizing_path: '/js/libs/boxsizing.htc'; // path to box sizing polyfill (change to absolute path from HTML document root)
15
15
 
16
16
 
17
+ ///////////////////////
18
+ // colors //
19
+ ///////////////////////
20
+
17
21
  // base styles
18
22
  $background-color: #ffffff;
19
23
  $font-color: #2b2b2d;
20
24
  $font-size: 14px;
21
25
  $font-family: Helvetica, Arial, Geneva, sans-serif;
26
+ // links
22
27
  $link-color: #489AC1;
23
28
  $link-active: #198D98;
24
- $selection-color: $font-color;
29
+ // selection
30
+ $selection-color: $link-color;
25
31
  $selection-text: #ffffff;
32
+ // borders
26
33
  $border-color: #dddddd;
34
+ // buttons
27
35
  $button-color: #1DABB8;
28
36
  $button-border-color: darken($button-color,10%);
29
37
  $button-active: #198D98;
30
38
  $button-text: #ffffff;
31
39
  $button-active-text: #ffffff;
40
+ // disabled
32
41
  $disabled-color: gray;
33
- $error-color: #A40400;
42
+ // info
43
+ $info-color: #3a87ad;
44
+ $info-background: #d9edf7;
45
+ $info-border: #bce8f1;
46
+ // alert
47
+ $alert-color: #c09853;
48
+ $alert-background: #fcf8e3;
49
+ $alert-border: #fbeee0;
50
+ // error
51
+ $error-color: #b94a48;
52
+ $error-background: #f2dede;
53
+ $error-border: #eed3d7;
54
+ // warning
34
55
  $warning-color: #FF971E;
35
- $success-color: #5FB40E;
56
+ $warning-background: #FFE5C7;
57
+ $warning-border: #FFDBB3;
58
+ // success
59
+ $success-color: #468847;
60
+ $success-background: #dff0d8;
61
+ $success-border: #d6e9c6;
62
+ // rounded corners
36
63
  $radius: 4px;
37
64
 
38
65
 
39
-
40
-
41
66
  ///////////////////////
42
67
  // fractions //
43
68
  ///////////////////////
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groundworkcss-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-09 00:00:00.000000000 Z
12
+ date: 2013-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
16
- requirement: &82764330 !ruby/object:Gem::Requirement
16
+ requirement: &71002650 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *82764330
24
+ version_requirements: *71002650
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: actionpack
27
- requirement: &82764080 !ruby/object:Gem::Requirement
27
+ requirement: &71002400 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.1'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *82764080
35
+ version_requirements: *71002400
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: execjs
38
- requirement: &82763890 !ruby/object:Gem::Requirement
38
+ requirement: &71002210 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *82763890
46
+ version_requirements: *71002210
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rails
49
- requirement: &82763620 !ruby/object:Gem::Requirement
49
+ requirement: &71001940 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '3.1'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *82763620
57
+ version_requirements: *71001940
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: less
60
- requirement: &82763410 !ruby/object:Gem::Requirement
60
+ requirement: &71001700 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *82763410
68
+ version_requirements: *71001700
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: therubyracer
71
- requirement: &82763110 !ruby/object:Gem::Requirement
71
+ requirement: &71001400 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - =
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: 0.11.1
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *82763110
79
+ version_requirements: *71001400
80
80
  description: Gem that integrates Sidereel GroundworkCSS into Rails 3+
81
81
  email:
82
82
  - ognjen.regoje@gmail.com
@@ -115,7 +115,6 @@ files:
115
115
  - lib/groundworkcss/rails/bootstrap.rb~
116
116
  - lib/twitter-bootstrap-rails.rb~
117
117
  - vendor/assets/fonts/groundworkcss/fontawesome-webfont.svg
118
- - vendor/assets/fonts/groundworkcss/fontawesome.otf
119
118
  - vendor/assets/fonts/groundworkcss/FontAwesome.otf
120
119
  - vendor/assets/fonts/groundworkcss/fontawesome-webfont.woff
121
120
  - vendor/assets/fonts/groundworkcss/fontawesome-webfont.eot
@@ -378,7 +377,6 @@ files:
378
377
  - vendor/assets/javascripts/groundworkcss/components/modals.js
379
378
  - vendor/assets/javascripts/groundworkcss/components/responsiveTables.js
380
379
  - vendor/assets/javascripts/groundworkcss/components/forms.js
381
- - vendor/assets/javascripts/groundworkcss/groundwork.js
382
380
  - vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.video.js
383
381
  - vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.shuffle.js
384
382
  - vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.tile.js
@@ -388,7 +386,6 @@ files:
388
386
  - vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.scrollVert.js
389
387
  - vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.caption2.js
390
388
  - vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.ie-fade.js
391
- - vendor/assets/javascripts/groundworkcss/plugins/jquery.orbit-1.4.0.js
392
389
  - vendor/assets/javascripts/groundworkcss/plugins/jquery.popover.js
393
390
  - vendor/assets/javascripts/groundworkcss/plugins/jquery.tooltip.js
394
391
  - vendor/assets/javascripts/groundworkcss/plugins/jquery.modals.js
@@ -398,7 +395,6 @@ files:
398
395
  - vendor/assets/javascripts/groundworkcss/libs/jquery-1.8.2.min.js
399
396
  - vendor/assets/javascripts/groundworkcss/libs/html5shiv.min.js
400
397
  - vendor/assets/javascripts/groundworkcss/libs/placeholder_polyfill.jquery.js
401
- - vendor/assets/javascripts/groundworkcss/libs/html5shiv.js
402
398
  - vendor/assets/javascripts/groundworkcss/libs/modernizr-2.6.2.min.js
403
399
  - vendor/assets/javascripts/groundworkcss/libs/boxsizing.htc
404
400
  - vendor/assets/javascripts/groundworkcss/groundwork.all.js
@@ -415,15 +411,12 @@ files:
415
411
  - vendor/assets/stylesheets/groundworkcss-scss/_webfonts.scss
416
412
  - vendor/assets/stylesheets/groundworkcss-scss/_mixins.scss
417
413
  - vendor/assets/stylesheets/groundworkcss-scss/_tiles.scss
418
- - vendor/assets/stylesheets/groundworkcss-scss/_classes.scss
414
+ - vendor/assets/stylesheets/groundworkcss-scss/groundwork.scss
419
415
  - vendor/assets/stylesheets/groundworkcss-scss/_tooltips.scss
420
- - vendor/assets/stylesheets/groundworkcss-scss/_layout.scss
421
416
  - vendor/assets/stylesheets/groundworkcss-scss/_cycle.scss
422
417
  - vendor/assets/stylesheets/groundworkcss-scss/_global.scss
423
418
  - vendor/assets/stylesheets/groundworkcss-scss/_callouts.scss
424
- - vendor/assets/stylesheets/groundworkcss-scss/groundwork.css.scss
425
419
  - vendor/assets/stylesheets/groundworkcss-scss/_ui-elements.scss
426
- - vendor/assets/stylesheets/groundworkcss-scss/_orbit.scss
427
420
  - vendor/assets/stylesheets/groundworkcss-scss/_typography.scss
428
421
  - vendor/assets/stylesheets/groundworkcss-scss/_animations.scss
429
422
  - vendor/assets/stylesheets/groundworkcss-scss/_tables.scss
@@ -1,264 +0,0 @@
1
- // Generated by CoffeeScript 1.6.1
2
-
3
- /*
4
- *
5
- * GroundworkCSS JS by Gary Hepting - https://github.com/groundworkcss/groundwork
6
- *
7
- * Open source under the BSD License.
8
- *
9
- * Copyright © 2013 Gary Hepting. All rights reserved.
10
- *
11
- */
12
-
13
-
14
- (function() {
15
- var limitPaginationItems;
16
-
17
- $(document).ready(function() {
18
- var delay, dropdown, menu, navitem;
19
- delay = '';
20
- navitem = $('nav > ul > li');
21
- navitem.find('>a').on({
22
- focus: function(e) {
23
- $('nav > ul > li').removeClass('on');
24
- return $('nav > ul > li > ul').hide();
25
- }
26
- });
27
- menu = $('nav > ul > li.menu');
28
- menu.on({
29
- mouseenter: function(e) {
30
- if ($(window).width() > 768) {
31
- clearTimeout(delay);
32
- $('nav > ul > li').removeClass('on');
33
- $('nav > ul > li > ul').hide();
34
- return $(this).addClass('on');
35
- }
36
- },
37
- mouseleave: function(e) {
38
- if ($(window).width() > 768) {
39
- return delay = setTimeout((function() {
40
- $('nav > ul > li').removeClass('on');
41
- return $('nav > ul > li > ul').hide();
42
- }), 350);
43
- }
44
- },
45
- click: function(e) {
46
- var $this;
47
- if ($(window).width() < 768) {
48
- if ($(e.target).parent('li.menu').size() > 0) {
49
- $this = $(this);
50
- $(this).children('ul').slideToggle(300, function() {
51
- return $this.toggleClass('on');
52
- });
53
- e.preventDefault();
54
- return false;
55
- }
56
- }
57
- },
58
- tap: function(e) {
59
- var $this;
60
- if ($(e.target).parent('li.menu').size() > 0) {
61
- $this = $(this);
62
- $(this).children('ul').slideToggle(300, function() {
63
- return $this.toggleClass('on');
64
- });
65
- e.preventDefault();
66
- return false;
67
- }
68
- }
69
- });
70
- menu.find('>a').on({
71
- focus: function() {
72
- return $(this).parent('li.menu').trigger('mouseenter');
73
- }
74
- });
75
- menu.find('li:last-child > a').on({
76
- blur: function() {
77
- return $(this).closest('li.menu').trigger('mouseleave');
78
- }
79
- });
80
- dropdown = $('.dropdown');
81
- dropdown.on({
82
- focus: function() {
83
- return $(this).addClass('on');
84
- }
85
- });
86
- dropdown.find('li:last-child a').on({
87
- blur: function() {
88
- return dropdown.filter('.on').removeClass('on');
89
- }
90
- });
91
- $('body').on('click', function(e) {
92
- if ($(e.target).hasClass('dropdown')) {
93
- $(e.target).toggleClass('on');
94
- } else {
95
- if (dropdown.filter('.on').length) {
96
- dropdown.filter('.on').removeClass('on');
97
- }
98
- }
99
- if (navitem.filter('.menu.on').length) {
100
- return navitem.filter('.menu.on').removeClass('on');
101
- }
102
- });
103
- limitPaginationItems();
104
- $('.pagination ul > li:not(.next, .prev) a').on('click', (function(e) {
105
- $('.pagination ul > li:not(.next, .prev)').removeClass('active');
106
- $(this).parent('li').addClass('active');
107
- if ($(this).parent('li').hasClass('first')) {
108
- $('.pagination ul > li.prev').addClass('disabled');
109
- } else {
110
- $('.pagination ul > li.prev').removeClass('disabled');
111
- }
112
- if ($(this).parent('li').hasClass('last')) {
113
- $('.pagination ul > li.next').addClass('disabled');
114
- } else {
115
- $('.pagination ul > li.next').removeClass('disabled');
116
- }
117
- limitPaginationItems();
118
- e.preventDefault();
119
- return false;
120
- }));
121
- $('.pagination ul > li.prev:not(.disabled)').on('click', (function(e) {
122
- var el;
123
- $('.pagination ul > li.next').removeClass('disabled');
124
- el = $('.pagination ul > li.active');
125
- if (!el.hasClass('first')) {
126
- el.removeClass('active');
127
- el.prev().addClass('active');
128
- limitPaginationItems();
129
- }
130
- if ($('.pagination ul > li.active').hasClass('first')) {
131
- $(this).addClass('disabled');
132
- }
133
- e.preventDefault();
134
- return false;
135
- }));
136
- $('.pagination ul > li.next:not(.disabled)').on('click', (function(e) {
137
- var el;
138
- $('.pagination ul > li.prev').removeClass('disabled');
139
- el = $('.pagination ul > li.active');
140
- if (!el.hasClass('last')) {
141
- el.removeClass('active');
142
- el.next().addClass('active');
143
- limitPaginationItems();
144
- }
145
- if ($('.pagination ul > li.active').hasClass('last')) {
146
- $(this).addClass('disabled');
147
- }
148
- e.preventDefault();
149
- return false;
150
- }));
151
- $('.pagination ul > li.disabled a').on('click', (function(e) {
152
- e.preventDefault();
153
- return false;
154
- }));
155
- $('.error input, .error textarea, \
156
- .invalid input, .invalid textarea, \
157
- input.error, textarea.error, \
158
- input.invalid, textarea.invalid').on({
159
- click: function() {
160
- $(this).focus();
161
- return $(this).select();
162
- }
163
- });
164
- $('span.select select').each(function() {
165
- if ($(this).children('option').first().val() === '' && $(this).children('option').first().attr('selected')) {
166
- return $(this).addClass('unselected');
167
- } else {
168
- return $(this).removeClass('unselected');
169
- }
170
- });
171
- $('span.select select').on({
172
- change: function() {
173
- if ($(this).children('option').first().val() === '' && $(this).children('option').first().attr('selected')) {
174
- return $(this).addClass('unselected');
175
- } else {
176
- return $(this).removeClass('unselected');
177
- }
178
- }
179
- });
180
- $('.tabs > ul > li > a[href^=#]').on('click', function(e) {
181
- var tabs;
182
- if (!$(this).hasClass('disabled')) {
183
- tabs = $(this).parents('.tabs');
184
- tabs.find('> ul li a').removeClass('active');
185
- $(this).addClass('active');
186
- tabs.children('div').removeClass('active');
187
- tabs.children($(this).attr('href')).addClass('active');
188
- }
189
- e.preventDefault();
190
- return false;
191
- });
192
- $('.responsive').not('table').each(function(index, object) {
193
- var compression, max, min;
194
- compression = 10;
195
- min = 10;
196
- max = 200;
197
- compression = parseFloat($(this).attr('data-compression') || compression);
198
- min = parseFloat($(this).attr('data-min') || min);
199
- max = parseFloat($(this).attr('data-max') || max);
200
- return $(object).responsiveText({
201
- compressor: compression,
202
- minSize: min,
203
- maxSize: max
204
- });
205
- });
206
- $('table.responsive').each(function(index, object) {
207
- var compression, max, min, padding;
208
- compression = 30;
209
- min = 8;
210
- max = 13;
211
- padding = 0;
212
- compression = parseFloat($(this).attr('data-compression') || compression);
213
- min = parseFloat($(this).attr('data-min') || min);
214
- max = parseFloat($(this).attr('data-max') || max);
215
- padding = parseFloat($(this).attr('data-padding') || padding);
216
- return $(object).responsiveTable({
217
- compressor: compression,
218
- minSize: min,
219
- maxSize: max,
220
- padding: padding
221
- });
222
- });
223
- $('.tooltip[title]').tooltip();
224
- return $('div.modal').modal();
225
- });
226
-
227
- $(window).resize(function() {
228
- return limitPaginationItems();
229
- });
230
-
231
- limitPaginationItems = function() {
232
- return $('.pagination ul').each(function() {
233
- var pagination, visibleItemsWidth, visibleSpace, _results;
234
- pagination = $(this);
235
- visibleSpace = pagination.outerWidth() - pagination.children('li.prev').outerWidth() - pagination.children('li.next').outerWidth();
236
- pagination.children('li').not('.prev, .next, .active').hide();
237
- visibleItemsWidth = 0;
238
- pagination.children('li:visible').each(function() {
239
- return visibleItemsWidth += $(this).outerWidth();
240
- });
241
- _results = [];
242
- while ((visibleItemsWidth + 29) < visibleSpace) {
243
- pagination.children('li:visible').not('.next').last().next().show();
244
- visibleItemsWidth = 0;
245
- pagination.children('li:visible').each(function() {
246
- return visibleItemsWidth += $(this).outerWidth();
247
- });
248
- if ((visibleItemsWidth + 29) <= visibleSpace) {
249
- pagination.children('li:visible').not('.prev').first().prev().show();
250
- visibleItemsWidth = 0;
251
- pagination.children('li:visible').each(function() {
252
- return visibleItemsWidth += $(this).outerWidth();
253
- });
254
- }
255
- visibleItemsWidth = 0;
256
- _results.push(pagination.children('li:visible').each(function() {
257
- return visibleItemsWidth += $(this).outerWidth();
258
- }));
259
- }
260
- return _results;
261
- });
262
- };
263
-
264
- }).call(this);