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-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 --green: #198754; /* $green ($green-500) in BS5 */
15 --cyan: #087990; /* $cyan-700 in BS5 */
19 /** BS default fonts are huge */
20 body, .form-control, .btn, .input-group-text {
21 /* This more or less matches the font size of the angularjs client.
22 * The default BS4 font of 1rem is comically large.
31 h3 {font-size: 1.15rem}
32 h4 {font-size: 1.05rem}
33 h5 {font-size: .95rem}
35 .small-text-1 {font-size: 85%}
37 /** Use a default link color that achieves WCAG AA
38 * color contrast against a white background
41 border-color: #0A58CA;
46 border-color: #0848A5;
50 /** Ang5 routes on clicks to href's with no values, so we can't have
51 * bare href's to force anchor styling. Use this for anchors w/ no href.
52 * TODO: should we style all of them? a:not([href]) ....
60 border-color: #0848A5;
64 /** BS has flex utility classes, but none for specifying flex widths.
65 * BS class="col" is roughly equivelent to flex-1, but col-2 is not
66 * equivalent to flex-2, since col-2 really means 2/12 width. */
74 /** BS deprecated the well, but it's replacement is not quite the same.
75 * Define our own version and expand it to a full "table".
80 .well-table .well-label {
89 .well-table .well-label-no-flex {
97 .well-table .well-value {
101 background-color: #f5f5f5;
103 box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
109 .btn.disabled, .btn:disabled {
113 /* copies color/border/elements from above sans position elements */
115 background-color: #f5f5f5;
117 box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
120 /* usefuf for mat-icon buttons without any background or borders */
121 .material-icon-button {
122 /* Transparent background */
124 background-color: rgba(0, 0, 0, 0.0);
125 padding-left: .25rem;
126 padding-right: .25rem; /* default .5rem */
129 .mat-icon-in-button {
130 line-height: inherit;
133 .mat-icon-shrunk-in-button {
134 line-height: inherit;
138 .material-icons.small {
142 .input-group .mat-icon-in-button {
143 font-size: .88rem !important; /* useful for buttons that cuddle up with inputs */
147 /** default is 24px which is pretty chunky */
151 /* allow spans/labels to vertically orient with material icons */
152 .label-with-material-icon {
153 display: inline-flex;
154 vertical-align: middle;
158 /* dropdown menu link/button with no downward carrot icon */
159 .no-dropdown-caret::after {
163 /* Default .card padding is extreme */
164 .tight-card .card-body,
165 .tight-card .list-group-item {
168 .tight-card .card-header {
172 @media all and (min-width: 800px) {
173 /* scrollable typeahead menus for full-size screens */
174 ngb-typeahead-window {
181 /* Limit size of dropdown menus and allow for scrolling */
189 /* Items stick to the top of the page once scrolled past,
190 * leaving room above for the nav bar */
191 .sticky-top-with-nav {
194 /* Sticky menus display above sticky grid headers */
198 /* --------------------------------------------------------------------------
199 /* Form Validation CSS - https://angular.io/guide/form-validation
200 * TODO: these colors don't fit the EG color scheme
201 * Required valid fields are left-border styled in green-ish.
202 * Invalid fields are left-border styled in red-ish.
204 .form-validated .ng-valid[required]:not(eg-combobox):not(eg-date-select),
205 .form-validated .ng-valid.required, input[formcontrolname].ng-valid {
206 border-left: 5px solid #78FA89;
208 .form-validated .ng-invalid:not(form):not(eg-combobox):not(eg-date-select),
209 input[formcontrolname].ng-invalid {
210 border-left: 5px solid #FA787E;
214 border-left: 5px solid #FA787E;
218 * Brings font size down 5% to squeeze a bit more in.
220 * Fixes some bootstrap margin funkiness with checkboxes for
221 * better vertical alignment.
222 * Optional faint odd or even row striping.
236 .common-form.striped-even .row:nth-child(even),
237 .striped-rows-even .row:nth-child(even) {
239 background-color: rgba(0,0,0,.03);
240 border-top: 1px solid rgba(0,0,0,.125);
241 border-bottom: 1px solid rgba(0,0,0,.125);
244 .common-form.striped-odd .row:nth-child(odd),
245 .striped-rows-odd .row:nth-child(odd) {
247 background-color: rgba(0,0,0,.03);
248 border-top: 1px solid rgba(0,0,0,.125);
249 border-bottom: 1px solid rgba(0,0,0,.125);
253 color: rgba(0,0,0,.3);
257 * Only display the print container when printing
259 #eg-print-container {
263 head {display: none} /* just to be safe */
264 body div:not([id="eg-print-container"]) {display: none}
266 @page {size: auto} /* work around Bootrap 4's default
267 of A3; specifying any paper
268 size stops browsers from letting
269 the user choose portrait or
270 landscape. LP#1986725 */
271 #eg-print-container {display: block}
272 #eg-print-container div {display: block}
273 #eg-print-container pre {border: none}
277 * Make sure that comboboxes (including org select
278 * are visible, even in nested modals.
280 * See https://github.com/ng-bootstrap/ng-bootstrap/issues/2505
281 * for the upstream issue that necessitates this.
283 body>.dropdown-menu {z-index: 2100;}
285 /* Styles for eg-daterange-select that don't work
286 * in the component's CSS file.
288 .ngb-dp-day:not(.disabled) .daterange-day.focused {
289 background-color: #e6e6e6;
291 .ngb-dp-day:not(.disabled) .daterange-day.range, .ngb-dp-day:not(.disabled) .daterange-day:hover {
292 background-color: #129a78;
296 .ngb-dp-day:not(.disabled) .daterange-day.faded {
297 background-color: #c9efe4;
301 /* Washed out version of the Bootstrap 'info' background.
302 * Useful for blocking out sections of a page/form without it
303 * being so intensely colorful */
305 /*background-color: rgb(204, 229, 255, 0.3);*/
308 /*background-color: rgb(217, 237, 247, 0.5);*/
310 background-color: rgba(0,0,0,.03);
313 /* Allow for larger XL dialogs */
314 @media (min-width: 1300px) { .modal-xl { max-width: 1200px; } }
315 @media (min-width: 1600px) { .modal-xl { max-width: 1500px; } }
316 @media (min-width: 1700px) { .modal-xl { max-width: 1600px; } }
318 /* Contrast for dialog titles */
319 .modal-header .modal-title {
324 .modal-header .close,
325 .modal-header .close:hover {
331 .modal-header .close:not(:disabled):not(.disabled):focus,
332 .modal-header .close:not(:disabled):not(.disabled):hover {
337 * Make the acquisitions search form's navigation tabs match
338 * those of the staff interface. This is a global rule because
339 * various approaches to doing it local to the acq search component
342 * 1. A rule bound to the container of the acq search tabset
343 * would make the entire background be grey.
344 * 2. ":host ::ng-deep" for a local rule works, but depends on a
345 * mechanism that is deprecated.
346 * 4. ng-tabset provides no hooks for custom styles for the nav-tab
348 * 5. Turning off view encapsulation for the acq search component
349 * breaks a lot of styles.
351 #acq-search-page ngbNav .nav.nav-tabs {
352 background-color: rgb(247, 247, 247);
356 * Similar to the CSS above for the search form, set some
357 * CSS for the line item worksheet. Ordinarily would be
358 * preferable to just add the CSS to the worksheet component,
359 * but untl a well-supported alternative to ng-deep comes along...
361 #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
363 #worksheet-outlet tbody td { text-align: left; vertical-align: top; border: 1px #999 inset; padding: 0 2px; }
365 /* style for negative monetary values */
366 .negative-money-amount {
379 * Created initially for styled grid rows where full 'bg-danger' CSS is
380 * intense and not especially readable, more so when rows are stacked.
381 * http://web-accessibility.carnegiemuseums.org/design/color/
383 .less-intense-alert {
384 background-color: #f9dede;
388 /* Accessible button colors */
391 .btn-outline-warning {
392 border-color: #BB8402;
395 /* other colors' focus state shadows do not need to change */
398 border-color: #FFC107;
399 box-shadow: 0 0 0 .2rem rgba(255, 205, 57,.5);
403 background-color: #0A58CA;
404 border-color: #0A58CA;
411 background-color: #0848A5;
412 border-color: #0848A5;
415 .btn-outline-primary {
416 border-color: #0A58CA;
419 .btn-outline-primary:hover,
420 .btn-outline-primary.hover,
421 .btn-outline-primary:focus,
422 .btn-outline-primary.focus {
423 border-color: #0848A5;
427 background-color: #087990;
428 border-color: #087990;
435 background-color: #076376;
436 border-color: #076376;
440 border-color: #087990;
443 .btn-outline-info:hover,
444 .btn-outline-info.hover,
445 .btn-outline-info:focus,
446 .btn-outline-info.focus {
447 border-color: #076376;
451 background-color: #198754;
452 border-color: #198754;
459 background-color: #157146;
460 border-color: #157146;
463 .btn-outline-success {
464 border-color: #198754;
467 .btn-outline-success:hover,
468 .btn-outline-success.hover,
469 .btn-outline-success:focus,
470 .btn-outline-success.focus {
471 border-color: #157146;
474 /* Less intense, WCAG AAA-compliant badges */
483 .badge.text-bg-primary {
489 .badge.text-bg-secondary {
495 .badge.text-bg-success {
501 .badge.text-bg-danger {
507 .badge.text-bg-warning {
513 .badge.text-bg-info {
519 .badge.text-bg-light {
525 .badge.text-bg-dark {