- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprint.css
More file actions
Latest commit
180 lines (153 loc) · 4.17 KB
/
Copy pathprint.css
File metadata and controls
180 lines (153 loc) · 4.17 KB
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
/* ============================================================
simple timer — print stylesheet
NOTE: restyle.css is linked with media="screen", so none of its
rules reach the printed page — not the font, and not the :root
custom properties either. This file is therefore deliberately
self-contained and redeclares the bit of palette and type it needs.
============================================================ */
@media print {
@page {
size: A4 portrait;
margin:16mm15mm;
}
:root {
--p-ink:#1D1D1F;
--p-ink-2:#6E6E73;
--p-ink-3:#86868B;
--p-accent:#DC5934;
--p-rule:#D2D2D7;
--p-rule-soft:#E8E8ED;
}
/* keep the greys and the accent instead of letting the browser
flatten them away to save ink */
* {
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
html,body {
margin:0;
padding:0;
background:#fff;
color:var(--p-ink);
font-family:"Barlow Condensed","Oswald","Helvetica Neue", Arial, sans-serif;
font-size:11pt;
line-height:1.4;
letter-spacing:-0.01em;
}
.no-print { display: none !important; }
.print-only { display: block !important; }
/* ---------- neutralize the screen layout ---------- */
.timerapp {
display: block;
max-width: none;
min-height:0;
margin:0;
padding:0;
gap:0;
}
/* the sliding viewport only makes sense on screen */
.viewport, .track, .view {
display: block;
width: auto;
transform: none !important;
overflow: visible;
}
.tasks {
background: none;
box-shadow: none;
padding:0;
}
.focus-view { display: none !important; }
/* ---------- header ---------- */
.app-header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap:12pt;
margin:0013pt;
padding:006pt;
border-bottom:1.2pt solid var(--p-ink);
/* the screen rules fade this out in focus mode — on paper it always shows */
opacity:1!important;
visibility: visible !important;
}
.app-header .date {
font-size:17pt;
font-weight:600;
letter-spacing:-0.02em;
color:var(--p-ink);
font-variant-numeric: tabular-nums;
}
.app-header .week {
font-weight:400;
color:var(--p-ink-3);
}
.print-goal {
font-size:8pt;
font-weight:600;
text-transform: uppercase;
letter-spacing:0.14em;
color:var(--p-ink-3);
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
/* ---------- task table ---------- */
/* the screen layout puts display:grid on every row, which leaves
empty tracks once the action cells are hidden — restore a real table */
table { display: table; width:100%; border-collapse: collapse; }
thead { display: table-header-group; } /* repeats on page 2 and up */
tbody { display: table-row-group; }
tfoot { display: table-footer-group; }
tr { display: table-row; padding:0; gap:0; border:0; background: none !important; }
th,td { display: table-cell; vertical-align: baseline; }
theadth {
padding:005pt;
border-bottom:0.6pt solid var(--p-rule);
text-align: left;
font-size:8pt;
font-weight:600;
text-transform: uppercase;
letter-spacing:0.12em;
color:var(--p-ink-3);
}
thead .col-total { text-align: right; }
tbodytd {
padding:6.5pt0;
border-bottom:0.6pt solid var(--p-rule-soft);
}
.task-title { font-weight:500; color:var(--p-ink); }
.task-titlea {
color:var(--p-accent);
font-weight:600;
text-decoration: none;
}
.col-total {
text-align: right;
white-space: nowrap;
font-weight:600;
font-variant-numeric: tabular-nums;
letter-spacing:-0.01em;
}
/* ---------- cumulative ---------- */
tfoottd {
padding-top:8pt;
border-top:1.2pt solid var(--p-ink);
border-bottom:0;
}
tfoot .total-label {
font-size:8pt;
font-weight:600;
text-transform: uppercase;
letter-spacing:0.12em;
color:var(--p-ink-3);
}
tfoot .col-total {
font-size:15pt;
letter-spacing:-0.02em;
}
/* action columns carry no meaning on paper; hiding them in every
row group keeps the name and total columns aligned */
.col-drag, .col-play, .col-pill, .col-remove { display: none; }
/* ---------- page breaks ---------- */
tr,figure { page-break-inside: avoid; break-inside: avoid; }
}