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. */
51 /** BS deprecated the well, but it's replacement is not quite the same.
52 * Define our own version and expand it to a full "table".
57 .well-table .well-label {
66 .well-table .well-label-no-flex {
74 .well-table .well-value {
78 background-color: #f5f5f5;
80 box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
87 /* usefuf for mat-icon buttons without any background or borders */
88 .material-icon-button {
89 /* Transparent background */
91 background-color: rgba(0, 0, 0, 0.0);
93 padding-right: .25rem; /* default .5rem */
100 .mat-icon-shrunk-in-button {
101 line-height: inherit;
105 .input-group .mat-icon-in-button {
106 font-size: .88rem !important; /* useful for buttons that cuddle up with inputs */
110 /** default is 24px which is pretty chunky */
114 /* allow spans/labels to vertically orient with material icons */
115 .label-with-material-icon {
116 display: inline-flex;
117 vertical-align: middle;
121 /* dropdown menu link/button with no downward carrot icon */
122 .no-dropdown-caret::after {
126 /* Default .card padding is extreme */
127 .tight-card .card-body,
128 .tight-card .list-group-item {
131 .tight-card .card-header {
135 @media all and (min-width: 800px) {
136 /* scrollable typeahead menus for full-size screens */
137 ngb-typeahead-window {
144 /* Limit size of dropdown menus and allow for scrolling */
152 /* --------------------------------------------------------------------------
153 /* Form Validation CSS - https://angular.io/guide/form-validation
154 * TODO: these colors don't fit the EG color scheme
155 * Required valid fields are left-border styled in green-ish.
156 * Invalid fields are left-border styled in red-ish.
158 .form-validated .ng-valid[required], .form-validated .ng-valid.required, input[formcontrolname].ng-valid {
159 border-left: 5px solid #78FA89;
161 .form-validated .ng-invalid:not(form), input[formcontrolname].ng-invalid {
162 border-left: 5px solid #FA787E;
166 border-left: 5px solid #FA787E;
170 * Brings font size down 5% to squeeze a bit more in.
172 * Fixes some bootstrap margin funkiness with checkboxes for
173 * better vertical alignment.
174 * Optional faint odd or even row striping.
188 .common-form.striped-even .row:nth-child(even) {
189 background-color: rgba(0,0,0,.03);
190 border-top: 1px solid rgba(0,0,0,.125);
191 border-bottom: 1px solid rgba(0,0,0,.125);
193 .common-form.striped-odd .row:nth-child(odd) {
194 background-color: rgba(0,0,0,.03);
195 border-top: 1px solid rgba(0,0,0,.125);
196 border-bottom: 1px solid rgba(0,0,0,.125);
201 * Only display the print container when printing
203 #eg-print-container {
207 head {display: none} /* just to be safe */
208 body div:not([id="eg-print-container"]) {display: none}
210 #eg-print-container {display: block}
211 #eg-print-container div {display: block}
212 #eg-print-container pre {border: none}
216 * Make sure that comboboxes (including org select
217 * are visible, even in nested modals.
219 * See https://github.com/ng-bootstrap/ng-bootstrap/issues/2505
220 * for the upstream issue that necessitates this.
222 body>.dropdown-menu {z-index: 2100;}
224 /* Styles for eg-daterange-select that don't work
225 * in the component's CSS file.
227 .ngb-dp-day:not(.disabled) .daterange-day.focused {
228 background-color: #e6e6e6;
230 .ngb-dp-day:not(.disabled) .daterange-day.range, .ngb-dp-day:not(.disabled) .daterange-day:hover {
231 background-color: #129a78;
235 .ngb-dp-day:not(.disabled) .daterange-day.faded {
236 background-color: #c9efe4;
240 /* Washed out version of the Bootstrap 'info' background.
241 * Useful for blocking out sections of a page/form without it
242 * being so intensely colorful */
244 /*background-color: rgb(204, 229, 255, 0.3);*/
247 /*background-color: rgb(217, 237, 247, 0.5);*/
249 background-color: rgba(0,0,0,.03);
252 /* Allow for larger XL dialogs */
253 @media (min-width: 1300px) { .modal-xl { max-width: 1200px; } }
254 @media (min-width: 1600px) { .modal-xl { max-width: 1500px; } }
255 @media (min-width: 1700px) { .modal-xl { max-width: 1600px; } }
258 * Make the acquisitions search form's navigation tabs match
259 * those of the staff interface. This is a global rule because
260 * various approaches to doing it local to the acq search component
263 * 1. A rule bound to the container of the acq search tabset
264 * would make the entire background be grey.
265 * 2. ":host ::ng-deep" for a local rule works, but depends on a
266 * mechanism that is deprecated.
267 * 4. ng-tabset provides no hooks for custom styles for the nav-tab
269 * 5. Turning off view encapsulation for the acq search component
270 * breaks a lot of styles.
272 #acq-search-page ngb-tabset .nav.nav-tabs {
273 background-color: rgb(247, 247, 247);
276 /* style for negative monetary values */
277 .negative-money-amount {