SASS in the Museum

I have been working at the Western Australian Museum for almost 4 years now, and the site has been through a lot of changes and so have I. I came from a world of small business websites/applications. Now I work on a site with hundreds of thousands of pages and my coding has developed rapidly in that time. Small errors or bad coding practices become dead end headaches.

So what have I learned? Well, SASS is amazing. Now I am no SASS expert but I have found a few ways to make it really work for me.

  1. mixins for colouring sections of a site.

    mixins are like loops, I pass in two variables the page class and a rgb colour and then they populate a series of overrides to the base theme colour. For example on the museum site the header at the top of the page has a background colour of red but in the Perth section the colour is green.

    To do this I call the colour override mixin with the class .perth and rgb value for Perth green and sets about 20 overrides for links background colours etc and in seconds I have themed the whole Perth section.

    The best thing about using this method is that if I add a new module that needs theming overrides, I add the changes in the mixin and it updates everywhere. At the museum that means about 40 different colour overrides 1 for each of the 12 departments, 6 branches and many other.

  2. Codekit.

    If you use SASS on a Mac buy Codekit.

    Codekit monitors your .sass or .scss files and processes them into CSS files every time you save the .scss file.

    It is so simple to set up and run you don’t have to know any magic code to get it working as it is all self contained and updates itself. It the drag and drop of SASS.

    PS it also squishes image files saving bandwidth and increases website performance.

  3. Goldilocks and the three bears

    This one is thanks to Chris Coyier of CSS-Tricks. Future proofing your media query breakpoints and using a mixin to call them throughout your code.

    I have mixins called Goldilocks, Baby-bear, Mama-bear and Papa-bear and these equate to different browser widths. If in the future I need to change the breakpoint width I can update it in one place and it will update across all my CSS files.

  4. Splitting SASS files into multiple files

    I use a combination of structure and type to spilt up one CSS file into multiple files and then importing them all back into one file at the end.

    I have files for typography, layout, header, footer, styles and each of these is called into a global.scss file which is highly compressed and uploaded to the website as a single file for performance improvements by reducing the number of http requests.

  5. Don’t get too deep.

    It can be easy to go mad nesting in SASS. Never go more than 3 levels deep otherwise you can end up 20 levels deep and you will want to start using IDs (NEVER EVER style with IDs) to override a simple class.

There is lots more you can do with SASS, and a lot of other lessons I have learned whilst working on a massive website and I will be writing about some of those soon.

Digital publishing

How do you build an interactive experience for a traditional museum audience that can be viewed on anything from a iPhone to a 30 inch LCD touch screen?

The questions I asked myself what can we implement to quickly and easily build and deploy engaging interactive experiences? Well that got me thinking and looking online for available solutions. The first path I investigated was Adobe CS5 Indesign with it’s new digital publishing tools. This had all the winning potential for two reasons

  1. We could harness the in-house skill set which already exists in the museum.
  2. I had recently won a copy of CS5 at an Adobe event held in Perth, WA.

Not long after getting started all the wonderful ease of Adobe software was making this a dream. I was creating my own Wired magazine and there was no coding involved. Then came the hiccup, the dream was a nightmare. This wonderfully easy to use software had a draw back, the cost. It was not a small one off cost either, it was a big monthly fee that I knew would be totally out of reach for the Museum. US$495/month, well that is great if you are a large publishing house or magazine business selling thousands of copies a month, but we are not.

Back to the drawing board, although I thought this could be a blessing. The Adobe solution didn’t match my personal support for open standards, a build once deploy everywhere mentality. Many of the recent sections added to the Museum’s website have been built using responsive web design (Ethan Marcotte) to flow content depending on screen size. This could be solution for the Museum but I wanted to make something special, something that felt like it had been crafted and cared for, something that could be or replace a traditional book or exhibition guide, something that doesn’t feel like the web.

The hunt was back on, this time my trail lead to epub format. If this can be shown on an iPad or a Kindle then it must be open and a possible solution. My research lead me to the Baker Ebook Framework, success. This was an open standard which would work on anything, play on anything, deploy on anything, yet it lacked the rich magazine design I had been experimenting with using Indesign. There must be some middle ground, there must be a way to have a rich magazine layouts that are based on open standards like the Baker Ebook Framework.

