Bootstrap janya walasa ka nafa sɔrɔ cogoyaw ni yɔrɔw la minnu bɛ a kɔnɔ, ani LESS fɛn caman sɛgɛsɛgɛli ani mixins.
Bootstrap dilannen don ni LESS ye a kɔnɔ, n’o ye kan ye min bɛ se ka kɛ cogoya la, n’o ye an teri ɲuman ye, n’o ye Alexis Sellier ye . A bɛ CSS min sinsinnen bɛ sistɛmuw kan, o yiriwali teliya, ka nɔgɔya, ani ka diya.
Bootstrap dabɔbaa dɔ ye bulɔgu sɛbɛn teliyalen dɔ sɛbɛn nin ko in kan , a kuncɛlen don yan:
I n’a fɔ CSS ka farankan, LESS bɛ fɛn caman sɛmɛntiya, mixins minnu bɛ se ka baara kɛ kokura ni kodew ye, baarakɛcogo minnu bɛ kɛ jatebɔ nɔgɔmanw kama, nesting, ani hali kulɛri baarakɛcogo.
Aw ye taa siti ofisiyali la http://lesscss.org/ walasa ka kunnafoni wɛrɛw sɔrɔ.
Komin an ka CSS sɛbɛnnen dòn ni Less ye wa a bɛ baara Kɛ ni fɛn caman ɲɔgɔnna ni mixins ye, a ka kan ka Lajɛ walasa ka labanko waleyali Kɛ. A cogo filɛ nin ye.
Aw bɛ cikanw labato porozɛ readme kɔnɔ GitHub kan walasa ka daɲɛw lajɛ cikan sira fɛ.
Less.js labanw telesarse ani ka sira don a la (ani Bootstrap) <head>
.
<link rel = "stylesheet/less" href = "/sira/ka taa/bootstrap.less" > <script src = "/sira/ka taa/ka dɔgɔ.js" </script>
Walasa ka .less filew lajɛ kokura, i k’u mara dɔrɔn k’i ka ɲɛ in doni kokura. Less.js b’u Lajɛ k’u mara sigida marayɔrɔ la.
Mac app min tɛ ofisi ye, o bɛ .less filew ka ɲɛbilasɛbɛnw lajɛ ani ka kode lajɛ ka kɛ sigida filew ye .less file kɔlɔsilen maralen kɔfɛ. N’i b’a fɛ, i bɛ se ka fɛɛrɛw tigɛli kɛ appli kɔnɔ walasa ka automatique minifying ani directory min kɔnɔ, files compilés bɛ laban ka kɛ.
Crunch ye LESS editor ani compiler ye min ɲɛ ka ɲi kosɛbɛ min jɔlen bɛ Adobe Air kan.
A dabɔra cɛ kelen fɛ ni Mac app min tɛ ofisi ye, CodeKit ye Mac app ye min bɛ LESS, SASS, Stylus, ani CoffeeScript lajɛ.
Mac, Linux ani Windows app min bɛ kɛ ka LESS filew lajɛ ani ka u fili. Ka fara o kan, source code bɛ GitHub kan .
Teliya la, i bɛ ɛntɛrinɛti porozɛ o porozɛ daminɛ ni CSS ni JS minnu lajɛlen don walima minnu dɔgɔyara, olu bilali ye. Layer kan custom styles danfaralen walasa ka upgrades nɔgɔya ani maintenance ka taa ɲɛ.
Bootstrap min labɛnna kura ye, o telesarse ka bila i ka poroze kɔnɔ. Misali la, i bɛ se ka fɛn dɔ sɔrɔ i n’a fɔ nin:
app/ layidu talenw/ . misaliw/ . foroba/ css/ ye. bootstrap.min.css ye js/ ye. bootstrap.min.js ka baarakɛminɛnw img/ ye. glyphicons-tiɲɛninw.png glyphicons-halflings-finmanw.png
Aw bɛ nin basigi HTML in kopi kɛ walasa ka baara daminɛ.
- <html>
- <kunkolo>
- <title> Bootstrap 101 Ɲɛjirali </title>
- <!-- Bootstrap ye --> ye
- <link href = "jama/css/bootstrap.min.css" rel = "cogo sɛbɛn" >
- </head> ye
- <farikolo>
- <h1> Bonjour , diɲɛ ! </h1> ye
- <!-- Bootstrap ye --> ye
- <script src = "jama/js/bootstrap.min.js" </script>
- </farikolo>
- </html>
Baara kɛ i ka ladamu CSS, JS ani fɛn wɛrɛw la i n’a fɔ a mago bɛ cogo min na walasa ka Bootstrap kɛ i yɛrɛ ta ye ni i yɛrɛ ka CSS ni JS filew danfaralenw ye.
- <html>
- <kunkolo>
- <title> Bootstrap 101 Ɲɛjirali </title>
- <!-- Bootstrap ye --> ye
- <link href = "jama/css/bootstrap.min.css" rel = "cogo sɛbɛn" >
- <!-- Porozɛ -->
- <link href = "jama/css/application.css" rel = "cogo sɛbɛn" >
- </head> ye
- <farikolo>
- <h1> Bonjour , diɲɛ ! </h1> ye
- <!-- Bootstrap ye --> ye
- <script src = "jama/js/bootstrap.min.js" </script>
- <!-- Porozɛ -->
- <script src = "jama/js/application.js" </script>
- </farikolo>
- </html>