Beginning css preprocessors


Chapter 2 Introduction to Sass



Download 2,42 Mb.
Pdf ko'rish
bet18/59
Sana01.01.2022
Hajmi2,42 Mb.
#285229
1   ...   14   15   16   17   18   19   20   21   ...   59
Bog'liq
Beginning CSS Preprocessors

Chapter 2

Introduction to Sass

In the previous chapter, you learned about precompilers, including why to use them, which ones are the 

known preprocessors, and their features. This chapter covers one of the most popular preprocessors: Sass.

In this chapter, you explore the following aspects of Sass:

•  Installation

•  Running the code

•  Variables

•  Comments

•  Data types

•  Parentheses

•  Nested rules

•  Nested properties

•  Referencing parent selector

•  Interpolation

•  Placeholder selector

•  Logical and control directives

Installing Sass

You install Sass via a Ruby gem, so you need to have Ruby installed on your machine. If you are on Mac  

OS X, you already have Ruby installed. If you are on Windows or Linux, you need to download and install 

Ruby from 

http://rubyinstaller.org/downloads/

.

After installing Ruby, you install Sass by running the gem command. gem can be thought of as an 



extension that extends the functionality of applications that consume Ruby. You can install Sass via the 

command line using the command shown in Listing 

2-1

. A simple interpretation of this command is “Ruby, 



install the gem called sass”.


Download 2,42 Mb.

Do'stlaringiz bilan baham:
1   ...   14   15   16   17   18   19   20   21   ...   59




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish