1package Pod::ProjectDocs::CSS; 2use strict; 3use warnings; 4use base qw/Pod::ProjectDocs::File/; 5use File::Basename; 6 7__PACKAGE__->default_name('podstyle.css'); 8__PACKAGE__->data( do{ local $/; <DATA> } ); 9 10sub tag { 11 my($self, $doc) = @_; 12 my($name, $path) = fileparse $doc->get_output_path, qw/\.html/; 13 my $relpath = File::Spec->abs2rel($self->get_output_path, $path); 14 $relpath =~ s:\\:/:g if $^O eq 'MSWin32'; 15 return sprintf qq|<link rel="stylesheet" type="text/css" href="%s" />|, $relpath; 16} 17 181; 19__DATA__ 20 21BODY, .logo { background: white; } 22 23BODY { 24 color: black; 25 font-family: arial,sans-serif; 26 margin: 0; 27 padding: 1ex; 28} 29 30TABLE { 31 border-collapse: collapse; 32 border-spacing: 0; 33 border-width: 0; 34 color: inherit; 35} 36 37IMG { border: 0; } 38FORM { margin: 0; } 39input { margin: 2px; } 40 41.logo { 42 float: left; 43 width: 264px; 44 height: 77px; 45} 46 47.front .logo { 48 float: none; 49 display:block; 50} 51 52.front .searchbox { 53 margin: 2ex auto; 54 text-align: center; 55} 56 57.front .menubar { 58 text-align: center; 59} 60 61.menubar { 62 background: #006699; 63 margin: 1ex 0; 64 padding: 1px; 65} 66 67.menubar A { 68 padding: 0.8ex; 69 font: bold 10pt Arial,Helvetica,sans-serif; 70} 71 72.menubar A:link, .menubar A:visited { 73 color: white; 74 text-decoration: none; 75} 76 77.menubar A:hover { 78 color: #ff6600; 79 text-decoration: underline; 80} 81 82A:link, A:visited { 83 background: transparent; 84 color: #006699; 85} 86 87A[href="#POD_ERRORS"] { 88 background: transparent; 89 color: #FF0000; 90} 91 92TD { 93 margin: 0; 94 padding: 0; 95} 96 97DIV { 98 border-width: 0; 99} 100 101DT { 102 margin-top: 1em; 103} 104 105.credits TD { 106 padding: 0.5ex 2ex; 107} 108 109.huge { 110 font-size: 32pt; 111} 112 113.s { 114 background: #dddddd; 115 color: inherit; 116} 117 118.s TD, .r TD { 119 padding: 0.2ex 1ex; 120 vertical-align: baseline; 121} 122 123TH { 124 background: #bbbbbb; 125 color: inherit; 126 padding: 0.4ex 1ex; 127 text-align: left; 128} 129 130TH A:link, TH A:visited { 131 background: transparent; 132 color: black; 133} 134 135.box { 136 border: 1px solid #006699; 137 margin: 1ex 0; 138 padding: 0; 139} 140 141.distfiles TD { 142 padding: 0 2ex 0 0; 143 vertical-align: baseline; 144} 145 146.manifest TD { 147 padding: 0 1ex; 148 vertical-align: top; 149} 150 151.l1 { 152 font-weight: bold; 153} 154 155.l2 { 156 font-weight: normal; 157} 158 159.t1, .t2, .t3, .t4 { 160 background: #006699; 161 color: white; 162} 163.t4 { 164 padding: 0.2ex 0.4ex; 165} 166.t1, .t2, .t3 { 167 padding: 0.5ex 1ex; 168} 169 170/* IE does not support .box>.t1 Grrr */ 171.box .t1, .box .t2, .box .t3 { 172 margin: 0; 173} 174 175.t1 { 176 font-size: 1.4em; 177 font-weight: bold; 178 text-align: center; 179} 180 181.t2 { 182 font-size: 1.0em; 183 font-weight: bold; 184 text-align: left; 185} 186 187.t3 { 188 font-size: 1.0em; 189 font-weight: normal; 190 text-align: left; 191} 192 193/* width: 100%; border: 0.1px solid #FFFFFF; */ /* NN4 hack */ 194 195.datecell { 196 text-align: center; 197 width: 17em; 198} 199 200.cell { 201 padding: 0.2ex 1ex; 202 text-align: left; 203} 204 205.label { 206 background: #aaaaaa; 207 color: black; 208 font-weight: bold; 209 padding: 0.2ex 1ex; 210 text-align: right; 211 white-space: nowrap; 212 vertical-align: baseline; 213} 214 215.categories { 216 border-bottom: 3px double #006699; 217 margin-bottom: 1ex; 218 padding-bottom: 1ex; 219} 220 221.categories TABLE { 222 margin: auto; 223} 224 225.categories TD { 226 padding: 0.5ex 1ex; 227 vertical-align: baseline; 228} 229 230.path A { 231 background: transparent; 232 color: #006699; 233 font-weight: bold; 234} 235 236.pages { 237 background: #dddddd; 238 color: #006699; 239 padding: 0.2ex 0.4ex; 240} 241 242.path { 243 background: #dddddd; 244 border-bottom: 1px solid #006699; 245 color: #006699; 246 /* font-size: 1.4em;*/ 247 margin: 1ex 0; 248 padding: 0.5ex 1ex; 249} 250 251.menubar TD { 252 background: #006699; 253 color: white; 254} 255 256.menubar { 257 background: #006699; 258 color: white; 259 margin: 1ex 0; 260 padding: 1px; 261} 262 263.menubar .links { 264 background: transparent; 265 color: white; 266 padding: 0.2ex; 267 text-align: left; 268} 269 270.menubar .searchbar { 271 background: black; 272 color: black; 273 margin: 0px; 274 padding: 2px; 275 text-align: right; 276} 277 278A.m:link, A.m:visited { 279 background: #006699; 280 color: white; 281 font: bold 10pt Arial,Helvetica,sans-serif; 282 text-decoration: none; 283} 284 285A.o:link, A.o:visited { 286 background: #006699; 287 color: #ccffcc; 288 font: bold 10pt Arial,Helvetica,sans-serif; 289 text-decoration: none; 290} 291 292A.o:hover { 293 background: transparent; 294 color: #ff6600; 295 text-decoration: underline; 296} 297 298A.m:hover { 299 background: transparent; 300 color: #ff6600; 301 text-decoration: underline; 302} 303 304table.dlsip { 305 background: #dddddd; 306 border: 0.4ex solid #dddddd; 307} 308 309.pod PRE { 310 background: #eeeeee; 311 border: 1px solid #888888; 312 color: black; 313 padding: 1em; 314 white-space: pre; 315} 316 317.pod H1 { 318 background: transparent; 319 color: #006699; 320 font-size: large; 321} 322 323.pod H2 { 324 background: transparent; 325 color: #006699; 326 font-size: medium; 327} 328 329.pod IMG { 330 vertical-align: top; 331} 332 333.pod .toc A { 334 text-decoration: none; 335} 336 337.pod .toc LI { 338 line-height: 1.2em; 339 list-style-type: none; 340} 341 342.faq DT { 343 font-size: 1.4em; 344 font-weight: bold; 345} 346 347.chmenu { 348 background: black; 349 color: red; 350 font: bold 1.1em Arial,Helvetica,sans-serif; 351 margin: 1ex auto; 352 padding: 0.5ex; 353} 354 355.chmenu TD { 356 padding: 0.2ex 1ex; 357} 358 359.chmenu A:link, .chmenu A:visited { 360 background: transparent; 361 color: white; 362 text-decoration: none; 363} 364 365.chmenu A:hover { 366 background: transparent; 367 color: #ff6600; 368 text-decoration: underline; 369} 370 371.column { 372 padding: 0.5ex 1ex; 373 vertical-align: top; 374} 375 376.datebar { 377 margin: auto; 378 width: 14em; 379} 380 381.date { 382 background: transparent; 383 color: #008000; 384} 385 386.footer { 387 margin-top: 1ex; 388 text-align: right; 389 color: #006699; 390 font-size: x-small; 391 border-top: 1px solid #006699; 392 line-height: 120%; 393} 394 395.front .footer { 396 border-top: none; 397} 398 399.search_highlight { 400 color: #ff6600; 401} 402 403.def_HorzCross { 404 color: #000000; 405 background-color: #313b30; 406} 407 408.def_VertCross { 409 color: #000000; 410 background-color: #313b30; 411} 412 413.def_Number { 414 color: #00a800; 415} 416 417.def_NumberDec { 418 color: #008c00; 419} 420 421.def_NumHex { 422 color: #008000; 423} 424 425.def_NumberBin { 426 color: #007d00; 427} 428 429.def_NumberOct { 430 color: #008c00; 431} 432 433.def_NumberFloat { 434 color: #009f00; 435} 436 437.def_NumberSuffix { 438 color: #006600; 439} 440 441.def_String { 442 color: #00c4c4; 443} 444 445.def_Special { 446 color: #008B8B; 447} 448 449.def_StringContent { 450 color: #008080; 451} 452 453.def_StringEdge { 454 color: #02d045; 455} 456 457.def_CharacterContent { 458 color: #008080; 459} 460 461.def_Comment { 462 color: #9999a9; 463} 464 465.def_CommentContent { 466 color: #8695b8; 467 font-weight: bold; 468} 469 470.def_CommentDoc { 471 color: #90b0e0; 472} 473 474.def_SymbolStrong { 475 color: #b060b0; 476} 477 478.def_Prefix { 479 color: #00dddd; 480} 481 482.def_Operator { 483 color: #00dddd; 484} 485 486.def_Keyword { 487 color: #A52A2A; 488 font-weight: bold; 489} 490 491.def_KeywordStrong { 492 color: #904050; 493} 494 495.def_ClassKeyword { 496 color: #bb7977; 497 font-weight: bold; 498} 499 500.def_TypeKeyword { 501 color: #bb7977; 502} 503 504.def_Register { 505 color: #d0d09f; 506} 507 508.def_Constant { 509 color: #007d45; 510} 511 512.def_BooleanConstant { 513 color: #0f4d75; 514} 515 516.def_Var { 517 color: #007997; 518} 519 520.def_VarStrong { 521 color: #007997; 522} 523 524.def_Identifier { 525 color: #005fd2; 526} 527 528.def_Directive { 529 color: #008073; 530} 531 532.def_Param { 533 color: #64810c; 534} 535 536.def_Tag { 537 color: #f6c1d0; 538} 539 540.def_OpenTag { 541 color: #ff8906; 542} 543 544.def_CloseTag { 545 color: #fb8400; 546} 547 548.def_Label { 549 color: #e34adc; 550} 551 552.def_LabelStrong { 553 color: #000000; 554 background-color: #a8a800; 555} 556 557.def_Insertion { 558 color: #ffffff; 559 background-color: #281800; 560} 561 562.def_InsertionStart { 563 color: #800000; 564 background-color: #ffffa4; 565} 566 567.def_InsertionEnd { 568 color: #800000; 569 background-color: #ffffa4; 570} 571 572.def_Error { 573 color: #ffffff; 574 background-color: #dd0000; 575} 576 577.def_ErrorText { 578 color: #ee00ee; 579} 580 581.def_TODO { 582 color: #ffffff; 583 background-color: #3c215f; 584} 585 586.def_Debug { 587 color: #011a47; 588 background-color: #007084; 589} 590 591.def_Path { 592 color: #40015a; 593} 594 595.def_URL { 596 color: #6070ec; 597} 598 599.def_EMail { 600 color: #a160f4; 601} 602 603.def_Date { 604 color: #009797; 605} 606 607.def_Time { 608 color: #8745a0; 609} 610 611.def_PairStart { 612 color: #aa4444; 613} 614 615.def_PairEnd { 616 color: #aa4444; 617} 618