Beginning css preprocessors



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

Listing 1-18.  Example of Importing Content of One File into Another

@import 'reset';

body {

        background-color: #efefef;



}

 



Note   there is no need to specify the file extension while importing files in sass. sass automatically figures 

out the appropriate file and imports it.

In Less, however, the behavior of import varies per file extension. If the imported file has a .css 

extension, it will be treated as a normal CSS import and won’t be changed when compiled. If it has any other 

extension, it will be treated like Less and will be imported and merged.

Mixins


Mixins let you create snippets of CSS declarations that you can reuse throughout your stylesheet. Mixins are 

further configurable by passing parameters as well as setting defaults for those parameters. Mixins are most 

useful when you want to repeatedly use vendor-prefixed syntax. They reduce the tedious rewriting of code 

(see Listings 

1-19

 and 


1-20

).


Download 2,42 Mb.

Do'stlaringiz bilan baham:
1   ...   12   13   14   15   16   17   18   19   ...   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