Mos et Bootstrap cum minore praecessore CSS extendere , uti variabilium, mixinorum , et plurium CSS fabricandi usus est Bootstrap.
Bootstrap cum minori in suo nucleo facta est, lingua dynamica a nostro bono amico facta, Alexis Sellier . Ratio explicandi substructio CSS citius, facilius, et magis iocum facit.
Prorogatio CSS, MINOR variabiles includit, mixins pro reusable excerpta codicis, operationes pro simplici math, nidificatione, ac etiam functionibus coloratis.
Visita rutrum in http://lesscss.org/ ut plura discas.
Colores et pixel bona in CSS administrandi paulum doloris esse potest, plerumque copia et crustulum plena. Non minori quamquam-colores vel pixel assignant variabiles valores ac semel mutantes.
Illos tres terminos radiorum declarationes debes facere in regulari OL' CSS? Nunc ad unam lineam es ope mixins, excerpta codicis alicubi reuse potes.
Fac tibi euismod, ducens, et magis flexibilem faciens math in musca cum operationibus. Multiplica, divide, adde et subtrahe ad sanitatem css.
@bodyBackground |
@white |
Page background color | |
@textColor |
@grayDark |
Default text color pro toto corpore, capitulorum, et plus | |
@linkColor |
#08c |
Default link color " | |
@linkColorHover |
darken(@linkColor, 15%) |
Default link color color text |
@gridColumns |
12 |
@gridColumnWidth |
60px |
@gridGutterWidth |
20px |
@fluidGridColumnWidth |
6.382978723% |
@fluidGridGutterWidth |
2.127659574% |
@sansFontFamily |
"Helvetica Neue", Helvetica, Arial, sans-serif | |
@serifFontFamily |
Georgia, "Times New Roman", Times, serif |
|
@monoFontFamily |
Menlo, Monaco, "Courier New", monospace . | |
@baseFontSize |
13px | Oportet elementa |
@baseFontFamily |
@sansFontFamily |
|
@baseLineHeight |
18px | Oportet elementa |
@altFontFamily |
@serifFontFamily |
|
@headingsFontFamily |
inherit |
|
@headingsFontWeight |
bold |
|
@headingsColor |
inherit |
@tableBackground |
transparent |
@tableBackgroundAccent |
#f9f9f9 |
@tableBackgroundHover |
#f5f5f5 |
@tableBorder |
ddd |
@black |
#000 | |
@grayDarker |
#222 | |
@grayDark |
#333 | |
@gray |
#555 | |
@grayLight |
#999 | |
@grayLighter |
#eee | |
@white |
#fff |
@blue |
#049cdb | |
@green |
#46a546 | |
@red |
#9d261d | |
@yellow |
#ffc40d | |
@orange |
#f89406 | |
@pink |
#c3325f | |
@purple |
#7a43b6 |
@btnBackground |
@white |
|
@btnBackgroundHighlight |
darken(@white, 10%) |
|
@btnBorder |
darken(@white, 20%) |
|
@btnPrimaryBackground |
@linkColor |
|
@btnPrimaryBackgroundHighlight |
spin(@btnPrimaryBackground, 15%) |
|
@btnInfoBackground |
#5bc0de |
|
@btnInfoBackgroundHighlight |
#2f96b4 |
|
@btnSuccessBackground |
#62c462 |
|
@btnSuccessBackgroundHighlight |
51a351 |
|
@btnWarningBackground |
lighten(@orange, 15%) |
|
@btnWarningBackgroundHighlight |
@orange |
|
@btnDangerBackground |
#ee5f5b |
|
@btnDangerBackgroundHighlight |
#bd362f |
|
@btnInverseBackground |
@gray |
|
@btnInverseBackgroundHighlight |
@grayDarker |
@placeholderText |
@grayLight |
@inputBackground |
@white |
@inputBorder |
#ccc |
@inputBorderRadius |
3px |
@inputDisabledBackground |
@grayLighter |
@formActionsBackground |
#f5f5f5 |
@warningText |
#c09853 | |
@warningBackground |
#f3edd2 | |
@errorText |
#b94a48 | |
@errorBackground |
#f2dede | |
@successText |
#468847 | |
@successBackground |
#dff0d8 | |
@infoText |
#3a87ad | |
@infoBackground |
#d9edf7 |
@navbarHeight |
40px | |
@navbarBackground |
@grayDarker |
|
@navbarBackgroundHighlight |
@grayDark |
|
@navbarText |
@grayLight |
|
@navbarLinkColor |
@grayLight |
|
@navbarLinkColorHover |
@white |
|
@navbarLinkColorActive |
@navbarLinkColorHover |
|
@navbarLinkBackgroundHover |
transparent |
|
@navbarLinkBackgroundActive |
@navbarBackground |
|
@navbarSearchBackground |
lighten(@navbarBackground, 25%) |
|
@navbarSearchBackgroundFocus |
@white |
|
@navbarSearchBorder |
darken(@navbarSearchBackground, 30%) |
|
@navbarSearchPlaceholderColor |
#ccc |
|
@navbarBrandColor |
@navbarLinkColor |
@dropdownBackground |
@white |
@dropdownBorder |
rgba(0,0,0,.2) |
@dropdownLinkColor |
@grayDark |
@dropdownLinkColorHover |
@white |
@dropdownLinkBackgroundHover |
@linkColor |
@@dropdownDividerTop |
#e5e5e5 |
@@dropdownDividerBottom |
@white |
@heroUnitBackground |
@grayLighter |
|
@heroUnitHeadingColor |
inherit |
|
@heroUnitLeadColor |
inhereit |
Mixinum fundamentale essentialiter includit vel partialem pro PRAECISIO CSS. Scripta sunt sicut classis CSS et alicubi dici potest.
- . elementum {
- . clearfix ();
- }
Parametrica mixin sicut mixin fundamentalis est, sed etiam parametros (unde nomen) cum valoribus defaltis libitum accipit.
- . elementum {
- . border - radius ( 4px );
- }
Fere omnia mixins Bootstrap in mixins.less, mira utilitas et minus lima quae efficit ut mixin in aliquo .less lima in toolkit utatur.
Perge igitur et entibus utere vel utere libere ut tuum adde quod debes.
Mixin | Morbi laoreet | Consuetudinem |
---|---|---|
.clearfix() |
nullus | Addere cuilibet parens ut patet ratibus intus |
.tab-focus() |
nullus | Applicare Webkit focus stilum et circum Firefox lineamenta |
.center-block() |
nullus | Auto centrum ad obstructionum-gradu elementum utensmargin: auto |
.ie7-inline-block() |
nullus | Utere praeter iusto display: inline-block ad firmamentum IE7 |
.size() |
@height @width |
Cito pone altitudinem et latitudinem in una linea |
.square() |
@size |
Latitudo .size() et altitudo ejusdem valoris superaedificat |
.opacity() |
@opacity |
Opacitas recipis (eg, 50" vel 75, in numeris integris. |
Mixin | Morbi laoreet | Consuetudinem |
---|---|---|
.placeholder() |
@color: @placeholderText |
Constitue placeholder textum color pro initibus |
Mixin | Morbi laoreet | Consuetudinem |
---|---|---|
#font > #family > .serif() |
nullus | Fac elementum uti serif font acervus |
#font > #family > .sans-serif() |
nullus | Fac elementum uti sans-serif font acervus |
#font > #family > .monospace() |
nullus | Fac elementum uti monospace font ACERVUS |
#font > .shorthand() |
@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight |
Facile pone font magnitudinem, pondus, et ducens |
#font > .serif() |
@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight |
Pone familiam fontalem ad serif, et regere magnitudinem, pondus et ducens |
#font > .sans-serif() |
@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight |
Constitue familiam fontanam ad sans-serif, et magnitudinem, pondus, et ducens |
#font > .monospace() |
@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight |
Pone familiam fontalem ad monospatium, ac magnitudinem, pondus, et ad imperium |
Mixin | Morbi laoreet | Consuetudinem |
---|---|---|
.container-fixed() |
nullus | Create horizontaliter sitas contenta continens |
#grid > .core() |
@gridColumnWidth, @gridGutterWidth |
Pixellam eget systematis (continens, row, et columnas) cum n columnis et x pixel latae stillicidium |
#grid > .fluid() |
@fluidGridColumnWidth, @fluidGridGutterWidth |
Genera centesimis systematis eget cum n columnis et x % latis guttulis |
#grid > .input() |
@gridColumnWidth, @gridGutterWidth |
Elementa pixel eget systema generare input , Nullam ac finibus rationem |
.makeColumn |
@columns: 1, @offset: 0 |
Vertere aliquem div in columna malesuada euismod sine .span* classibus |
Mixin | Morbi laoreet | Consuetudinem |
---|---|---|
.border-radius() |
@radius |
Elementi per angulos. Potest esse unum valorem vel quattuor spatium-separatum valores |
.box-shadow() |
@shadow |
Addere stilla umbra elementi |
.transition() |
@transition |
Adde CSS3 effectus transitus (eg, all .2s linear ) |
.rotate() |
@degrees |
Gyrari elementum n gradus |
.scale() |
@ratio |
Ascendite elementum ad n tempora sua originali magnitudine |
.translate() |
@x, @y |
Movere elementum in planis x et y |
.background-clip() |
@clip |
Seges background elementi (utilis est border-radius ) |
.background-size() |
@size |
Imagines moderari magnitudinem background CSS3 per " |
.box-sizing() |
@boxmodel |
Mutare exemplar archa pro elemento (exempli border-box gratia plena latitudo input ) |
.user-select() |
@select |
Imperium cursor lectio of text in pagina |
.backface-visibility() |
@visibility: visible |
Preoccupo micantes contenti, cum usura css 3D transformat |
.resizable() |
@direction: both |
Fac quodlibet elementum resizable in dextro et fundo |
.content-columns() |
@columnCount, @columnGap: @gridGutterWidth |
Fac contentum cuiuslibet elementi uti columnis CSS3 |
.hyphens() |
@mode: auto |
CSS3 hyphenation cum voles (includes word-wrap: break-word ) |
Mixin | Morbi laoreet | Consuetudinem |
---|---|---|
#translucent > .background() |
@color: @white, @alpha: 1 |
Da elementum translucidum background color |
#translucent > .border() |
@color: @white, @alpha: 1 |
Da elementum color terminus translucens |
#gradient > .vertical() |
@startColor, @endColor |
Creare crucis-bruncula verticali background CLIVUS |
#gradient > .horizontal() |
@startColor, @endColor |
Create in crucem-browser plano horizontali gradiente |
#gradient > .directional() |
@startColor, @endColor, @deg |
Partum crucis-pasco directional background CLIVUS |
#gradient > .vertical-three-colors() |
@startColor, @midColor, @colorStop, @endColor |
Partum in crucem-browser ter color background CLIVUS |
#gradient > .radial() |
@innerColor, @outerColor |
Partum crucis-pasco radialis background CLIVUS |
#gradient > .striped() |
@color, @angle |
Partum in crucem-brunculata striata background CLIVUS |
#gradientBar() |
@primaryColor, @secondaryColor |
Pro globulis assignare clivum et limitem leviter obscuriorem |
Instrue minus mandatum lineae compilatoris, JSHint, Recessus, et globally-js deformis cum npm currendo mandatum hoc:
$ npm install -g minus jshint recessus deformis-js
Semel inauguratus es iustus make
e radice presul tui bootstrap et omnes positi es.
Accedit, si speculator inauguratus es, currere potes ut make watch
bootstrap automatice reaedificata omni tempore limam in bootstrap lib (hoc non exigatur, modo commodum sit).
Instrue praecepto minore instrumento per Nodem lineam et sequentia praecepti currunt:
$ lessc ./less/bootstrap.less > bootstrap.css
Vide ut --compress
illud praeceptum comprehendas si bytes aliquos servare conaris!
Download latest Less.js and include the path to it (and Bootstrap) in the <head>
.
<link rel = "stylesheet/less" href = "/path/to/bootstrap.less" > <script src = "/path/to/less.js" ></script>
Files .less recomplare, tantum serva et paginam tuam reload. Less.js conficit et reponit in loci reposita.
Mac app privatus directoria minorum imaginum custodit et codicem ad files locales componit postquam singulis praeter fasciculi speculatoris .less.
Si libet, optiones toggle in app pro latae miniificationis et quae directorium imaginum compilatarum desinunt in.
FRANGO magnum est aspiciens editorem minorem et compilator in Adobe Air aedificavit.
Ab eodem guy ac Mac app privatus, CodeKit est app Mac app qui MINOR, SASS, Stylus et CoffeeScript conscribit.
Mac, Linux, et PC app pro extraho et stilla componendis fasciculi minoris. Plus, fons code in GitHub est .