flashoff 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +74 -0
  6. data/Rakefile +1 -0
  7. data/app/assets/fonts/gotham/gotham-bold.eot +0 -0
  8. data/app/assets/fonts/gotham/gotham-bold.svg +2066 -0
  9. data/app/assets/fonts/gotham/gotham-bold.ttf +0 -0
  10. data/app/assets/fonts/gotham/gotham-bold.woff +0 -0
  11. data/app/assets/fonts/gotham/gotham-book.eot +0 -0
  12. data/app/assets/fonts/gotham/gotham-book.svg +631 -0
  13. data/app/assets/fonts/gotham/gotham-book.ttf +0 -0
  14. data/app/assets/fonts/gotham/gotham-book.woff +0 -0
  15. data/app/assets/fonts/gotham/gotham-light.eot +0 -0
  16. data/app/assets/fonts/gotham/gotham-light.svg +635 -0
  17. data/app/assets/fonts/gotham/gotham-light.ttf +0 -0
  18. data/app/assets/fonts/gotham/gotham-light.woff +0 -0
  19. data/app/assets/fonts/gotham/gotham-medium.eot +0 -0
  20. data/app/assets/fonts/gotham/gotham-medium.svg +629 -0
  21. data/app/assets/fonts/gotham/gotham-medium.ttf +0 -0
  22. data/app/assets/fonts/gotham/gotham-medium.woff +0 -0
  23. data/app/assets/fonts/ionicons/ionicons.eot +0 -0
  24. data/app/assets/fonts/ionicons/ionicons.svg +1390 -0
  25. data/app/assets/fonts/ionicons/ionicons.ttf +0 -0
  26. data/app/assets/fonts/ionicons/ionicons.woff +0 -0
  27. data/flashoff.gemspec +23 -0
  28. data/lib/flashoff/version.rb +3 -0
  29. data/lib/flashoff.rb +5 -0
  30. data/vendor/assets/javascripts/alert.js +78 -0
  31. data/vendor/assets/javascripts/collapse.js +159 -0
  32. data/vendor/assets/javascripts/date_picker.js +1385 -0
  33. data/vendor/assets/javascripts/dropdown.js +134 -0
  34. data/vendor/assets/javascripts/file_input.js +88 -0
  35. data/vendor/assets/javascripts/map.js +2036 -0
  36. data/vendor/assets/javascripts/modal.js +226 -0
  37. data/vendor/assets/javascripts/popover.js +97 -0
  38. data/vendor/assets/javascripts/tab.js +115 -0
  39. data/vendor/assets/javascripts/time_picker.js +878 -0
  40. data/vendor/assets/javascripts/tooltip.js +365 -0
  41. data/vendor/assets/javascripts/transition.js +36 -0
  42. data/vendor/assets/stylesheets/ad.css.scss +72 -0
  43. data/vendor/assets/stylesheets/alert.css.scss +57 -0
  44. data/vendor/assets/stylesheets/breadcrumb.css.scss +26 -0
  45. data/vendor/assets/stylesheets/button.css.scss +183 -0
  46. data/vendor/assets/stylesheets/code.css.scss +49 -0
  47. data/vendor/assets/stylesheets/collapse.css.scss +15 -0
  48. data/vendor/assets/stylesheets/datepicker.css.scss +104 -0
  49. data/vendor/assets/stylesheets/dropdown.css.scss +84 -0
  50. data/vendor/assets/stylesheets/footer.css.scss +33 -0
  51. data/vendor/assets/stylesheets/form.css.scss +213 -0
  52. data/vendor/assets/stylesheets/grid.css.scss +291 -0
  53. data/vendor/assets/stylesheets/header.css.scss +134 -0
  54. data/vendor/assets/stylesheets/icon.css.scss +972 -0
  55. data/vendor/assets/stylesheets/image.css.scss +39 -0
  56. data/vendor/assets/stylesheets/label_and_badge.css.scss +53 -0
  57. data/vendor/assets/stylesheets/link.css.scss +19 -0
  58. data/vendor/assets/stylesheets/list.css.scss +38 -0
  59. data/vendor/assets/stylesheets/map.css.scss +13 -0
  60. data/vendor/assets/stylesheets/modal.css.scss +117 -0
  61. data/vendor/assets/stylesheets/pagination.css.scss +37 -0
  62. data/vendor/assets/stylesheets/placeholder.css.scss +11 -0
  63. data/vendor/assets/stylesheets/popover.css.scss +107 -0
  64. data/vendor/assets/stylesheets/progress.css.scss +25 -0
  65. data/vendor/assets/stylesheets/reset.css.scss +57 -0
  66. data/vendor/assets/stylesheets/tab.css.scss +165 -0
  67. data/vendor/assets/stylesheets/table.css.scss +70 -0
  68. data/vendor/assets/stylesheets/timepicker.css.scss +69 -0
  69. data/vendor/assets/stylesheets/tooltip.css.scss +81 -0
  70. data/vendor/assets/stylesheets/transition.css.scss +12 -0
  71. data/vendor/assets/stylesheets/trunk.css.scss +69 -0
  72. data/vendor/assets/stylesheets/typography.css.scss +147 -0
  73. metadata +144 -0
