]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/css/style.css.tt2
LP#1452950 angularize patron registration phase I
[working/Evergreen.git] / Open-ILS / src / templates / staff / css / style.css.tt2
1 /* --------------------------------------------------------------------------
2  * Simple default navbar style adjustements to apply the Evergreen color.
3  * TODO: style other components to match EG color scheme
4  */
5 #top-navbar.navbar-default {
6     background: -webkit-linear-gradient(#00593d, #007a54);
7     background-color: #007a54;
8     color: #fff;
9 }
10 #top-navbar.navbar-default .navbar-nav>li>a {
11     color: #fff;
12 }
13 #top-navbar.navbar-default .navbar-nav>li>a:hover {
14     color: #ddd;
15 }
16 #top-navbar.navbar-default .navbar-nav>.dropdown>a .caret {
17     border-top-color: #fff;
18     border-bottom-color: #fff;
19 }
20 #top-navbar.navbar-default .navbar-nav>.dropdown>a:hover .caret {
21     border-top-color: #ddd;
22     border-bottom-color: #ddd;
23 }
24
25 /* status bar along the bottom of the page ------------------------ */
26 /* decrease padding to decrease overall height */
27
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.. */
31
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; }*/
35
36 #status-bar {
37   min-height:1.8em !important;
38 }
39 #status-bar > ul {
40   margin-right:6px; 
41 }
42 #status-bar li {
43   padding-left: 10px;
44 }
45 #status-bar > li > a {
46   padding-top:5px !important; 
47   padding-bottom:5px !important;
48 }
49 .status-bar-connected {
50   color: rgb(92, 184, 92); /* success */
51 }
52
53 /* --------------------------------------------------------------------------
54  * Structural modifications
55  */
56
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.
61      */
62     width: 95%;
63     padding-top: 70px;
64 }
65
66
67 /* --------------------------------------------------------------------------
68  * Temporaray local CSS required to make angular-ui-bootstrap
69  * version 0.6.0 look right with Bootstrap CSS 3.0
70  */
71 .nav, .pagination, .carousel a { cursor: pointer; }
72 /*
73 .modal {
74     display: block;
75     height: 0;
76     overflow: visible;
77 }
78 .modal-body:before,
79 .modal-body:after {
80     display: table;
81     content: " ";
82 }
83 .modal-header:before,
84 .modal-header:after {
85     display: table;
86     content: " ";
87 }
88 */
89
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
93  */
94 .form-validated input.ng-invalid.ng-dirty {
95   background-color: #FA787E;
96 }
97 .form-validated input.ng-valid.ng-dirty {
98   background-color: #78FA89;
99 }
100
101 /* --------------------------------------------------------------------------
102  * Local style
103  */
104
105 #splash-nav .panel-body div {
106     padding-bottom: 10px;
107 }
108
109 table.list tr.selected td { /* deprecated? */
110     color: #2a6496;
111     background-color: #F5F5F5;
112 }
113
114 .pad-horiz {padding : 0px 10px 0px 10px; }
115 .pad-vert {padding : 20px 0px 10px 0px;}
116 .pad-left {padding-left: 10px;}
117 .pad-right {padding-right: 10px;}
118 .pad-all-min {padding : 5px; }
119 .pad-all-min2 {padding : 2px; }
120 .pad-all {padding : 10px; }
121
122 #print-div { display: none; }
123
124 /* by default, give all tab panes some top padding */
125 .tab-pane { padding-top: 20px; }
126
127 .nav-pills-like-tabs {
128     border-bottom:1px solid #CCC;
129 }
130
131 .btn-pad {
132   /* sometimes you don't want buttons scrunched together -- add some margin */
133   margin-left: 10px;
134 }
135
136 /* button styling by Cory LaViska from
137    http://www.abeautifulsite.net/whipping-file-inputs-into-shape-with-bootstrap-3/
138 */
139 .btn-file {
140     position: relative;
141     overflow: hidden;
142 }
143 .btn-file input[type=file] {
144     position: absolute;
145     top: 0;
146     right: 0;
147     min-width: 100%;
148     min-height: 100%;
149     font-size: 100px;
150     text-align: right;
151     filter: alpha(opacity=0);
152     opacity: 0;
153     outline: none;
154     background: white;
155     cursor: inherit;
156     display: block;
157 }
158
159 .strong-text {
160   font-weight: bold;
161 }
162 .strong-text-1 {
163   font-size: 110%;
164   font-weight: bold;
165 }
166 .strong-text-2 {
167   font-size: 120%;
168   font-weight: bold;
169 }
170 .strong-text-3 {
171   font-size: 130%;
172   font-weight: bold;
173 }
174 .strong-text-4 {
175   font-size: 140%;
176   font-weight: bold;
177 }
178
179 .currency-input {
180   width: 8em;
181 }
182
183 /* barcode inputs are everywhere.  Let's have a consistent style. */
184 .barcode { width: 16em !important; }
185
186 /* bootstrap alerts are heavily padded.  use this to reduce */
187 .alert-less-pad {padding: 5px;}
188
189 /* text displayed inside a <progressbar>, typically the max/progress values */
190 .progressbar-text {
191   color:black;
192   white-space:nowrap;
193 }
194
195 /* embedded UI iframe */
196 .eg-embed-frame {
197   width: 100%;
198 }
199 .eg-embed-frame iframe {
200   width: 100%;
201   border: none;
202   margin: 0px;
203   padding: 0px;
204 }
205
206 /* ----------------------------------------------------------------------
207  * Grid
208  * ---------------------------------------------------------------------- */
209
210 .eg-grid-primary-label {
211   font-weight: bold;
212   font-size: 120%;
213 }
214
215 /* odd/even row styling */
216 .eg-grid-content-body > div:nth-child(odd):not(.eg-grid-row-selected) {
217   background-color: rgb(248, 248, 248);
218 }
219
220 .eg-grid-row {
221   width: 100%;
222   display: flex;
223   border: 1px solid #ccc;
224 }
225
226 .eg-grid-row:not(.eg-grid-header-row):not(.eg-grid-conf-row) {
227   /* TODO: remove, pretty sure this is no longer needed w/ nowrap */
228   /*height: 1.8em;*/
229 }
230
231 .eg-grid-action-row {
232   border: none;
233   /* margin should not have to be this large; something's up */
234   margin-bottom: 12px;
235 }
236
237 .eg-grid-header-row { 
238   font-weight: bold; 
239 }
240
241 .eg-grid-header-row > .eg-grid-cell {
242   border-right: 1px solid #CCC;
243   text-align: center;
244
245   /* vertically align header cell text by treating 
246      each header cell as a vertical flex container */
247   display:flex;
248   flex-direction:column;
249   justify-content:flex-end;
250 }
251
252 .eg-grid-cell {
253   /* avoid text flowing into adjacent cells */
254   white-space: nowrap;
255   text-overflow: ellipsis;
256   overflow: hidden;
257 }
258
259 /* in config display, make cells more obvious */
260 .eg-grid-as-conf .eg-grid-row {
261   border: 1px solid #777;
262 }
263 .eg-grid-as-conf .eg-grid-cell {
264   border-right: 1px solid #777;
265 }
266
267 /* stock columns need fixed-width controls */
268 .eg-grid-cell-stock {
269   width: 2.2em;
270   text-align: center;
271 }
272
273 /* the conf header must be twice the stock flex */
274 .eg-grid-cell-conf-header {
275   width: 4.4em;
276   font-weight: bold;
277 }
278
279 .eg-grid-row-selected {
280   color: rgb(51, 51, 51);
281   background-color: rgb(201, 221, 225);
282   border-bottom: 1px solid #888;
283 }
284
285 /* Improve ::selection styling by only allowing selection on text
286  * content cells within the main body of the grid.  Otherwise, the browser 
287  * styles row background and text (all dark blue?) when shift-click or 
288  * click-drag is used.
289  */
290 .eg-grid-content-body .eg-grid-row {
291   user-select:none;
292   -moz-user-select: none;
293   -webkit-user-select: none;
294 }
295 .eg-grid-content-body .eg-grid-cell-content {
296   user-select:text;
297   -moz-user-select: text;
298   -webkit-user-select: text;
299 }
300 .eg-grid-cell-content::-moz-selection {
301   color: rgb(51, 51, 51);
302   background: rgb(201, 221, 225);
303   border-bottom: 1px solid #888;
304 }
305 .eg-grid-cell-content::selection {
306   color: rgb(51, 51, 51);
307   background: rgb(201, 221, 225);
308   border-bottom: 1px solid #888;
309 }
310
311 .eg-grid-conf-cell-entry {
312   width:98%;
313   text-align:center;
314   padding: 3px;
315 }
316
317 .eg-grid-conf-cell-entry:not(:first-child) {
318   border-top:1px solid #ccc;
319 }
320
321 .eg-grid-conf-row {
322   background-color: #dff0d8;
323   border-color: #d6e9c6;
324 }
325
326 .eg-grid-conf-row:first-child {
327   /* alignment fix; account for one missing border */
328   padding-right: 1px;
329 }
330
331 .eg-grid-column-move-handle:hover {
332   cursor: move;
333 }
334
335 .eg-grid-column-move-handle-active,
336 .eg-grid-column-move-handle-active:active {
337   /* similar to label-primary, sans padding */
338   background-color: rgb(66, 139, 202);
339   color: #fff;
340 }
341
342 .eg-grid-col-hover {
343   /* similar to label-success, sans padding */
344   background-color: rgb(92, 184, 92);
345   color: #fff;
346 }
347
348 .eg-grid-column-resize-handle {
349   height: 100%;
350 }
351 .eg-grid-column-resize-handle:hover {
352   cursor: col-resize;
353 }
354
355 /* for these to be useful, they would have to be applied 
356  * to the dragover targets.  not yet done */
357 .eg-grid-column-resize-handle-west {
358   cursor: w-resize;
359 }
360 .eg-grid-column-resize-handle-east {
361   cursor: e-resize;
362 }
363
364 .eg-grid-menu-item {
365   margin-right: 10px;
366 }
367
368
369 /* hack to make the header columns line up with the content columns
370    when the scroll bar is visible along the right side of the content
371    columns. TODO: if this varies enough by browser, we'll need to
372    calculate the width instead. */
373 /*
374 .eg-grid-scroll > .eg-grid-header-row, 
375 .eg-grid-scroll > .eg-grid-conf-row { 
376   padding-right: 15px;
377 }
378 .eg-grid-scroll > .eg-grid-content-body {
379   overflow-y:scroll; 
380   height: 600px; 
381 }
382 */
383 .eg-grid-column-picker {
384   height: auto;
385   max-height: 400px;
386   overflow: auto;
387   box-shadow: none;
388 }
389
390
391 /* ----------------------------------------------------------------------
392  * /Grid
393  * ---------------------------------------------------------------------- */
394
395
396 /* simple flex container for consistent-width cell-based structures */
397 .flex-container-striped > .flex-row:nth-child(odd) {
398   background-color: #f5f5f5;
399 }
400 .flex-container-bordered .flex-cell {
401   border-bottom: 1px solid #ddd;
402 }
403 .flex-row {
404   display: flex;
405 }
406 .flex-row.padded div {
407   padding: 5px;
408 }
409 .flex-row.left-anchored > div {
410   margin-right: 10px;
411 }
412 .flex-cell {
413   flex: 1;
414   padding: 4px; /* bootstrap default is much bigger */
415 }
416 .flex-cell.well {
417   min-height: 2.5em; /* don't let empty wells scrunch down */
418   margin-bottom: 5px; /* bootstrap default is 20px */
419 }
420 .flex-2 { /* meh, convience */
421   flex: 2;
422 }
423 .flex-3 { /* meh, convience */
424   flex: 3;
425 }
426 .flex-4 { /* meh, convience */
427   flex: 4;
428 }
429
430 /* TODO: match media size to Bootstrap "md" col resizing */
431 @media all and (max-width: 800px) {
432   .flex-row {
433     flex-direction: column;
434   }
435   .eg-grid-row {
436     flex-direction: column;
437   }
438 }
439
440 /* optional class to make 'lg' Bootstrap modals even wider */
441 @media (min-width: 768px) {
442   .eg-wide-modal .modal-lg {
443     width: 95%;
444   }
445 }
446
447 @media all and (min-width: 800px) {
448     /* scrollable menus for full-size screens */
449     .scrollable-menu {
450         height: auto;
451         max-height: 200px;
452         overflow-x: hidden;
453     }
454 }
455
456 [%# 
457 vim: ft=css 
458 %]