Permalink
Browse files

Adding foundation and removing unnecessary files

  • Loading branch information...
1 parent 0c4e089 commit 3b038b6df0c315b5874987ec417ac036ddd087d3 @nneal nneal committed Aug 2, 2012
Showing with 12,907 additions and 7,703 deletions.
  1. BIN .DS_Store
  2. +0 −83 README
  3. +83 −0 README.md
  4. BIN library/.DS_Store
  5. BIN library/javascripts/.DS_Store
  6. +35 −0 library/javascripts/app.js
  7. +52 −0 library/javascripts/foundation.js
  8. +15 −0 library/javascripts/jquery.foundation.accordion.js
  9. +19 −0 library/javascripts/jquery.foundation.alerts.js
  10. +45 −0 library/javascripts/jquery.foundation.buttons.js
  11. +485 −0 library/javascripts/jquery.foundation.forms.js
  12. +30 −0 library/javascripts/jquery.foundation.navigation.js
  13. +633 −0 library/javascripts/jquery.foundation.orbit.js
  14. +773 −0 library/javascripts/jquery.foundation.reveal.js
  15. +36 −0 library/javascripts/jquery.foundation.tabs.js
  16. +183 −0 library/javascripts/jquery.foundation.tooltips.js
  17. +9,404 −0 library/javascripts/jquery.js
  18. +157 −0 library/javascripts/jquery.placeholder.js
  19. +4 −0 library/javascripts/modernizr.foundation.js
  20. 0 library/{js → javascripts}/scripts.js
  21. +0 −4 library/js/libs/modernizr.custom.min.js
  22. +0 −10 library/less/1030up.less
  23. +0 −11 library/less/1240up.less
  24. +0 −42 library/less/2x.less
  25. +0 −111 library/less/481up.less
  26. +0 −357 library/less/768up.less
  27. +0 −842 library/less/base.less
  28. +0 −53 library/less/ie.less
  29. +0 −75 library/less/login.less
  30. +0 −281 library/less/mixins.less
  31. +0 −546 library/less/normalize.less
  32. +0 −174 library/less/style.less
  33. +0 −241 library/log.txt
  34. +0 −10 library/scss/_1030up.scss
  35. +0 −11 library/scss/_1240up.scss
  36. +0 −42 library/scss/_2x.scss
  37. +0 −111 library/scss/_481up.scss
  38. +0 −357 library/scss/_768up.scss
  39. +0 −844 library/scss/_base.scss
  40. +0 −289 library/scss/_mixins.scss
  41. +0 −546 library/scss/_normalize.scss
  42. +0 −30 library/scss/config.rb
  43. +0 −53 library/scss/ie.scss
  44. +0 −75 library/scss/login.scss
  45. +0 −174 library/scss/style.scss
  46. 0 library/{css/base.css → stylesheets/_base.css}
  47. 0 library/{css/ie.css → stylesheets/_ie.css}
  48. 0 library/{css/normalize.css → stylesheets/_normalize.css}
  49. 0 library/{css/style.css → stylesheets/_style.css}
  50. +29 −0 library/stylesheets/app.css
  51. +924 −0 library/stylesheets/foundation.css
  52. 0 library/{css → stylesheets}/login.css
  53. +0 −18 library/translation/README
  54. 0 library/translation/de_DE.mo
  55. +0 −386 library/translation/de_DE.po
  56. 0 library/translation/default.mo
  57. +0 −378 library/translation/default.po
  58. BIN library/translation/es_ES.mo
  59. +0 −380 library/translation/es_ES.po
  60. BIN library/translation/fr_FR.mo
  61. +0 −380 library/translation/fr_FR.po
  62. BIN library/translation/he_IL.mo
  63. +0 −382 library/translation/he_IL.po
  64. +0 −25 library/translation/translation.php
  65. BIN library/translation/zh_CN.mo
  66. +0 −382 library/translation/zh_CN.po