data/flashoff.gemspec ADDED
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'flashoff/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "flashoff"
8
+ spec.version = Flashoff::VERSION
9
+ spec.authors = ["Juan Gomez"]
10
+ spec.email = ["j.gomez@drexed.com"]
11
+ spec.description = %q{Flashoff is a refreshingly modern responsive web framework for beautiful and faster project development.}
12
+ spec.summary = %q{Flashoff Responsive Web Framework}
13
+ spec.homepage = "http://flashoff.drexed.com"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ end
@@ -0,0 +1,3 @@
1
+ module Flashoff
2
+ VERSION = "0.0.1"
3
+ end
data/lib/flashoff.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "flashoff/version"
2
+
3
+ module Flashoff
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,78 @@
1
+ +function ($) { "use strict";
2
+
3
+ // ALERT CLASS DEFINITION
4
+ // ======================
5
+
6
+ var dismiss = '[data-dismiss="alert"]'
7
+ var Alert = function (el) {
8
+ $(el).on('click', dismiss, this.close)
9
+ }
10
+
11
+ Alert.prototype.close = function (e) {
12
+ var $this = $(this)
13
+ var selector = $this.attr('data-target')
14
+
15
+ if (!selector) {
16
+ selector = $this.attr('href')
17
+ selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
18
+ }
19
+
20
+ var $parent = $(selector)
21
+
22
+ if (e) e.preventDefault()
23
+
24
+ if (!$parent.length) {
25
+ $parent = $this.hasClass('alert') ? $this : $this.parent()
26
+ }
27
+
28
+ $parent.trigger(e = $.Event('close.bs.alert'))
29
+
30
+ if (e.isDefaultPrevented()) return
31
+
32
+ $parent.removeClass('in')
33
+
34
+ function removeElement() {
35
+ $parent.trigger('closed.bs.alert').remove()
36
+ }
37
+
38
+ $.support.transition && $parent.hasClass('fade') ?
39
+ $parent
40
+ .one($.support.transition.end, removeElement)
41
+ .emulateTransitionEnd(150) :
42
+ removeElement()
43
+ }
44
+
45
+
46
+ // ALERT PLUGIN DEFINITION
47
+ // =======================
48
+
49
+ var old = $.fn.alert
50
+
51
+ $.fn.alert = function (option) {
52
+ return this.each(function () {
53
+ var $this = $(this)
54
+ var data = $this.data('bs.alert')
55
+
56
+ if (!data) $this.data('bs.alert', (data = new Alert(this)))
57
+ if (typeof option == 'string') data[option].call($this)
58
+ })
59
+ }
60
+
61
+ $.fn.alert.Constructor = Alert
62
+
63
+
64
+ // ALERT NO CONFLICT
65
+ // =================
66
+
67
+ $.fn.alert.noConflict = function () {
68
+ $.fn.alert = old
69
+ return this
70
+ }
71
+
72
+
73
+ // ALERT DATA-API
74
+ // ==============
75
+
76
+ $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
77
+
78
+ }(jQuery);
@@ -0,0 +1,159 @@
1
+ +function ($) { "use strict";
2
+
3
+ // COLLAPSE PUBLIC CLASS DEFINITION
4
+ // ================================
5
+
6
+ var Collapse = function (element, options) {
7
+ this.$element = $(element)
8
+ this.options = $.extend({}, Collapse.DEFAULTS, options)
9
+ this.transitioning = null
10
+
11
+ if (this.options.parent) this.$parent = $(this.options.parent)
12
+ if (this.options.toggle) this.toggle()
13
+ }
14
+
15
+ Collapse.DEFAULTS = {
16
+ toggle: true
17
+ }
18
+
19
+ Collapse.prototype.dimension = function () {
20
+ var hasWidth = this.$element.hasClass('width')
21
+ return hasWidth ? 'width' : 'height'
22
+ }
23
+
24
+ Collapse.prototype.show = function () {
25
+ if (this.transitioning || this.$element.hasClass('in')) return
26
+
27
+ var startEvent = $.Event('show.bs.collapse')
28
+ this.$element.trigger(startEvent)
29
+ if (startEvent.isDefaultPrevented()) return
30
+
31
+ var actives = this.$parent && this.$parent.find('> .panel > .in')
32
+
33
+ if (actives && actives.length) {
34
+ var hasData = actives.data('bs.collapse')
35
+ if (hasData && hasData.transitioning) return
36
+ actives.collapse('hide')
37
+ hasData || actives.data('bs.collapse', null)
38
+ }
39
+
40
+ var dimension = this.dimension()
41
+
42
+ this.$element
43
+ .removeClass('collapse')
44
+ .addClass('collapsing')
45
+ [dimension](0)
46
+
47
+ this.transitioning = 1
48
+
49
+ var complete = function () {
50
+ this.$element
51
+ .removeClass('collapsing')
52
+ .addClass('in')
53
+ [dimension]('auto')
54
+ this.transitioning = 0
55
+ this.$element.trigger('shown.bs.collapse')
56
+ }
57
+
58
+ if (!$.support.transition) return complete.call(this)
59
+
60
+ var scrollSize = $.camelCase(['scroll', dimension].join('-'))
61
+
62
+ this.$element
63
+ .one($.support.transition.end, $.proxy(complete, this))
64
+ .emulateTransitionEnd(350)
65
+ [dimension](this.$element[0][scrollSize])
66
+ }
67
+
68
+ Collapse.prototype.hide = function () {
69
+ if (this.transitioning || !this.$element.hasClass('in')) return
70
+
71
+ var startEvent = $.Event('hide.bs.collapse')
72
+ this.$element.trigger(startEvent)
73
+ if (startEvent.isDefaultPrevented()) return
74
+
75
+ var dimension = this.dimension()
76
+
77
+ this.$element
78
+ [dimension](this.$element[dimension]())
79
+ [0].offsetHeight
80
+
81
+ this.$element
82
+ .addClass('collapsing')
83
+ .removeClass('collapse')
84
+ .removeClass('in')
85
+
86
+ this.transitioning = 1
87
+
88
+ var complete = function () {
89
+ this.transitioning = 0
90
+ this.$element
91
+ .trigger('hidden.bs.collapse')
92
+ .removeClass('collapsing')
93
+ .addClass('collapse')
94
+ }
95
+
96
+ if (!$.support.transition) return complete.call(this)
97
+
98
+ this.$element
99
+ [dimension](0)
100
+ .one($.support.transition.end, $.proxy(complete, this))
101
+ .emulateTransitionEnd(350)
102
+ }
103
+
104
+ Collapse.prototype.toggle = function () {
105
+ this[this.$element.hasClass('in') ? 'hide' : 'show']()
106
+ }
107
+
108
+
109
+ // COLLAPSE PLUGIN DEFINITION
110
+ // ==========================
111
+
112
+ var old = $.fn.collapse
113
+
114
+ $.fn.collapse = function (option) {
115
+ return this.each(function () {
116
+ var $this = $(this)
117
+ var data = $this.data('bs.collapse')
118
+ var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
119
+
120
+ if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
121
+ if (typeof option == 'string') data[option]()
122
+ })
123
+ }
124
+
125
+ $.fn.collapse.Constructor = Collapse
126
+
127
+
128
+ // COLLAPSE NO CONFLICT
129
+ // ====================
130
+
131
+ $.fn.collapse.noConflict = function () {
132
+ $.fn.collapse = old
133
+ return this
134
+ }
135
+
136
+
137
+ // COLLAPSE DATA-API
138
+ // =================
139
+
140
+ $(document).on('click.bs.collapse.data-api', '[data-toggle=collapse]', function (e) {
141
+ var $this = $(this), href
142
+ var target = $this.attr('data-target')
143
+ || e.preventDefault()
144
+ || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
145
+ var $target = $(target)
146
+ var data = $target.data('bs.collapse')
147
+ var option = data ? 'toggle' : $this.data()
148
+ var parent = $this.attr('data-parent')
149
+ var $parent = parent && $(parent)
150
+
151
+ if (!data || !data.transitioning) {
152
+ if ($parent) $parent.find('[data-toggle=collapse][data-parent="' + parent + '"]').not($this).addClass('collapsed')
153
+ $this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
154
+ }
155
+
156
+ $target.collapse(option)
157
+ })
158
+
159
+ }(jQuery);