Laker Compendium website screenshot

I couldn’t believe it when I found the Laker Compendium it was everything I had been looking for. Stunning graphics, clean UI, intuitive navigation, worked on iPad, iPhone and some web browsers and it’s free. A price I could get onboard with. A true starting point for building an economical digital magazine. Not everything worked though, this was built for primarily for iOS but had only experimental browser support, meaning this would need to be wrangled into shape. But this thing is built in HTML so getting it to run on a browser wouldn’t be impossible. Wrangling turned into rewriting and new scripts to enable the same iOS touch event animations on all platforms.

I finally had it a solution that looked great, could work everywhere, on any device and which felt special and professional without massive monthly fees. With this frontend framework in place the next step is to start building real interactive experiences that engage, excite and educate.

The Museum web team are also developing a Digital Publishing System in Drupal to allow users to dynamically and rapidly build a deploy their own digital publication. More details to follow shortly.

Life at the Museum

OK it has been a while since my last post and a lot has happened. Since moving to the most wonderful place in the world I have gained permanent residency to live and work in Australia, my wife and I have had a beautiful Aussie baby girl named Darcey Mae who is 10 months old today and I have been working for the Western Australian Museum for the past 18 months.
Stacy Murphy, Darcey Mae Murphy and Danny Murphy
Working as a key member of the small, dynamic online services team within the Museum, I have been involved in the design and development of a number of showcase websites including the HMAS Sydney (II) website, the award-winning Nick Cave exhibition website, the recent Pompeii website and currently the major redesign of the Museums own website.

Whilst working at the Museum I have also invested a lot of time researching best practices within the web industry and in keeping my skills at the cutting edge of web design and development. Together with my previous knowledge and design background I have helped put the Museum at the forefront of web technology now and into the future.
http://www.museum.wa.gov.au
My online portfolio

Western Australian Museum website for the HMAS Sydney (II)
Resdesigned Wetsren Australian Museum Website
Western Australian Museum website for the Beyond Garment exhibition

http://www.museum.wa.gov.au
My online portfolio

Illustration & Self Promotion

Illustration
After finishing my website this week, I have turned my attention to improving my current skills and learning some new ones. I really enjoy illustration and I having recently read a lot of Von Glitschka’s wonderful tutorials, I knew I had to give his techniques a try. Being short on time I skipped a few of the freehand drawing syages and jumped straight into Adobe Illustrator. I can hear Von shouting at me now, but I only had a couple of hours and wanted to give the techniques a try. I am really pleased with the results I will definitely be employing the full process in my future work.

my head illustration
Self Promotion
Being new to Australia, I need to build up my client base again. To make a start on this, I have created two new leaflets, for distribution to local companies and for local billboard advertising:

  • The first leaflet is designed to be an introduction to my business services for local companies. It’s a ‘leave behind after meeting’ offering or a door opener to a potential new client.
  • The second leaflet is aimed at sole traders / small businesses and shows the website promotion I am currently offering. The aim of this leaflet is to catch the eye of a local builder or entrepreneur on the local supermarket advertising board and inspire them to consider an affordable online presence as an advertising tool.

Self promotion poster

Move Down Under

The wife and I have now been in Australia for 2 months having moved here from the UK. The weather has been amazing and despite being almost winter,we have been enjoying temperatures of 27˚ in Mandurah today. We have moved into an amazing house in Meadow Springs with our two cats who are finally out of quarantine, and have spent some great days out and about with my family who emigrated here about 5 years ago.

Kangaroos on the golf course

Converting my static website to WordPress

I have finally got around to updating my own website from static html to a custom built WordPress template with a blog. The process was pretty straightforward as I already had the site in compliant XHTML 1.0 Strict so I just had to create some styling for the comments section and split the code into the relevant WordPress template pages. The biggest delay was sorting out all the content to use on the website, grabbing screenshots and reformatting them. Something I usually have to pressure my clients for.

One thing I learned from the process is that new aria-required attribute that WordPress adds to required input fields, makes the page fail the W3C HTML validator. It is however, actually good for accessibility as modern screen readers inform the user that this is a required field, giving blind users a better experience than a bold asterisk.