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