Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Conventions

Slide 4

Slide 4 text

http://costumepop.com/costume-buzz/12-costume-fails-from-comic-con/

Slide 5

Slide 5 text

A base layer of rules and conventions that act as starting points for HTML, CSS, JavaScript and ExpressionEngine for all projects.

Slide 6

Slide 6 text

• Basic HTML files & naming conventions • PHP for basic templates prior to CMS integration. • CSS: Stylesheets, IE-specific, reset, scratch files etc. • JavaScript: jQuery, onload triggers, transparency support • Other Assets such as folders for images, Flash etc.

Slide 7

Slide 7 text

A bumper compendium of cascading CSS files, naming conventions, modules, plugins and scripts that ensure any project will stay on convention, and be simple for anyone to step into and work with at any time.

Slide 8

Slide 8 text

• Allows better collaboration within the team; the designer can jump into the developer’s code and vice-versa. • Anyone who hasn’t even worked on a certain project can jump in and quickly solve problems because everything is on convention. • Keeps output fresh and ensures use of best practices. • Establishes a thoroughly connected layer of base files allowing for swift CSS and JavaScript implementation and other assets. • Makes life easier for developers and designers... and anyone really • Helps maintain quality control

Slide 9

Slide 9 text

Iteration

Slide 10

Slide 10 text

We’re constantly considering HTML, CSS, browsers, JavaScript, naming conventions, CMS usage and any improvements in general methods or implementations. Constant iterations of the package are made.

Slide 11

Slide 11 text

Version control

Slide 12

Slide 12 text

We’re currently on version 2.2 - and it’s available internally on our systems with a changelog, meaning anyone can use it as a starting point for both agency and personal projects.

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

Opening the package

Slide 15

Slide 15 text

Root Root

Slide 16

Slide 16 text

Assets

Slide 17

Slide 17 text

Stylesheets

Slide 18

Slide 18 text

Images

Slide 19

Slide 19 text

JavaScript

Slide 20

Slide 20 text

HTML templates

Slide 21

Slide 21 text

Home

Slide 22

Slide 22 text

PHP templates

Slide 23

Slide 23 text

Hello index.php

Slide 24

Slide 24 text

"> _start.php (slim version)

Slide 25

Slide 25 text

"> _start.php

Slide 26

Slide 26 text

Slide 27

Slide 27 text

Stylesheets

Slide 28

Slide 28 text

CSS default

Slide 29

Slide 29 text

/* [PROJECT] by ERSKINE DESIGN VERSION 1.0 CONTENTS ---------- 1.BODY 2.DEFAULT STYLING 3.HEADINGS 4.LINKS 5.IMAGES 6.LAYOUT 7.BRANDING/MASTHEAD 8.NAVIGATION 9.SITEINFO/FOOTER [etc] */

Slide 30

Slide 30 text

@import url(reset.css); /* RESET CSS */ @import url(forms.css); /* FORMS CSS */ @import url(scratch.css); /* SCRATCH */

Slide 31

Slide 31 text

/* 1.BODY ------------------------------------------------------------------ ---- */ body { text-shadow:rgba(0,0,0,0.01) 0 0 1px; } a.access { position:absolute; top:-9999px; left:-9999px; font- family:Verdana,sans-serif; font-size:10px; font-weight:bold; background:#eee; border:2px solid #ddd; padding:10px; } a.access:focus { display:block; top:0; left:0; color:#333; }

Slide 32

Slide 32 text

CSS reset

Slide 33

Slide 33 text

/* RESET STYLESHEET */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin:0; padding:0; border:0; outline:0; font-weight:inherit; font-style:inherit; font-size:100%; font- family:inherit; vertical-align:baseline; } /* remember to define focus styles! */ /*:focus { outline:0; }*/ body { line-height:1; color:black; background:white; } ol, ul { list-style:none; } /* tables still need 'cellspacing="0"' in the markup */ table { border-collapse:separate; border-spacing:0; } caption, th, td { text-align:left; font-weight:normal; } input { vertical-align:middle; } img { display:block; }

Slide 34

Slide 34 text

CSS for IE6 & IE7

Slide 35

Slide 35 text

Conditional comments

Slide 36

Slide 36 text

/* [PROJECT] by ERSKINE DESIGN VERSION 1.0 IE6 OVERRIDE STYLES CONTENTS ---------- ------------------- */

Slide 37

Slide 37 text

JavaScript

Slide 38

Slide 38 text

jQuery

Slide 39

Slide 39 text

belatedPNG

Slide 40

Slide 40 text

ie6.js

Slide 41

Slide 41 text

$(document).ready(function(){ // FORMS $("input[type='button']").addClass('button'); $("input[type='checkbox']").addClass('checkbox'); $("input[type='file']").addClass('file'); $("input[type='image']").addClass('image'); $("input[type='password']").addClass('password'); $("input[type='radio']").addClass('radio'); $("input[type='submit']").addClass('submit'); $("input[type='text']").addClass('text'); // RSS ICON $("img[alt='Feed Icon']").addClass('rss_icon'); }); // BELATED PNG IMAGE FIXING DD_belatedPNG.fix('');

Slide 42

Slide 42 text

onload.js

Slide 43

Slide 43 text

$(document).ready(function(){ });

Slide 44

Slide 44 text

Content management

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

If you like the idea and general approach, you’d do worse than to build your own package.

Slide 47

Slide 47 text

Our package isn’t publicly available because it is ours - bespoke, custom, built especially for our purposes suiting our needs.

Slide 48

Slide 48 text

•http://colly.com/comments/the_process_toolbox_a_nine_part_epic/ •http://erskinelabs.com/post/the-process-toolbox-part-seven-convention/ Further reading...

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

• Naming conventions • HTML & XHTML • HTML5 ? • JavaScript • jQuery & Libraries • PHP • Templating • Wireframing • IE6, IE7 & IE8 • Reset browser defaults • CSS Frameworks • Scratch files • Mobile & Handheld • Print stylesheets • PNG support • Flash and SWF • Image folders • Content Management Anything else?

Slide 51

Slide 51 text

No content