ProjectDocs/CSS.pm

filter: Statementstmt 100% 25 / 25 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 94.1% 32 / 34 CC 2 SCAR 2.5
CC
2
Cov
96%
relative_url
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« ProjectDocs/File.pm ↑ Summary ProjectDocs/Template.pm »
1 package Pod::ProjectDocs::CSS;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 our $VERSION = '0.53'; # VERSION
7  
8 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 4 with 'Pod::ProjectDocs::File';
10  
11 4 ▶use File::Basename;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 4 has 'default_name' => (
14 is => 'ro',
15 isa => 'Str',
16 default => 'podstyle.css',
17 );
18  
19 4 has 'data' => (
20 is => 'ro',
21 default => <<'DATA',
22 BODY, .logo { background: white; }
23  
24 BODY {
25 color: black;
26 font-family: arial,sans-serif;
27 margin: 0;
28 padding: 1ex;
29 }
30  
31 TABLE {
32 border-collapse: collapse;
33 border-spacing: 0;
34 border-width: 0;
35 color: inherit;
36 }
37  
38 IMG { border: 0; }
39 FORM { margin: 0; }
40 input { margin: 2px; }
41  
42 .logo {
43 float: left;
44 width: 264px;
45 height: 77px;
46 }
47  
48 .front .logo {
49 float: none;
50 display:block;
51 }
52  
53 .front .searchbox {
54 margin: 2ex auto;
55 text-align: center;
56 }
57  
58 .front .menubar {
59 text-align: center;
60 }
61  
62 .menubar {
63 background: #006699;
64 margin: 1ex 0;
65 padding: 1px;
66 }
67  
68 .menubar A {
69 padding: 0.8ex;
70 font: bold 10pt Arial,Helvetica,sans-serif;
71 }
72  
73 .menubar A:link, .menubar A:visited {
74 color: white;
75 text-decoration: none;
76 }
77  
78 .menubar A:hover {
79 color: #ff6600;
80 text-decoration: underline;
81 }
82  
83 A:link, A:visited {
84 background: transparent;
85 color: #006699;
86 }
87  
88 A[href="#POD_ERRORS"] {
89 background: transparent;
90 color: #FF0000;
91 }
92  
93 TD {
94 margin: 0;
95 padding: 0;
96 }
97  
98 DIV {
99 border-width: 0;
100 }
101  
102 DT {
103 margin-top: 1em;
104 }
105  
106 .credits TD {
107 padding: 0.5ex 2ex;
108 }
109  
110 .huge {
111 font-size: 32pt;
112 }
113  
114 .s {
115 background: #dddddd;
116 color: inherit;
117 }
118  
119 .s TD, .r TD {
120 padding: 0.2ex 1ex;
121 vertical-align: baseline;
122 }
123  
124 TH {
125 background: #bbbbbb;
126 color: inherit;
127 padding: 0.4ex 1ex;
128 text-align: left;
129 }
130  
131 TH A:link, TH A:visited {
132 background: transparent;
133 color: black;
134 }
135  
136 .box {
137 border: 1px solid #006699;
138 margin: 1ex 0;
139 padding: 0;
140 }
141  
142 .distfiles TD {
143 padding: 0 2ex 0 0;
144 vertical-align: baseline;
145 }
146  
147 .manifest TD {
148 padding: 0 1ex;
149 vertical-align: top;
150 }
151  
152 .l1 {
153 font-weight: bold;
154 }
155  
156 .l2 {
157 font-weight: normal;
158 }
159  
160 .t1, .t2, .t3, .t4 {
161 background: #006699;
162 color: white;
163 }
164 .t4 {
165 padding: 0.2ex 0.4ex;
166 }
167 .t1, .t2, .t3 {
168 padding: 0.5ex 1ex;
169 }
170  
171 /* IE does not support .box>.t1 Grrr */
172 .box .t1, .box .t2, .box .t3 {
173 margin: 0;
174 }
175  
176 .t1 {
177 font-size: 1.4em;
178 font-weight: bold;
179 text-align: center;
180 }
181  
182 .t2 {
183 font-size: 1.0em;
184 font-weight: bold;
185 text-align: left;
186 }
187  
188 .t3 {
189 font-size: 1.0em;
190 font-weight: normal;
191 text-align: left;
192 }
193  
194 /* width: 100%; border: 0.1px solid #FFFFFF; */ /* NN4 hack */
195  
196 .datecell {
197 text-align: center;
198 width: 17em;
199 }
200  
201 .cell {
202 padding: 0.2ex 1ex;
203 text-align: left;
204 }
205  
206 .label {
207 background: #aaaaaa;
208 color: black;
209 font-weight: bold;
210 padding: 0.2ex 1ex;
211 text-align: right;
212 white-space: nowrap;
213 vertical-align: baseline;
214 }
215  
216 .categories {
217 border-bottom: 3px double #006699;
218 margin-bottom: 1ex;
219 padding-bottom: 1ex;
220 }
221  
222 .categories TABLE {
223 margin: auto;
224 }
225  
226 .categories TD {
227 padding: 0.5ex 1ex;
228 vertical-align: baseline;
229 }
230  
231 .path A {
232 background: transparent;
233 color: #006699;
234 font-weight: bold;
235 }
236  
237 .pages {
238 background: #dddddd;
239 color: #006699;
240 padding: 0.2ex 0.4ex;
241 }
242  
243 .path {
244 background: #dddddd;
245 border-bottom: 1px solid #006699;
246 color: #006699;
247 /* font-size: 1.4em;*/
248 margin: 1ex 0;
249 padding: 0.5ex 1ex;
250 }
251  
252 .menubar TD {
253 background: #006699;
254 color: white;
255 }
256  
257 .menubar {
258 background: #006699;
259 color: white;
260 margin: 1ex 0;
261 padding: 1px;
262 }
263  
264 .menubar .links {
265 background: transparent;
266 color: white;
267 padding: 0.2ex;
268 text-align: left;
269 }
270  
271 .menubar .searchbar {
272 background: black;
273 color: black;
274 margin: 0px;
275 padding: 2px;
276 text-align: right;
277 }
278  
279 A.m:link, A.m:visited {
280 background: #006699;
281 color: white;
282 font: bold 10pt Arial,Helvetica,sans-serif;
283 text-decoration: none;
284 }
285  
286 A.o:link, A.o:visited {
287 background: #006699;
288 color: #ccffcc;
289 font: bold 10pt Arial,Helvetica,sans-serif;
290 text-decoration: none;
291 }
292  
293 A.o:hover {
294 background: transparent;
295 color: #ff6600;
296 text-decoration: underline;
297 }
298  
299 A.m:hover {
300 background: transparent;
301 color: #ff6600;
302 text-decoration: underline;
303 }
304  
305 table.dlsip {
306 background: #dddddd;
307 border: 0.4ex solid #dddddd;
308 }
309  
310 .pod PRE {
311 background: #eeeeee;
312 border: 1px solid #888888;
313 color: black;
314 padding: 1em;
315 white-space: pre;
316 }
317  
318 .pod H1,
319 .pod H2,
320 .pod H3,
321 .pod H4 {
322 background: transparent;
323 color: #006699;
324 }
325  
326 .pod H1 {
327 font-size: x-large;
328 }
329  
330 .pod H2 {
331 font-size: large;
332 }
333  
334 .pod H3 {
335 font-size: medium;
336 }
337  
338 .pod H4 {
339 font-size: medium;
340 font-style: italic;
341 }
342  
343 .pod IMG {
344 vertical-align: top;
345 }
346  
347 .pod .toc A {
348 text-decoration: none;
349 }
350  
351 .pod .toc LI {
352 line-height: 1.2em;
353 list-style-type: none;
354 }
355  
356 .column {
357 padding: 0.5ex 1ex;
358 vertical-align: top;
359 }
360  
361 .datebar {
362 margin: auto;
363 width: 14em;
364 }
365  
366 .date {
367 background: transparent;
368 color: #008000;
369 }
370  
371 .footer {
372 margin-top: 1ex;
373 text-align: right;
374 color: #006699;
375 font-size: x-small;
376 border-top: 1px solid #006699;
377 line-height: 120%;
378 }
379  
380 .front .footer {
381 border-top: none;
382 }
383  
384 .search_highlight {
385 color: #ff6600;
386 }
387 DATA
388 );
389  
390 8 ▶sub relative_url {
Subroutine relative_url: called CC=2 SCAR=7.0
Pod undocumented
391 8 my ( $self, $doc ) = @_;
392 8 my ( $name, $path ) = fileparse $doc->get_output_path, qw/\.html/;
393 8 my $relpath = File::Spec->abs2rel( $self->get_output_path, $path );
394 8 ▶ $relpath =~ s:\\:/:g if $^O eq 'MSWin32';
Branch: 1 branch
BranchTrueFalseTotal
if $^O eq "MSWin32" 0 8 8
395 8 return $relpath;
396 }
397  
398 4 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
399  
400 4 1;
« ProjectDocs/File.pm ↑ Summary ProjectDocs/Template.pm »