groundworkcss-rails 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/app/helpers/breadcrumbs_helper.rb~ +5 -0
  2. data/app/helpers/flash_block_helper.rb~ +18 -0
  3. data/app/helpers/flash_helper.rb~ +21 -0
  4. data/app/helpers/groundwork_flash_helper.rb~ +21 -0
  5. data/app/helpers/modal_helper.rb~ +42 -0
  6. data/app/helpers/social_glyph_helper.rb~ +12 -0
  7. data/lib/generators/groundworkcss/install/install_generator.rb~ +44 -0
  8. data/lib/generators/groundworkcss/install/templates/application.css.scss~ +8 -0
  9. data/lib/generators/groundworkcss/install/templates/application.css~ +7 -0
  10. data/lib/generators/groundworkcss/install/templates/application.js~ +10 -0
  11. data/lib/generators/groundworkcss/install/templates/groundwork-and-overrides.scss~ +12 -0
  12. data/lib/generators/groundworkcss/install/templates/groundwork-overrides.scss~ +7 -0
  13. data/lib/generators/groundworkcss/install/templates/groundwork.coffee~ +0 -0
  14. data/lib/generators/groundworkcss/install/templates/groundwork.js~ +1 -0
  15. data/lib/generators/groundworkcss/layout/layout_generator.rb~ +21 -0
  16. data/lib/generators/groundworkcss/layout/templates/_header.html.erb~ +24 -0
  17. data/lib/generators/groundworkcss/layout/templates/_sidebar.html.erb~ +18 -0
  18. data/lib/generators/groundworkcss/layout/templates/layout.html.erb~ +44 -0
  19. data/lib/groundworkcss/rails/bootstrap.rb~ +2 -0
  20. data/lib/groundworkcss/rails/engine.rb~ +30 -0
  21. data/lib/groundworkcss/rails/version.rb +1 -1
  22. data/lib/groundworkcss/rails/version.rb~ +1 -1
  23. data/lib/twitter-bootstrap-rails.rb~ +10 -0
  24. data/vendor/assets/javascripts/groundwork-hook.js +2 -0
  25. data/vendor/assets/javascripts/groundwork-hook.js~ +3 -0
  26. data/vendor/assets/javascripts/groundwork.js~ +8 -0
  27. data/vendor/assets/javascripts/groundworkcss/groundwork.js~ +7 -0
  28. data/vendor/assets/stylesheets/groundworkcss-scss/_font-awesome.scss~ +534 -0
  29. data/vendor/assets/stylesheets/groundworkcss-scss/_grid.scss +101 -21
  30. data/vendor/assets/stylesheets/groundworkcss-scss/_helpers.scss +62 -27
  31. data/vendor/assets/stylesheets/groundworkcss-scss/_mixins.scss +0 -9
  32. data/vendor/assets/stylesheets/groundworkcss-scss/_modals.scss +3 -3
  33. data/vendor/assets/stylesheets/groundworkcss-scss/_reset.scss +3 -2
  34. data/vendor/assets/stylesheets/groundworkcss-scss/_responsive.scss +2 -6
  35. data/vendor/assets/stylesheets/groundworkcss-scss/_social-icons.scss~ +92 -0
  36. data/vendor/assets/stylesheets/groundworkcss-scss/groundwork.scss +3 -9
  37. metadata +324 -307
  38. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.modals.coffee +0 -161
  39. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.popover.coffee +0 -198
  40. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.popover.js +0 -10
  41. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.responsiveTables.coffee +0 -56
  42. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.responsiveTables.js +0 -10
  43. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.responsiveText.coffee +0 -32
  44. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.responsiveText.js +0 -10
  45. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.tooltip.coffee +0 -121
  46. data/vendor/assets/javascripts/groundworkcss/plugins/coffee/jquery.tooltip.js +0 -10
