css - Why does bootstrap have two fonts in Sass? -


i change default font bootstrap sass , found this:

//== typography // //## font, line-height, , color body text, headings, , more.  $font-family-sans-serif:  "helvetica neue", helvetica, arial, sans-serif !default; $font-family-serif:       georgia, "times new roman", times, serif !default; 

what's difference between sans-serif , serif in context? because if inspect page, fonts helvetica neue.

how serif/georgia utilised if i'm seeing helvetica neue being used?

those options change base style font if want serif or sans-serif. this:

create 3 base styles:

$font-family-sans-serif: "helvetica neue", helvetica, arial, sans-serif !default;
$font-family-serif: georgia, "times new roman", times, serif !default;
$font-family-monospace: menlo, monaco, consolas, "courier new", monospace !default;

then set sans-serif on base var:

$font-family-base: $font-family-sans-serif !default;

and use base define font-family body therefore document:

body {    font-family: $font-family-base;    font-size: $font-size-base;    line-height: $line-height-base;    color: $text-color;    background-color: $body-bg; } 

the other options there if want customize theme , change serif or monospace document.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -