1 /* --------------------------------------------------------------------------
2 * Simple default navbar style adjustements to apply the Evergreen color.
3 * TODO: style other components to match EG color scheme
5 #top-navbar.navbar-default {
6 background: -webkit-linear-gradient(#00593d, #007a54);
7 background-color: #007a54;
10 #top-navbar.navbar-default .navbar-nav>li>a {
13 #top-navbar.navbar-default .navbar-nav>li>a:hover {
16 #top-navbar.navbar-default .navbar-nav>.dropdown>a .caret {
17 border-top-color: #fff;
18 border-bottom-color: #fff;
20 #top-navbar.navbar-default .navbar-nav>.dropdown>a:hover .caret {
21 border-top-color: #ddd;
22 border-bottom-color: #ddd;
25 /* status bar along the bottom of the page ------------------------ */
26 /* decrease padding to decrease overall height */
28 /** TODO:move status bar items into navbar config entry (top-right)
29 * to avoid body padding weirdness. Or if we want a permenently
30 * visible status bar, maybe put it just below the navbar.. */
32 /* bottom padding ensures no body content is hidden behind the status
33 * bar. When content reaches the status bar a scroll bar appears */
34 /*body { padding-bottom: 26px; }*/
37 min-height:1.8em !important;
45 #status-bar > li > a {
46 padding-top:5px !important;
47 padding-bottom:5px !important;
49 .status-bar-connected {
50 color: rgb(92, 184, 92); /* success */
53 /* --------------------------------------------------------------------------
54 * Structural modifications
57 #top-content-container {
58 /* allow the primary container to occupy most of the page,
59 * but leave some narrow gutters along the side, much
60 * narrower than the default Bootstrapp container gutters.
67 /* --------------------------------------------------------------------------
68 * Temporaray local CSS required to make angular-ui-bootstrap
69 * version 0.6.0 look right with Bootstrap CSS 3.0
71 .nav, .pagination, .carousel a { cursor: pointer; }
90 /* --------------------------------------------------------------------------
91 /* Form Validation CSS - http://docs.angularjs.org/guide/forms
92 * TODO: these colors are harsh and don't fit the EG color scheme
94 .form-validated input.ng-invalid.ng-dirty {
95 background-color: #FA787E;
97 .form-validated input.ng-valid.ng-dirty {
98 background-color: #78FA89;
100 .form-validated textarea.ng-invalid.ng-dirty {
101 background-color: #FA787E;
103 .form-validated textarea.ng-valid.ng-dirty {
104 background-color: #78FA89;
107 /* --------------------------------------------------------------------------
111 /* no bootstrap way to directly disable a link. */
113 pointer-events: none;
118 #splash-nav .panel-body div {
119 padding-bottom: 10px;
122 table.list tr.selected td { /* deprecated? */
124 background-color: #F5F5F5;
127 .pad-horiz {padding : 0px 10px 0px 10px; }
128 .pad-vert {padding : 20px 0px 10px 0px;}
129 .pad-left {padding-left: 10px;}
130 .pad-right {padding-right: 10px;}
131 .pad-all-min {padding : 5px; }
132 .pad-all-min2 {padding : 2px; }
133 .pad-all {padding : 10px; }
135 #print-div { display: none; }
137 /* by default, give all tab panes some top padding */
138 .tab-pane { padding-top: 20px; }
140 .nav-pills-like-tabs {
141 border-bottom:1px solid #CCC;
145 /* sometimes you don't want buttons scrunched together -- add some margin */
149 /* button styling by Cory LaViska from
150 http://www.abeautifulsite.net/whipping-file-inputs-into-shape-with-bootstrap-3/
156 .btn-file input[type=file] {
164 filter: alpha(opacity=0);
196 /* barcode inputs are everywhere. Let's have a consistent style. */
197 .barcode { width: 16em !important; }
199 /* bootstrap alerts are heavily padded. use this to reduce */
200 .alert-less-pad {padding: 5px;}
202 /* text displayed inside a <progressbar>, typically the max/progress values */
208 /* embedded UI iframe */
212 .eg-embed-frame iframe {
219 /* ----------------------------------------------------------------------
221 * ---------------------------------------------------------------------- */
223 .eg-grid-primary-label {
229 /* odd/even row styling */
230 .eg-grid-content-body > div:nth-child(odd):not(.eg-grid-row-selected) {
231 background-color: rgb(248, 248, 248);
237 border: 1px solid #ccc;
240 .eg-grid-row:not(.eg-grid-header-row):not(.eg-grid-conf-row) {
241 /* TODO: remove, pretty sure this is no longer needed w/ nowrap */
245 .eg-grid-action-row {
247 /* margin should not have to be this large; something's up */
251 .eg-grid-header-row {
255 .eg-grid-header-row > .eg-grid-cell {
256 border-right: 1px solid #CCC;
259 /* vertically align header cell text by treating
260 each header cell as a vertical flex container */
262 flex-direction:column;
263 justify-content:flex-end;
267 /* avoid text flowing into adjacent cells */
269 text-overflow: ellipsis;
273 /* in config display, make cells more obvious */
274 .eg-grid-as-conf .eg-grid-row {
275 border: 1px solid #777;
277 .eg-grid-as-conf .eg-grid-cell {
278 border-right: 1px solid #777;
281 /* stock columns need fixed-width controls */
282 .eg-grid-cell-stock {
287 /* the conf header must be twice the stock flex */
288 .eg-grid-cell-conf-header {
293 .eg-grid-row-selected {
294 color: rgb(51, 51, 51);
295 background-color: rgb(201, 221, 225);
296 border-bottom: 1px solid #888;
299 /* Improve ::selection styling by only allowing selection on text
300 * content cells within the main body of the grid. Otherwise, the browser
301 * styles row background and text (all dark blue?) when shift-click or
302 * click-drag is used.
304 .eg-grid-content-body .eg-grid-row {
306 -moz-user-select: none;
307 -webkit-user-select: none;
309 .eg-grid-content-body .eg-grid-cell-content {
311 -moz-user-select: text;
312 -webkit-user-select: text;
314 .eg-grid-cell-content::-moz-selection {
315 color: rgb(51, 51, 51);
316 background: rgb(201, 221, 225);
317 border-bottom: 1px solid #888;
319 .eg-grid-cell-content::selection {
320 color: rgb(51, 51, 51);
321 background: rgb(201, 221, 225);
322 border-bottom: 1px solid #888;
325 .eg-grid-conf-cell-entry {
331 .eg-grid-conf-cell-entry:not(:first-child) {
332 border-top:1px solid #ccc;
336 background-color: #dff0d8;
337 border-color: #d6e9c6;
340 .eg-grid-conf-row:first-child {
341 /* alignment fix; account for one missing border */
345 .eg-grid-column-move-handle:hover {
349 .eg-grid-column-move-handle-active,
350 .eg-grid-column-move-handle-active:active {
351 /* similar to label-primary, sans padding */
352 background-color: rgb(66, 139, 202);
357 /* similar to label-success, sans padding */
358 background-color: rgb(92, 184, 92);
362 .eg-grid-column-resize-handle {
365 .eg-grid-column-resize-handle:hover {
369 /* for these to be useful, they would have to be applied
370 * to the dragover targets. not yet done */
371 .eg-grid-column-resize-handle-west {
374 .eg-grid-column-resize-handle-east {
383 /* hack to make the header columns line up with the content columns
384 when the scroll bar is visible along the right side of the content
385 columns. TODO: if this varies enough by browser, we'll need to
386 calculate the width instead. */
388 .eg-grid-scroll > .eg-grid-header-row,
389 .eg-grid-scroll > .eg-grid-conf-row {
392 .eg-grid-scroll > .eg-grid-content-body {
397 .eg-grid-column-picker {
405 /* ----------------------------------------------------------------------
407 * ---------------------------------------------------------------------- */
410 /* simple flex container for consistent-width cell-based structures */
411 .flex-container-striped > .flex-row:nth-child(odd) {
412 background-color: #f5f5f5;
414 .flex-container-bordered .flex-cell {
415 border-bottom: 1px solid #ddd;
420 .flex-row.padded div {
423 .flex-row.left-anchored > div {
428 padding: 4px; /* bootstrap default is much bigger */
431 min-height: 2.5em; /* don't let empty wells scrunch down */
432 margin-bottom: 5px; /* bootstrap default is 20px */
434 .flex-2 { /* meh, convience */
437 .flex-3 { /* meh, convience */
440 .flex-4 { /* meh, convience */
444 /* TODO: match media size to Bootstrap "md" col resizing */
445 @media all and (max-width: 800px) {
447 flex-direction: column;
450 flex-direction: column;
454 /* optional class to make 'lg' Bootstrap modals even wider */
455 @media (min-width: 768px) {
456 .eg-wide-modal .modal-lg {
461 @media all and (min-width: 800px) {
462 /* scrollable menus for full-size screens */