SassCast

The All Sass Pod Cast

0 notes

Icon fonts, HAML and Sass

Icon-fonts. They are pretty awesome, but much like managing Sprite files, there are issues that make them a real pain to manage. Sure there are full libraries out there that you can grab wholesale and rely on their documentation, but for optimization and performance reasons you do not want to load up a series of libraries just to use a few icons. Leveraging the power of HAML and Sass we can make this less painful and at the same time maintain a living style guide. Basically, winning all over the place.

read the post

Filed under sass icons haml

2 notes

Sprites are a pain, @each makes it hurt less

Sprites are a pain in the ass, we all know that. And with a recent reminder of Google’s Bootstrap I am once again reminded of the horrible ways that people solve problems.

So let’s get intelligent. Here is a really kick Sass example for how we can use some of Sass’ power features to make this less painful, write better classes that don’t break performance rules and fits the popular mindset of OOCSS.

Read the post | Play with the code

Filed under sass sprites @each

0 notes

Sass Extends: be aware of the loop

Sass’ @extend feature is extremely powerful. But not used wisely or without some understanding of what will happen when using this feature you can find yourself in some interesting situations.

Just recently I used the @extend feature in a very simple case that had an extremely telling outcome.

Now I think I really understand what this means: @extend works by inserting the extending selector (e.g. .seriousError) anywhere in the stylesheet that the extended selector (.e.g .error) appears.

Read the post, play with the code

Filed under sass extends sassmeister gist.io post

2 notes

Sass in the inspector

The common questions is, “How can I see __________ when writing Sass?”

For a while now, this feature has been available in Google Canary, but as of Chrome’s latest release, Sass and Source Maps are available in Chrome’s inspector.

The process is very simple to set up and once you are there, the rewards are immeasurable!

Simply follow the steps outlined in Codeography, just replace Canary with Chrome and you are rockin!

Filed under sass inspector

1 note

A few days SassMeister.com released a new kick ass feature that allows you do pass an ID of a Gist into a SassMeister  session. Ok, this was pretty cool and all, but what if you could simply click something and it took that Gist you were looking at straight to SassMeister . What if …?

There is no what if. There is only awesome! SassMeister.com  just released it’s new bookmarklet. Simply drag the bookmarklet to your bookmarks bar and when you are visiting that new Sass Gist, simply give it a click and like magic you will be brought to SassMeister.com  with your code in tow.

A few days SassMeister.com released a new kick ass feature that allows you do pass an ID of a Gist into a SassMeister session. Ok, this was pretty cool and all, but what if you could simply click something and it took that Gist you were looking at straight to SassMeister . What if …?

There is no what if. There is only awesome! SassMeister.com just released it’s new bookmarklet. Simply drag the bookmarklet to your bookmarks bar and when you are visiting that new Sass Gist, simply give it a click and like magic you will be brought to SassMeister.com with your code in tow.

0 notes

Sass Gists are ALIVE in SassMeister

A new simple yet powerful tool in SassMeister brings your Sass Gists ALIVE for quick code sharing with colleagues.

Gists are awesome, lots-o-love for the kids at Github for coming up with that. But with all the really awesome code examples out there to look at, there was something that always left me looking for more. I wanted to edit the code and see the results. And not have to clone, etc. Yes, I am THAT LAZY!

This plays especially tru for processing languages where I can’t simply clone some code and play. I need to do a little bit of set up first (remember LAZY). This was the reasoning behing SassMeister in the first place and the reasoning behind it’s latest feature that brings Sass Gists ALIVE!

Gists are static, SassMeister is ALIVE

It is an extremely powerful feature that is so simple to use.

  1. Create your Gist either from Github or from SassMeister itself
  2. Get the Gist ID, something like 4119580
  3. Craft the SassMeister URL, sassmeister.com/gist/4119580
  4. Tweet it
  5. Profit!

As shown in this linked example, SassMeister will look for the first available Sass file and display. So you can have a full example that has a readme, Sass and then CSS all in your Gist.

It’s that simple. Absolutely BADASS!

2 notes

Clean out your Sass junk-drawer

CSS has had a long and sordid past. A developer never sets out with the goal of making a complete and total mess of things. Their intention is not to build something that is practically illegible, impractical to maintain and is limited in scale. But somehow, this is where many inevitably end up. Luckily, all is not lost. With some simple strategies, organizational methods and out-of-the box tools, we can really help get that junk-drawer inline.

For many of us getting started with Sass, at one time or another have created a junk-drawer of files. For most, this was a rookie mistake, but for others, this is a continuing issue with our architecture and file management techniques. Sass doesn’t come with any real rules for file management so developers are pretty much left to their own devices.

Read the whole article …