MDL-69395 theme_boost: improve colour contrast for form input fields
[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;
609d8b38 7$gray-500: #8f959e !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 22$teal: #20c997 !default;
d17a85c7 23$cyan: #008196 !default;
3ec69c2e
BB
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;
92bc86e4 37$enable-responsive-font-sizes: true !default;
28762213 38
28762213 39// Body
b01c8490 40$body-color: $gray-900 !default;
28762213 41
3ec69c2e
BB
42// Fonts
43$font-size-base: 0.9375rem !default;
92bc86e4 44$rfs-base-font-size: 0.9rem !default;
3ec69c2e 45$headings-font-weight: 300 !default;
28762213
BR
46
47// Navbar
7b87d98d 48$navbar-dark-hover-color: rgba($white, 1) !default;
338fd44c 49$navbar-light-color: rgba($black, 0.6) !default;
7b87d98d 50$navbar-light-hover-color: rgba($black, .9) !default;
28762213
BR
51
52// Breadcrumbs
3ec69c2e 53$breadcrumb-padding-y: .25rem !default;
7b87d98d 54$breadcrumb-padding-x: 0 !default;
3ec69c2e 55$breadcrumb-item-padding: .5rem !default;
7b87d98d 56$breadcrumb-margin-bottom: 0 !default;
3ec69c2e 57$breadcrumb-bg: transparent !default;
137c289a
FM
58$breadcrumb-divider: "/" !default;
59$breadcrumb-divider-rtl: "/" !default;
28762213 60
1b5630a0
FR
61// Floating elements positions
62$gototop-bottom-position: 50px !default;
63
3ec69c2e
BB
64// Alerts
65$alert-border-width: 0 !default;
d48dbde9 66
e4b4b9e7
BB
67$card-group-margin: .25rem;
68
dc38af73
BB
69// Custom control size
70$custom-control-indicator-size: 1.25rem;
71
91de0ed8
BB
72$input-btn-focus-color: rgba($primary, .75) !default;
73
609d8b38
BB
74$input-border-color: $gray-500 !default;
75
dbbbeb89
DB
76// stylelint-disable
77$theme-colors: () !default;
78$theme-colors: map-merge((
7b87d98d 79 primary: $primary,
1a17df08 80 secondary: $secondary,
7b87d98d
AN
81 success: $success,
82 info: $info,
1a17df08 83 warning: $warning,
7b87d98d 84 danger: $danger,
dbbbeb89
DB
85), $theme-colors);
86// stylelint-enable
4a59602a 87
4394f9e3
BB
88$spacer: 1rem !default;
89$spacers: (
90 0: 0,
91 1: ($spacer * .25),
92 2: ($spacer * .5),
93 3: $spacer,
94 4: ($spacer * 1.5),
95 5: ($spacer * 2),
96 6: ($spacer * 3)
97) !default;
98
3ec69c2e
BB
99// Import FontAwesome.
100@import "fontawesome";
4a59602a 101
3ec69c2e
BB
102// Import All of Bootstrap
103@import "bootstrap";
4a59602a 104
3ec69c2e
BB
105// Import Core moodle CSS
106@import "moodle";
771fe96b 107
3ec69c2e 108// Preset CSS
771fe96b 109
3ec69c2e 110body {
7b87d98d 111 -webkit-font-smoothing: antialiased;
d6cd1d87 112 -moz-osx-font-smoothing: grayscale;
137c289a
FM
113}
114
3ec69c2e 115.navbar {
7b87d98d 116 box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
4a59602a
BR
117}
118
3ec69c2e
BB
119// Rounded user pictures
120.userpicture {
121 border-radius: 50%;
77f5a9b0 122}
916c0ded
RW
123
124// Reset the default styling back to the bootstrap defaults for
125// the secondary outline button because gray-200 is much too light
b8ecdc48 126// for an outline button.
916c0ded
RW
127.btn-outline-secondary {
128 @include button-outline-variant($gray-600);
1a17df08
BB
129 border-color: $gray-600;
130}
131
132.btn-outline-info {
133 @include button-outline-variant($info-outline);
134}
135
136.btn-outline-warning {
137 @include button-outline-variant($warning-outline);
916c0ded 138}
56fb4e81 139
6a4ce7b0 140@include bg-variant(".bg-gray", $gray-200, true);