@@ -1,10 +0,0 @@
1
- // Generated by CoffeeScript 1.4.0
2
- /*
3
- *
4
- * jQuery ResponsiveText by Gary Hepting - https://github.com/ghepting/responsiveText
5
- *
6
- * Open source under the BSD License.
7
- *
8
- * Copyright © 2013 Gary Hepting. All rights reserved.
9
- *
10
- */(function(){(function(e){var t;t=[];e.fn.responsiveText=function(n){var r;r={compressor:n.compressor||10,minSize:n.minSize||Number.NEGATIVE_INFINITY,maxSize:n.maxSize||Number.POSITIVE_INFINITY};return this.each(function(){var n;n=e(this);n.attr("data-compression",r.compressor);n.attr("data-min",r.minSize);n.attr("data-max",r.maxSize);n.css("font-size",Math.floor(Math.max(Math.min(n.width()/r.compressor,parseFloat(r.maxSize)),parseFloat(r.minSize))));return t.push(n)})};return e(window).on("resize",function(){return e(t).each(function(){var t;t=e(this);return t.css("font-size",Math.floor(Math.max(Math.min(t.width()/t.attr("data-compression"),parseFloat(t.attr("data-max"))),parseFloat(t.attr("data-min")))))})})})(jQuery)}).call(this);
@@ -1,121 +0,0 @@
1
- ###
2
- *
3
- * jQuery Tooltips by Gary Hepting - https://github.com/ghepting/jquery-tooltips
4
- *
5
- * Open source under the BSD License.
6
- *
7
- * Copyright © 2013 Gary Hepting. All rights reserved.
8
- *
9
- ###
10
-
11
- (($) ->
12
- $.fn.tooltip = (options) ->
13
- defaults =
14
- topOffset: 0
15
- delay: 100 # delay before showing (ms)
16
- speed: 100 # animation speed (ms)
17
-
18
- options = $.extend(defaults, options)
19
-
20
- tooltip = $('#tooltip') # tooltip element
21
- delayShow = '' # delayed open
22
- trigger = '' # store trigger
23
-
24
- getElementPosition = (el) -> # get element position
25
- offset = el.offset()
26
- win = $(window)
27
- top: top = offset.top - win.scrollTop()
28
- left: left = offset.left - win.scrollLeft()
29
- bottom: bottom = win.height() - top - el.outerHeight()
30
- right: right = win.width() - left - el.outerWidth()
31
-
32
- setPosition = (trigger) ->
33
- # get trigger element coordinates
34
- coords = getElementPosition(trigger)
35
- # tooltip dimensions
36
- if tooltip.outerWidth() > ($(window).width() - 20)
37
- tooltip.css('width',$(window).width() - 20)
38
- attrs = {}
39
- # adjust max width of tooltip
40
- tooltip.css('max-width',
41
- Math.min(
42
- ($(window).width()-parseInt($('body').css('padding-left'))-parseInt($('body').css('padding-right'))),
43
- parseInt(tooltip.css('max-width'))
44
- )
45
- )
46
- width = tooltip.outerWidth()
47
- height = tooltip.outerHeight()
48
- # horizontal positioning
49
- if coords.left <= coords.right # default position
50
- tooltip.addClass('left')
51
- attrs.left = coords.left
52
- else # pin from right side
53
- tooltip.addClass('right')
54
- attrs.right = coords.right
55
- # veritcal positioning
56
- if (coords.top-options.topOffset) > (height+20) # top positioned tooltip
57
- tooltip.addClass('top')
58
- attrs.top = (trigger.offset().top - height) - 20
59
- else # bottom positioned tooltip
60
- tooltip.addClass('bottom')
61
- attrs.top = trigger.offset().top + trigger.outerHeight() - 4
62
- tooltip.css attrs
63
-
64
- closetooltip = ->
65
- tooltip.stop().remove() # remove tooltip
66
- $('[role=tooltip]').removeClass('on')
67
-
68
- showtooltip = (trigger) ->
69
- closetooltip() # close tooltip
70
- clearTimeout(delayShow) # cancel previous timeout
71
- delayShow = setTimeout ->
72
- if $('#tooltip').length != 1
73
- # destroy any lingering tooltips
74
- $('#tooltip').remove()
75
- # create tooltip DOM element
76
- tooltip = $("<div id=\"tooltip\"></div>")
77
- # add tooltip element to DOM
78
- tooltip.appendTo("body")
79
- # set tooltip text
80
- tooltip.css("opacity", 0).text(trigger.attr('data-title'))
81
- # initialize tooltip
82
- setPosition(trigger)
83
- trigger.addClass('on')
84
- tooltip.animate
85
- top: "+=10"
86
- opacity: 1
87
- , options.speed
88
- , options.delay
89
-
90
- @each ->
91
- $this = $(this)
92
- $this.attr('role','tooltip').attr('data-title',$this.attr('title'))
93
- $this.removeAttr "title" # remove title attribute (disable browser tooltips)
94
-
95
-
96
- # focus behavior
97
- $('body').on(
98
- 'focus', '[role=tooltip]', ->
99
- showtooltip($(this))
100
- ).on(
101
- 'blur', '[role=tooltip]', ->
102
- clearTimeout(delayShow)
103
- closetooltip()
104
- ).on(
105
- 'mouseenter', '[role=tooltip]:not(input,select,textarea)', ->
106
- showtooltip($(this))
107
- ).on(
108
- 'mouseleave', '[role=tooltip]:not(input,select,textarea)', ->
109
- clearTimeout(delayShow)
110
- closetooltip()
111
- )
112
-
113
- $(window).on
114
- scroll: ->
115
- trigger = $('[role=tooltip].on')
116
- if trigger.length
117
- setPosition(trigger)
118
- $('#tooltip').css
119
- top: "+=10"
120
-
121
- ) jQuery
@@ -1,10 +0,0 @@
1
- // Generated by CoffeeScript 1.4.0
2
- /*
3
- *
4
- * jQuery Tooltips by Gary Hepting - https://github.com/ghepting/jquery-tooltips
5
- *
6
- * Open source under the BSD License.
7
- *
8
- * Copyright © 2013 Gary Hepting. All rights reserved.
9
- *
10
- */(function(){(function(e){return e.fn.tooltip=function(t){var n,r,i,s,o,u,a,f;r={topOffset:0,delay:100,speed:100};t=e.extend(r,t);a=e("#tooltip");i="";f="";s=function(t){var n,r,i,s,o,u;i=t.offset();u=e(window);return{top:o=i.top-u.scrollTop(),left:r=i.left-u.scrollLeft(),bottom:n=u.height()-o-t.outerHeight(),right:s=u.width()-r-t.outerWidth()}};o=function(n){var r,i,o,u;i=s(n);a.outerWidth()>e(window).width()-20&&a.css("width",e(window).width()-20);r={};a.css("max-width",Math.min(e(window).width()-parseInt(e("body").css("padding-left"))-parseInt(e("body").css("padding-right")),parseInt(a.css("max-width"))));u=a.outerWidth();o=a.outerHeight();if(i.left<=i.right){a.addClass("left");r.left=i.left}else{a.addClass("right");r.right=i.right}if(i.top-t.topOffset>o+20){a.addClass("top");r.top=n.offset().top-o-20}else{a.addClass("bottom");r.top=n.offset().top+n.outerHeight()-4}return a.css(r)};n=function(){a.stop().remove();return e("[role=tooltip]").removeClass("on")};u=function(r){n();clearTimeout(i);return i=setTimeout(function(){if(e("#tooltip").length!==1){e("#tooltip").remove();a=e('<div id="tooltip"></div>');a.appendTo("body")}a.css("opacity",0).text(r.attr("data-title"));o(r);r.addClass("on");return a.animate({top:"+=10",opacity:1},t.speed)},t.delay)};this.each(function(){var t;t=e(this);t.attr("role","tooltip").attr("data-title",t.attr("title"));return t.removeAttr("title")});e("body").on("focus","[role=tooltip]",function(){return u(e(this))}).on("blur","[role=tooltip]",function(){clearTimeout(i);return n()}).on("mouseenter","[role=tooltip]:not(input,select,textarea)",function(){return u(e(this))}).on("mouseleave","[role=tooltip]:not(input,select,textarea)",function(){clearTimeout(i);return n()});return e(window).on({scroll:function(){f=e("[role=tooltip].on");if(f.length){o(f);return e("#tooltip").css({top:"+=10"})}}})}})(jQuery)}).call(this);