]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/css/style.css.tt2
lp1801947 eg-help-popover accessibility
[Evergreen.git] / Open-ILS / src / templates / staff / css / style.css.tt2
1 /* Create some padding at bottom of the page for breathing room */
2 body { padding-bottom: 50px; }
3
4 /* --------------------------------------------------------------------------
5  * Simple default navbar style adjustements to apply the Evergreen color.
6  * TODO: style other components to match EG color scheme
7  */
8 #top-navbar.navbar-default {
9     background: -webkit-linear-gradient(#00593d, #007a54);
10     background-color: #007a54;
11     color: #fff;
12 }
13 #top-navbar.navbar-default .navbar-nav>li>a {
14     color: #fff;
15 }
16 #top-navbar.navbar-default .navbar-nav>li>a:hover {
17     color: #ddd;
18 }
19 #top-navbar.navbar-default .navbar-nav > .open > a,
20 #top-navbar.navbar-default .navbar-nav > .open > a:focus,
21 #top-navbar.navbar-default .navbar-nav > .open > a:hover {
22     background-color: #7a7a7a;
23 }
24 #top-navbar.navbar-default .navbar-nav>.dropdown>a .caret {
25     border-top-color: #fff;
26     border-bottom-color: #fff;
27 }
28 #top-navbar.navbar-default .navbar-nav>.dropdown>a:hover .caret {
29     border-top-color: #ddd;
30     border-bottom-color: #ddd;
31 }
32
33 /* Hatch / WebSockets / Etc. connectivity status indicator */
34 .connect-status-ok {
35   color: rgb(92, 184, 92); /* success */
36 }
37
38 body {
39     color: #000; /* note: this is not comprehensive; changing Bootstrap's
40                     default text color from #333 to #000 would require
41                     more work */
42 }
43
44 /* --------------------------------------------------------------------------
45  * Structural modifications
46  */
47
48 #top-content-container {
49     /* allow the primary container to occupy most of the page,
50      * but leave some narrow gutters along the side, much 
51      * narrower than the default Bootstrapp container gutters.
52      */
53     width: 95%;
54     padding-top: 70px;
55 }
56
57
58 /* --------------------------------------------------------------------------
59  * Temporaray local CSS required to make angular-ui-bootstrap
60  * version 0.6.0 look right with Bootstrap CSS 3.0
61  */
62 .nav, .pagination, .carousel a { cursor: pointer; }
63 /*
64 .modal {
65     display: block;
66     height: 0;
67     overflow: visible;
68 }
69 .modal-body:before,
70 .modal-body:after {
71     display: table;
72     content: " ";
73 }
74 .modal-header:before,
75 .modal-header:after {
76     display: table;
77     content: " ";
78 }
79 */
80
81 /* --------------------------------------------------------------------------
82 /* Form Validation CSS - http://docs.angularjs.org/guide/forms
83  * TODO: these colors are harsh and don't fit the EG color scheme
84  */
85 .form-validated input.ng-invalid.ng-dirty {
86   background-color: #FA787E;
87 }
88 .form-validated input.ng-valid.ng-dirty {
89   background-color: #78FA89;
90 }
91 .form-validated textarea.ng-invalid.ng-dirty {
92   background-color: #FA787E;
93 }
94 .form-validated textarea.ng-valid.ng-dirty {
95   background-color: #78FA89;
96 }
97
98 /* --------------------------------------------------------------------------
99  * Local style
100  */
101
102 /* change default link color to provide adequate contrast */
103
104 a {
105    color: #286090;
106 }
107
108
109 /* no bootstrap way to directly disable a link.  */
110 a.disabled {
111   pointer-events: none;
112   cursor: default;
113   color: #888 !important;
114 }
115 .disabled {
116   cursor: not-allowed;
117 }
118
119 #splash-nav .panel-body div {
120     padding-bottom: 10px;
121 }
122
123 table.list tr.selected td { /* deprecated? */
124     color: #2a6496;
125     background-color: #F5F5F5;
126 }
127
128 .pad-horiz {padding : 0px 10px 0px 10px; }
129 .pad-vert {padding : 20px 0px 10px 0px;}
130 .pad-left {padding-left: 10px;}
131 .pad-right {padding-right: 10px;}
132 .pad-right-min {padding-right: 5px;}
133 .pad-all-min {padding : 5px; }
134 .pad-all-min2 {padding : 2px; }
135 .pad-all {padding : 10px; }
136
137 #print-div { display: none; }
138
139 /* by default, give all tab panes some top padding */
140 .tab-pane { padding-top: 20px; }
141
142 .nav-pills-like-tabs {
143     border-bottom:1px solid #CCC;
144 }
145
146 .btn-pad {
147   /* sometimes you don't want buttons scrunched together -- add some margin */
148   margin-left: 10px;
149 }
150
151 /* button styling by Cory LaViska from
152    http://www.abeautifulsite.net/whipping-file-inputs-into-shape-with-bootstrap-3/
153 */
154 .btn-file {
155     position: relative;
156     overflow: hidden;
157 }
158 .btn-file input[type=file] {
159     position: absolute;
160     top: 0;
161     right: 0;
162     min-width: 100%;
163     min-height: 100%;
164     font-size: 100px;
165     text-align: right;
166     filter: alpha(opacity=0);
167     opacity: 0;
168     outline: none;
169     background: white;
170     cursor: inherit;
171     display: block;
172 }
173
174 .strong-text {
175   font-weight: bold;
176 }
177 .strong-text-1 {
178   font-size: 110%;
179   font-weight: bold;
180 }
181 .strong-text-2 {
182   font-size: 120%;
183   font-weight: bold;
184 }
185 .strong-text-3 {
186   font-size: 130%;
187   font-weight: bold;
188 }
189 .strong-text-4 {
190   font-size: 140%;
191   font-weight: bold;
192 }
193
194 .currency-input {
195   width: 8em;
196 }
197
198 /* barcode inputs are everywhere.  Let's have a consistent style. */
199 .barcode { width: 16em !important; }
200
201 /* use strike-through to mark something that has been acknowledged,
202    e.g., a item alert */
203 .acknowledged { text-decoration: line-through; }
204
205 /* eg-help-popover directive doesn't need a border around its <button> */
206 .no-border.glyphicon-question-sign { border-color: #fff; }
207
208 /* bootstrap alerts are heavily padded.  use this to reduce */
209 .alert-less-pad {padding: 5px;}
210
211 /* text displayed inside a <progressbar>, typically the max/progress values */
212 .progressbar-text {
213   color:black;
214   white-space:nowrap;
215 }
216
217 /* embedded UI iframe */
218 .eg-embed-frame {
219   width: 100%;
220 }
221 .eg-embed-frame iframe {
222   width: 100%;
223   border: none;
224   margin: 0px;
225   padding: 0px;
226 }
227
228 /* Useful for grid-like things that aren't proper grids.
229  * Mimics the grids color scheme. */
230 .selected-row {
231   background-color: rgb(248, 248, 248);
232 }
233
234 /* Reduces the vertical space added by form-group's.  Especially useful
235  * for tall modal windows.
236  */
237 .tight-vert-form .form-group {
238   margin-bottom: 5px;
239
240
241
242 /* ----------------------------------------------------------------------
243  * Grid
244  * ---------------------------------------------------------------------- */
245
246 .eg-grid-primary-label {
247   font-weight: bold;
248   font-size: 120%;
249   margin-right: 2em;
250 }
251
252 /* odd/even row styling */
253 .eg-grid-content-body > div:nth-child(odd):not(.eg-grid-row-selected) {
254   background-color: rgb(248, 248, 248);
255 }
256
257 .eg-grid-row {
258   width: 100%;
259   display: flex;
260   border: 1px solid #ccc;
261 }
262
263 .eg-grid-row:not(.eg-grid-header-row):not(.eg-grid-conf-row) {
264   /* TODO: remove, pretty sure this is no longer needed w/ nowrap */
265   /*height: 1.8em;*/
266 }
267
268 .eg-grid-action-row {
269   border: none;
270   /* margin should not have to be this large; something's up */
271   margin-bottom: 12px;
272 }
273
274 .eg-grid-header-row { 
275   font-weight: bold; 
276 }
277
278 .eg-grid-header-row > .eg-grid-cell {
279   border-right: 1px solid #CCC;
280   text-align: center;
281
282   /* vertically align header cell text by treating 
283      each header cell as a vertical flex container */
284   display:flex;
285   flex-direction:column;
286   justify-content:flex-end;
287 }
288
289 .eg-grid-cell {
290   /* avoid text flowing into adjacent cells */
291   white-space: nowrap;
292   text-overflow: ellipsis;
293   overflow: hidden;
294 }
295
296 /* in config display, make cells more obvious */
297 .eg-grid-as-conf .eg-grid-row {
298   border: 1px solid #777;
299 }
300 .eg-grid-as-conf .eg-grid-cell {
301   border-right: 1px solid #777;
302 }
303
304 /* stock columns need fixed-width controls */
305 .eg-grid-cell-stock {
306   width: 2.2em;
307   text-align: center;
308 }
309
310 /* the conf header must be twice the stock flex */
311 .eg-grid-cell-conf-header {
312   width: 4.4em;
313   font-weight: bold;
314 }
315
316 .eg-grid-cell-stock-status {
317   width: 4.4em;
318   text-align: center;
319 }
320
321 /* the conf header must be 4x the stock width when status is present */
322 .eg-grid-cell-conf-header-status {
323   width: 8.8em;
324   font-weight: bold;
325 }
326
327 .eg-grid-row-selected {
328   color: #000;
329   background-color: rgb(201, 221, 225);
330   border-bottom: 1px solid #888;
331 }
332
333 /* Improve ::selection styling by only allowing selection on text
334  * content cells within the main body of the grid.  Otherwise, the browser 
335  * styles row background and text (all dark blue?) when shift-click or 
336  * click-drag is used.
337  */
338 .eg-grid-content-body .eg-grid-row {
339   user-select:none;
340   -moz-user-select: none;
341   -webkit-user-select: none;
342 }
343 .eg-grid-content-body .eg-grid-cell-content {
344   user-select:text;
345   -moz-user-select: text;
346   -webkit-user-select: text;
347 }
348 .eg-grid-cell-content::-moz-selection {
349   color: #000;
350   background: rgb(201, 221, 225);
351   border-bottom: 1px solid #888;
352 }
353
354 /* patron bill row-highlighting */
355 .overdue-row {
356   color: #FFF;
357   background-color: #EB0000 !important;
358 }
359 .overdue-row a:link, .overdue-row a:visited, .lost-row a:link, .lost-row a:visited {
360   color: #B8ECFF;
361 }
362
363 .overdue-row a:visited, .lost-row a:visited {
364   color: #DDDDDD;
365 }
366
367 .longoverdue-row {
368   color: #000;
369   background-color: #FFE1A8 !important;
370 }
371 .lost-row {
372   color: #FFF;
373   background-color: #800000 !important;
374
375 }
376 .eg-grid-row-selected.overdue-row {
377   background-color: #CF0000 !important;
378 }
379 .eg-grid-row-selected.longoverdue-row {
380   background-color: #FFCF75 !important;
381 }
382 .eg-grid-row-selected.lost-row {
383   background-color: #5C0000 !important;
384 }
385
386 .eg-grid-cell-content::selection {
387   color: #000;
388   background: rgb(201, 221, 225);
389   border-bottom: 1px solid #888;
390 }
391 .eg-grid-cell-content a {
392   text-decoration: underline;
393 }
394
395 .eg-grid-conf-cell-entry {
396   width:98%;
397   text-align:center;
398   padding: 3px;
399 }
400
401 .eg-grid-conf-cell-entry:not(:first-child) {
402   border-top:1px solid #ccc;
403 }
404
405 .eg-grid-conf-row {
406   background-color: #dff0d8;
407   border-color: #d6e9c6;
408 }
409
410 .eg-grid-conf-row:first-child {
411   /* alignment fix; account for one missing border */
412   padding-right: 1px;
413 }
414
415 .eg-grid-column-move-handle:hover {
416   cursor: move;
417 }
418
419 .eg-grid-column-move-handle-active,
420 .eg-grid-column-move-handle-active:active {
421   /* similar to label-primary, sans padding */
422   background-color: rgb(66, 139, 202);
423   color: #fff;
424 }
425
426 .eg-grid-col-hover {
427   /* similar to label-success, sans padding */
428   background-color: rgb(92, 184, 92);
429   color: #fff;
430 }
431
432 .eg-grid-column-resize-handle {
433   height: 100%;
434 }
435 .eg-grid-column-resize-handle:hover {
436   cursor: col-resize;
437 }
438
439 /* for these to be useful, they would have to be applied 
440  * to the dragover targets.  not yet done */
441 .eg-grid-column-resize-handle-west {
442   cursor: w-resize;
443 }
444 .eg-grid-column-resize-handle-east {
445   cursor: e-resize;
446 }
447
448 .eg-grid-column-last-mod {
449   background-color: #78FA89;
450 }
451
452 .eg-grid-menu-item {
453   margin-right: 10px;
454 }
455
456
457 /* hack to make the header columns line up with the content columns
458    when the scroll bar is visible along the right side of the content
459    columns. TODO: if this varies enough by browser, we'll need to
460    calculate the width instead. */
461 /*
462 .eg-grid-scroll > .eg-grid-header-row, 
463 .eg-grid-scroll > .eg-grid-conf-row { 
464   padding-right: 15px;
465 }
466 .eg-grid-scroll > .eg-grid-content-body {
467   overflow-y:scroll; 
468   height: 600px; 
469 }
470 */
471 .eg-grid-column-picker {
472   height: auto;
473   max-height: 400px;
474   overflow: auto;
475   box-shadow: none;
476 }
477
478 .eg-grid-tooltip {
479   font-size: 110%;
480 }
481 /* avoid visited "blue" links over black background */
482 .eg-grid-tooltip a {
483   color: white;
484 }
485
486
487 /* ----------------------------------------------------------------------
488  * /Grid
489  * ---------------------------------------------------------------------- */
490
491
492 /* simple flex container for consistent-width cell-based structures */
493 .flex-container-striped > .flex-row:nth-child(odd) {
494   background-color: #f5f5f5;
495 }
496 .flex-container-bordered .flex-cell {
497   border-bottom: 1px solid #ddd;
498 }
499 .flex-row {
500   display: flex;
501 }
502 .flex-row.padded div {
503   padding: 5px;
504 }
505 .flex-row.left-anchored > div {
506   margin-right: 10px;
507 }
508 .flex-cell {
509   flex: 1;
510   padding: 4px; /* bootstrap default is much bigger */
511 }
512 .flex-cell.well {
513   min-height: 2.5em; /* don't let empty wells scrunch down */
514   margin-bottom: 5px; /* bootstrap default is 20px */
515 }
516 .flex-2 { /* meh, convience */
517   flex: 2;
518 }
519 .flex-3 { /* meh, convience */
520   flex: 3;
521 }
522 .flex-4 { /* meh, convience */
523   flex: 4;
524 }
525
526 /* 768px equals Bootstrap "md" col resizing */
527 @media all and (max-width: 768px) {
528   .flex-row {
529     flex-direction: column;
530   }
531   .eg-grid-row {
532     flex-direction: column;
533   }
534   #top-navbar.navbar-default .navbar-nav>li>ul>li>a {
535     color: #eee;
536   }
537   #top-navbar.navbar-default .navbar-nav>li>ul>li>a:hover {
538     color: #000;
539   }
540 }
541
542 /* optional class to make 'lg' Bootstrap modals even wider */
543 @media (min-width: 768px) {
544   .eg-wide-modal .modal-lg {
545     width: 95%;
546   }
547 }
548
549 @media all and (min-width: 768px) {
550     /* scrollable menus for full-size screens */
551     .scrollable-menu {
552         height: auto;
553         max-height: 400px;
554         overflow-x: hidden;
555     }
556 }
557
558 .eg-modal-progress progress {
559   width: 100%;
560   height: 25px;
561 }
562
563 .eg-grid-columns-modal-body {
564   max-height: 400px;
565   overflow: scroll;
566 }
567
568 .eg-grid-columns-modal-body .row {
569   padding: 2px 0px 2px 0px;
570   border-bottom: 1px solid #aaa;
571 }
572
573 .eg-grid-columns-modal-body .visible {
574   color: #000;
575   background-color: rgb(201, 221, 225);
576   border-bottom: 1px solid #888;
577 }
578
579
580 eg-grid-field {
581   display: none;
582 }
583
584 .eg-grid-tooltip .tooltip-inner {
585   max-width: 400px;
586 }
587
588 [%# 
589 vim: ft=css 
590 %]