MDL-55074 theme_boost: Navigation and blocks
[moodle.git] / theme / boost / scss / preset-paper.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// Paper 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: #212121 !default;
37$gray: #666 !default;
38$gray-light: #bbb !default;
39$gray-lighter: lighten($gray-base, 93.5%) !default; // #eee
40
41$gray-lightest: lighten($gray-lighter, 13.5%);
42
43$brand-primary: #2196F3 !default;
44$brand-success: #4CAF50 !default;
45$brand-info: #9C27B0 !default;
46$brand-warning: #ff9800 !default;
47$brand-danger: #e51c23 !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 !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, 15%) !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: "Roboto", "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-sans-serif !default;
78
79$font-size-base: 13px !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: 56px !default;
86$font-size-h2: 45px !default;
87$font-size-h3: 34px !default;
88$font-size-h4: 24px !default;
89$font-size-h5: 20px !default;
90$font-size-h6: 14px !default;
91
92//** Unit-less `line-height` for use in components like buttons.
93$line-height-base: 1.846 !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: inherit !default;
99$headings-font-weight: 400 !default;
100$headings-line-height: 1.1 !default;
101$headings-color: #444 !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: 6px !default;
121$padding-base-x: 16px !default;
122
123$padding-lg-y: 10px !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: 3px !default;
136$border-radius-lg: 3px !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: #444 !default;
178$btn-default-bg: #fff !default;
179$btn-default-border: transparent !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: transparent !default;
190
191$btn-success-color: #fff !default;
192$btn-success-bg: $brand-success !default;
193$btn-success-border: transparent !default;
194
195$btn-info-color: #fff !default;
196$btn-info-bg: $brand-info !default;
197$btn-info-border: transparent !default;
198
199$btn-warning-color: #fff !default;
200$btn-warning-bg: $brand-warning !default;
201$btn-warning-border: transparent !default;
202
203$btn-danger-color: #fff !default;
204$btn-danger-bg: $brand-danger !default;
205$btn-danger-border: transparent !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: transparent !default;
221//** `<input disabled>` background color
222$input-bg-disabled: transparent !default;
223
224//** Text color for `<input>`s
225$input-color: $gray !default;
226//** `<input>` border color
227$input-border: transparent !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: $gray-dark !default;
257$legend-border-color: #e5e5e5 !default;
258
259//** Background color for textual input addons
260$input-group-addon-bg: transparent !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: $text-color !default;
283//** Hover color for dropdown links.
284$dropdown-link-hover-color: darken($gray-dark, 5%) !default;
285//** Hover background for dropdown links.
286$dropdown-link-hover-bg: $gray-lighter !default;
287
288//** Active dropdown menu item text color.
289$dropdown-link-active-color: $component-active-color !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: $gray-light !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: 64px !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: $gray-light !default;
406$navbar-light-bg: #fff !default;
407$navbar-light-border: transparent !default;
408
409// Navbar links
410$navbar-light-link-color: $gray !default;
411$navbar-light-link-hover-color: $gray-dark !default;
412$navbar-light-link-hover-bg: transparent !default;
413$navbar-light-link-active-color: $gray-dark !default;
414$navbar-light-link-active-bg: darken($navbar-light-bg, 6.5%) !default;
415$navbar-light-link-disabled-color: #ccc !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: transparent !default;
425$navbar-light-toggle-icon-bar-bg: rgba(0,0,0,0.5) !default;
426$navbar-light-toggle-border-color: transparent !default;
427
428
429//=== Inverted navbar
430// Reset inverted navbar basics
431$navbar-dark-color: $gray-light !default;
432$navbar-dark-bg: $brand-primary !default;
433$navbar-dark-border: transparent !default;
434
435// Inverted navbar links
436$navbar-dark-link-color: lighten($brand-primary, 30%) !default;
437$navbar-dark-link-hover-color: #fff !default;
438$navbar-dark-link-hover-bg: transparent !default;
439$navbar-dark-link-active-color: $navbar-dark-link-hover-color !default;
440$navbar-dark-link-active-bg: darken($navbar-dark-bg, 10%) !default;
441$navbar-dark-link-disabled-color: #444 !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: #fff !default;
447$navbar-dark-brand-hover-bg: transparent !default;
448
449// Inverted navbar toggle\
450$navbar-dark-toggle-hover-bg: transparent !default;
451$navbar-dark-toggle-icon-bar-bg: rgba(0,0,0,0.5) !default;
452$navbar-dark-toggle-border-color: transparent !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: transparent !default;
468
469$nav-tabs-link-hover-border-color: $gray-lighter !default;
470
471$nav-tabs-active-link-hover-bg: transparent !default;
472$nav-tabs-active-link-hover-color: $gray !default;
473$nav-tabs-active-link-hover-border-color: transparent !default;
474
475$nav-tabs-justified-link-border-color: $nav-tabs-border-color !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: $link-color !default;
489$pagination-bg: #fff !default;
490$pagination-border: #ddd !default;
491
492$pagination-border-color: $pagination-border;
493
494$pagination-hover-color: $link-hover-color !default;
495$pagination-hover-bg: $gray-lighter !default;
496$pagination-hover-border: #ddd !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: $pagination-disabled-color !default;
521
522
523//== Jumbotron
524//
525//##
526
527$jumbotron-padding: 30px !default;
528$jumbotron-color: inherit !default;
529$jumbotron-bg: #f5f5f5 !default;
530$jumbotron-heading-color: $headings-color !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: darken(adjust-hue($state-success-bg, -10), 5%) !default;
542
543$state-info-text: $brand-info !default;
544$state-info-bg: #e1bee7 !default;
545$state-info-border: darken(adjust-hue($state-info-bg, -10), 7%) !default;
546
547$state-warning-text: $brand-warning !default;
548$state-warning-bg: #ffe0b2 !default;
549$state-warning-border: darken(adjust-hue($state-warning-bg, -10), 5%) !default;
550
551$state-danger-text: $brand-danger !default;
552$state-danger-bg: #f9bdbb !default;
553$state-danger-border: darken(adjust-hue($state-danger-bg, -10), 5%) !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: #727272 !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: transparent !default;
584//** Popover fallback border color
585$popover-fallback-border-color: transparent !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, 12%) !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: $gray-light !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: 15px !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: transparent !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: transparent !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-bg !default;
668$alert-success-text: $state-success-text !default;
669$alert-success-border: $state-success-border !default;
670
671$alert-info-bg: $state-info-bg !default;
672$alert-info-text: $state-info-text !default;
673$alert-info-border: $state-info-border !default;
674
675$alert-warning-bg: $state-warning-bg !default;
676$alert-warning-text: $state-warning-text !default;
677$alert-warning-border: $state-warning-border !default;
678
679$alert-danger-bg: $state-danger-bg !default;
680$alert-danger-text: $state-danger-text !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: #f5f5f5 !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: $brand-success !default;
766
767$card-info-text: #fff !default;
768$card-info-border: $state-info-border !default;
769$card-info-heading-bg: $brand-info !default;
770
771$card-warning-text: #fff !default;
772$card-warning-border: $state-warning-border !default;
773$card-warning-heading-bg: $brand-warning !default;
774
775$card-danger-text: #fff !default;
776$card-danger-border: $state-danger-border !default;
777$card-danger-heading-bg: $brand-danger !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: #f5f5f5 !default;
804$well-border: transparent !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: $gray-light !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: normal !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: normal !default;
864$close-color: #000 !default;
865$close-text-shadow: none !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: $gray-light !default;
898//** Blockquote font size
899$blockquote-font-size: ($font-size-base * 1.25) !default;
900//** Blockquote border color
901$blockquote-border-color: $gray-lighter !default;
902//** Page header border color
903$page-header-border-color: $gray-lighter !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// Paper 3.3.7
938// Bootswatch
939// -----------------------------------------------------
940
941$web-font-path: "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" !default;
942@import url($web-font-path);
943
944// Navbar =====================================================================
945
946.navbar {
947 border: none;
948 @include box-shadow(0 1px 2px rgba(0,0,0,.3));
949
950 &-brand {
951 font-size: 24px;
952 }
953
954 &-inverse {
955 .navbar-form {
956
957 input[type=text],
958 input[type=password] {
959 color: #fff;
960 @include box-shadow(inset 0 -1px 0 $navbar-dark-link-color);
961 @include placeholder($navbar-dark-link-color);
962
963 &:focus {
964 @include box-shadow(inset 0 -2px 0 #fff);
965 }
966 }
967 }
968 }
969}
970
971// Buttons ====================================================================
972
973@mixin btn($class,$bg){
974 .btn-#{$class} {
975 background-size: 200% 200%;
976 background-position: 50%;
977
978 &:focus {
979 background-color: $bg;
980 }
981
982 &:hover,
983 &:active:hover {
984 background-color: darken($bg, 6%);
985 }
986
987 &:active {
988 background-color: darken($bg, 12%);
989 @include gradient-radial(darken($bg, 12%) 10%, $bg 11%);
990 background-size: 1000% 1000%;
991 @include box-shadow(2px 2px 4px rgba(0,0,0,.4));
992 }
993 }
994}
995
996@include btn(default,$btn-default-bg);
997@include btn(primary,$btn-primary-bg);
998@include btn(success,$btn-success-bg);
999@include btn(info,$btn-info-bg);
1000@include btn(warning,$btn-warning-bg);
1001@include btn(danger,$btn-danger-bg);
1002@include btn(link,#fff);
1003
1004.btn {
1005 text-transform: uppercase;
1006 border: none;
1007 @include box-shadow(1px 1px 4px rgba(0,0,0,.4));
1008 @include transition(all 0.4s);
1009
1010 &-link {
1011 border-radius: $btn-border-radius;
1012 @include box-shadow(none);
1013 color: $btn-default-color;
1014
1015 &:hover,
1016 &:focus {
1017 @include box-shadow(none);
1018 color: $btn-default-color;
1019 text-decoration: none;
1020 }
1021 }
1022
1023 &-default {
1024
1025 &.disabled {
1026 background-color: rgba(0, 0, 0, 0.1);
1027 color: rgba(0, 0, 0, 0.4);
1028 opacity: 1;
1029 }
1030 }
1031}
1032
1033.btn-group {
1034 .btn + .btn,
1035 .btn + .btn-group,
1036 .btn-group + .btn,
1037 .btn-group + .btn-group {
1038 margin-left: 0;
1039 }
1040
1041 &-y {
1042 > .btn + .btn,
1043 > .btn + .btn-group,
1044 > .btn-group + .btn,
1045 > .btn-group + .btn-group {
1046 margin-top: 0;
1047 }
1048 }
1049}
1050
1051// Typography =================================================================
1052
1053body {
1054 -webkit-font-smoothing: antialiased;
1055 letter-spacing: .1px;
1056}
1057
1058p {
1059 margin: 0 0 1em;
1060}
1061
1062input,
1063button {
1064 -webkit-font-smoothing: antialiased;
1065 letter-spacing: .1px;
1066}
1067
1068a {
1069 @include transition(all 0.2s);
1070}
1071
1072// Tables =====================================================================
1073
1074.table-hover {
1075 > tbody > tr,
1076 > tbody > tr > th,
1077 > tbody > tr > td {
1078 @include transition(all 0.2s);
1079 }
1080}
1081
1082// Forms ======================================================================
1083
1084label {
1085 font-weight: normal;
1086}
1087
1088textarea,
1089textarea.form-control,
1090input.form-control,
1091input[type=text],
1092input[type=password],
1093input[type=email],
1094input[type=number],
1095[type=text].form-control,
1096[type=password].form-control,
1097[type=email].form-control,
1098[type=tel].form-control,
1099[contenteditable].form-control {
1100 padding: 0;
1101 border: none;
1102 border-radius: 0;
1103 -webkit-appearance: none;
1104 @include box-shadow(inset 0 -1px 0 #ddd);
1105 font-size: 16px;
1106
1107 &:focus {
1108 @include box-shadow(inset 0 -2px 0 $brand-primary);
1109 }
1110
1111 &[disabled],
1112 &[readonly] {
1113 @include box-shadow(none);
1114 border-bottom: 1px dotted #ddd;
1115 }
1116
1117 &.input {
1118 &-sm {
1119 font-size: $font-size-sm;
1120 }
1121
1122 &-lg {
1123 font-size: $font-size-lg;
1124 }
1125 }
1126}
1127
1128select,
1129select.form-control {
1130 border: 0;
1131 border-radius: 0;
1132 -webkit-appearance: none;
1133 -moz-appearance: none;
1134 appearance: none;
1135 padding-left: 0;
1136 padding-right: 0\9; // remove padding for < ie9 since default arrow can't be removed
1137 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmaP/QSjAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=);
1138 background-size: 13px;
1139 background-repeat: no-repeat;
1140 background-position: right center;
1141 @include box-shadow(inset 0 -1px 0 #ddd);
1142 font-size: 16px;
1143 line-height: 1.5;
1144
1145 &::-ms-expand {
1146 display: none;
1147 }
1148
1149 &.input {
1150 &-sm {
1151 font-size: $font-size-sm;
1152 }
1153
1154 &-lg {
1155 font-size: $font-size-lg;
1156 }
1157 }
1158
1159 &:focus {
1160 @include box-shadow(inset 0 -2px 0 $brand-primary);
1161 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEUhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISF8S9ewAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=);
1162 }
1163
1164 &[multiple] {
1165 background: none;
1166 }
1167}
1168
1169.radio,
1170.radio-inline,
1171.checkbox,
1172.checkbox-inline {
1173 label {
1174 padding-left: 25px;
1175 }
1176
1177 input[type="radio"],
1178 input[type="checkbox"] {
1179 margin-left: -25px;
1180 }
1181}
1182
1183input[type="radio"],
1184.radio input[type="radio"],
1185.radio-inline input[type="radio"] {
1186 position: relative;
1187 margin-top: 6px;
1188 margin-right: 4px;
1189 y-align: top;
1190 border: none;
1191 background-color: transparent;
1192 -webkit-appearance: none;
1193 appearance: none;
1194 cursor: pointer;
1195
1196 &:focus {
1197 outline: none;
1198 }
1199
1200 &:before,
1201 &:after {
1202 content: "";
1203 display: block;
1204 width: 18px;
1205 height: 18px;
1206 border-radius: 50%;
1207 @include transition(240ms);
1208 }
1209
1210 &:before {
1211 position: absolute;
1212 left: 0;
1213 top: -3px;
1214 background-color: $brand-primary;
1215 @include scale(0);
1216 }
1217
1218 &:after {
1219 position: relative;
1220 top: -3px;
1221 border: 2px solid $gray;
1222 }
1223
1224 &:checked:before {
1225 @include scale(0.5);
1226 }
1227
1228 &:disabled:checked:before {
1229 background-color: $gray-light;
1230 }
1231
1232 &:checked:after {
1233 border-color: $brand-primary;
1234 }
1235
1236 &:disabled:after,
1237 &:disabled:checked:after {
1238 border-color: $gray-light;
1239 }
1240}
1241
1242input[type="checkbox"],
1243.checkbox input[type="checkbox"],
1244.checkbox-inline input[type="checkbox"] {
1245 position: relative;
1246 border: none;
1247 margin-bottom: -4px;
1248 -webkit-appearance: none;
1249 appearance: none;
1250 cursor: pointer;
1251
1252 &:focus {
1253 outline: none;
1254 }
1255
1256 &:focus:after {
1257 border-color: $brand-primary;
1258 }
1259
1260 &:after {
1261 content: "";
1262 display: block;
1263 width: 18px;
1264 height: 18px;
1265 margin-top: -2px;
1266 margin-right: 5px;
1267 border: 2px solid $gray;
1268 border-radius: 2px;
1269 @include transition(240ms);
1270 }
1271
1272 &:checked:before {
1273 content: "";
1274 position: absolute;
1275 top: 0;
1276 left: 6px;
1277 display: table;
1278 width: 6px;
1279 height: 12px;
1280 border: 2px solid #fff;
1281 border-top-width: 0;
1282 border-left-width: 0;
1283 @include rotate(45deg);
1284 }
1285
1286 &:checked:after {
1287 background-color: $brand-primary;
1288 border-color: $brand-primary;
1289 }
1290
1291 &:disabled:after {
1292 border-color: $gray-light;
1293 }
1294
1295 &:disabled:checked:after {
1296 background-color: $gray-light;
1297 border-color: transparent;
1298 }
1299}
1300
1301.has-warning {
1302 input:not([type=checkbox]),
1303 .form-control,
1304 input.form-control[readonly],
1305 input[type=text][readonly],
1306 [type=text].form-control[readonly],
1307 input:not([type=checkbox]):focus,
1308 .form-control:focus {
1309 border-bottom: none;
1310 @include box-shadow(inset 0 -2px 0 $brand-warning);
1311 }
1312}
1313
1314.has-error {
1315 input:not([type=checkbox]),
1316 .form-control,
1317 input.form-control[readonly],
1318 input[type=text][readonly],
1319 [type=text].form-control[readonly],
1320 input:not([type=checkbox]):focus,
1321 .form-control:focus {
1322 border-bottom: none;
1323 @include box-shadow(inset 0 -2px 0 $brand-danger);
1324 }
1325}
1326
1327.has-success {
1328 input:not([type=checkbox]),
1329 .form-control,
1330 input.form-control[readonly],
1331 input[type=text][readonly],
1332 [type=text].form-control[readonly],
1333 input:not([type=checkbox]):focus,
1334 .form-control:focus {
1335 border-bottom: none;
1336 @include box-shadow(inset 0 -2px 0 $brand-success);
1337 }
1338}
1339
1340// Remove the Bootstrap feedback styles for input addons
1341.input-group-addon {
1342 .has-warning &, .has-error &, .has-success & {
1343 color: $input-color;
1344 border-color: $input-group-addon-border-color;
1345 background-color: $input-group-addon-bg;
1346 }
1347}
1348
1349.form-group-lg {
1350 select,
1351 select.form-control {
1352 line-height: 1.5;
1353 }
1354}
1355
1356// Navs =======================================================================
1357
1358.nav-tabs {
1359 > li > a,
1360 > li > a:focus {
1361 margin-right: 0;
1362 background-color: transparent;
1363 border: none;
1364 color: $navbar-light-link-color;
1365 @include box-shadow(inset 0 -1px 0 #ddd);
1366 @include transition(all 0.2s);
1367
1368 &:hover {
1369 background-color: transparent;
1370 @include box-shadow(inset 0 -2px 0 $brand-primary);
1371 color: $brand-primary;
1372 }
1373 }
1374
1375 & > li.active > a,
1376 & > li.active > a:focus {
1377 border: none;
1378 @include box-shadow(inset 0 -2px 0 $brand-primary);
1379 color: $brand-primary;
1380
1381 &:hover {
1382 border: none;
1383 color: $brand-primary;
1384 }
1385 }
1386
1387 & > li.disabled > a {
1388 @include box-shadow(inset 0 -1px 0 #ddd);
1389 }
1390
1391 &.nav-justified {
1392
1393 & > li > a,
1394 & > li > a:hover,
1395 & > li > a:focus,
1396 & > .active > a,
1397 & > .active > a:hover,
1398 & > .active > a:focus {
1399 border: none;
1400 }
1401 }
1402
1403 .dropdown-menu {
1404 margin-top: 0;
1405 }
1406}
1407
1408.dropdown-menu {
1409 margin-top: 0;
1410 border: none;
1411 @include box-shadow(0 1px 4px rgba(0,0,0,.3));
1412}
1413
1414// Indicators =================================================================
1415
1416.alert {
1417 border: none;
1418 color: #fff;
1419
1420 &-success {
1421 background-color: $brand-success;
1422 }
1423
1424 &-info {
1425 background-color: $brand-info;
1426 }
1427
1428 &-warning {
1429 background-color: $brand-warning;
1430 }
1431
1432 &-danger {
1433 background-color: $brand-danger;
1434 }
1435
1436 a:not(.close):not(.btn),
1437 .alert-link {
1438 color: #fff;
1439 font-weight: bold;
1440 }
1441
1442 .close {
1443 color: #fff;
1444 }
1445}
1446
1447.badge {
1448 padding: 4px 6px 4px;
1449}
1450
1451.progress {
1452 position: relative;
1453 z-index: 1;
1454 height: 6px;
1455 border-radius: 0;
1456
1457 @include box-shadow(none);
1458
1459 &-bar {
1460 @include box-shadow(none);
1461
1462 &:last-child {
1463 border-radius: 0 3px 3px 0;
1464 }
1465
1466 &:last-child {
1467 &:before {
1468 display: block;
1469 content: "";
1470 position: absolute;
1471 width: 100%;
1472 height: 100%;
1473 left: 0;
1474 right: 0;
1475 z-index: -1;
1476 background-color: lighten($progress-bar-bg, 35%);
1477 }
1478 }
1479
1480 &-success:last-child.progress-bar:before {
1481 background-color: lighten($brand-success, 35%);
1482 }
1483
1484 &-info:last-child.progress-bar:before {
1485 background-color: lighten($brand-info, 45%);
1486 }
1487 &-warning:last-child.progress-bar:before {
1488 background-color: lighten($brand-warning, 35%);
1489 }
1490
1491 &-danger:last-child.progress-bar:before {
1492 background-color: lighten($brand-danger, 25%);
1493 }
1494 }
1495}
1496
1497// Progress bars ==============================================================
1498
1499// Containers =================================================================
1500
1501.close {
1502 font-size: 34px;
1503 font-weight: 300;
1504 line-height: 24px;
1505 opacity: 0.6;
1506 @include transition(all 0.2s);
1507
1508 &:hover {
1509 opacity: 1;
1510 }
1511}
1512
1513.list-group {
1514
1515 &-item {
1516 padding: 15px;
1517 }
1518
1519 &-item-text {
1520 color: $gray-light;
1521 }
1522}
1523
1524.well {
1525 border-radius: 0;
1526 @include box-shadow(none);
1527}
1528
1529.panel {
1530 border: none;
1531 border-radius: 2px;
1532 @include box-shadow(0 1px 4px rgba(0,0,0,.3));
1533
1534 &-heading {
1535 border-bottom: none;
1536 }
1537
1538 &-footer {
1539 border-top: none;
1540 }
1541}
1542
1543.popover {
1544 border: none;
1545 @include box-shadow(0 1px 4px rgba(0,0,0,.3));
1546}
1547
1548.carousel {
1549 &-caption {
1550 h1, h2, h3, h4, h5, h6 {
1551 color: inherit;
1552 }
1553 }
1554}
1555