View
Binary file not shown.
View
@@ -1,83 +0,0 @@
-/******************************************************************
-Bones
-A Lightweight Wordpress Development Theme
-
-_______________________________________________________________
-HEADS UP!!!
-Bones & Bones (Responsive Edition) have been merged.
-_______________________________________________________________
-
-Bones is designed to make the life of developers easier. It's built
-using HTML5 & has a strong semantic foundation. It was updated recently
-using some of the HTML5 Boilerplate's recommended markup and setup.
-It's constantly growing so be sure to check back often if you are a
-frequent user. I'm always open to contribution. :)
-
-Designed by Eddie Machado
-http://themble.com/bones
-
-License: WTFPL
-License URI: http://sam.zoy.org/wtfpl/
-Are You Serious? Yes.
-
-Special Thanks to:
-Paul Irish & the HTML5 Boilerplate
-Yoast for some WP functions & optimization ideas
-Andrew Rogers for code optimization
-David Dellanave for speed & code optimization
-and several other developers. :)
-
-Submit Bugs & or Fixes:
-https://github.com/eddiemachado/bones/issues
-
-To view Release & Update Notes, read the log.txt file inside
-the library folder.
-
-******************************************************************/
-
-/* v1.25 update */
-- updated custom post type page for translation
-- added => to responsive jquery
-- cleaned up theme tags (which make NO sense, but are best practice, go figure)
-- updated html element to match hb5
-- fixed echo problem on admin.php
-- updated normalize (LESS also had some missing styles so I added them)
-- GetComputedStyle fix for IE (for responsive js)
-- cleaned up mixins (border radius)
-- added translations! (Chinese, Spanish)
-
-/* v1.2 HUGE update */
-- merge responsive version with classic
-- remove post title from read more link (it's way too long)
-- removed readme.txt (it was pointless)
-- organized info for each file called in on the functions page
-- added custom gravatar call in comments
-- i'm leaving jQuery to a plugin (that way I'm not providing dated jQuery)
-- added translation folder
-- put everything inside stuff so it's easier to be translated
-- added an identifier in each 404 area so you know what template is showing
-- remove custom walker. I think that's better left for you guys to do
-- fixed some spelling errors
-- added some translation options in the comments file
-- added role=navigation to footer links
-- deleted image.php (who really uses that anyway)
-- added sidebar to search.php
-- added class to custom post type title
-- added link to custom meta box
-- removed selectivizr
-- updated html elements with new classes for IE
-- added new mobile meta tags
-- removed pinned site meta tag for IE9
-- merged base.css into style.css for one less call in the header
-- added styleguide page and styles (oh yea!)
-- added nav class to both menus
-- removed "Powered by Wordpress & Bones" from footer, because let's face it: we all delete this anyway.
-- added button class to submit comment button
-- removed html5 placeholder fallback (you should be using Gravity Forms)
-- added slug and rewrite to custom post type for easier urls
-- renamed the border radius mixins so they were easer to remember
-- removed duplicate box shadow mixin
-- deleted the plugins.php file
-- facebook og:meta can be better handled by a plugin (or Yoast's SEO plugin)
-- rel=me can also be handled by SEO plugin or another plugin
-- removed author.php (you can use archive.php or add it yourself)
View
@@ -0,0 +1,83 @@
+/******************************************************************
+Bones
+A Lightweight Wordpress Development Theme
+
+_______________________________________________________________
+HEADS UP!!!
+Bones & Bones (Responsive Edition) have been merged.
+_______________________________________________________________
+
+Bones is designed to make the life of developers easier. It's built
+using HTML5 & has a strong semantic foundation. It was updated recently
+using some of the HTML5 Boilerplate's recommended markup and setup.
+It's constantly growing so be sure to check back often if you are a
+frequent user. I'm always open to contribution. :)
+
+Designed by Eddie Machado
+http://themble.com/bones
+
+License: WTFPL
+License URI: http://sam.zoy.org/wtfpl/
+Are You Serious? Yes.
+
+Special Thanks to:
+Paul Irish & the HTML5 Boilerplate
+Yoast for some WP functions & optimization ideas
+Andrew Rogers for code optimization
+David Dellanave for speed & code optimization
+and several other developers. :)
+
+Submit Bugs & or Fixes:
+https://github.com/eddiemachado/bones/issues
+
+To view Release & Update Notes, read the log.txt file inside
+the library folder.
+
+******************************************************************/
+
+/* v1.25 update */
+- updated custom post type page for translation
+- added => to responsive jquery
+- cleaned up theme tags (which make NO sense, but are best practice, go figure)
+- updated html element to match hb5
+- fixed echo problem on admin.php
+- updated normalize (LESS also had some missing styles so I added them)
+- GetComputedStyle fix for IE (for responsive js)
+- cleaned up mixins (border radius)
+- added translations! (Chinese, Spanish)
+
+/* v1.2 HUGE update */
+- merge responsive version with classic
+- remove post title from read more link (it's way too long)
+- removed readme.txt (it was pointless)
+- organized info for each file called in on the functions page
+- added custom gravatar call in comments
+- i'm leaving jQuery to a plugin (that way I'm not providing dated jQuery)
+- added translation folder
+- put everything inside stuff so it's easier to be translated
+- added an identifier in each 404 area so you know what template is showing
+- remove custom walker. I think that's better left for you guys to do
+- fixed some spelling errors
+- added some translation options in the comments file
+- added role=navigation to footer links
+- deleted image.php (who really uses that anyway)
+- added sidebar to search.php
+- added class to custom post type title
+- added link to custom meta box
+- removed selectivizr
+- updated html elements with new classes for IE
+- added new mobile meta tags
+- removed pinned site meta tag for IE9
+- merged base.css into style.css for one less call in the header
+- added styleguide page and styles (oh yea!)
+- added nav class to both menus
+- removed "Powered by Wordpress & Bones" from footer, because let's face it: we all delete this anyway.
+- added button class to submit comment button
+- removed html5 placeholder fallback (you should be using Gravity Forms)
+- added slug and rewrite to custom post type for easier urls
+- renamed the border radius mixins so they were easer to remember
+- removed duplicate box shadow mixin
+- deleted the plugins.php file
+- facebook og:meta can be better handled by a plugin (or Yoast's SEO plugin)
+- rel=me can also be handled by SEO plugin or another plugin
+- removed author.php (you can use archive.php or add it yourself)
View
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,35 @@
+(function($){
+ $(function(){
+
+ $(document).foundationAlerts();
+ $(document).foundationAccordion();
+ $(document).tooltips();
+ $('input, textarea').placeholder();
+
+
+
+ $(document).foundationButtons();
+
+
+
+ $(document).foundationNavigation();
+
+
+
+ $(document).foundationCustomForms();
+
+
+
+
+ $(document).foundationTabs({callback:$.foundation.customForms.appendCustomMarkup});
+
+
+
+ // UNCOMMENT THE LINE YOU WANT BELOW IF YOU WANT IE8 SUPPORT AND ARE USING .block-grids
+ // $('.block-grid.two-up>li:nth-child(2n+1)').css({clear: 'left'});
+ // $('.block-grid.three-up>li:nth-child(3n+1)').css({clear: 'left'});
+ // $('.block-grid.four-up>li:nth-child(4n+1)').css({clear: 'left'});
+ // $('.block-grid.five-up>li:nth-child(5n+1)').css({clear: 'left'});
+ });
+
+})(jQuery);
Oops, something went wrong.
@@ -0,0 +1,15 @@
+(function ($){
+
+ $.fn.foundationAccordion = function (options) {
+
+ $('.accordion li', this).on('click.fndtn', function () {
+ var flyout = $(this).children('.content').first();
+ $('.accordion .content').not(flyout).hide().parent('li').removeClass('active');
+ flyout.show(0, function () {
+ flyout.parent('li').addClass('active');
+ });
+ });
+
+ };
+
+})( jQuery );
@@ -0,0 +1,19 @@
+(function ($) {
+
+ $.fn.foundationAlerts = function (options) {
+ var settings = $.extend({
+ callback: $.noop
+ }, options);
+
+ $(document).on("click", ".alert-box a.close", function (event) {
+ event.preventDefault();
+ $(this).closest(".alert-box").fadeOut(function (event) {
+ $(this).remove();
+ // Do something else after the alert closes
+ settings.callback();
+ });
+ });
+
+ };
+
+})(jQuery);
@@ -0,0 +1,45 @@
+(function ($) {
+
+ $.fn.foundationButtons = function(options) {
+ // Prevent event propagation on disabled buttons
+ $('.button.disabled', this).on('click.fndtn', function (event) {
+ event.preventDefault();
+ });
+
+ $('.button.dropdown > ul', this).addClass('no-hover');
+
+ $('.button.dropdown', this).on('click.fndtn', function (e) {
+ e.stopPropagation();
+ });
+ $('.button.dropdown.split span', this).on('click.fndtn', function (e) {
+ e.preventDefault();
+ $('.button.dropdown', this).not($(this).parent()).children('ul').removeClass('show-dropdown');
+ $(this).siblings('ul').toggleClass('show-dropdown');
+ });
+ $('.button.dropdown', this).not('.split').on('click.fndtn', function (e) {
+ $('.button.dropdown', this).not(this).children('ul').removeClass('show-dropdown');
+ $(this).children('ul').toggleClass('show-dropdown');
+ });
+ $('body, html').on('click.fndtn', function () {
+ $('.button.dropdown ul').removeClass('show-dropdown');
+ });
+
+ // Positioning the Flyout List
+ var normalButtonHeight = $('.button.dropdown:not(.large):not(.small):not(.tiny)', this).outerHeight() - 1,
+ largeButtonHeight = $('.button.large.dropdown', this).outerHeight() - 1,
+ smallButtonHeight = $('.button.small.dropdown', this).outerHeight() - 1,
+ tinyButtonHeight = $('.button.tiny.dropdown', this).outerHeight() - 1;
+
+ $('.button.dropdown:not(.large):not(.small):not(.tiny) > ul', this).css('top', normalButtonHeight);
+ $('.button.dropdown.large > ul', this).css('top', largeButtonHeight);
+ $('.button.dropdown.small > ul', this).css('top', smallButtonHeight);
+ $('.button.dropdown.tiny > ul', this).css('top', tinyButtonHeight);
+
+ $('.button.dropdown.up:not(.large):not(.small):not(.tiny) > ul', this).css('top', 'auto').css('bottom', normalButtonHeight - 2);
+ $('.button.dropdown.up.large > ul', this).css('top', 'auto').css('bottom', largeButtonHeight - 2);
+ $('.button.dropdown.up.small > ul', this).css('top', 'auto').css('bottom', smallButtonHeight - 2);
+ $('.button.dropdown.up.tiny > ul', this).css('top', 'auto').css('bottom', tinyButtonHeight - 2);
+
+ };
+
+})( jQuery );
Oops, something went wrong.

0 comments on commit 3b038b6

Please sign in to comment.