MDL-55805 theme_noname: Footer adjusments and made sticky
[moodle.git] / theme / noname / scss / preset-readable.scss
CommitLineData
ef18a21f
DW
1//
2// The MIT License (MIT)
3//
4// Copyright (c) 2013 Thomas Park
5//
6// Permission is hereby granted, free of charge, to any person obtaining a copy
7// of this software and associated documentation files (the "Software"), to deal
8// in the Software without restriction, including without limitation the rights
9// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10// copies of the Software, and to permit persons to whom the Software is
11// furnished to do so, subject to the following conditions:
12//
13// The above copyright notice and this permission notice shall be included in
14// all copies or substantial portions of the Software.
15//
16// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22// THE SOFTWARE.
23//
24$bootstrap-sass-asset-helper: false !default;
25// Readable 3.3.7
26// Variables
27// --------------------------------------------------
28
29
30//== Colors
31//
32//## Gray and brand colors for use across Bootstrap.
33
34$gray-base: #000 !default;
35$gray-darker: lighten($gray-base, 13.5%) !default; // #222
36$gray-dark: lighten($gray-base, 20%) !default; // #333
37$gray: lighten($gray-base, 33.5%) !default; // #555
38$gray-light: lighten($gray-base, 70%) !default; // #999
39$gray-lighter: lighten($gray-base, 93.5%) !default; // #eee
40
41$gray-lightest: lighten($gray-lighter, 13.5%);
42
43$brand-primary: #4582EC !default;
44$brand-success: #3FAD46 !default;
45$brand-info: #5bc0de !default;
46$brand-warning: #f0ad4e !default;
47$brand-danger: #d9534f !default;
48
49
50//== Scaffolding
51//
52//## Settings for some of the most global styles.
53
54//** Background color for `<body>`.
55$body-bg: #fff !default;
56//** Global text color on `<body>`.
57$text-color: $gray-dark !default;
58
59$body-color: $text-color;
60
61//** Global textual link color.
62$link-color: $brand-primary !default;
63//** Link hover color set via `darken()` function.
64$link-hover-color: darken($link-color, 20%) !default;
65//** Link hover decoration.
66$link-hover-decoration: underline !default;
67
68
69//== Typography
70//
71//## Font, line-height, and color for body text, headings, and more.
72
73$font-family-sans-serif: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif !default;
74$font-family-serif: Georgia, "Times New Roman", Times, serif !default;
75//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
76$font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace !default;
77$font-family-base: $font-family-serif !default;
78
79$font-size-base: 16px !default;
80$font-size-root: $font-size-base;
81
82$font-size-lg: ceil(($font-size-base * 1.25)) !default; // ~18px
83$font-size-sm: ceil(($font-size-base * 0.85)) !default; // ~12px
84
85$font-size-h1: floor(($font-size-base * 2.6)) !default; // ~36px
86$font-size-h2: floor(($font-size-base * 2.15)) !default; // ~30px
87$font-size-h3: ceil(($font-size-base * 1.7)) !default; // ~24px
88$font-size-h4: ceil(($font-size-base * 1.25)) !default; // ~18px
89$font-size-h5: $font-size-base !default;
90$font-size-h6: ceil(($font-size-base * 0.85)) !default; // ~12px
91
92//** Unit-less `line-height` for use in components like buttons.
93$line-height-base: 1.428571429 !default; // 20/14
94//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
95$line-height-computed: floor(($font-size-base * $line-height-base)) !default; // ~20px
96
97//** By default, this inherits from the `<body>`.
98$headings-font-family: $font-family-sans-serif !default;
99$headings-font-weight: bold !default;
100$headings-line-height: 1.1 !default;
101$headings-color: inherit !default;
102
103
104//== Iconography
105//
106//## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
107
108//** Load fonts from this directory.
109$icon-font-path: if($bootstrap-sass-asset-helper, "bootstrap/", "../fonts/bootstrap/") !default;
110//** File name for all font files.
111$icon-font-name: "glyphicons-halflings-regular" !default;
112//** Element ID within SVG icon file.
113$icon-font-svg-id: "glyphicons_halflingsregular" !default;
114
115
116//== Components
117//
118//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
119
120$padding-base-y: 8px !default;
121$padding-base-x: 12px !default;
122
123$padding-lg-y: 14px !default;
124$padding-lg-x: 16px !default;
125
126$padding-sm-y: 5px !default;
127$padding-sm-x: 10px !default;
128
129$padding-xs-y: 1px !default;
130$padding-xs-x: 5px !default;
131
132$line-height-lg: 1.3333333 !default; // extra decimals for Win 8.1 Chrome
133$line-height-sm: 1.5 !default;
134
135$border-radius: 4px !default;
136$border-radius-lg: 6px !default;
137$border-radius-sm: 3px !default;
138
139//** Global color for active items (e.g., navs or dropdowns).
140$component-active-color: #fff !default;
141//** Global background color for active items (e.g., navs or dropdowns).
142$component-active-bg: $brand-primary !default;
143
144//** Width of the `border` for generating carets that indicate dropdowns.
145$caret-width-base: 4px !default;
146//** Carets increase slightly in size for lgr components.
147$caret-width-lg: 5px !default;
148
149
150//== Tables
151//
152//## Customizes the `.table` component with basic values, each used across all table variations.
153
154//** Padding for `<th>`s and `<td>`s.
155$table-cell-padding: 8px !default;
156//** Padding for cells in `.table-condensed`.
157$table-sm-cell-padding: 5px !default;
158
159//** Default background color used for all tables.
160$table-bg: transparent !default;
161//** Background color used for `.table-striped`.
162$table-bg-accent: #f9f9f9 !default;
163//** Background color used for `.table-hover`.
164$table-bg-hover: #f5f5f5 !default;
165$table-bg-active: $table-bg-hover !default;
166
167//** Border color for table and cell borders.
168$table-border-color: #ddd !default;
169
170
171//== Buttons
172//
173//## For each of Bootstrap's buttons, define text, background and border color.
174
175$btn-font-weight: normal !default;
176
177$btn-default-color: $text-color !default;
178$btn-default-bg: #fff !default;
179$btn-default-border: #ddd !default;
180
181$btn-secondary-color: $btn-default-color;
182$btn-secondary-bg: $btn-default-bg;
183$btn-secondary-border: $btn-default-border;
184
185
186
187$btn-primary-color: #fff !default;
188$btn-primary-bg: $brand-primary !default;
189$btn-primary-border: $btn-primary-bg !default;
190
191$btn-success-color: #fff !default;
192$btn-success-bg: $brand-success !default;
193$btn-success-border: $btn-success-bg !default;
194
195$btn-info-color: #fff !default;
196$btn-info-bg: $brand-info !default;
197$btn-info-border: $btn-info-bg !default;
198
199$btn-warning-color: #fff !default;
200$btn-warning-bg: $brand-warning !default;
201$btn-warning-border: $btn-warning-bg !default;
202
203$btn-danger-color: #fff !default;
204$btn-danger-bg: $brand-danger !default;
205$btn-danger-border: $btn-danger-bg !default;
206
207$btn-link-disabled-color: $gray-light !default;
208
209// Allows for customizing button radius independently from global border radius
210$btn-border-radius: $border-radius !default;
211$btn-border-radius-lg: $border-radius-lg !default;
212$btn-border-radius-sm: $border-radius-sm !default;
213
214
215//== Forms
216//
217//##
218
219//** `<input>` background color
220$input-bg: #fff !default;
221//** `<input disabled>` background color
222$input-bg-disabled: $gray-lighter !default;
223
224//** Text color for `<input>`s
225$input-color: $text-color !default;
226//** `<input>` border color
227$input-border: #ddd !default;
228
229// TODO: Rename `$input-border-radius` to `$input-border-radius` in v4
230//** Default `.form-control` border radius
231// This has no effect on `<select>`s in some browsers, due to the limited stylability of `<select>`s in CSS.
232$input-border-color: $input-border;
233
234$input-border-radius: $border-radius !default;
235//** Large `.form-control` border radius
236$input-border-radius-lg: $border-radius-lg !default;
237//** Small `.form-control` border radius
238$input-border-radius-sm: $border-radius-sm !default;
239
240//** Border color for inputs on focus
241$input-border-focus: #66afe9 !default;
242
243//** Placeholder text color
244$input-color-placeholder: $gray-light !default;
245
246//** Default `.form-control` height
247$input-height: ($line-height-computed + ($padding-base-y * 2) + 2) !default;
248//** Large `.form-control` height
249$input-height-lg: (ceil($font-size-lg * $line-height-lg) + ($padding-lg-y * 2) + 2) !default;
250//** Small `.form-control` height
251$input-height-sm: (floor($font-size-sm * $line-height-sm) + ($padding-sm-y * 2) + 2) !default;
252
253//** `.form-group` margin
254$form-group-margin-bottom: 15px !default;
255
256$legend-color: $text-color !default;
257$legend-border-color: #e5e5e5 !default;
258
259//** Background color for textual input addons
260$input-group-addon-bg: $gray-lighter !default;
261//** Border color for textual input addons
262$input-group-addon-border-color: $input-border !default;
263
264//** Disabled cursor for form controls and buttons.
265$cursor-disabled: not-allowed !default;
266
267
268//== Dropdowns
269//
270//## Dropdown menu container and contents.
271
272//** Background for the dropdown menu.
273$dropdown-bg: #fff !default;
274//** Dropdown menu `border-color`.
275$dropdown-border: rgba(0,0,0,.15) !default;
276//** Dropdown menu `border-color` **for IE8**.
277$dropdown-fallback-border: #ccc !default;
278//** Divider color for between dropdown items.
279$dropdown-divider-bg: #e5e5e5 !default;
280
281//** Dropdown link text color.
282$dropdown-link-color: $gray-dark !default;
283//** Hover color for dropdown links.
284$dropdown-link-hover-color: #fff !default;
285//** Hover background for dropdown links.
286$dropdown-link-hover-bg: $component-active-bg !default;
287
288//** Active dropdown menu item text color.
289$dropdown-link-active-color: #fff !default;
290//** Active dropdown menu item background color.
291$dropdown-link-active-bg: $component-active-bg !default;
292
293//** Disabled dropdown menu item background color.
294$dropdown-link-disabled-color: $gray-light !default;
295
296//** Text color for headers within dropdown menus.
297$dropdown-header-color: $gray-light !default;
298
299//** Deprecated `$dropdown-caret-color` as of v3.1.0
300$dropdown-caret-color: #000 !default;
301
302
303//-- Z-index master list
304//
305// Warning: Avoid customizing these values. They're used for a bird's eye view
306// of components dependent on the z-axis and are designed to all work together.
307//
308// Note: These variables are not generated into the Customizer.
309
310$zindex-navbar: 1000 !default;
311$zindex-dropdown: 1000 !default;
312$zindex-popover: 1060 !default;
313$zindex-tooltip: 1070 !default;
314$zindex-navbar-fixed: 1030 !default;
315$zindex-modal-background: 1040 !default;
316$zindex-modal: 1050 !default;
317
318
319//== Media queries breakpoints
320//
321//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
322
323// Extra sm screen / phone
324//** Deprecated `$screen-xs` as of v3.0.1
325$screen-xs: 480px !default;
326//** Deprecated `$screen-xs-min` as of v3.2.0
327$screen-xs-min: $screen-xs !default;
328//** Deprecated `$screen-phone` as of v3.0.1
329$screen-phone: $screen-xs-min !default;
330
331// Small screen / tablet
332//** Deprecated `$screen-sm` as of v3.0.1
333$screen-sm: 768px !default;
334$screen-sm-min: $screen-sm !default;
335//** Deprecated `$screen-tablet` as of v3.0.1
336$screen-tablet: $screen-sm-min !default;
337
338// Medium screen / desktop
339//** Deprecated `$screen-md` as of v3.0.1
340$screen-md: 992px !default;
341$screen-md-min: $screen-md !default;
342//** Deprecated `$screen-desktop` as of v3.0.1
343$screen-desktop: $screen-md-min !default;
344
345// Large screen / wide desktop
346//** Deprecated `$screen-lg` as of v3.0.1
347$screen-lg: 1200px !default;
348$screen-lg-min: $screen-lg !default;
349//** Deprecated `$screen-lg-desktop` as of v3.0.1
350$screen-lg-desktop: $screen-lg-min !default;
351
352// So media queries don't overlap when required, provide a maximum
353$screen-xs-max: ($screen-sm-min - 1) !default;
354$screen-sm-max: ($screen-md-min - 1) !default;
355$screen-md-max: ($screen-lg-min - 1) !default;
356
357
358//== Grid system
359//
360//## Define your custom responsive grid.
361
362//** Number of columns in the grid.
363$grid-columns: 12 !default;
364//** Padding between columns. Gets divided in half for the left and right.
365$grid-gutter-width: 30px !default;
366// Navbar collapse
367//** Point at which the navbar becomes uncollapsed.
368$grid-float-breakpoint: $screen-sm-min !default;
369//** Point at which the navbar begins collapsing.
370$grid-float-breakpoint-max: ($grid-float-breakpoint - 1) !default;
371
372
373//== Container sizes
374//
375//## Define the maximum width of `.container` for different screen sizes.
376
377// Small screen / tablet
378$container-tablet: (720px + $grid-gutter-width) !default;
379//** For `$screen-sm-min` and up.
380$container-sm: $container-tablet !default;
381
382// Medium screen / desktop
383$container-desktop: (940px + $grid-gutter-width) !default;
384//** For `$screen-md-min` and up.
385$container-md: $container-desktop !default;
386
387// Large screen / wide desktop
388$container-lg-desktop: (1140px + $grid-gutter-width) !default;
389//** For `$screen-lg-min` and up.
390$container-lg: $container-lg-desktop !default;
391
392
393//== Navbar
394//
395//##
396
397// Basics of a navbar
398$navbar-height: 65px !default;
399$navbar-margin-bottom: $line-height-computed !default;
400$navbar-border-radius: $border-radius !default;
401$navbar-padding-x: floor(($grid-gutter-width / 2)) !default;
402$navbar-padding-y: (($navbar-height - $line-height-computed) / 2) !default;
403$navbar-collapse-max-height: 340px !default;
404
405$navbar-light-color: $text-color !default;
406$navbar-light-bg: $body-bg !default;
407$navbar-light-border: #ddd !default;
408
409// Navbar links
410$navbar-light-link-color: $link-color !default;
411$navbar-light-link-hover-color: $link-color !default;
412$navbar-light-link-hover-bg: transparent !default;
413$navbar-light-link-active-color: $navbar-light-link-color !default;
414$navbar-light-link-active-bg: transparent !default;
415$navbar-light-link-disabled-color: #333 !default;
416$navbar-light-link-disabled-bg: transparent !default;
417
418// Navbar brand label
419$navbar-light-brand-color: $navbar-light-link-color !default;
420$navbar-light-brand-hover-color: $navbar-light-link-hover-color !default;
421$navbar-light-brand-hover-bg: transparent !default;
422
423// Navbar toggle
424$navbar-light-toggle-hover-bg: #ddd !default;
425$navbar-light-toggle-icon-bar-bg: #ccc !default;
426$navbar-light-toggle-border-color: #ddd !default;
427
428
429//=== Inverted navbar
430// Reset inverted navbar basics
431$navbar-dark-color: $text-color !default;
432$navbar-dark-bg: $body-bg !default;
433$navbar-dark-border: #ddd !default;
434
435// Inverted navbar links
436$navbar-dark-link-color: $text-color !default;
437$navbar-dark-link-hover-color: $text-color !default;
438$navbar-dark-link-hover-bg: transparent !default;
439$navbar-dark-link-active-color: $text-color !default;
440$navbar-dark-link-active-bg: transparent !default;
441$navbar-dark-link-disabled-color: #ccc !default;
442$navbar-dark-link-disabled-bg: transparent !default;
443
444// Inverted navbar brand label
445$navbar-dark-brand-color: $navbar-dark-link-color !default;
446$navbar-dark-brand-hover-color: $navbar-dark-link-hover-color !default;
447$navbar-dark-brand-hover-bg: transparent !default;
448
449// Inverted navbar toggle
450$navbar-dark-toggle-hover-bg: #ddd !default;
451$navbar-dark-toggle-icon-bar-bg: #ccc !default;
452$navbar-dark-toggle-border-color: #ddd !default;
453
454
455//== Navs
456//
457//##
458
459//=== Shared nav styles
460$nav-link-padding: 10px 15px !default;
461$nav-link-hover-bg: $gray-lighter !default;
462
463$nav-disabled-link-color: $gray-light !default;
464$nav-disabled-link-hover-color: $gray-light !default;
465
466//== Tabs
467$nav-tabs-border-color: #ddd !default;
468
469$nav-tabs-link-hover-border-color: $gray-lighter !default;
470
471$nav-tabs-active-link-hover-bg: $body-bg !default;
472$nav-tabs-active-link-hover-color: $gray !default;
473$nav-tabs-active-link-hover-border-color: #ddd !default;
474
475$nav-tabs-justified-link-border-color: #ddd !default;
476$nav-tabs-justified-active-link-border-color: $body-bg !default;
477
478//== Pills
479$nav-pills-border-radius: $border-radius !default;
480$nav-pills-active-link-hover-bg: $component-active-bg !default;
481$nav-pills-active-link-hover-color: $component-active-color !default;
482
483
484//== Pagination
485//
486//##
487
488$pagination-color: $text-color !default;
489$pagination-bg: #fff !default;
490$pagination-border: #ddd !default;
491
492$pagination-border-color: $pagination-border;
493
494$pagination-hover-color: #fff !default;
495$pagination-hover-bg: $brand-primary !default;
496$pagination-hover-border: $brand-primary !default;
497
498$pagination-active-color: #fff !default;
499$pagination-active-bg: $brand-primary !default;
500$pagination-active-border: $brand-primary !default;
501
502$pagination-disabled-color: $gray-light !default;
503$pagination-disabled-bg: #fff !default;
504$pagination-disabled-border: #ddd !default;
505
506
507//== Pager
508//
509//##
510
511$pager-bg: $pagination-bg !default;
512$pager-border: $pagination-border !default;
513$pager-border-radius: 15px !default;
514
515$pager-hover-bg: $pagination-hover-bg !default;
516
517$pager-active-bg: $pagination-active-bg !default;
518$pager-active-color: $pagination-active-color !default;
519
520$pager-disabled-color: $gray-light !default;
521
522
523//== Jumbotron
524//
525//##
526
527$jumbotron-padding: 30px !default;
528$jumbotron-color: inherit !default;
529$jumbotron-bg: darken($body-bg, 3%) !default;
530$jumbotron-heading-color: inherit !default;
531$jumbotron-font-size: ceil(($font-size-base * 1.5)) !default;
532$jumbotron-heading-font-size: ceil(($font-size-base * 4.5)) !default;
533
534
535//== Form states and alerts
536//
537//## Define colors for form feedback states and, by default, alerts.
538
539$state-success-text: $brand-success !default;
540$state-success-bg: #dff0d8 !default;
541$state-success-border: $brand-success !default;
542
543$state-info-text: $brand-info !default;
544$state-info-bg: #d9edf7 !default;
545$state-info-border: $brand-info !default;
546
547$state-warning-text: $brand-warning !default;
548$state-warning-bg: #fcf8e3 !default;
549$state-warning-border: $brand-warning !default;
550
551$state-danger-text: $brand-danger !default;
552$state-danger-bg: #f2dede !default;
553$state-danger-border: $brand-danger !default;
554
555
556//== Tooltips
557//
558//##
559
560//** Tooltip max width
561$tooltip-max-width: 200px !default;
562//** Tooltip text color
563$tooltip-color: #fff !default;
564//** Tooltip background color
565$tooltip-bg: #000 !default;
566$tooltip-opacity: .9 !default;
567
568//** Tooltip arrow width
569$tooltip-arrow-width: 5px !default;
570//** Tooltip arrow color
571$tooltip-arrow-color: $tooltip-bg !default;
572
573
574//== Popovers
575//
576//##
577
578//** Popover body background color
579$popover-bg: #fff !default;
580//** Popover maximum width
581$popover-max-width: 276px !default;
582//** Popover border color
583$popover-border-color: rgba(0,0,0,.2) !default;
584//** Popover fallback border color
585$popover-fallback-border-color: #ccc !default;
586
587//** Popover title background color
588$popover-title-bg: darken($popover-bg, 3%) !default;
589
590//** Popover arrow width
591$popover-arrow-width: 10px !default;
592//** Popover arrow color
593$popover-arrow-color: $popover-bg !default;
594
595//** Popover outer arrow width
596$popover-arrow-outer-width: ($popover-arrow-width + 1) !default;
597//** Popover outer arrow color
598$popover-arrow-outer-color: fadein($popover-border-color, 5%) !default;
599//** Popover outer arrow fallback color
600$popover-arrow-outer-fallback-color: darken($popover-fallback-border-color, 20%) !default;
601
602
603//== Labels
604//
605//##
606
607//** Default label background color
608$tag-default-bg: $btn-default-bg !default;
609//** Primary label background color
610$tag-primary-bg: $brand-primary !default;
611//** Success label background color
612$tag-success-bg: $brand-success !default;
613//** Info label background color
614$tag-info-bg: $brand-info !default;
615//** Warning label background color
616$tag-warning-bg: $brand-warning !default;
617//** Danger label background color
618$tag-danger-bg: $brand-danger !default;
619
620//** Default label text color
621$tag-color: #fff !default;
622//** Default text color of a linked label
623$tag-link-hover-color: #fff !default;
624
625
626//== Modals
627//
628//##
629
630//** Padding applied to the modal body
631$modal-inner-padding: 20px !default;
632
633//** Padding applied to the modal title
634$modal-title-padding: 15px !default;
635//** Modal title line-height
636$modal-title-line-height: $line-height-base !default;
637
638//** Background color of modal content area
639$modal-content-bg: #fff !default;
640//** Modal content border color
641$modal-content-border-color: rgba(0,0,0,.2) !default;
642//** Modal content border color **for IE8**
643$modal-content-fallback-border-color: #999 !default;
644
645//** Modal backdrop background color
646$modal-backdrop-bg: #000 !default;
647//** Modal backdrop opacity
648$modal-backdrop-opacity: .5 !default;
649//** Modal header border color
650$modal-header-border-color: #e5e5e5 !default;
651//** Modal footer border color
652$modal-footer-border-color: $modal-header-border-color !default;
653
654$modal-lg: 900px !default;
655$modal-md: 600px !default;
656$modal-sm: 300px !default;
657
658
659//== Alerts
660//
661//## Define alert colors, border radius, and padding.
662
663$alert-padding: 15px !default;
664$alert-border-radius: $border-radius !default;
665$alert-link-font-weight: bold !default;
666
667$alert-success-bg: $state-success-border !default;
668$alert-success-text: #fff !default;
669$alert-success-border: $state-success-border !default;
670
671$alert-info-bg: $state-info-border !default;
672$alert-info-text: #fff !default;
673$alert-info-border: $state-info-border !default;
674
675$alert-warning-bg: $state-warning-border !default;
676$alert-warning-text: #fff !default;
677$alert-warning-border: $state-warning-border !default;
678
679$alert-danger-bg: $state-danger-border !default;
680$alert-danger-text: #fff !default;
681$alert-danger-border: $state-danger-border !default;
682
683
684//== Progress bars
685//
686//##
687
688//** Background color of the whole progress component
689$progress-bg: #f5f5f5 !default;
690//** Progress bar text color
691$progress-bar-color: #fff !default;
692//** Variable for setting rounded corners on progress bar.
693$progress-border-radius: $border-radius !default;
694
695//** Default progress bar color
696$progress-bar-bg: $brand-primary !default;
697//** Success progress bar color
698$progress-bar-success-bg: $brand-success !default;
699//** Warning progress bar color
700$progress-bar-warning-bg: $brand-warning !default;
701//** Danger progress bar color
702$progress-bar-danger-bg: $brand-danger !default;
703//** Info progress bar color
704$progress-bar-info-bg: $brand-info !default;
705
706
707//== List group
708//
709//##
710
711//** Background color on `.list-group-item`
712$list-group-bg: #fff !default;
713//** `.list-group-item` border color
714$list-group-border: #ddd !default;
715//** List group border radius
716$list-group-border-radius: $border-radius !default;
717
718//** Background color of single list items on hover
719$list-group-hover-bg: #f5f5f5 !default;
720//** Text color of active list items
721$list-group-active-color: $component-active-color !default;
722//** Background color of active list items
723$list-group-active-bg: $component-active-bg !default;
724//** Border color of active list elements
725$list-group-active-border: $list-group-active-bg !default;
726//** Text color for content within active list items
727$list-group-active-text-color: lighten($list-group-active-bg, 40%) !default;
728
729//** Text color of disabled list items
730$list-group-disabled-color: $gray-light !default;
731//** Background color of disabled list items
732$list-group-disabled-bg: $gray-lighter !default;
733//** Text color for content within disabled list items
734$list-group-disabled-text-color: $list-group-disabled-color !default;
735
736$list-group-link-color: #555 !default;
737$list-group-link-hover-color: $list-group-link-color !default;
738$list-group-link-heading-color: #333 !default;
739
740
741//== Panels
742//
743//##
744
745$card-bg: #fff !default;
746$card-body-padding: 15px !default;
747$card-heading-padding: 10px 15px !default;
748$card-footer-padding: $card-heading-padding !default;
749$card-border-radius: $border-radius !default;
750
751//** Border color for elements within panels
752$card-inner-border: #ddd !default;
753$card-footer-bg: #fff !default;
754
755$card-default-text: $gray-dark !default;
756$card-default-border: #ddd !default;
757$card-default-heading-bg: #f5f5f5 !default;
758
759$card-primary-text: #fff !default;
760$card-primary-border: $brand-primary !default;
761$card-primary-heading-bg: $brand-primary !default;
762
763$card-success-text: #fff !default;
764$card-success-border: $state-success-border !default;
765$card-success-heading-bg: $state-success-border !default;
766
767$card-info-text: #fff !default;
768$card-info-border: $state-info-border !default;
769$card-info-heading-bg: $state-info-border !default;
770
771$card-warning-text: #fff !default;
772$card-warning-border: $state-warning-border !default;
773$card-warning-heading-bg: $state-warning-border !default;
774
775$card-danger-text: #fff !default;
776$card-danger-border: $state-danger-border !default;
777$card-danger-heading-bg: $state-danger-border !default;
778
779
780//== Thumbnails
781//
782//##
783
784//** Padding around the thumbnail image
785$thumbnail-padding: 4px !default;
786//** Thumbnail background color
787$thumbnail-bg: $body-bg !default;
788//** Thumbnail border color
789$thumbnail-border: #ddd !default;
790//** Thumbnail border radius
791$thumbnail-border-radius: $border-radius !default;
792
793//** Custom text color for thumbnail captions
794$thumbnail-caption-color: $text-color !default;
795//** Padding around the thumbnail caption
796$thumbnail-caption-padding: 9px !default;
797
798
799//== Wells
800//
801//##
802
803$well-bg: darken($body-bg, 3%) !default;
804$well-border: darken($well-bg, 7%) !default;
805
806
807//== Badges
808//
809//##
810
811$badge-color: #fff !default;
812//** Linked badge text color on hover
813$badge-link-hover-color: #fff !default;
814$badge-bg: $brand-primary !default;
815
816//** Badge text color in active nav link
817$badge-active-color: $link-color !default;
818//** Badge background color in active nav link
819$badge-active-bg: #fff !default;
820
821$badge-font-weight: bold !default;
822$badge-line-height: 1 !default;
823$badge-border-radius: 10px !default;
824
825
826//== Breadcrumbs
827//
828//##
829
830$breadcrumb-padding-y: 8px !default;
831$breadcrumb-padding-x: 15px !default;
832//** Breadcrumb background color
833$breadcrumb-bg: #f5f5f5 !default;
834//** Breadcrumb text color
835$breadcrumb-color: #ccc !default;
836//** Text color of current page in the breadcrumb
837$breadcrumb-active-color: $gray-light !default;
838//** Textual separator for between breadcrumb elements
839$breadcrumb-separator: "/" !default;
840
841
842//== Carousel
843//
844//##
845
846$carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6) !default;
847
848$carousel-control-color: #fff !default;
849$carousel-control-width: 15% !default;
850$carousel-control-opacity: .5 !default;
851$carousel-control-font-size: 20px !default;
852
853$carousel-indicator-active-bg: #fff !default;
854$carousel-indicator-border-color: #fff !default;
855
856$carousel-caption-color: #fff !default;
857
858
859//== Close
860//
861//##
862
863$close-font-weight: bold !default;
864$close-color: #fff !default;
865$close-text-shadow: 0 1px 0 #fff !default;
866
867
868//== Code
869//
870//##
871
872$code-color: #c7254e !default;
873$code-bg: #f9f2f4 !default;
874
875$kbd-color: #fff !default;
876$kbd-bg: #333 !default;
877
878$pre-bg: #f5f5f5 !default;
879$pre-color: $gray-dark !default;
880$pre-border-color: #ccc !default;
881$pre-scrollable-max-height: 340px !default;
882
883
884//== Type
885//
886//##
887
888//** Horizontal offset for forms and lists.
889$component-offset-x: 180px !default;
890//** Text muted color
891$text-muted: $gray-light !default;
892//** Abbreviations and acronyms border color
893$abbr-border-color: $gray-light !default;
894//** Headings sm color
895$headings-sm-color: $gray-light !default;
896//** Blockquote sm color
897$blockquote-sm-color: $text-color !default;
898//** Blockquote font size
899$blockquote-font-size: ($font-size-base * 1.25) !default;
900//** Blockquote border color
901$blockquote-border-color: $brand-primary !default;
902//** Page header border color
903$page-header-border-color: #ddd !default;
904//** Width of x description list titles
905$dl-x-offset: $component-offset-x !default;
906//** Point at which .dl-x becomes x
907$dl-x-breakpoint: $grid-float-breakpoint !default;
908//** Horizontal line color.
909$hr-border: $gray-lighter !default;
910
911@import "moodle";
912
913@mixin placeholder($text) {
914 placeholder: $text;
915}
916@mixin box-shadow($text) {
917 box-shadow: $text;
918}
919@mixin transform($transforms) {
920 transform: $transforms;
921}
922@mixin rotate ($deg) {
923 @include transform(rotate(#{$deg}deg));
924}
925@mixin scale($scale) {
926 @include transform(scale($scale));
927}
928@mixin translate ($x, $y) {
929 @include transform(translate($x, $y));
930}
931@mixin skew ($x, $y) {
932 @include transform(skew(#{$x}deg, #{$y}deg));
933}
934@mixin transform-origin ($origin) {
935 transform-origin: $origin;
936}
937// Readable 3.3.7
938// Bootswatch
939// -----------------------------------------------------
940
941$web-font-path: "https://fonts.googleapis.com/css?family=Raleway:400,700" !default;
942@import url($web-font-path);
943
944// Navbar =====================================================================
945
946.navbar {
947 font-family: $headings-font-family;
948
949 &-nav,
950 &-form {
951 margin-left: 0;
952 margin-right: 0;
953 }
954
955 &-nav > li > a {
956 $margin-y: (($navbar-height - 2*$padding-base-y - $line-height-computed - 2px) / 2);
957 margin: $margin-y 6px;
958 padding: $padding-base-y $padding-base-x;
959 border: 1px solid transparent;
960 border-radius: $border-radius;
961
962 &:hover {
963 border: 1px solid #ddd;
964 }
965 }
966
967 &-nav > .active > a,
968 &-nav > .active > a:hover {
969 border: 1px solid #ddd;
970 }
971
972 &-default .navbar-nav > .active > a:hover {
973 color: $navbar-light-link-hover-color;
974 }
975
976 &-inverse .navbar-nav > .active > a:hover {
977 color: $navbar-dark-link-hover-color;
978 }
979
980 &-brand {
981 padding-top: (($navbar-height - 2*$font-size-lg) / 2);
982 padding-bottom: (($navbar-height - 2*$font-size-lg) / 2);
983 line-height: 1.9;
984 }
985}
986
987@media (min-width: $grid-float-breakpoint) {
988 .navbar {
989 .navbar-nav > li > a {
990 padding: $padding-base-y $padding-base-x;
991 }
992 }
993}
994
995@media (max-width: ($grid-float-breakpoint - 1)) {
996 .navbar {
997 .navbar-nav > li > a {
998 margin: 0;
999 }
1000 }
1001}
1002
1003// Buttons ====================================================================
1004
1005.btn {
1006 font-family: $headings-font-family;
1007}
1008
1009// Typography =================================================================
1010
1011// Tables =====================================================================
1012
1013// Forms ======================================================================
1014
1015legend {
1016 font-family: $headings-font-family;
1017}
1018
1019.input-group-addon {
1020 font-family: $font-family-sans-serif;
1021}
1022
1023// Navs =======================================================================
1024
1025.nav {
1026 .open > a,
1027 .open > a:hover,
1028 .open > a:focus {
1029 border: 1px solid #ddd;
1030 }
1031}
1032
1033.pagination {
1034
1035 font-family: $headings-font-family;
1036
1037 &-lg > li > a,
1038 &-lg > li > span {
1039 padding: 14px 24px;
1040 }
1041}
1042
1043.pager {
1044
1045 font-family: $headings-font-family;
1046
1047 a {
1048 color: $text-color;
1049 }
1050
1051 a:hover {
1052 border-color: transparent;
1053 color: #fff;
1054 }
1055
1056 .disabled a {
1057 border-color: $pager-border;
1058 }
1059}
1060
1061// Indicators =================================================================
1062
1063.close {
1064 color: #fff;
1065 text-decoration: none;
1066 text-shadow: none;
1067 opacity: 0.4;
1068
1069 &:hover,
1070 &:focus {
1071 color: #fff;
1072 opacity: 1;
1073 }
1074}
1075
1076.alert {
1077 .alert-link {
1078 color: $alert-success-text;
1079 text-decoration: underline;
1080 }
1081}
1082
1083.label {
1084 font-family: $headings-font-family;
1085 font-weight: normal;
1086
1087 &-default {
1088 border: 1px solid #ddd;
1089 color: $text-color;
1090 }
1091
1092}
1093
1094.badge {
1095 padding: 1px 7px 5px;
1096 y-align: 2px;
1097 font-family: $headings-font-family;
1098 font-weight: normal;
1099}
1100
1101// Progress bars ==============================================================
1102
1103// Containers =================================================================
1104
1105.panel {
1106 @include box-shadow(none);
1107
1108 &-default {
1109 .close {
1110 color: $text-color;
1111 }
1112 }
1113}
1114
1115.modal {
1116 .close {
1117 color: $text-color;
1118 }
1119}