summaryrefslogtreecommitdiff
path: root/tasks.css
blob: 7b03dfdaaf96f7093b562f442bf7da1e2a11f532 (plain)
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
/**
 * This file is public domain.  Do whatever you like with it.
 */
body {
    margin-left: 2em;
    margin-right: 2em;
    background-color: #ffffff;
}

/**
 * Overlays (Lightboxes):
 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding-top: 2em;
    padding-left: 2em;
    padding-right: 2em;
    background: rgba(0,0,0,0.5);
}

.overlay h2 {
    margin-top: 0;
}

.overlay > div {
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    overflow: auto;
    width: 80%;
    height: 80%;
    border: 0.2em solid #000000;
    background-color: #ffffff;
    padding: 2em;
}

/**
 * Task tables:
 */
div.table {
    display: table;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

div.table > * {
    display: table-row;
    color: black;
    text-decoration: none;
    border-bottom: 1px solid #777777;
}

div.table > div:first-child {
    font-weight: bold;
    border-bottom: 1px solid black;
}

div.table > * > span {
    display: table-cell;
    padding: 0.3em;
}

/* Status columns */
div.table > * > span {
    width: 4em;
    text-align: center;
}

/* "Task Name" column */
div.table > * > span:first-child {
    width: 15em;
    text-align: left;
}

/* "Description" column */
div.table > * > span:nth-child(2) {
    width: 100%;
    text-align: left;
}

div.table > :nth-child(odd)  { background-color: #f0f0f0 }
div.table > :nth-child(even) { background-color: #e0e0e0 }

/* Green */
div.table > .done:nth-child(odd)  { background-color: #e6f9e6; }
div.table > .done:nth-child(even) { background-color: #cef1ce; }
div.table > :nth-child(odd)  > .done { background-color: #e6f9e6; }
div.table > :nth-child(even) > .done { background-color: #cef1ce; }

/* Yellow */
div.table > .partial:nth-child(odd)  { background-color: #fef8e2; }
div.table > .partial:nth-child(even) { background-color: #fbefc5; }
div.table > :nth-child(odd)  > .partial { background-color: #fef8e2; }
div.table > :nth-child(even) > .partial { background-color: #fbefc5; }

/* Red */
div.table > .missing:nth-child(odd)  { background-color: #f9e6e6; }
div.table > .missing:nth-child(even) { background-color: #f1cece; }
div.table > :nth-child(odd)  > .missing { background-color: #f9e6e6; }
div.table > :nth-child(even) > .missing { background-color: #f1cece; }

b {
    font-weight: bold;
}