MDL-64494 theme_boost: accessible theme colours
[moodle.git] / theme / boost / scss / preset / default.scss
CommitLineData
3ec69c2e 1// Bootstrap variables
3ec69c2e
BB
2$white: #fff !default;
3$gray-100: #f8f9fa !default;
4$gray-200: #e9ecef !default;
5$gray-300: #dee2e6 !default;
6$gray-400: #ced4da !default;
7$gray-500: #adb5bd !default;
1a17df08 8$gray-600: #6c757d !default;
3ec69c2e 9$gray-700: #495057 !default;
1a17df08 10$gray-800: #343a40 !default;
3ec69c2e
BB
11$gray-900: #212529 !default;
12$black: #000 !default;
13
323ce395 14$blue: #1177d1 !default;
3ec69c2e
BB
15$indigo: #6610f2 !default;
16$purple: #613d7c !default;
17$pink: #e83e8c !default;
1a17df08 18$red: #d43f3a !default;
3ec69c2e 19$orange: #f0ad4e !default;
7b87d98d 20$yellow: #ff7518 !default;
1a17df08 21$green: #398439 !default;
3ec69c2e
BB
22$teal: #20c997 !default;
23$cyan: #5bc0de !default;
24
25$primary: $blue !default;
3ec69c2e
BB
26$success: $green !default;
27$info: $cyan !default;
1a17df08 28$warning: $orange !default;
3ec69c2e 29$danger: $red !default;
1a17df08
BB
30$secondary: $gray-400 !default;
31
32$info-outline: #1f7e9a;
33$warning-outline: #a6670e;
3ec69c2e
BB
34
35// Options
36$enable-rounded: false !default;
28762213 37
28762213 38// Body
3ec69c2e 39$body-color: $gray-800 !default;
28762213 40
3ec69c2e
BB
41// Fonts
42$font-size-base: 0.9375rem !default;
43$headings-font-weight: 300 !default;
28762213
BR
44
45// Navbar
7b87d98d
AN
46$navbar-dark-hover-color: rgba($white, 1) !default;
47$navbar-light-hover-color: rgba($black, .9) !default;
28762213
BR
48
49// Breadcrumbs
3ec69c2e 50$breadcrumb-padding-y: .25rem !default;
7b87d98d 51$breadcrumb-padding-x: 0 !default;
3ec69c2e 52$breadcrumb-item-padding: .5rem !default;
7b87d98d 53$breadcrumb-margin-bottom: 0 !default;
3ec69c2e 54$breadcrumb-bg: transparent !default;
137c289a
FM
55$breadcrumb-divider: "/" !default;
56$breadcrumb-divider-rtl: "/" !default;
28762213 57
1b5630a0
FR
58// Floating elements positions
59$gototop-bottom-position: 50px !default;
60
3ec69c2e
BB
61// Alerts
62$alert-border-width: 0 !default;
d48dbde9 63
e4b4b9e7
BB
64$card-group-margin: .25rem;
65
dc38af73
BB
66// Custom control size
67$custom-control-indicator-size: 1.25rem;
68
dbbbeb89
DB
69// stylelint-disable
70$theme-colors: () !default;
71$theme-colors: map-merge((
7b87d98d 72 primary: $primary,
1a17df08 73 secondary: $secondary,
7b87d98d
AN
74 success: $success,
75 info: $info,
1a17df08 76 warning: $warning,
7b87d98d 77 danger: $danger,
dbbbeb89
DB
78), $theme-colors);
79// stylelint-enable
4a59602a 80
3ec69c2e
BB
81// Import FontAwesome.
82@import "fontawesome";
4a59602a 83
3ec69c2e
BB
84// Import All of Bootstrap
85@import "bootstrap";
4a59602a 86
3ec69c2e
BB
87// Import Core moodle CSS
88@import "moodle";
771fe96b 89
3ec69c2e 90// Preset CSS
771fe96b 91
3ec69c2e 92body {
7b87d98d 93 -webkit-font-smoothing: antialiased;
137c289a
FM
94}
95
3ec69c2e 96.navbar {
7b87d98d 97 box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
4a59602a
BR
98}
99
7b87d98d
AN
100.filemanager-container,
101.filepicker-filelist {
3ec69c2e 102 @extend .border;
6e2aefd5 103}
77f5a9b0 104
3ec69c2e
BB
105// Rounded user pictures
106.userpicture {
107 border-radius: 50%;
77f5a9b0 108}
916c0ded
RW
109
110// Reset the default styling back to the bootstrap defaults for
111// the secondary outline button because gray-200 is much too light
b8ecdc48 112// for an outline button.
916c0ded
RW
113.btn-outline-secondary {
114 @include button-outline-variant($gray-600);
1a17df08
BB
115 border-color: $gray-600;
116}
117
118.btn-outline-info {
119 @include button-outline-variant($info-outline);
120}
121
122.btn-outline-warning {
123 @include button-outline-variant($warning-outline);
916c0ded 124}
56fb4e81 125
1a17df08 126@include bg-variant(".bg-gray", $gray-200);