Coder Social home page Coder Social logo

kevinweaver / drupal-7-starter-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mattbanks/drupal-7-starter-theme

0.0 1.0 0.0 147 KB

Drupal 7 Starter Theme for use as a starting template for building custom themes. Uses Compass/SCSS, HTML5 Boilerplate with Modernizr and Normalize.css.

JavaScript 38.87% Ruby 5.17% PHP 55.97%

drupal-7-starter-theme's Introduction

Drupal 7 Starter Theme

Version: 3.0

Contributors:

Matt Banks ( @mattbanks / kernelcreativemedia.com / mattbanks.me )

Summary

Drupal 7 Starter Theme for use as a starting template for building custom themes. Uses Compass/SCSS, HTML5 Boilerplate 4 with Modernizr and Normalize.css, and Grunt for all tasks.

Usage

The theme is setup to use Grunt to compile Compass/SCSS, lint, concatenate and minify JavaScript (with source maps), optimize images, and LiveReload the browser (with extension), with flexibility to add any additional tasks via the Gruntfile. Alternatively, you can use CodeKit or whatever else you prefer to compile the SCSS and manage the JavaScript.

Rename folder to your theme name, rename .info file to your theme name, change the assets/scss/style.scss intro block to your theme information. Open the theme directory in terminal and run npm install to pull in all Grunt dependencies. Run grunt to execute tasks. Code as you will. If you have the LiveReload browser extension, it will reload after any SCSS or JS changes. To optimize images, run grunt imagemin.

  • Compile assets/scss/style.scss to style.css (all paths defined in config.rb for Compass)
  • Compile assets/scss/editor-style.scss to editor-style.css
  • Concatenate and minify all plugins in assets/js/vender and assets/js/source/plugins.js to assets/js/plugins.min.js
  • Minify assets/js/source/main.js to assets/js/main.min.js
  • ??
  • Profit

Deployment

The theme includes deployments via grunt-rsync. The Gruntfile includes setups for staging and production - edit your paths and host, then run grunt rsync:staging or grunt rsync:production to deploy your files via rsync.

Features

  1. Normalized stylesheet for cross-browser compatibility using Normalize.css version 2 (IE8+ only)
  2. Easy to customize
  3. Flexible grid from Chris Coyier
  4. Media Queries for mobile and tablets ready to populate
  5. Compass & SCSS with plenty of mixins ready to go
  6. Much much more

Suggested Modules

Changelog

Version 3.0

  • reorganize code in assets folder for fonts, images, js and scss
  • setup Gruntfile to use Grunt for all compiling, concatenation and minification
  • add deployments via rsync
  • update to normalize v2.1.0
  • general code cleanup

Version 2.5.1

  • Add grid column sizes I typically use, general code cleanup

Version 2.5

  • Renamed jquery.functions.js to main.js
  • Renamed _widgets.scss to _blocks.scss
  • Add flexible grid SCSS
  • Updated to HTML5 Boilerplate 4
  • Updated to Normalize.css 2
  • Updated to Modernizr 2.6.2
  • Include @media bubbling mixins, via Chris Coyier
  • Add GPL license info to style.scss
  • Add border-box support for everything, including pseudo elements, because it makes the world a better place
  • Other bug fixes and changes

Version 2.0

  • added Compass and SCSS as preprocessor files
  • upgraded modernizr to 2.5.2
  • renamed script.js to jquery.functions.js
  • theme .info file points to minified versions of plugins.js and jquery.functions.js
  • tweak html.tpl.php using latest HTML5 Boilerplate
  • use aside instead of div for sidebars in page.tpl.php

Version 1.0

  • initial version

Credits

Without these projects, this WordPress Starter Theme wouldn't be where it is today.

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.