-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.bootstrap.guideline.scss
204 lines (185 loc) · 7.18 KB
/
app.bootstrap.guideline.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
// N.B. Compile against Bootstrap v5.3.3
// Set functional color palette for CSO guidelines
$primary: #006F74;
$secondary: #128091;
$tertiary: #35456B;
$navbar: #004F50;
$success: #019E79;
$info: #008099;
$warning: #EBA900;
$danger: #DC4128;
$light: #fff;
$dark: #343a40;
$neutral: #CDD3D9;
$default: #f8f9fa;
$primary-light: #579599;
// Add functional color palette for CSO guidelines
// N.B. Used by PxStat
$official: #DC4128;
$exceptional: #EBA900;
$reservation: #DC4128;
$archive: #343a40;
$analytical: #EBA900;
$experimental: #EBA900;
// Do NOT use standard color palette for CSO guidelines
$blue: #008FAA;
$indigo: #6610f2;
$purple: #1D345C;
$pink: #B51E83;
$red: #DC4128;
$orange: #fd7e14;
$yellow: #FAA21B;
$green: #006168;
$teal: #45C1C0;
$cyan: #17a2b8;
$black: #000000;
$white: #ffffff;
$gray: #6c757d;
$gray-dark: #343a40;
// Import dependency for compiling theme colours
@import "../src/scss/functions";
@import "../src/scss/variables";
// Set CSO theme colours
$cso-theme-colours: (
'blue': $blue,
'indigo':$indigo,
'purple':$purple,
'pink':$pink,
'orange':$orange,
'yellow':$yellow,
'green':$green,
'teal':$teal,
'cyan':$cyan,
'black':$black,
'white':$white,
'gray':$gray,
'gray-dark':$gray-dark,
'primary': $primary,
'secondary': $secondary,
'tertiary': $tertiary,
'navbar': $navbar,
'success': $success,
'info': $info,
'warning': $warning,
'danger': $danger,
'light': $light,
'dark': $dark,
'neutral': $neutral,
'default': $default,
'official': $official,
'exceptional': $exceptional,
'reservation': $reservation,
'archive': $archive,
'analytical': $analytical,
'experimental': $experimental,
'primary-light': $primary-light
);
// Merge the CSO theme with bootstraps default
// N.B. map-merge is mandatory, do NOT assign $theme-colors directly
$theme-colors: map-merge($cso-theme-colours, $theme-colors);
// Set navbar
$navbar-text-hover-color: #cbd3da;
$navbar-light-hover-color: $navbar-text-hover-color !important;
$navbar-light-active-color: $white;
$navbar-light-color: $white;
$navbar-light-disabled-color : $navbar-text-hover-color;
// Set and import CSO font
$font-family-sans-serif: 'Roboto Sans', sans-serif;
@import url(https://fonts.googleapis.com/css?family=Roboto+Slab:400,300,300italic,400italic,700,700italic);
// Toggle global options
$enable-dark-mode : false;
$spacer: 1rem; //1rem (default), or any value > 0 Specifies the default spacer value to programmatically generate our spacer utilities.
$enable-rounded: true; //true (default) or false Enables predefined border-radius styles on various components.
$enable-shadows: true; // true or false (default) Enables predefined decorative box-shadow styles on various components. Does not affect box-shadows used for focus states.
$enable-gradients :true; // true or false (default) Enables predefined gradients via background-image styles on various components.
$enable-transitions : true; // true (default) or false Enables predefined transitions on various components.
$enable-reduced-motion :true; // true (default) or false Enables the prefers-reduced-motion media query, which suppresses certain animations/transitions based on the users’ browser/operating system preferences.
$enable-grid-classes : true; // true (default) or false Enables the generation of CSS classes for the grid system (e.g. .row, .col-md-1, etc.).
$enable-container-classes: true; // true (default) or false Enables the generation of CSS classes for layout containers. (New in v5.2.0)
$enable-caret : true; // true (default) or false Enables pseudo element caret on .dropdown-toggle.
$enable-button-pointers : true; // true (default) or false Add “hand” cursor to non-disabled button elements.
$enable-rfs: true; //true (default) or false Globally enables RFS.
$enable-validation-icons: true; // true (default) or false Enables background-image icons within textual inputs and some custom forms for validation states.
$enable-negative-margins : true; // true or false (default) Enables the generation of negative margin utilities.
$enable-deprecation-messages : true; // true (default) or false Set to false to hide warnings when using any of the deprecated mixins and functions that are planned to be removed in v6.
$enable-important-utilities: true; //true (default) or false Enables the !important suffix in utility classes.
$enable-smooth-scroll : true; // true (default) or false Applies scroll-behavior: smooth globally, except for users asking for reduced motion through prefers-reduced-motion media query
// Import vanila bootstrap
@import "../src/scss/bootstrap";
// CSO accessibility enhancements
.btn-danger {
--bs-btn-color: #fff;
--bs-btn-hover-color: #fff;
--bs-btn-active-color: #fff;
--bs-btn-disabled-color: #fff;
}
.btn-outline-danger {
--bs-btn-hover-color: #fff;
--bs-btn-active-color: #fff;
}
// N.B. Used by PxStat
.btn-official,
.btn-reservation {
--bs-btn-color: #fff;
--bs-btn-hover-color: #fff;
--bs-btn-active-color: #fff;
--bs-btn-disabled-color: #fff;
}
.btn-outline-official,
.btn-outline-reservation {
--bs-btn-hover-color: #fff;
--bs-btn-active-color: #fff;
}
// CSO custom card implemenation
// N.B. Teams can use it freely (except PxStat)
.cso-card-header {
padding-left: 0.1rem;
margin-bottom: 0; // Removes the default margin-bottom of <hN>
color: var(--#{$prefix}-white);
background-color: var(--#{$prefix}-white);
border-bottom: 1px;
padding-top: 1rem;
font-size: $h4-font-size;
font-weight: normal;
&:first-child {
@include border-radius(var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius) 0 0);
}
}
.cso-card {
border-radius: 3px;
border: none;
box-shadow: 0 1px 1px 0 rgb(60 64 67 / 8%), 0 1px 3px 1px rgb(60 64 67 / 16%);
border-left: 5px solid var(--bs-warning);
padding: 0px 0px;
margin-bottom: 1px;
// scss-docs-start card-css-vars
--#{$prefix}card-spacer-y: #{$card-spacer-y};
--#{$prefix}card-spacer-x: #{$card-spacer-x};
--#{$prefix}card-title-spacer-y: #{$card-title-spacer-y};
--#{$prefix}card-box-shadow: #{$card-box-shadow};
--#{$prefix}card-cap-padding-y: #{$card-cap-padding-y};
--#{$prefix}card-cap-padding-x: #{$card-cap-padding-x};
--#{$prefix}card-cap-bg: #{$card-cap-bg};
--#{$prefix}card-cap-color: #{$card-cap-color};
--#{$prefix}card-height: #{$card-height};
--#{$prefix}card-color: #{$card-color};
--#{$prefix}card-bg: #{$card-bg};
--#{$prefix}card-img-overlay-padding: #{$card-img-overlay-padding};
--#{$prefix}card-group-margin: #{$card-group-margin};
// scss-docs-end card-css-vars
position: relative;
display: flex;
flex-direction: column;
min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
height: var(--#{$prefix}card-height);
word-wrap: break-word;
background-color: var(--#{$prefix}card-bg);
background-clip: border-box;
}
.cso-card-body {
// Enable `flex-grow: 1` for decks and groups so that card blocks take up
// as much space as possible, ensuring footers are aligned to the bottom.
flex: 1 1 auto;
padding: 0.1rem;
color: var(--#{$prefix}card-color);
}