1 /* You can add global styles to this file, and also import other style files */
3 /* bootstrap CSS only -- JS bits come from ng-bootstrap */
4 @import '~bootstrap-5-css-only/css/bootstrap.min.css';
6 /* Locally served material icon fonts */
7 @import '~material-design-icons-iconfont/dist/material-design-icons.css';
9 /* BS default colors lack sufficient contrast for accessibility */
11 --blue: #0A58CA; /* $blue-600 in BS5 */
13 --bs-blue-rgb: 10,88,202;
14 --bs-primary-rgb: 10,88,202;
15 --green: #198754; /* $green ($green-500) in BS5 */
17 --bs-green-rgb: 25,135,84;
18 --bs-success-rgb: 25,135,84;
19 --cyan: #087990; /* $cyan-700 in BS5 */
21 --bs-cyan-rgb: 8,121,144;
22 --bs-info-rgb: 8,121,144;
25 /** BS default fonts are huge */
26 body, .form-control, .btn, .input-group-text {
27 /* This more or less matches the font size of the angularjs client.
28 * The default BS4 font of 1rem is comically large.
42 h3 {font-size: 1.15rem}
43 h4 {font-size: 1.05rem}
44 h5 {font-size: .95rem}
46 .small-text-1 {font-size: 85%}
48 /** Use a default link color that achieves WCAG AA
49 * color contrast against a white background
52 border-color: #0A58CA;
57 border-color: #0848A5;
61 /** Ang5 routes on clicks to href's with no values, so we can't have
62 * bare href's to force anchor styling. Use this for anchors w/ no href.
63 * TODO: should we style all of them? a:not([href]) ....
71 border-color: #0848A5;
75 /** BS has flex utility classes, but none for specifying flex widths.
76 * BS class="col" is roughly equivelent to flex-1, but col-2 is not
77 * equivalent to flex-2, since col-2 really means 2/12 width. */
85 /** BS deprecated the well, but it's replacement is not quite the same.
86 * Define our own version and expand it to a full "table".
91 .well-table .well-label {
100 .well-table .well-label-no-flex {
108 .well-table .well-value {
112 background-color: #f5f5f5;
114 box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
120 .btn.disabled, .btn:disabled {
124 /* copies color/border/elements from above sans position elements */
126 background-color: #f5f5f5;
128 box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
131 /* usefuf for mat-icon buttons without any background or borders */
132 .material-icon-button {
133 /* Transparent background */
135 background-color: rgba(0, 0, 0, 0.0);
136 padding-left: .25rem;
137 padding-right: .25rem; /* default .5rem */
140 .mat-icon-in-button {
141 line-height: inherit;
144 .mat-icon-shrunk-in-button {
145 line-height: inherit;
149 .material-icons.small {
153 .input-group .mat-icon-in-button {
154 font-size: .88rem !important; /* useful for buttons that cuddle up with inputs */
158 /** default is 24px which is pretty chunky */
162 /* allow spans/labels to vertically orient with material icons */
163 .label-with-material-icon {
164 display: inline-flex;
165 vertical-align: middle;
169 /* dropdown menu link/button with no downward carrot icon */
170 .no-dropdown-caret::after {
174 /* Default .card padding is extreme */
175 .tight-card .card-body,
176 .tight-card .list-group-item {
179 .tight-card .card-header {
183 @media all and (min-width: 800px) {
184 /* scrollable typeahead menus for full-size screens */
185 ngb-typeahead-window {
192 /* Limit size of dropdown menus and allow for scrolling */
200 /* Items stick to the top of the page once scrolled past,
201 * leaving room above for the nav bar */
202 .sticky-top-with-nav {
205 /* Sticky menus display above sticky grid headers */
209 /* --------------------------------------------------------------------------
210 /* Form Validation CSS - https://angular.io/guide/form-validation
211 * TODO: these colors don't fit the EG color scheme
212 * Required valid fields are left-border styled in green-ish.
213 * Invalid fields are left-border styled in red-ish.
215 .form-validated .ng-valid[required]:not(eg-combobox):not(eg-date-select),
216 .form-validated .ng-valid.required, input[formcontrolname].ng-valid.required {
217 border-left: 5px solid #78FA89;
219 .form-validated .ng-invalid:not(form):not(eg-combobox):not(eg-date-select),
220 input[formcontrolname].ng-invalid {
221 border-left: 5px solid #FA787E;
225 border-left: 5px solid #FA787E;
229 * Brings font size down 5% to squeeze a bit more in.
231 * Fixes some bootstrap margin funkiness with checkboxes for
232 * better vertical alignment.
233 * Optional faint odd or even row striping.
247 .common-form.striped-even .row:nth-child(even),
248 .striped-rows-even .row:nth-child(even) {
250 background-color: rgba(0,0,0,.03);
251 border-top: 1px solid rgba(0,0,0,.125);
252 border-bottom: 1px solid rgba(0,0,0,.125);
255 .common-form.striped-odd .row:nth-child(odd),
256 .striped-rows-odd .row:nth-child(odd) {
258 background-color: rgba(0,0,0,.03);
259 border-top: 1px solid rgba(0,0,0,.125);
260 border-bottom: 1px solid rgba(0,0,0,.125);
264 color: rgba(0,0,0,.3);
268 * Only display the print container when printing
270 #eg-print-container {
274 head {display: none} /* just to be safe */
275 body div:not([id="eg-print-container"]) {display: none}
277 @page {size: auto} /* work around Bootrap 4's default
278 of A3; specifying any paper
279 size stops browsers from letting
280 the user choose portrait or
281 landscape. LP#1986725 */
282 #eg-print-container {display: block}
283 #eg-print-container div {display: block}
284 #eg-print-container pre {border: none}
288 * Make sure that comboboxes (including org select
289 * are visible, even in nested modals.
291 * See https://github.com/ng-bootstrap/ng-bootstrap/issues/2505
292 * for the upstream issue that necessitates this.
294 body>.dropdown-menu {z-index: 2100;}
296 /* Styles for eg-daterange-select that don't work
297 * in the component's CSS file.
299 .ngb-dp-day:not(.disabled) .daterange-day.focused {
300 background-color: #e6e6e6;
302 .ngb-dp-day:not(.disabled) .daterange-day.range, .ngb-dp-day:not(.disabled) .daterange-day:hover {
303 background-color: #129a78;
307 .ngb-dp-day:not(.disabled) .daterange-day.faded {
308 background-color: #c9efe4;
312 /* Washed out version of the Bootstrap 'info' background.
313 * Useful for blocking out sections of a page/form without it
314 * being so intensely colorful */
316 /*background-color: rgb(204, 229, 255, 0.3);*/
319 /*background-color: rgb(217, 237, 247, 0.5);*/
321 background-color: rgba(0,0,0,.03);
324 /* Allow for larger XL dialogs */
325 @media (min-width: 1300px) { .modal-xl { max-width: 1200px; } }
326 @media (min-width: 1600px) { .modal-xl { max-width: 1500px; } }
327 @media (min-width: 1700px) { .modal-xl { max-width: 1600px; } }
329 /* Contrast for dialog titles */
330 .modal-header .modal-title {
335 .modal-header .close,
336 .modal-header .close:hover {
342 .modal-header .close:not(:disabled):not(.disabled):focus,
343 .modal-header .close:not(:disabled):not(.disabled):hover {
348 * Make the acquisitions search form's navigation tabs match
349 * those of the staff interface. This is a global rule because
350 * various approaches to doing it local to the acq search component
353 * 1. A rule bound to the container of the acq search tabset
354 * would make the entire background be grey.
355 * 2. ":host ::ng-deep" for a local rule works, but depends on a
356 * mechanism that is deprecated.
357 * 4. ng-tabset provides no hooks for custom styles for the nav-tab
359 * 5. Turning off view encapsulation for the acq search component
360 * breaks a lot of styles.
362 #acq-search-page ngbNav .nav.nav-tabs {
363 background-color: rgb(247, 247, 247);
367 * Similar to the CSS above for the search form, set some
368 * CSS for the line item worksheet. Ordinarily would be
369 * preferable to just add the CSS to the worksheet component,
370 * but untl a well-supported alternative to ng-deep comes along...
372 #worksheet-outlet thead th { font-weight: bold; background-color: #ccc; text-align: center; border-bottom: 1px #000 solid; border-right: 1px #000 solid; padding: 0
374 #worksheet-outlet tbody td { text-align: left; vertical-align: top; border: 1px #999 inset; padding: 0 2px; }
376 /* style for negative monetary values */
377 .negative-money-amount {
390 * Created initially for styled grid rows where full 'bg-danger' CSS is
391 * intense and not especially readable, more so when rows are stacked.
392 * http://web-accessibility.carnegiemuseums.org/design/color/
394 .less-intense-alert {
395 background-color: #f9dede;
399 /* Accessible button colors */
402 .btn-outline-warning {
403 border-color: #BB8402;
406 /* other colors' focus state shadows do not need to change */
409 border-color: #FFC107;
410 box-shadow: 0 0 0 .2rem rgba(255, 205, 57,.5);
414 background-color: #0A58CA;
415 border-color: #0A58CA;
422 background-color: #0848A5;
423 border-color: #0848A5;
426 .btn-outline-primary {
427 border-color: #0A58CA;
430 .btn-outline-primary:hover,
431 .btn-outline-primary.hover,
432 .btn-outline-primary:focus,
433 .btn-outline-primary.focus {
434 border-color: #0848A5;
438 background-color: #087990;
439 border-color: #087990;
447 background-color: #076376;
448 border-color: #076376;
452 border-color: #087990;
455 .btn-outline-info:hover,
456 .btn-outline-info.hover,
457 .btn-outline-info:focus,
458 .btn-outline-info.focus {
459 border-color: #076376;
463 background-color: #198754;
464 border-color: #198754;
471 background-color: #157146;
472 border-color: #157146;
475 .btn-outline-success {
476 border-color: #198754;
479 .btn-outline-success:hover,
480 .btn-outline-success.hover,
481 .btn-outline-success:focus,
482 .btn-outline-success.focus {
483 border-color: #157146;
486 /* Less intense, WCAG AAA-compliant badges */
495 .badge.text-bg-primary {
501 .badge.text-bg-secondary {
507 .badge.text-bg-success {
513 .badge.text-bg-danger {
519 .badge.text-bg-warning {
525 .badge.text-bg-info {
531 .badge.text-bg-light {
537 .badge.text-bg-dark {
543 * https://getbootstrap.com/docs/5.0/migration/#content-reboot-etc
544 * Links are underlined by default.
547 text-decoration: none;
550 .input-group-text label,
551 .input-group-text button {
557 .form-label.input-group-text {
558 margin-bottom: inherit;