Skip to content

Commit

Permalink
MDL-40670 Theme: Rescale headings overriding bootstrap defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
barbararamiro committed Jul 15, 2013
1 parent 07bbbcf commit dc97596
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
4 changes: 3 additions & 1 deletion theme/bootstrapbase/less/moodle.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
// Upstream Bootstrap.
@import "bootstrap/bootstrap";

// Override Bootstrap defaults.
@import "moodle/bootstrapoverride";

// Set image location.
@iconSpritePath: ~"[[pix:theme|glyphicons-halflings]]";
@iconWhiteSpritePath: ~"[[pix:theme|glyphicons-halflings-white]]";
Expand All @@ -27,7 +30,6 @@
@horizontalComponentOffset980: 220px;
@horizontalComponentOffset1200: 265px;


// Roll back nameclashes.
@import "moodle/undo";

Expand Down
19 changes: 19 additions & 0 deletions theme/bootstrapbase/less/moodle/bootstrapoverride.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* bootstrapoverride.less
*
* This file is meant to contain rules which specifically override
* rules defined in Bootstrap.
*/

/** Headings **/
h1 { font-size: round(@baseFontSize * 2.30); } // ~32px
h2 { font-size: round(@baseFontSize * 2.00); } // ~28px
h3 { font-size: round(@baseFontSize * 1.70); } // ~24px
h4 { font-size: round(@baseFontSize * 1.40); } // ~20px
h5 { font-size: round(@baseFontSize * 1.15); } // ~16px
h6 { font-size: round(@baseFontSize * 0.85); } // ~12px

h1 small { font-size: round(@baseFontSize * 1.70); } // ~24px
h2 small { font-size: round(@baseFontSize * 1.40); } // ~20px
h3 small { font-size: round(@baseFontSize * 1.15); } // ~16px
h4 small { font-size: round(@baseFontSize * 0.85); } // ~12px
4 changes: 2 additions & 2 deletions theme/bootstrapbase/style/moodle.css

Large diffs are not rendered by default.

0 comments on commit dc97596

Please sign in to comment.