-
Notifications
You must be signed in to change notification settings - Fork 123
/
default.css
866 lines (714 loc) · 15.2 KB
/
default.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
/* Copyright (c) Anuko International Ltd. https://www.anuko.com
License: See license.txt */
body {
margin: 0px;
font-size: 10pt;
font-family: Verdana, sans-serif;
background-color: white;
}
/* logo on top of pages */
div.logo {
padding: .5rem;
text-align: center;
background-color: #a6ccf7;
}
/* top menu bar for large screens */
div.top-menu-large-screen {
background-color: black;
display: block;
}
/* submenu for large screens */
div.top-submenu-large-screen {
background-color: #d9d9d9;
display: block;
}
/* top menu for small screens */
div.top-menu-small-screen {
background-color: black;
display: none;
}
/* top menu items */
div.top-menu-large-screen a, div.top-menu-small-screen a {
font-size: 1rem;
font-weight: bold;
color: white;
margin: .1rem .2rem .1rem .2rem;
}
/* top menu tables */
.top-menu-table, .top-submenu-table {
margin-left: auto;
margin-right: auto;
}
/* top submenu items */
.top-submenu-large-screen a {
font-size: 1rem;
color: #444444;
margin: .1rem .2rem .1rem .2rem;
}
/* page title div */
div.page-title {
font-size: 12pt;
font-weight: bold;
color: silver;
text-align: center;
padding: .25rem;
border-bottom: 1px solid lightgray;
margin-bottom: .2rem;
}
/* user details div */
div.user-details {
text-align: center;
padding: .2rem;
}
/* page errors div */
.page-errors {
margin-top: .5rem;
text-align: center;
color: red;
}
/* page messages div */
.page-messages {
margin-top: .5rem;
text-align: center;
color: blue;
}
/* page content div */
.page-content {
text-align: center;
}
/* vertical separator for controls on forms for both large and small screens */
.form-control-separator {
height: .5rem;
}
/* vertical separator for controls on small screens */
.small-screen-form-control-separator {
height: .25rem;
display: none;
}
/* "about" text div on login page */
div#LoginAboutText {
padding: 1rem;
margin-left:auto;
margin-right:auto;
}
/* default domain text div for ldap login */
#ldapDefaultDomain {
color: #777777;
}
/* page hint div to display on top of some pages to clarify things */
div.page-hint {
margin: .5rem;
}
/* project rate table for user add and user edit pages */
.project-rate-table {
width: 300px;
border-collapse: collapse;
}
.project-rate-table td {
padding: .2rem;
}
/* a table to display controls centered horizontally */
.centered-table {
display: inline-block;
margin-top: .5rem;
margin-left: auto;
margin-right: auto;
}
/* a table to hold things that may not fit into available screen width */
.x-scrollable-table {
display: inline-block;
margin-top: .5rem;
margin-left: auto;
margin-right: auto;
border-collapse: collapse;
}
/* For printing large tables that do not fit into one page, we have to change the display
property to "block" and also use "break-before: avoid;". This eliminates a page break between
header and large table on print previews. I could not accomplish this with inline-block
because break-before is apparently ignored for inline-block elements.
inline-block above in itself is needed for nice horizontal centering on screen.
A side effect of this is that printed tables are not horizontally centered. */
@media print
{
.x-scrollable-table { display: block; break-before: avoid; break-after: auto; }
/* Not sure if we need this, keep commented out for now.
.x-scrollable-table tr { page-break-inside:avoid; page-break-after:auto; }
.x-scrollable-table td { page-break-inside:avoid; page-break-after:auto; } */
}
/* th in x-scrollable-table */
.x-scrollable-table th {
white-space: nowrap;
padding: .25rem;
}
/* td in x-scrollable-table */
.x-scrollable-table td {
padding: .25rem;
}
/* alternating row background in x-scrollable-table */
.x-scrollable-table tr:nth-child(even) {background: #ffffff}
.x-scrollable-table tr:nth-child(odd) {background: #f5f5f5}
/* a text cell in tables */
.text-cell {
text-align: left;
}
/* time cell in tables */
.time-cell {
text-align: right;
}
/* number cell in tables */
.number-cell {
text-align: right;
}
/* date cell in tables */
.date-cell {
white-space: nowrap;
}
/* money value cell in tables */
.money-value-cell {
text-align: right;
white-space: nowrap;
}
/* yes-no cell in tables */
.yes-no-cell {
text-align: middle;
}
/* text cell for note header when we display notes on separate rows */
.note-header-cell {
text-align: right;
}
/* cell containing text labels */
.label-cell {
text-align: right;
}
/* cell containign a subtotal */
.subtotal-cell {
font-weight: bold;
}
/* control labels for large screens */
.large-screen-label {
text-align: right;
vertical-align: middle;
display: table-cell;
}
/* control labels for small screens */
.small-screen-label {
text-align: left;
display: none;
}
/* list of items displayed in a chart on large screens */
.large-screen-chart-items-list {
display: table-cell;
}
/* list of items displayed in a chart on small screens */
.small-screen-chart-items-list {
display: none;
}
/* a div to display a chart in */
div.chart {
padding-left: 1rem;
padding-right: 1rem;
}
/* a table to annotate items from chart picture */
.chart-items-list-table {
border-spacing: .2rem;
}
/* a div to display a list of records in */
div.record-list {
margin: 1rem;
}
/* input controls */
.page-content input {
border-radius: 4px;
border: 1px solid #c9c9c9;
padding: .4rem;
}
/* input controls with focus on them */
.page-content input:focus {
background-color: yellow;
border: 1px solid black;
outline: none;
}
/* a table cell containing input control */
.td-with-input {
text-align: left;
}
/* a table cell containing input control */
.td-with-horizontally-centered-input {
text-align: middle;
}
/* a table cell containing a set ov vertically stacked checkboxes */
.td-with-checkboxes {
text-align: left;
width: 300px;
}
/* div containing how to contribute message */
div.contribute-msg {
text-align: center;
margin-top: 2rem;
padding: .2rem;
background-color: #eeeeee;
}
/* div containing app version and copyright info */
div.version-and-copyright {
text-align: center;
padding: .5rem;
}
/* img in td in centered-table, ex: now icons */
.centered-table td img {
vertical-align: middle;
}
/* span for what is it icon image */
span.what-is-it-img {
display: none;
}
/* span for what is it text */
span.what-is-it-text {
display: inline-block;
vertical-align: middle;
}
/* span for what format example */
span.format-example {
color: #777777;
}
/* buttons */
input[type="submit"], input[type="button"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
/* input controls */
input[type="text"], input[type="password"], input[type="file"] {
width: 220px;
}
/* text field input with an associated hint */
input.text-field-with-hint[type="text"] {
width: 136px;
}
/* project rate input control */
input[type="text"].project-rate-field {
width: 50px;
}
/* project rate input control */
input[type="text"].quota-field {
width: 70px;
}
/* project rate input control */
input[type="text"].short-text-field {
width: 40px;
}
/* dropdown control */
.dropdown-field {
width: 236px;
}
/* dropdown control with an associated format example */
.dropdown-field-with-format-example {
width: 136px;
}
/* dropdown control with an associated button */
.dropdown-field-with-button {
width: 136px;
}
/* a short dropdown control for small strings */
.dropdown-field-short {
width: 85px;
}
/* textareas for fields */
#description, #address, #item_name, #comment, #custom_css, #custom_translation, #content {
width: 220px;
border-radius: 4px;
border: 1px solid #c9c9c9;
padding: .4rem;
}
/* textareas with focus */
#description:focus, #address:focus, #item_name:focus, #comment:focus, #custom_css:focus, #custom_translation:focus, #content:focus {
background-color: yellow;
border: 1px solid black;
outline: none;
}
/* textarea for note field */
#note {
width: 100%;
margin: 0;
height: 4rem;
resize: none;
border-radius: 4px;
border: 1px solid #c9c9c9;
padding: .4rem;
}
/* note field with focus */
#note:focus {
background-color: yellow;
border: 1px solid black;
outline: none;
}
/* chart image */
.chart-image {
width: 300px;
height: 300px;
}
/* chart color cell for annotations */
.chart-color-cell {
width: .4rem;
height: 1rem;
}
/* chart description cell for annotations */
.chart-description-cell {
text-align: left;
padding-left: .25rem;
}
/* calendar for small screens */
.small-screen-calendar {
display: none;
width: 210px;
margin-top: 1rem;
margin-left: auto;
margin-right: auto;
}
/* calendars with focus */
.small-screen-calendar a:focus, .large-screen-calendar a:focus {
outline: none;
}
/* calendar for large screens */
.large-screen-calendar {
display: block;
width: 210px;
padding-left: 1rem;
margin-top: 1rem;
}
/* label for checkboxes */
.checkbox-label {
float: left;
}
/* div for day totals */
div.day-totals {
margin-bottom: 1rem;
width: 100%;
}
/* column 1 for day totals */
.day-totals-col1 {
text-align: left;
padding-left: .5rem;
padding-right: .5rem;
}
/* column 2 for day totals */
.day-totals-col2 {
padding-left: .5rem;
padding-right: .5rem;
text-align: right;
}
/* not billable items */
.not-billable {
color: red;
}
/* remaining quota span */
span.remaining-quota {
color: red;
}
/* remaining quota balance span */
span.remaining-quota-balance {
color: red;
}
/* over quota span */
span.over-quota {
color: green;
}
/* over quota balance span */
span.over-quota-balance {
color: green;
}
/* div for optional navigation, ex: week view */
div.optional-nav {
margin-top: .5rem;
}
/* div for a set of buttons, ex: save, copy, delete */
.button-set {
margin-top: .5rem;
margin-bottom: 1rem;
}
/* section header div */
div.section-header {
font-weight: bold;
text-align: center;
margin-left: auto;
margin-right: auto;
margin-top: .5rem;
margin-bottom: .5rem;
}
/* invoice-header div */
div.invoice-header {
font-size: 2rem;
}
th.invoice-label {
text-align: right;
}
/* div for a group of items in site map */
div.sitemap-item-group {
margin-top: 2rem;
margin-bottom: 2rem;
}
/* div for a single item in site map */
div.sitemap-item {
margin: .4rem;
}
div.punch-timer {
font-size: 2rem;
color: blue;
}
/* media rules for small screens */
@media screen and (max-width: 600px) {
/* hide large screen labels */
.large-screen-label {
display: none;
}
/* hide large screen chart annotations */
.large-screen-chart-items-list {
display: none;
}
/* show small screen chart annotations */
.small-screen-chart-items-list {
display: table-cell;
}
/* show small screen labels */
.small-screen-label {
display: block;
}
/* show small screen calendar */
.small-screen-calendar {
display: block;
}
/* hide large screen calendar */
.large-screen-calendar {
display: none;
}
/* show small screen form control separators */
.small-screen-form-control-separator {
display: block;
}
/* show what is it icons */
span.what-is-it-img {
display: inline-block;
}
/* hide what is it text */
span.what-is-it-text {
display: none;
}
/* hide how to contribute message */
div.contribute-msg {
display: none;
}
/* hide version and copyright */
div.version-and-copyright {
display: none;
}
}
/* media rules for menus on small screens */
@media screen and (max-width: 1170px) {
/* show small screen menu */
div.top-menu-small-screen {
display: block;
}
/* hide large screen menu */
div.top-menu-large-screen {
display: none;
}
/* hide large screen submenu */
div.top-submenu-large-screen {
display: none;
}
}
/* TODO: below are legacy styles. Review as work on mobile-friendly pages continues. */
a { color: blue; text-decoration: none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: underline; }
html {
overflow-y: scroll;
}
body {
font-size: 10pt;
font-family: Verdana, sans-serif;
background-color: white;
}
table { font-size: 10pt; font-family: Verdana, sans-serif; }
input, button, select, textarea {
font-size: 10pt;
font-family: Verdana, sans-serif;
margin: 2px 2px 2px 2px;
padding: 2px 5px 2px 5px;
}
input[type=checkbox], label {
vertical-align: middle;
}
.pageTitle {
font-size: 12pt;
font-weight: bold;
color: silver;
}
.systemMenu {
font-size: 1rem;
font-weight: bold;
color: white;
background-color: black;
margin: .1rem .2rem .1rem .2rem;
}
.mainMenu {
font-size: 1rem;
color: #444444;
margin: .1rem .2rem .1rem .2rem;
}
.onBehalf {
font-weight: bold;
}
/* calendar styles */
.calendarHeader {
padding: 5px;
font-size: 8pt;
color: #333333;
background-color: #d9d9d9;
}
.calendarDay {
padding: 5px;
border: 1px solid silver;
font-size: 8pt;
color: #333333;
background-color: #ffffff;
}
.calendarDaySelected {
padding: 5px;
border: 1px solid silver;
font-size: 8pt;
color: #666666;
background-color: #a6ccf7;
}
.calendarDayWeekend {
padding: 5px;
border: 1px solid silver;
font-size: 8pt;
color: #666666;
background-color: #f7f7f7;
}
.calendarDayHoliday {
padding: 5px;
border: 1px solid silver;
font-size: 8pt;
color: #666666;
background-color: #f7f7f7;
}
.calendarDayHeader {
padding: 5px;
border: 1px solid white;
font-size: 8pt;
color: #333333;
}
.calendarDayHeaderWeekend {
padding: 5px;
border: 1px solid white;
font-size: 8pt;
color: #999999;
}
.calendarLinkWeekend {
color: #999999;
}
.calendarLinkHoliday {
color: #999999;
}
.calendarLinkRecordsExist {
color: #ff0000;
}
.calendarLinkNonCompleteDay {
color: #800080;
}
/* end of calendar styles */
.tableHeader {
font-weight: bold;
text-align: left;
}
.tableHeaderCentered {
font-weight: bold;
text-align: center;
}
.rowReportItem {
background-color: #f5f5f5;
}
.rowReportItemAlt {
background-color: #ffffff;
}
.rowReportSubtotal {
background-color: #e0e0e0;
}
.cellLeftAligned {
text-align: left;
vertical-align: top;
}
.cellRightAligned {
text-align: right;
vertical-align: top;
}
.cellLeftAlignedSubtotal {
font-weight: bold;
vertical-align: top;
}
.cellRightAlignedSubtotal {
font-weight: bold;
text-align: right;
vertical-align: top;
}
.midAligned {
text-align: center;
}
.sectionHeader {
font-weight: bold;
border-bottom: 1px solid lightgray;
}
.sectionHeaderNoBorder {
font-weight: bold;
}
.error {
color: red;
}
.info_message {
color: #0000c0;
}
.divider {
background-color: #efefef;
}
div.table-divider { height: 30px; }
.uncompleted-entry {
display: inline-block;
height: 8px;
width: 8px;
border: 1px solid rgba(0, 0, 0, .1);
border-radius: 50%;
background-color: rgba(0, 0, 0, .1);
margin-right: .25em;
}
.uncompleted-entry.active-today { background-color: red; }
.uncompleted-entry.active { background-color: purple; }
.table_icon {
height: 16px;
width: 16px;
}
/* Mobile styles */
.mobile-table {
border: 0;
width: 100%;
border-spacing: 0;
}
.mobile-textarea {
width: 100%;
resize: vertical;
height: 5em;
}
.mobile-input {
width: 100%;
}
.mobile-table-details {
width: 100%;
table-layout: fixed;
overflow-wrap: break-word;
word-wrap: break-word;
border-spacing: 1px;
border: 0;
}
.mobile-table-details td {
padding: 3px;
}