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/material-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-value {
70 background-color: #f5f5f5;
72 box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
79 /* usefuf for mat-icon buttons without any background or borders */
80 .material-icon-button {
81 /* Transparent background */
83 background-color: rgba(0, 0, 0, 0.0);
85 padding-right: .25rem; /* default .5rem */
92 .mat-icon-shrunk-in-button {
97 .input-group .mat-icon-in-button {
98 font-size: .88rem !important; /* useful for buttons that cuddle up with inputs */
102 /** default is 24px which is pretty chunky */
106 /* allow spans/labels to vertically orient with material icons */
107 .label-with-material-icon {
108 display: inline-flex;
109 vertical-align: middle;
113 /* dropdown menu link/button with no downward carrot icon */
114 .no-dropdown-caret::after {
118 /* Default .card padding is extreme */
119 .tight-card .card-body,
120 .tight-card .list-group-item {
123 .tight-card .card-header {
127 @media all and (min-width: 800px) {
128 /* scrollable typeahead menus for full-size screens */
129 ngb-typeahead-window {
136 /* Limit size of dropdown menus and allow for scrolling */
144 /* --------------------------------------------------------------------------
145 /* Form Validation CSS - https://angular.io/guide/form-validation
146 * TODO: these colors don't fit the EG color scheme
147 * Required valid fields are left-border styled in green-ish.
148 * Invalid fields are left-border styled in red-ish.
150 .form-validated .ng-valid[required], .form-validated .ng-valid.required, input[formcontrolname].ng-valid {
151 border-left: 5px solid #78FA89;
153 .form-validated .ng-invalid:not(form), input[formcontrolname].ng-invalid {
154 border-left: 5px solid #FA787E;
158 * Brings font size down 5% to squeeze a bit more in.
160 * Fixes some bootstrap margin funkiness with checkboxes for
161 * better vertical alignment.
162 * Optional faint odd or even row striping.
176 .common-form.striped-even .row:nth-child(even) {
177 background-color: rgba(0,0,0,.03);
178 border-top: 1px solid rgba(0,0,0,.125);
179 border-bottom: 1px solid rgba(0,0,0,.125);
181 .common-form.striped-odd .row:nth-child(odd) {
182 background-color: rgba(0,0,0,.03);
183 border-top: 1px solid rgba(0,0,0,.125);
184 border-bottom: 1px solid rgba(0,0,0,.125);
189 * Only display the print container when printing
191 #eg-print-container {
195 head {display: none} /* just to be safe */
196 body div:not([id="eg-print-container"]) {display: none}
198 #eg-print-container {display: block}
199 #eg-print-container div {display: block}
200 #eg-print-container pre {border: none}
204 * Make sure that comboboxes (including org select
205 * are visible, even in nested modals.
207 * See https://github.com/ng-bootstrap/ng-bootstrap/issues/2505
208 * for the upstream issue that necessitates this.
210 body>.dropdown-menu {z-index: 2100;}
212 /* Styles for eg-daterange-select that don't work
213 * in the component's CSS file.
215 .ngb-dp-day:not(.disabled) .daterange-day.focused {
216 background-color: #e6e6e6;
218 .ngb-dp-day:not(.disabled) .daterange-day.range, .ngb-dp-day:not(.disabled) .daterange-day:hover {
219 background-color: #129a78;
223 .ngb-dp-day:not(.disabled) .daterange-day.faded {
224 background-color: #c9efe4;
228 /* Allow for larger XL dialogs */
229 @media (min-width: 1300px) { .modal-xl { max-width: 1200px; } }
230 @media (min-width: 1600px) { .modal-xl { max-width: 1500px; } }
231 @media (min-width: 1700px) { .modal-xl { max-width: 1600px; } }