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 fonts are huge */
10 body, .form-control, .btn, .input-group-text {
11 /* This more or less matches the font size of the angularjs client.
12 * The default BS4 font of 1rem is comically large.
19 color: #129a78; /* official color of the Evergreen logo */
20 text-decoration: underline #129a78;
23 text-decoration: none;
25 h3 {font-size: 1.15rem}
26 h4 {font-size: 1.05rem}
27 h5 {font-size: .95rem}
29 .small-text-1 {font-size: 85%}
32 /** Ang5 routes on clicks to href's with no values, so we can't have
33 * bare href's to force anchor styling. Use this for anchors w/ no href.
34 * TODO: should we style all of them? a:not([href]) ....
42 /** BS has flex utility classes, but none for specifying flex widths.
43 * BS class="col" is roughly equivelent to flex-1, but col-2 is not
44 * equivalent to flex-2, since col-2 really means 2/12 width. */
52 /** BS deprecated the well, but it's replacement is not quite the same.
53 * Define our own version and expand it to a full "table".
58 .well-table .well-label {
67 .well-table .well-label-no-flex {
75 .well-table .well-value {
79 background-color: #f5f5f5;
81 box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
87 .btn.disabled, .btn:disabled {
91 /* usefuf for mat-icon buttons without any background or borders */
92 .material-icon-button {
93 /* Transparent background */
95 background-color: rgba(0, 0, 0, 0.0);
97 padding-right: .25rem; /* default .5rem */
100 .mat-icon-in-button {
101 line-height: inherit;
104 .mat-icon-shrunk-in-button {
105 line-height: inherit;
109 .material-icons.small {
113 .input-group .mat-icon-in-button {
114 font-size: .88rem !important; /* useful for buttons that cuddle up with inputs */
118 /** default is 24px which is pretty chunky */
122 /* allow spans/labels to vertically orient with material icons */
123 .label-with-material-icon {
124 display: inline-flex;
125 vertical-align: middle;
129 /* dropdown menu link/button with no downward carrot icon */
130 .no-dropdown-caret::after {
134 /* Default .card padding is extreme */
135 .tight-card .card-body,
136 .tight-card .list-group-item {
139 .tight-card .card-header {
143 @media all and (min-width: 800px) {
144 /* scrollable typeahead menus for full-size screens */
145 ngb-typeahead-window {
152 /* Limit size of dropdown menus and allow for scrolling */
160 /* --------------------------------------------------------------------------
161 /* Form Validation CSS - https://angular.io/guide/form-validation
162 * TODO: these colors don't fit the EG color scheme
163 * Required valid fields are left-border styled in green-ish.
164 * Invalid fields are left-border styled in red-ish.
166 .form-validated .ng-valid[required], .form-validated .ng-valid.required, input[formcontrolname].ng-valid {
167 border-left: 5px solid #78FA89;
169 .form-validated .ng-invalid:not(form), input[formcontrolname].ng-invalid {
170 border-left: 5px solid #FA787E;
174 border-left: 5px solid #FA787E;
178 * Brings font size down 5% to squeeze a bit more in.
180 * Fixes some bootstrap margin funkiness with checkboxes for
181 * better vertical alignment.
182 * Optional faint odd or even row striping.
196 .common-form.striped-even .row:nth-child(even) {
197 background-color: rgba(0,0,0,.03);
198 border-top: 1px solid rgba(0,0,0,.125);
199 border-bottom: 1px solid rgba(0,0,0,.125);
201 .common-form.striped-odd .row:nth-child(odd) {
202 background-color: rgba(0,0,0,.03);
203 border-top: 1px solid rgba(0,0,0,.125);
204 border-bottom: 1px solid rgba(0,0,0,.125);
209 * Only display the print container when printing
211 #eg-print-container {
215 head {display: none} /* just to be safe */
216 body div:not([id="eg-print-container"]) {display: none}
218 @page {size: auto} /* work around Bootrap 4's default
219 of A3; specifying any paper
220 size stops browsers from letting
221 the user choose portrait or
222 landscape. LP#1986725 */
223 #eg-print-container {display: block}
224 #eg-print-container div {display: block}
225 #eg-print-container pre {border: none}
229 * Make sure that comboboxes (including org select
230 * are visible, even in nested modals.
232 * See https://github.com/ng-bootstrap/ng-bootstrap/issues/2505
233 * for the upstream issue that necessitates this.
235 body>.dropdown-menu {z-index: 2100;}
237 /* Styles for eg-daterange-select that don't work
238 * in the component's CSS file.
240 .ngb-dp-day:not(.disabled) .daterange-day.focused {
241 background-color: #e6e6e6;
243 .ngb-dp-day:not(.disabled) .daterange-day.range, .ngb-dp-day:not(.disabled) .daterange-day:hover {
244 background-color: #129a78;
248 .ngb-dp-day:not(.disabled) .daterange-day.faded {
249 background-color: #c9efe4;
253 /* Washed out version of the Bootstrap 'info' background.
254 * Useful for blocking out sections of a page/form without it
255 * being so intensely colorful */
257 /*background-color: rgb(204, 229, 255, 0.3);*/
260 /*background-color: rgb(217, 237, 247, 0.5);*/
262 background-color: rgba(0,0,0,.03);
265 /* Allow for larger XL dialogs */
266 @media (min-width: 1300px) { .modal-xl { max-width: 1200px; } }
267 @media (min-width: 1600px) { .modal-xl { max-width: 1500px; } }
268 @media (min-width: 1700px) { .modal-xl { max-width: 1600px; } }
271 * Make the acquisitions search form's navigation tabs match
272 * those of the staff interface. This is a global rule because
273 * various approaches to doing it local to the acq search component
276 * 1. A rule bound to the container of the acq search tabset
277 * would make the entire background be grey.
278 * 2. ":host ::ng-deep" for a local rule works, but depends on a
279 * mechanism that is deprecated.
280 * 4. ng-tabset provides no hooks for custom styles for the nav-tab
282 * 5. Turning off view encapsulation for the acq search component
283 * breaks a lot of styles.
285 #acq-search-page ngb-tabset .nav.nav-tabs {
286 background-color: rgb(247, 247, 247);
289 /* style for negative monetary values */
290 .negative-money-amount {