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 .input-group .mat-icon-in-button {
93 font-size: .88rem !important; /* useful for buttons that cuddle up with inputs */
97 /** default is 24px which is pretty chunky */
101 /* allow spans/labels to vertically orient with material icons */
102 .label-with-material-icon {
103 display: inline-flex;
104 vertical-align: middle;
108 /* dropdown menu link/button with no downward carrot icon */
109 .no-dropdown-caret::after {
113 /* Default .card padding is extreme */
114 .tight-card .card-body,
115 .tight-card .list-group-item {
118 .tight-card .card-header {
122 @media all and (min-width: 800px) {
123 /* scrollable typeahead menus for full-size screens */
124 ngb-typeahead-window {
131 /* Limit size of dropdown menus and allow for scrolling */
139 /* --------------------------------------------------------------------------
140 /* Form Validation CSS - https://angular.io/guide/form-validation
141 * TODO: these colors don't fit the EG color scheme
142 * Required valid fields are left-border styled in green-ish.
143 * Invalid fields are left-border styled in red-ish.
145 .form-validated .ng-valid[required], .form-validated .ng-valid.required, input[formcontrolname].ng-valid {
146 border-left: 5px solid #78FA89;
148 .form-validated .ng-invalid:not(form), input[formcontrolname].ng-invalid {
149 border-left: 5px solid #FA787E;
153 * Brings font size down 5% to squeeze a bit more in.
155 * Fixes some bootstrap margin funkiness with checkboxes for
156 * better vertical alignment.
157 * Optional faint odd or even row striping.
171 .common-form.striped-even .row:nth-child(even) {
172 background-color: rgba(0,0,0,.03);
173 border-top: 1px solid rgba(0,0,0,.125);
174 border-bottom: 1px solid rgba(0,0,0,.125);
176 .common-form.striped-odd .row:nth-child(odd) {
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);
184 * Only display the print container when printing
186 #eg-print-container {
190 head {display: none} /* just to be safe */
191 body div:not([id="eg-print-container"]) {display: none}
193 #eg-print-container {display: block}
194 #eg-print-container div {display: block}
195 #eg-print-container pre {border: none}
199 * Make sure that comboboxes (including org select
200 * are visible, even in nested modals.
202 * See https://github.com/ng-bootstrap/ng-bootstrap/issues/2505
203 * for the upstream issue that necessitates this.
205 body>.dropdown-menu {z-index: 2100;}
207 /* Styles for eg-daterange-select that don't work
208 * in the component's CSS file.
210 .ngb-dp-day:not(.disabled) .daterange-day.focused {
211 background-color: #e6e6e6;
213 .ngb-dp-day:not(.disabled) .daterange-day.range, .ngb-dp-day:not(.disabled) .daterange-day:hover {
214 background-color: #129a78;
218 .ngb-dp-day:not(.disabled) .daterange-day.faded {
219 background-color: #c9efe4;