Giter Site home page Giter Site logo

tortillaj / html5-reset-compass-sass-wordpress-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikedijkstra/html5-reset-compass-sass-wordpress-theme

1.0 2.0 0.0 198 KB

A style-free theme to get you started on an HTML5-based Wordpress theme of your own with Compass and Sass.

Home Page: See HTML5 Reset - http://html5reset.org

html5-reset-compass-sass-wordpress-theme's Introduction

HTML5 Wordpress Theme with Compass and Sass

This is a Compass / Sass adaptation of the HTML5 Wordpress Theme which is a blank theme based on the HTML5 Reset templates. It's a great empty slate upon which to build your own HTML5-based Wordpress themes with the benefits of Compass and Sass.

HTML5 Wordpress Theme Summary:

hNews

In addition to all the standard Wordpress elements and classes, we have added the code required so that the single post template conforms with the hNews microformat.

HTML5 Reset brings to the table:

  1. A style sheet designed to strip initial files from browsers, meaning you start off with a blank slate.
  2. Easy to customize -- remove whatever you don't need, keep what you do.
  3. Analytics and jQuery snippets in place
  4. Meta tags ready for population
  5. Empty mobile and print style sheets, including blocks for device orientation
  6. Modernizr.js http://www.modernizr.com/ enables HTML5 compatibility with IE (and a dozen other great features)
  7. IE-specific classes for simple CSS-targeting
  8. iPhone/iPad/iTouch icon snippets
  9. Lots of other keen stuff...

Sass Structure

Sass stylesheets are stored in _/stylesheets and output to /style.css

style.sass is made up of a number of key partials

  1. Base - see Compass best practices (http://compass-style.org/help/tutorials/best_practices/)
  2. HTML5 Reset - Sass version of HTML5 Reset Templates (https://github.com/murtaugh/HTML5-Reset)
  3. Mixins - Don't repeat yourself, use sass mixins (http://sass-lang.com/)
  4. Print - Print styles
  5. Media - Responsive web design styles

Changes to original HTML5 Reset Wordpress Theme

Added selectivizr.js and DOMAssistant.js for further IE support

Changed TEMPLATEPATH to bloginfo('template_url') - absolute path wasn't working on my server

Installation

  1. Download or clone the repo into your-site/wp-content/themes/ folder
  2. Open Terminal
  3. Run $ gem install compass
  4. Open Terminal and navigate to your-site/wp-content/themes/HTML5-Reset-Compass-Sass-Wordpress-Theme/
  5. Run $ compass watch
  6. Open your-site/wp-content/themes/HTML5-Reset-Compass-Sass-Wordpress-Theme/_/stylsheets in your favourite text editor (Textmate?)
  7. Code away…

Notes

This is built using .sass however can easily be converted to .scss if you prefer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.