Difference between revisions of "WP Base"

From Things and Stuff Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
** bones/library/scss
 
** bones/library/scss
 
** '''[https://github.com/eddiemachado/bones/blob/master/library/scss/style.scss style.scss]'''
 
** '''[https://github.com/eddiemachado/bones/blob/master/library/scss/style.scss style.scss]'''
*** import: [https://github.com/eddiemachado/bones/blob/master/library/scss/_normalize.scss _normalize.scss]
+
*** import '''[https://github.com/eddiemachado/bones/blob/master/library/scss/_normalize.scss _normalize.scss]''' - a reset
*** import: [https://github.com/eddiemachado/bones/blob/master/library/scss/_mixins.scss _mixins.scss]
+
*** import '''[https://github.com/eddiemachado/bones/blob/master/library/scss/_mixins.scss _mixins.scss]'''
*** import: '''[https://github.com/eddiemachado/bones/blob/master/library/scss/_base.scss _base.scss]''' - optimized for 320px to 480px
+
*** import '''[https://github.com/eddiemachado/bones/blob/master/library/scss/_base.scss _base.scss]''' - optimized for 320px to 480px
*** min-width: 481px - '''[https://github.com/eddiemachado/bones/blob/master/library/scss/_481up.scss _481up.scss]''' - larger mobile devices
+
*** media query, min-width: 481px - '''[https://github.com/eddiemachado/bones/blob/master/library/scss/_481up.scss _481up.scss]''' - larger mobile devices
*** min-width: 768px - '''[https://github.com/eddiemachado/bones/blob/master/library/scss/_768up.scss _768up.scss]''' - tablet and basic desktop
+
*** media query,min-width: 768px - '''[https://github.com/eddiemachado/bones/blob/master/library/scss/_768up.scss _768up.scss]''' - tablet and basic desktop
*** -webkit-min-device-pixel-ratio: 1.5, min--moz-device-pixel-ratio: 1.5, min-device-pixel-ratio: 1.5 - '''_2x.scss'''
+
*** media query, -webkit-min-device-pixel-ratio: 1.5, min--moz-device-pixel-ratio: 1.5, min-device-pixel-ratio: 1.5 - '''_2x.scss'''
 
*** basic print style
 
*** basic print style
 
** webfont goes in '''library/fonts'''
 
** webfont goes in '''library/fonts'''

Revision as of 01:16, 14 August 2012


Base theme

  • bones
    • bones/library/scss
    • style.scss
      • import _normalize.scss - a reset
      • import _mixins.scss
      • import _base.scss - optimized for 320px to 480px
      • media query, min-width: 481px - _481up.scss - larger mobile devices
      • media query,min-width: 768px - _768up.scss - tablet and basic desktop
      • media query, -webkit-min-device-pixel-ratio: 1.5, min--moz-device-pixel-ratio: 1.5, min-device-pixel-ratio: 1.5 - _2x.scss
      • basic print style
    • webfont goes in library/fonts
@import 'grid.less'; # defaults to 12 column, 960 pixel grid system. Customize by overriding three variables (after the grid.less import has been declared):

@column-width: 60;
@gutter-width: 20;
@columns: 12;

@total-width: 100%; # for fluid (percentage-based) grid rather than a fixed pixels

Other

  • 320semanticgs
  • _s

Base profile

Theme plugins

  • wordpress-importer - for testing theme

Preprocess

Other

Install script

See https://gist.github.com/gists/3157720

mkdir wp-content/themes/bones && cd $_ && wget https://github.com/eddiemachado/bones/zipball/master && unzip master && mv eddie*/* eddie*/.. && rm -rf eddie* && rm master

or

git archive --remote=git://github.com/eddiemachado/bones.git master | tar -xf -

the git one doesn't work, to check.

  • settings, permalinks

test data;

git clone git://github.com/sanchothefat/wp-sass.git wp-content/plugins/wp-sass
git submodule update --init --recursive

Process

  • Use base theme
    • HTML5
    • Mobile first
      • Make sure mobile devices don't get desktop size CSS or content
      • 320 And Up
    • If available, use server-side CSS preprocessing through theme or plugin.
      • LESS and limited SCSS/Compass in PHP (all shared), full SCSS/etc. with Ruby (easier on VPS)
      • Semantic CSS with grid and vertical rhythm systems
      • Web fonts and icons
  • Etc.
  • Start coding
    • Setup a development site using wp-base-install
    • Set project based CSS preproces variables and mixins
    • Import test content
    • etc

or

  • Remove sample post, page, links
  • Import from production or other materials
  • Change site title and tagline