官术网_书友最值得收藏!

  • Mastering Sass
  • Luke Watts
  • 401字
  • 2021-07-14 10:28:19

A bit of sassy reminiscing

As I mentioned I started Sass some time ago. I even remember that illustration of the girl with the telephone. Remember her? I always imagined she was having a sassy debate with her friend about the latest web design trends and telling her friend to stop using IDs in her CSS.

Anyways, I can also remember it was actually pretty difficult to learn Sass. The only thing that got me to persevere was I could use as little as I wanted in the beginning, so I had that safety net of plain old CSS. So when I started out I really only used Sass for the variables, imports and the nesting. Even with that, it made my life so much better!

The version was Classy Cassidy(3.0.18), and even though Sass hadn't been offering the .scss syntax for long at that point, it was really starting to make waves, due to the fact you could just write css and use as little or as much of Sass as you wanted. When it's put like that to someone you'd wonder why it wasn't a feature in the first place.

Back then you actually didn't even install Sass, you installed Haml. Sass just sort of came with it, like a cool sibling. The whole Haml situation confused me. I wasn't quite sure if I had to use it use Sass, or what the heck Haml was in the first place. Also, back then I was still pretty green to programming and definitely to the command line. The fact that the documentation was geared towards Unix completely threw me off. I wasn't even sure if I could get Sass set up on Windows properly.

I also made the mistake of thinking the Sass reference was written in a strict order. So I spent hours trying to wrap my head around the Sass::Plugin options, thinking I needed to set those up first somewhere to get things going. I didn't really know any better.

So I want to help you avoid the mistakes I made along my journey through Sass, and make sure you're getting the best out Sass. Not just the advanced features, but also the simple ones that you may have missed. You have Sass all set up and ready to go so you probably want to set up a project and start writing some Syntactically Awesome Style Sheets (Sass).

主站蜘蛛池模板: 普兰县| 太和县| 拉孜县| 申扎县| 东源县| 清原| 兴仁县| 醴陵市| 宿松县| 司法| 宣化县| 诸暨市| 乌兰县| 久治县| 锡林浩特市| 宁晋县| 华蓥市| 含山县| 紫阳县| 青岛市| 安宁市| 建水县| 阿城市| 砀山县| 丰宁| 奈曼旗| 闽侯县| 双辽市| 西畴县| 隆林| 安顺市| 广汉市| 扬州市| 尚志市| 林西县| 中宁县| 龙游县| 琼结县| 宣汉县| 南宫市| 厦门市|