weekly release 3.0dev
[moodle.git] / theme / bootstrapbase / less / moodle / bootstrapoverride.less
CommitLineData
dc975966
BR
1/**
2 * bootstrapoverride.less
3 *
4 * This file is meant to contain rules which specifically override
5 * rules defined in Bootstrap.
6*/
7
e514c722
FM
8// Create missing variables.
9@wellBorder: darken(@wellBackground, 7%);
10
70512ebd 11// Headings.
dc975966
BR
12h1 { font-size: round(@baseFontSize * 2.30); } // ~32px
13h2 { font-size: round(@baseFontSize * 2.00); } // ~28px
14h3 { font-size: round(@baseFontSize * 1.70); } // ~24px
15h4 { font-size: round(@baseFontSize * 1.40); } // ~20px
16h5 { font-size: round(@baseFontSize * 1.15); } // ~16px
17h6 { font-size: round(@baseFontSize * 0.85); } // ~12px
18
19h1 small { font-size: round(@baseFontSize * 1.70); } // ~24px
20h2 small { font-size: round(@baseFontSize * 1.40); } // ~20px
21h3 small { font-size: round(@baseFontSize * 1.15); } // ~16px
22h4 small { font-size: round(@baseFontSize * 0.85); } // ~12px
70512ebd
DW
23
24// Printing.
25@media print {
26 a[href]:after {
27 content: "";
28 }
29}
5dc361e1 30
d8037b26 31// Bootstrap's calculation of blocks within a fluid grid. Copied from their grid code.
5dc361e1 32.fluid-span (@columns) {
d8037b26
GB
33 .fluid-span-full(@columns, @fluidGridColumnWidth, @fluidGridGutterWidth);
34}
35.fluid-span-full (@columns, @columnWidth, @gutterWidth) {
36 width: (@columnWidth * @columns) + (@gutterWidth * (@columns - 1));
37 *width: (@columnWidth * @columns) + (@gutterWidth * (@columns - 1)) - (.5 / @gridRowWidth * 100 * 1%);
e514c722
FM
38}
39
40/**
41 * Implement missing variables, or faulty ones, in Bootstrap rules.
42 *
43 * Those are minimal overrides of Bootstrap rules to introduce the usage
44 * of a variable, or to fix a variable being used.
45 */
46legend {
47 border-bottom-color: @tableBorder;
48 color: @textColor;
49}
50.breadcrumb {
51 background-color: @wellBackground;
52}
53.well {
54 border-color: @wellBorder;
961c7b19
DW
55}
56
57// Subscript and superscript - required to prevent bugs in contenteditable divs.
58sup {
59 vertical-align: super;
60}
61sub {
62 vertical-align: sub;
63}