colorgy_style 0.0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +41 -0
  3. data/.gitignore +13 -0
  4. data/.rspec +2 -0
  5. data/.travis.yml +4 -0
  6. data/Gemfile +10 -0
  7. data/README.md +36 -0
  8. data/Rakefile +11 -0
  9. data/assets/fonts/colorgy/.keep +0 -0
  10. data/assets/images/colorgy/.keep +0 -0
  11. data/assets/javascripts/colorgy.js +1 -0
  12. data/assets/javascripts/colorgy/main.js +7 -0
  13. data/assets/javascripts/colorgy/modernizr.js +7 -0
  14. data/assets/javascripts/colorgy/modernizr/classifier.coffee +14 -0
  15. data/assets/javascripts/vendor/es5-shim.js +1432 -0
  16. data/assets/javascripts/vendor/modernizr.js +1406 -0
  17. data/assets/javascripts/vendor/modernizr/feature-detects/a-download.js +8 -0
  18. data/assets/javascripts/vendor/modernizr/feature-detects/audio-audiodata-api.js +4 -0
  19. data/assets/javascripts/vendor/modernizr/feature-detects/audio-webaudio-api.js +4 -0
  20. data/assets/javascripts/vendor/modernizr/feature-detects/battery-api.js +8 -0
  21. data/assets/javascripts/vendor/modernizr/feature-detects/battery-level.js +11 -0
  22. data/assets/javascripts/vendor/modernizr/feature-detects/blob-constructor.js +10 -0
  23. data/assets/javascripts/vendor/modernizr/feature-detects/canvas-todataurl-type.js +28 -0
  24. data/assets/javascripts/vendor/modernizr/feature-detects/contenteditable.js +9 -0
  25. data/assets/javascripts/vendor/modernizr/feature-detects/contentsecuritypolicy.js +10 -0
  26. data/assets/javascripts/vendor/modernizr/feature-detects/contextmenu.js +11 -0
  27. data/assets/javascripts/vendor/modernizr/feature-detects/cookies.js +15 -0
  28. data/assets/javascripts/vendor/modernizr/feature-detects/cors.js +3 -0
  29. data/assets/javascripts/vendor/modernizr/feature-detects/css-backgroundposition-shorthand.js +19 -0
  30. data/assets/javascripts/vendor/modernizr/feature-detects/css-backgroundposition-xy.js +15 -0
  31. data/assets/javascripts/vendor/modernizr/feature-detects/css-backgroundrepeat.js +31 -0
  32. data/assets/javascripts/vendor/modernizr/feature-detects/css-backgroundsizecover.js +10 -0
  33. data/assets/javascripts/vendor/modernizr/feature-detects/css-boxsizing.js +9 -0
  34. data/assets/javascripts/vendor/modernizr/feature-detects/css-calc.js +12 -0
  35. data/assets/javascripts/vendor/modernizr/feature-detects/css-cubicbezierrange.js +8 -0
  36. data/assets/javascripts/vendor/modernizr/feature-detects/css-displayrunin.js +18 -0
  37. data/assets/javascripts/vendor/modernizr/feature-detects/css-displaytable.js +27 -0
  38. data/assets/javascripts/vendor/modernizr/feature-detects/css-filters.js +7 -0
  39. data/assets/javascripts/vendor/modernizr/feature-detects/css-hyphens.js +205 -0
  40. data/assets/javascripts/vendor/modernizr/feature-detects/css-lastchild.js +11 -0
  41. data/assets/javascripts/vendor/modernizr/feature-detects/css-mask.js +12 -0
  42. data/assets/javascripts/vendor/modernizr/feature-detects/css-mediaqueries.js +3 -0
  43. data/assets/javascripts/vendor/modernizr/feature-detects/css-objectfit.js +6 -0
  44. data/assets/javascripts/vendor/modernizr/feature-detects/css-overflow-scrolling.js +9 -0
  45. data/assets/javascripts/vendor/modernizr/feature-detects/css-pointerevents.js +25 -0
  46. data/assets/javascripts/vendor/modernizr/feature-detects/css-positionsticky.js +13 -0
  47. data/assets/javascripts/vendor/modernizr/feature-detects/css-regions.js +55 -0
  48. data/assets/javascripts/vendor/modernizr/feature-detects/css-remunit.js +19 -0
  49. data/assets/javascripts/vendor/modernizr/feature-detects/css-resize.js +8 -0
  50. data/assets/javascripts/vendor/modernizr/feature-detects/css-scrollbars.js +19 -0
  51. data/assets/javascripts/vendor/modernizr/feature-detects/css-shapes.js +4 -0
  52. data/assets/javascripts/vendor/modernizr/feature-detects/css-subpixelfont.js +23 -0
  53. data/assets/javascripts/vendor/modernizr/feature-detects/css-supports.js +6 -0
  54. data/assets/javascripts/vendor/modernizr/feature-detects/css-userselect.js +10 -0
  55. data/assets/javascripts/vendor/modernizr/feature-detects/css-vhunit.js +14 -0
  56. data/assets/javascripts/vendor/modernizr/feature-detects/css-vmaxunit.js +14 -0
  57. data/assets/javascripts/vendor/modernizr/feature-detects/css-vminunit.js +14 -0
  58. data/assets/javascripts/vendor/modernizr/feature-detects/css-vwunit.js +14 -0
  59. data/assets/javascripts/vendor/modernizr/feature-detects/custom-protocol-handler.js +10 -0
  60. data/assets/javascripts/vendor/modernizr/feature-detects/dart.js +6 -0
  61. data/assets/javascripts/vendor/modernizr/feature-detects/dataview-api.js +4 -0
  62. data/assets/javascripts/vendor/modernizr/feature-detects/dom-classlist.js +4 -0
  63. data/assets/javascripts/vendor/modernizr/feature-detects/dom-createElement-attrs.js +11 -0
  64. data/assets/javascripts/vendor/modernizr/feature-detects/dom-dataset.js +9 -0
  65. data/assets/javascripts/vendor/modernizr/feature-detects/dom-microdata.js +4 -0
  66. data/assets/javascripts/vendor/modernizr/feature-detects/elem-datalist.js +12 -0
  67. data/assets/javascripts/vendor/modernizr/feature-detects/elem-details.js +25 -0
  68. data/assets/javascripts/vendor/modernizr/feature-detects/elem-output.js +4 -0
  69. data/assets/javascripts/vendor/modernizr/feature-detects/elem-progress-meter.js +11 -0
  70. data/assets/javascripts/vendor/modernizr/feature-detects/elem-ruby.js +53 -0
  71. data/assets/javascripts/vendor/modernizr/feature-detects/elem-time.js +4 -0
  72. data/assets/javascripts/vendor/modernizr/feature-detects/elem-track.js +11 -0
  73. data/assets/javascripts/vendor/modernizr/feature-detects/emoji.js +11 -0
  74. data/assets/javascripts/vendor/modernizr/feature-detects/es5-strictmode.js +7 -0
  75. data/assets/javascripts/vendor/modernizr/feature-detects/event-deviceorientation-motion.js +11 -0
  76. data/assets/javascripts/vendor/modernizr/feature-detects/exif-orientation.js +32 -0
  77. data/assets/javascripts/vendor/modernizr/feature-detects/file-api.js +12 -0
  78. data/assets/javascripts/vendor/modernizr/feature-detects/file-filesystem.js +9 -0
  79. data/assets/javascripts/vendor/modernizr/feature-detects/forms-fileinput.js +13 -0
  80. data/assets/javascripts/vendor/modernizr/feature-detects/forms-formattribute.js +29 -0
  81. data/assets/javascripts/vendor/modernizr/feature-detects/forms-inputnumber-l10n.js +32 -0
  82. data/assets/javascripts/vendor/modernizr/feature-detects/forms-placeholder.js +10 -0
  83. data/assets/javascripts/vendor/modernizr/feature-detects/forms-speechinput.js +19 -0
  84. data/assets/javascripts/vendor/modernizr/feature-detects/forms-validation.js +62 -0
  85. data/assets/javascripts/vendor/modernizr/feature-detects/fullscreen-api.js +10 -0
  86. data/assets/javascripts/vendor/modernizr/feature-detects/gamepad.js +12 -0
  87. data/assets/javascripts/vendor/modernizr/feature-detects/getusermedia.js +5 -0
  88. data/assets/javascripts/vendor/modernizr/feature-detects/ie8compat.js +12 -0
  89. data/assets/javascripts/vendor/modernizr/feature-detects/iframe-sandbox.js +5 -0
  90. data/assets/javascripts/vendor/modernizr/feature-detects/iframe-seamless.js +5 -0
  91. data/assets/javascripts/vendor/modernizr/feature-detects/iframe-srcdoc.js +5 -0
  92. data/assets/javascripts/vendor/modernizr/feature-detects/img-apng.js +26 -0
  93. data/assets/javascripts/vendor/modernizr/feature-detects/img-webp.js +20 -0
  94. data/assets/javascripts/vendor/modernizr/feature-detects/json.js +7 -0
  95. data/assets/javascripts/vendor/modernizr/feature-detects/lists-reversed.js +6 -0
  96. data/assets/javascripts/vendor/modernizr/feature-detects/mathml.js +23 -0
  97. data/assets/javascripts/vendor/modernizr/feature-detects/network-connection.js +22 -0
  98. data/assets/javascripts/vendor/modernizr/feature-detects/network-eventsource.js +5 -0
  99. data/assets/javascripts/vendor/modernizr/feature-detects/network-xhr2.js +13 -0
  100. data/assets/javascripts/vendor/modernizr/feature-detects/notification.js +10 -0
  101. data/assets/javascripts/vendor/modernizr/feature-detects/performance.js +5 -0
  102. data/assets/javascripts/vendor/modernizr/feature-detects/pointerlock-api.js +4 -0
  103. data/assets/javascripts/vendor/modernizr/feature-detects/quota-management-api.js +11 -0
  104. data/assets/javascripts/vendor/modernizr/feature-detects/requestanimationframe.js +7 -0
  105. data/assets/javascripts/vendor/modernizr/feature-detects/script-async.js +3 -0
  106. data/assets/javascripts/vendor/modernizr/feature-detects/script-defer.js +3 -0
  107. data/assets/javascripts/vendor/modernizr/feature-detects/style-scoped.js +6 -0
  108. data/assets/javascripts/vendor/modernizr/feature-detects/svg-filters.js +13 -0
  109. data/assets/javascripts/vendor/modernizr/feature-detects/unicode.js +32 -0
  110. data/assets/javascripts/vendor/modernizr/feature-detects/url-data-uri.js +26 -0
  111. data/assets/javascripts/vendor/modernizr/feature-detects/userdata.js +7 -0
  112. data/assets/javascripts/vendor/modernizr/feature-detects/vibration.js +4 -0
  113. data/assets/javascripts/vendor/modernizr/feature-detects/web-intents.js +6 -0
  114. data/assets/javascripts/vendor/modernizr/feature-detects/webgl-extensions.js +42 -0
  115. data/assets/javascripts/vendor/modernizr/feature-detects/websockets-binary.js +20 -0
  116. data/assets/javascripts/vendor/modernizr/feature-detects/window-framed.js +8 -0
  117. data/assets/javascripts/vendor/modernizr/feature-detects/workers-blobworkers.js +66 -0
  118. data/assets/javascripts/vendor/modernizr/feature-detects/workers-dataworkers.js +34 -0
  119. data/assets/javascripts/vendor/modernizr/feature-detects/workers-sharedworkers.js +3 -0
  120. data/assets/stylesheets/colorgy.scss +1 -0
  121. data/assets/stylesheets/colorgy/components/.keep +0 -0
  122. data/assets/stylesheets/colorgy/components/_button.scss +18 -0
  123. data/assets/stylesheets/colorgy/core/_base.scss +12 -0
  124. data/assets/stylesheets/colorgy/core/_config.scss +8 -0
  125. data/assets/stylesheets/colorgy/core/_fonts.scss +8 -0
  126. data/assets/stylesheets/colorgy/core/_grid.scss +8 -0
  127. data/assets/stylesheets/colorgy/core/_helpers.scss +44 -0
  128. data/assets/stylesheets/colorgy/layouts/.keep +0 -0
  129. data/assets/stylesheets/colorgy/main.scss +63 -0
  130. data/assets/stylesheets/colorgy/structures/.keep +0 -0
  131. data/bin/console +14 -0
  132. data/bin/server +3 -0
  133. data/bin/setup +7 -0
  134. data/colorgy_style.gemspec +52 -0
  135. data/config.rb +63 -0
  136. data/lib/colorgy_style.rb +74 -0
  137. data/lib/colorgy_style/rails.rb +13 -0
  138. data/lib/colorgy_style/version.rb +3 -0
  139. data/styleguide/index.html.haml +7 -0
  140. data/styleguide/javascripts/body.js +5 -0
  141. data/styleguide/javascripts/head.js +2 -0
  142. data/styleguide/javascripts/styleguide/kss.js +40 -0
  143. data/styleguide/javascripts/styleguide/prism.js +6 -0
  144. data/styleguide/layouts/default.erb +5 -0
  145. data/styleguide/layouts/layout.erb +20 -0
  146. data/styleguide/styleblocks/.keep +0 -0
  147. data/styleguide/styleblocks/_button.html.erb +23 -0
  148. data/styleguide/stylesheets/all.css +4 -0
  149. data/styleguide/stylesheets/styleguide/_prism.css +107 -0
  150. data/styleguide/stylesheets/styleguide/styles.scss +97 -0
  151. metadata +402 -0
