Beginning css preprocessors



Download 2,42 Mb.
Pdf ko'rish
bet7/59
Sana01.01.2022
Hajmi2,42 Mb.
#285229
1   2   3   4   5   6   7   8   9   10   ...   59
Bog'liq
Beginning CSS Preprocessors

Figure 1-1.  Preprocessor-friendly file being translated to normal CSS


Chapter 1 

 IntroduCtIon to preproCessors



2

With a preprocessor, you can structure CSS similar to other languages like PHP or JavaScript. Thus, 

a preprocessor brings peace of mind to the developer. It lets you write code that’s future-proof and easily 

maintainable, thus saving time and energy.

Preprocessors are extensions of CSS, which means that valid CSS code is valid preprocessor code. 

Developers familiar with CSS won’t have a learning curve while learning any preprocessor.

Why Use Preprocessors?

CSS uses a declarative form of programming. This means that the styles that you write in the code are used 

directly by the browser, without any compiling.

Many developers prefer to write stylesheets by hand. They believe that preprocessors would add extra 

complexity to their workflow or would have a steep learning curve. But in reality, CSS preprocessors make 

your daily work a lot easier. This book shows you how preprocessors can be more efficient for writing CSS 

without disturbing your workflow.

Let’s consider an example where you need to replace multiple instances of a color that’s used sitewide 

by finding it one instance at a time. Wouldn’t it be great if CSS could simplify this process? Something like 

Listing 


1-1

 would be an example.




Download 2,42 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10   ...   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