MDL-52249 theme_bootstrapbase: Remove dropdown-backdrop
[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
267c6367
GB
11// Update warning text colour for accessibility.
12@warningText: #8a6d3b;
13
70512ebd 14// Headings.
dc975966
BR
15h1 { font-size: round(@baseFontSize * 2.30); } // ~32px
16h2 { font-size: round(@baseFontSize * 2.00); } // ~28px
17h3 { font-size: round(@baseFontSize * 1.70); } // ~24px
18h4 { font-size: round(@baseFontSize * 1.40); } // ~20px
19h5 { font-size: round(@baseFontSize * 1.15); } // ~16px
20h6 { font-size: round(@baseFontSize * 0.85); } // ~12px
21
22h1 small { font-size: round(@baseFontSize * 1.70); } // ~24px
23h2 small { font-size: round(@baseFontSize * 1.40); } // ~20px
24h3 small { font-size: round(@baseFontSize * 1.15); } // ~16px
25h4 small { font-size: round(@baseFontSize * 0.85); } // ~12px
70512ebd
DW
26
27// Printing.
28@media print {
29 a[href]:after {
30 content: "";
31 }
32}
5dc361e1 33
d8037b26 34// Bootstrap's calculation of blocks within a fluid grid. Copied from their grid code.
5dc361e1 35.fluid-span (@columns) {
d8037b26
GB
36 .fluid-span-full(@columns, @fluidGridColumnWidth, @fluidGridGutterWidth);
37}
38.fluid-span-full (@columns, @columnWidth, @gutterWidth) {
39 width: (@columnWidth * @columns) + (@gutterWidth * (@columns - 1));
40 *width: (@columnWidth * @columns) + (@gutterWidth * (@columns - 1)) - (.5 / @gridRowWidth * 100 * 1%);
e514c722
FM
41}
42
43/**
44 * Implement missing variables, or faulty ones, in Bootstrap rules.
45 *
46 * Those are minimal overrides of Bootstrap rules to introduce the usage
47 * of a variable, or to fix a variable being used.
48 */
49legend {
50 border-bottom-color: @tableBorder;
51 color: @textColor;
52}
53.breadcrumb {
54 background-color: @wellBackground;
55}
56.well {
57 border-color: @wellBorder;
961c7b19
DW
58}
59
60// Subscript and superscript - required to prevent bugs in contenteditable divs.
61sup {
62 vertical-align: super;
63}
64sub {
65 vertical-align: sub;
66}
14cfe26f
AN
67.dropdown-backdrop {
68 position: static;
69}