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.
16 h2 {font-size: 1.25rem}
17 h3 {font-size: 1.15rem}
18 h4 {font-size: 1.05rem}
19 h5 {font-size: .95rem}
21 .small-text-1 {font-size: 85%}
24 /** Ang5 routes on clicks to href's with no values, so we can't have
25 * bare href's to force anchor styling. Use this for anchors w/ no href.
26 * TODO: should we style all of them? a:not([href]) ....
34 /** BS has flex utility classes, but none for specifying flex widths.
35 * BS class="col" is roughly equivelent to flex-1, but col-2 is not
36 * equivalent to flex-2, since col-2 really means 2/12 width. */
43 /** BS deprecated the well, but it's replacement is not quite the same.
44 * Define our own version and expand it to a full "table".
49 .well-table .well-label {
58 .well-table .well-value {
62 background-color: #f5f5f5;
64 box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
71 /* usefuf for mat-icon buttons without any background or borders */
72 .material-icon-button {
73 /* Transparent background */
75 background-color: rgba(0, 0, 0, 0.0);
77 padding-right: .25rem; /* default .5rem */
84 .input-group .mat-icon-in-button {
85 font-size: .88rem !important; /* useful for buttons that cuddle up with inputs */
89 /** default is 24px which is pretty chunky */
93 /* allow spans/labels to vertically orient with material icons */
94 .label-with-material-icon {
96 vertical-align: middle;
100 /* dropdown menu link/button with no downward carrot icon */
101 .no-dropdown-caret::after {
105 /* Default .card padding is extreme */
106 .tight-card .card-body,
107 .tight-card .list-group-item {
110 .tight-card .card-header {
114 @media all and (min-width: 800px) {
115 /* scrollable typeahead menus for full-size screens */
116 ngb-typeahead-window {
123 /* Limit size of dropdown menus and allow for scrolling */
131 /* --------------------------------------------------------------------------
132 /* Form Validation CSS - https://angular.io/guide/form-validation
133 * TODO: these colors don't fit the EG color scheme
134 * Required valid fields are left-border styled in green-ish.
135 * Invalid fields are left-border styled in red-ish.
137 .form-validated .ng-valid[required], .form-validated .ng-valid.required, input[formcontrolname].ng-valid {
138 border-left: 5px solid #78FA89;
140 .form-validated .ng-invalid:not(form), input[formcontrolname].ng-invalid {
141 border-left: 5px solid #FA787E;
145 * Brings font size down 5% to squeeze a bit more in.
147 * Fixes some bootstrap margin funkiness with checkboxes for
148 * better vertical alignment.
149 * Optional faint odd or even row striping.
163 .common-form.striped-even .row:nth-child(even) {
164 background-color: rgba(0,0,0,.03);
165 border-top: 1px solid rgba(0,0,0,.125);
166 border-bottom: 1px solid rgba(0,0,0,.125);
168 .common-form.striped-odd .row:nth-child(odd) {
169 background-color: rgba(0,0,0,.03);
170 border-top: 1px solid rgba(0,0,0,.125);
171 border-bottom: 1px solid rgba(0,0,0,.125);
176 * Only display the print container when printing
178 #eg-print-container {
182 head {display: none} /* just to be safe */
183 body div:not([id="eg-print-container"]) {display: none}
185 #eg-print-container {display: block}
186 #eg-print-container div {display: block}
187 #eg-print-container pre {border: none}
191 * Make sure that comboboxes (including org select
192 * are visible, even in nested modals.
194 * See https://github.com/ng-bootstrap/ng-bootstrap/issues/2505
195 * for the upstream issue that necessitates this.
197 body>.dropdown-menu {z-index: 2100;}
199 /* Styles for eg-daterange-select that don't work
200 * in the component's CSS file.
202 .ngb-dp-day:not(.disabled) .daterange-day.focused {
203 background-color: #e6e6e6;
205 .ngb-dp-day:not(.disabled) .daterange-day.range, .ngb-dp-day:not(.disabled) .daterange-day:hover {
206 background-color: #129a78;
210 .ngb-dp-day:not(.disabled) .daterange-day.faded {
211 background-color: #c9efe4;