diff options
| author | Mark Otto <[email protected]> | 2014-07-07 23:36:40 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-07-07 23:36:40 -0700 |
| commit | f5024eb13af16d87c75ce3ec4901fb445b5a1718 (patch) | |
| tree | 722db15445a57cbcc11213cfc7b5651b0fb2a559 /less | |
| parent | 81b59d35368bc51d361d0352cc92fe99dc580fbf (diff) | |
| download | bootstrap-f5024eb13af16d87c75ce3ec4901fb445b5a1718.tar.xz bootstrap-f5024eb13af16d87c75ce3ec4901fb445b5a1718.zip | |
start the move to rems
Diffstat (limited to 'less')
| -rw-r--r-- | less/code.less | 7 | ||||
| -rw-r--r-- | less/scaffolding.less | 2 | ||||
| -rw-r--r-- | less/type.less | 22 | ||||
| -rw-r--r-- | less/variables.less | 27 |
4 files changed, 24 insertions, 34 deletions
diff --git a/less/code.less b/less/code.less index baa13df61..ed75d6bec 100644 --- a/less/code.less +++ b/less/code.less @@ -41,21 +41,16 @@ pre { display: block; padding: ((@line-height-computed - 1) / 2); margin: 0 0 (@line-height-computed / 2); - font-size: (@font-size-base - 1); // 14px to 13px + font-size: 90%; line-height: @line-height-base; - word-break: break-all; - word-wrap: break-word; color: @pre-color; background-color: @pre-bg; - border: 1px solid @pre-border-color; - border-radius: @border-radius-base; // Account for some code outputs that place code tags in pre tags code { padding: 0; font-size: inherit; color: inherit; - white-space: pre-wrap; background-color: transparent; border-radius: 0; } diff --git a/less/scaffolding.less b/less/scaffolding.less index c1e270fb7..f5b037dd1 100644 --- a/less/scaffolding.less +++ b/less/scaffolding.less @@ -20,7 +20,7 @@ // Body reset html { - font-size: 10px; + font-size: @font-size-root; -webkit-tap-highlight-color: rgba(0,0,0,0); } diff --git a/less/type.less b/less/type.less index 6ab3c0804..16a60061e 100644 --- a/less/type.less +++ b/less/type.less @@ -56,18 +56,12 @@ h6, .h6 { font-size: @font-size-h6; } // ------------------------- p { - margin: 0 0 (@line-height-computed / 2); + margin-top: 0; + margin-bottom: 1rem; } .lead { - margin-bottom: @line-height-computed; - font-size: floor((@font-size-base * 1.15)); - font-weight: 300; - line-height: 1.4; - - @media (min-width: @screen-sm-min) { - font-size: (@font-size-base * 1.5); - } + font-size: 1.5rem; } @@ -144,11 +138,11 @@ mark, // Page header // ------------------------- -.page-header { - padding-bottom: ((@line-height-computed / 2) - 1); - margin: (@line-height-computed * 2) 0 @line-height-computed; - border-bottom: 1px solid @page-header-border-color; -} +// .page-header { +// padding-bottom: ((@line-height-computed / 2) - 1); +// margin: (@line-height-computed * 2) 0 @line-height-computed; +// border-bottom: 1px solid @page-header-border-color; +// } // Lists diff --git a/less/variables.less b/less/variables.less index c797ae08a..a375eac6f 100644 --- a/less/variables.less +++ b/less/variables.less @@ -14,7 +14,7 @@ @gray-light: lighten(@gray-base, 46.7%); // #777 @gray-lighter: lighten(@gray-base, 93.5%); // #eee -@brand-primary: #428bca; +@brand-primary: #027de7; @brand-success: #5cb85c; @brand-info: #5bc0de; @brand-warning: #f0ad4e; @@ -46,21 +46,22 @@ @font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace; @font-family-base: @font-family-sans-serif; -@font-size-base: 14px; -@font-size-large: ceil((@font-size-base * 1.25)); // ~18px -@font-size-small: ceil((@font-size-base * 0.85)); // ~12px +@font-size-root: 16px; +@font-size-base: 1rem; +@font-size-large: 1.25rem; +@font-size-small: .85rem; -@font-size-h1: floor((@font-size-base * 2.6)); // ~36px -@font-size-h2: floor((@font-size-base * 2.15)); // ~30px -@font-size-h3: ceil((@font-size-base * 1.7)); // ~24px -@font-size-h4: ceil((@font-size-base * 1.25)); // ~18px -@font-size-h5: @font-size-base; -@font-size-h6: ceil((@font-size-base * 0.85)); // ~12px +@font-size-h1: 3rem; +@font-size-h2: 2.5rem; +@font-size-h3: 2rem; +@font-size-h4: 1.5rem; +@font-size-h5: 1.25rem; +@font-size-h6: 1rem; //** Unit-less `line-height` for use in components like buttons. -@line-height-base: 1.428571429; // 20/14 +@line-height-base: 1.5; // 20/14 //** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc. -@line-height-computed: floor((@font-size-base * @line-height-base)); // ~20px +@line-height-computed: (@font-size-root * @line-height-base); // ~20px //** By default, this inherits from the `<body>`. @headings-font-family: inherit; @@ -813,7 +814,7 @@ @kbd-color: #fff; @kbd-bg: #333; -@pre-bg: #f5f5f5; +@pre-bg: #f7f7f9; @pre-color: @gray-dark; @pre-border-color: #ccc; @pre-scrollable-max-height: 340px; |