@@ -0,0 +1,5 @@
1
+
2
+ // server sent events aka eventsource
3
+ // dev.w3.org/html5/eventsource/
4
+
5
+ Modernizr.addTest('eventsource', !!window.EventSource);
@@ -0,0 +1,13 @@
1
+
2
+
3
+ // XML HTTP Request Level 2
4
+ // www.w3.org/TR/XMLHttpRequest2/
5
+
6
+ // Much more details at github.com/Modernizr/Modernizr/issues/385
7
+
8
+ // all three of these details report consistently across all target browsers:
9
+ // !!(window.ProgressEvent);
10
+ // !!(window.FormData);
11
+ // window.XMLHttpRequest && "withCredentials" in new XMLHttpRequest;
12
+
13
+ Modernizr.addTest('xhr2', 'FormData' in window);
@@ -0,0 +1,10 @@
1
+ // Notifications
2
+ // By Theodoor van Donge
3
+
4
+ // window.webkitNotifications is only used by Chrome
5
+ // http://www.html5rocks.com/en/tutorials/notifications/quick/
6
+
7
+ // window.Notification only exist in the draft specs
8
+ // http://dev.w3.org/2006/webapi/WebNotifications/publish/Notifications.html#idl-if-Notification
9
+
10
+ Modernizr.addTest('notification', 'Notification' in window && 'permission' in window.Notification && 'requestPermission' in window.Notification);
@@ -0,0 +1,5 @@
1
+ // Navigation Timing (Performance)
2
+ // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/
3
+ // http://www.html5rocks.com/en/tutorials/webperformance/basics/
4
+ // By Scott Murphy (uxder)
5
+ Modernizr.addTest('performance', !!Modernizr.prefixed('performance', window));
@@ -0,0 +1,4 @@
1
+ // https://developer.mozilla.org/en-US/docs/API/Pointer_Lock_API
2
+
3
+ Modernizr.addTest('pointerlock',!!Modernizr.prefixed('pointerLockElement', document));
4
+
@@ -0,0 +1,11 @@
1
+ // Quota Storage Management API
2
+ // This API can be used to check how much quota an origin is using and request more
3
+
4
+ // Currently only implemented in Chrome.
5
+ // https://developers.google.com/chrome/whitepapers/storage
6
+ // By Addy Osmani
7
+
8
+ Modernizr.addTest('quotamanagement', function(){
9
+ var storage = Modernizr.prefixed('StorageInfo', window);
10
+ return !!(storage && 'TEMPORARY' in storage && 'PERSISTENT' in storage);
11
+ });
@@ -0,0 +1,7 @@
1
+
2
+ // requestAnimationFrame
3
+ // Offload animation repainting to browser for optimized performance.
4
+ // http://dvcs.w3.org/hg/webperf/raw-file/tip/specs/RequestAnimationFrame/Overview.html
5
+ // By Addy Osmani
6
+
7
+ Modernizr.addTest('raf', !!Modernizr.prefixed('requestAnimationFrame', window));
@@ -0,0 +1,3 @@
1
+ // async script
2
+ // By Theodoor van Donge
3
+ Modernizr.addTest('scriptasync', 'async' in document.createElement('script'));
@@ -0,0 +1,3 @@
1
+ // defer script
2
+ // By Theodoor van Donge
3
+ Modernizr.addTest('scriptdefer', 'defer' in document.createElement('script'));
@@ -0,0 +1,6 @@
1
+ // Browser support test for <style scoped>
2
+ // http://www.w3.org/TR/html5/the-style-element.html#attr-style-scoped
3
+ //
4
+ // by @alrra
5
+
6
+ Modernizr.addTest( 'stylescoped', 'scoped' in document.createElement('style') );
@@ -0,0 +1,13 @@
1
+ // Detect support for svg filters - http://www.w3.org/TR/SVG11/filters.html.
2
+ // Should fail in Safari: http://stackoverflow.com/questions/9739955/feature-detecting-support-for-svg-filters.
3
+ // detect by erik dahlstrom
4
+
5
+ Modernizr.addTest('svgfilters', function(){
6
+ var result = false;
7
+ try {
8
+ result = typeof SVGFEColorMatrixElement !== undefined &&
9
+ SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE == 2;
10
+ }
11
+ catch(e) {}
12
+ return result;
13
+ });
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Unicode special character support
3
+ *
4
+ * Detection is made by testing missing glyph box rendering against star character
5
+ * If widths are the same, this "probably" means the browser didn't support the star character and rendered a glyph box instead
6
+ * Just need to ensure the font characters have different widths
7
+ *
8
+ * Warning : positive Unicode support doesn't mean you can use it inside <title>, this seams more related to OS & Language packs
9
+ */
10
+ Modernizr.addTest('unicode', function() {
11
+
12
+
13
+ var bool,
14
+
15
+ missingGlyph = document.createElement('span'),
16
+
17
+ star = document.createElement('span');
18
+
19
+ Modernizr.testStyles('#modernizr{font-family:Arial,sans;font-size:300em;}', function(node) {
20
+
21
+ missingGlyph.innerHTML = '&#5987';
22
+ star.innerHTML = '&#9734';
23
+
24
+ node.appendChild(missingGlyph);
25
+ node.appendChild(star);
26
+
27
+ bool = 'offsetWidth' in missingGlyph && missingGlyph.offsetWidth !== star.offsetWidth;
28
+ });
29
+
30
+ return bool;
31
+
32
+ });
@@ -0,0 +1,26 @@
1
+ // data uri test.
2
+ // https://github.com/Modernizr/Modernizr/issues/14
3
+
4
+ // This test is asynchronous. Watch out.
5
+
6
+
7
+ // in IE7 in HTTPS this can cause a Mixed Content security popup.
8
+ // github.com/Modernizr/Modernizr/issues/362
9
+ // To avoid that you can create a new iframe and inject this.. perhaps..
10
+
11
+
12
+ (function(){
13
+
14
+ var datauri = new Image();
15
+
16
+
17
+ datauri.onerror = function() {
18
+ Modernizr.addTest('datauri', function () { return false; });
19
+ };
20
+ datauri.onload = function() {
21
+ Modernizr.addTest('datauri', function () { return (datauri.width == 1 && datauri.height == 1); });
22
+ };
23
+
24
+ datauri.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";
25
+
26
+ })();
@@ -0,0 +1,7 @@
1
+ // test if IE userdata supported
2
+ // msdn.microsoft.com/en-us/library/ms531424(v=vs.85).aspx
3
+ // test by @stereobooster
4
+
5
+ Modernizr.addTest('userdata', function(){
6
+ return !!document.createElement('div').addBehavior;
7
+ });
@@ -0,0 +1,4 @@
1
+ // Vibration API
2
+ // http://www.w3.org/TR/vibration/
3
+ // https://developer.mozilla.org/en/DOM/window.navigator.mozVibrate
4
+ Modernizr.addTest('vibrate', !!Modernizr.prefixed('vibrate', navigator));
@@ -0,0 +1,6 @@
1
+ // Tests for the ability to use Web Intents (http://webintents.org).
2
+ // By Eric Bidelman
3
+
4
+ Modernizr.addTest('webintents', function() {
5
+ return !!Modernizr.prefixed('startActivity', navigator);
6
+ });
@@ -0,0 +1,42 @@
1
+
2
+ // Grab the WebGL extensions currently supported and add to the Modernizr.webgl object
3
+ // spec: www.khronos.org/registry/webgl/specs/latest/#5.13.14
4
+
5
+ // based on code from ilmari heikkinen
6
+ // code.google.com/p/graphics-detect/source/browse/js/detect.js
7
+
8
+
9
+ (function(){
10
+
11
+ if (!Modernizr.webgl) return;
12
+
13
+ var canvas, ctx, exts;
14
+
15
+ try {
16
+ canvas = document.createElement('canvas');
17
+ ctx = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
18
+ exts = ctx.getSupportedExtensions();
19
+ }
20
+ catch (e) {
21
+ return;
22
+ }
23
+
24
+ if (ctx === undefined) {
25
+ Modernizr.webgl = new Boolean(false);
26
+ }
27
+ else {
28
+ Modernizr.webgl = new Boolean(true);
29
+ }
30
+
31
+
32
+ for (var i = -1, len = exts.length; ++i < len; ){
33
+ Modernizr.webgl[exts[i]] = true;
34
+ }
35
+
36
+ // hack for addressing modernizr testsuite failures. sorry.
37
+ if (window.TEST && TEST.audvid){
38
+ TEST.audvid.push('webgl');
39
+ }
40
+
41
+ canvas = undefined;
42
+ })();
@@ -0,0 +1,20 @@
1
+
2
+ // binaryType is truthy if there is support.. returns "blob" in new-ish chrome.
3
+ // plus.google.com/115535723976198353696/posts/ERN6zYozENV
4
+ // github.com/Modernizr/Modernizr/issues/370
5
+
6
+ Modernizr.addTest('websocketsbinary', function() {
7
+ var protocol = 'https:'==location.protocol?'wss':'ws',
8
+ protoBin;
9
+
10
+ if('WebSocket' in window) {
11
+ if( protoBin = 'binaryType' in WebSocket.prototype ) {
12
+ return protoBin;
13
+ }
14
+ try {
15
+ return !!(new WebSocket(protocol+'://.').binaryType);
16
+ } catch (e){}
17
+ }
18
+
19
+ return false;
20
+ });
@@ -0,0 +1,8 @@
1
+
2
+ // tests if page is iframed
3
+
4
+ // github.com/Modernizr/Modernizr/issues/242
5
+
6
+ Modernizr.addTest('framed', function(){
7
+ return window.location != top.location;
8
+ });
@@ -0,0 +1,66 @@
1
+ // by jussi-kalliokoski
2
+
3
+
4
+ // This test is asynchronous. Watch out.
5
+
6
+ // The test will potentially add garbage to console.
7
+
8
+ (function(){
9
+ try {
10
+ // we're avoiding using Modernizr._domPrefixes as the prefix capitalization on
11
+ // these guys are notoriously peculiar.
12
+ var BlobBuilder = window.MozBlobBuilder || window.WebKitBlobBuilder || window.MSBlobBuilder || window.OBlobBuilder || window.BlobBuilder;
13
+ var URL = window.MozURL || window.webkitURL || window.MSURL || window.OURL || window.URL;
14
+ var data = 'Modernizr',
15
+ blob,
16
+ bb,
17
+ worker,
18
+ url,
19
+ timeout,
20
+ scriptText = 'this.onmessage=function(e){postMessage(e.data)}';
21
+
22
+ try {
23
+ blob = new Blob([scriptText], {type:'text/javascript'});
24
+ } catch(e) {
25
+ // we'll fall back to the deprecated BlobBuilder
26
+ }
27
+ if (!blob) {
28
+ bb = new BlobBuilder();
29
+ bb.append(scriptText);
30
+ blob = bb.getBlob();
31
+ }
32
+
33
+ url = URL.createObjectURL(blob);
34
+ worker = new Worker(url);
35
+
36
+ worker.onmessage = function(e) {
37
+ Modernizr.addTest('blobworkers', data === e.data);
38
+ cleanup();
39
+ };
40
+
41
+ // Just in case...
42
+ worker.onerror = fail;
43
+ timeout = setTimeout(fail, 200);
44
+
45
+ worker.postMessage(data);
46
+ } catch (e) {
47
+ fail();
48
+ }
49
+
50
+ function fail() {
51
+ Modernizr.addTest('blobworkers', false);
52
+ cleanup();
53
+ }
54
+
55
+ function cleanup() {
56
+ if (url) {
57
+ URL.revokeObjectURL(url);
58
+ }
59
+ if (worker) {
60
+ worker.terminate();
61
+ }
62
+ if (timeout) {
63
+ clearTimeout(timeout);
64
+ }
65
+ }
66
+ }());
@@ -0,0 +1,34 @@
1
+ // by jussi-kalliokoski
2
+
3
+
4
+ // This test is asynchronous. Watch out.
5
+
6
+ // The test will potentially add garbage to console.
7
+
8
+ (function(){
9
+ try {
10
+ var data = 'Modernizr',
11
+ worker = new Worker('data:text/javascript;base64,dGhpcy5vbm1lc3NhZ2U9ZnVuY3Rpb24oZSl7cG9zdE1lc3NhZ2UoZS5kYXRhKX0=');
12
+
13
+ worker.onmessage = function(e) {
14
+ worker.terminate();
15
+ Modernizr.addTest('dataworkers', data === e.data);
16
+ worker = null;
17
+ };
18
+
19
+ // Just in case...
20
+ worker.onerror = function() {
21
+ Modernizr.addTest('dataworkers', false);
22
+ worker = null;
23
+ };
24
+
25
+ setTimeout(function() {
26
+ Modernizr.addTest('dataworkers', false);
27
+ }, 200);
28
+
29
+ worker.postMessage(data);
30
+
31
+ } catch (e) {
32
+ Modernizr.addTest('dataworkers', false);
33
+ }
34
+ }());
@@ -0,0 +1,3 @@
1
+ Modernizr.addTest('sharedworkers', function(){
2
+ return !!window.SharedWorker;
3
+ });
@@ -0,0 +1 @@
1
+ @import "colorgy/main";
@@ -0,0 +1,18 @@
1
+ // Clickable control
2
+ //
3
+ // :hover - On mouse hovered.
4
+ // :active, .active - Active state.
5
+ // :disabled, .disabled - Disabled state.
6
+ // .btn-lg - Large button.
7
+ // .btn-sm - Small button.
8
+ // .btn-xs - Tiny button.
9
+ // .btn-block - Block level buttons, span the full width of a parent.
10
+ //
11
+ // Styleguide 2.1.
12
+
13
+ @import "bootstrap/buttons";
14
+
15
+ .btn {
16
+ @extend .btn-default;
17
+ font-weight: bold;
18
+ }
@@ -0,0 +1,12 @@
1
+ // *************************************
2
+ //
3
+ // Base
4
+ // -> base HTML elements
5
+ //
6
+ // *************************************
7
+
8
+ @import "bootstrap/scaffolding";
9
+ @import "bootstrap/type";
10
+ @import "bootstrap/code";
11
+ @import "bootstrap/tables";
12
+ @import "bootstrap/forms";
@@ -0,0 +1,8 @@
1
+ // *************************************
2
+ //
3
+ // Config
4
+ // -> configurations and variables
5
+ //
6
+ // *************************************
7
+
8
+ @import "bootstrap/variables";
@@ -0,0 +1,8 @@
1
+ // *************************************
2
+ //
3
+ // Fonts
4
+ // -> font-face and icon font tools
5
+ //
6
+ // *************************************
7
+
8
+ @import "bootstrap/glyphicons";
@@ -0,0 +1,8 @@
1
+ // *************************************
2
+ //
3
+ // Grid
4
+ // -> grid system
5
+ //
6
+ // *************************************
7
+
8
+ @import "bootstrap/grid";
@@ -0,0 +1,44 @@
1
+ // *************************************
2
+ //
3
+ // Helpers
4
+ //
5
+ // *************************************
6
+
7
+ @import "bootstrap/mixins";
8
+
9
+ // ----- Foreground Color ----- //
10
+
11
+ @function foreground-color($color) {
12
+ @return contrast-color($color, $base-dark-color, $base-light-color, 60%);
13
+ }
14
+
15
+ // ----- z-index of ----- //
16
+
17
+ @mixin z-index-of($element, $elements: $z-index-elements, $base: 10) {
18
+ $index: index($elements, $element);
19
+ $base-index: index($elements, base);
20
+ @if $base-index == false { $base-index: 0; }
21
+ @if $index == false {
22
+ @warn "Can't find item "#{$element}" in $z-index-elements, please choose one of: #{$elements}.";
23
+ } @else {
24
+ z-index: index($elements, $element) + $base - $base-index;
25
+ }
26
+ }
27
+
28
+ // ----- user-select: none; ----- //
29
+
30
+ @mixin not-selectable() {
31
+ -webkit-user-select: none;
32
+ -moz-user-select: none;
33
+ -ms-user-select: none;
34
+ -o-user-select: none;
35
+ user-select: none;
36
+ }
37
+
38
+ @mixin selectable() {
39
+ -webkit-user-select: auto;
40
+ -moz-user-select: auto;
41
+ -ms-user-select: auto;
42
+ -o-user-select: auto;
43
+ user-select: auto;
44
+ }