Faagun Bootstrap lati lo anfani ti awọn aza ati awọn paati ti o wa, bakanna bi awọn oniyipada KERE ati awọn alapọpo.
Bootstrap ni a ṣe pẹlu KERE ni ipilẹ rẹ, ede aṣa aṣa ti o ni agbara ti a ṣẹda nipasẹ ọrẹ wa to dara, Alexis Sellier . O jẹ ki CSS ti o da lori awọn eto ṣiṣe ni iyara, rọrun, ati igbadun diẹ sii.
Ọkan ninu awọn olupilẹṣẹ Bootstrap kowe ifiweranṣẹ bulọọgi ni iyara nipa eyi , ni akopọ nibi:
Gẹgẹbi itẹsiwaju ti CSS, KERE pẹlu awọn oniyipada, awọn apopọ fun awọn snippets koodu atunlo, awọn iṣẹ ṣiṣe fun mathematiki rọrun, itẹ-ẹiyẹ, ati paapaa awọn iṣẹ awọ.
Ṣabẹwo oju opo wẹẹbu osise ni http://lesscss.org/ lati kọ ẹkọ diẹ sii.
Niwọn bi a ti kọ CSS wa pẹlu Kere ati pe o lo awọn oniyipada ati awọn alapọpọ, o nilo lati ṣajọ fun imuse iṣelọpọ ikẹhin. Eyi ni bii.
Tẹle awọn ilana ti o wa ninu iwe kika iṣẹ akanṣe lori GitHub fun ikojọpọ nipasẹ laini aṣẹ.
Ṣe igbasilẹ Less.js tuntun ati pẹlu ọna si (ati Bootstrap) ninu faili <head>
.
<link rel = "stylesheet/less" href = "/path/to/bootstrap.less" > <script src = "/path/to/less.js" ></script>
Lati tun ṣe akojọpọ awọn faili ti ko kere, kan fi wọn pamọ ki o tun gbee si oju-iwe rẹ. Less.js ṣe akopọ wọn ati tọju wọn ni ibi ipamọ agbegbe.
Ohun elo Mac laigba aṣẹ n wo awọn ilana ti .less awọn faili ati ṣe akopọ koodu si awọn faili agbegbe lẹhin gbogbo fifipamọ faili .less ti wiwo. Ti o ba fẹ, o le yi awọn ayanfẹ pada ninu ohun elo naa fun idinku aifọwọyi ati itọsọna wo ni awọn faili ti o ṣajọ pari ni.
Crunch jẹ olootu KEKERE ti o n wo nla ati akopọ ti a ṣe lori Adobe Air.
Ti a ṣẹda nipasẹ eniyan kanna bi ohun elo Mac laigba aṣẹ, CodeKit jẹ ohun elo Mac kan ti o ṣajọ KERE, SASS, Stylus, ati CoffeeScript.
Mac, Lainos, ati Windows app fun fifa ati ju silẹ akopọ ti awọn faili KERE. Pẹlupẹlu, koodu orisun wa lori GitHub .
Ni kiakia bẹrẹ iṣẹ wẹẹbu eyikeyi nipa sisọ sinu akopọ tabi minisita CSS ati JS. Layer lori awọn aṣa aṣa lọtọ fun awọn iṣagbega irọrun ati itọju gbigbe siwaju.
Ṣe igbasilẹ Bootstrap tuntun ti a ṣajọpọ ati gbe sinu iṣẹ akanṣe rẹ. Fun apẹẹrẹ, o le ni nkan bii eyi:
app/ awọn ipilẹ / awọn awoṣe / gbangba/ css/ bata bata.min.css js/ bata orunkun.min.js img/ glyphicons-halflings.png glyphicons-halflings-funfun.png
Daakọ ipilẹ HTML atẹle lati bẹrẹ.
- <html>
- <ori>
- <akọle> Bootstrap 101 Àdàkọ </title>
- <!-- Bootstrap -->
- <link href = "public/css/bootstrap.min.css" rel = "stylesheet" >
- </i>ori>
- <ara>
- <h1> Kaabo, agbaye! </h1>
- <!-- Bootstrap -->
- <script src = "gbangba/js/bootstrap.min.js" </script>
- </ ara>
- </html>
Ṣiṣẹ ninu aṣa CSS rẹ, JS, ati diẹ sii bi o ṣe pataki lati jẹ ki Bootstrap tirẹ pẹlu awọn faili CSS lọtọ ati awọn faili JS tirẹ.
- <html>
- <ori>
- <akọle> Bootstrap 101 Àdàkọ </title>
- <!-- Bootstrap -->
- <link href = "public/css/bootstrap.min.css" rel = "stylesheet" >
- <!-- Project -->
- <link href = "public/css/application.css" rel = "stylesheet" >
- </i>ori>
- <ara>
- <h1> Kaabo, agbaye! </h1>
- <!-- Bootstrap -->
- <script src = "gbangba/js/bootstrap.min.js" </script>
- <!-- Project -->
- <script src = "gbangba/js/application.js" </script>
- </ ara>
- </html>