--------------------------------------------------------------------
| 491 | |
| 492 | // -------------------------------------------------------------------- |
| 493 | void G4UIcommandTree::CreateHTML(const G4String& sideBar) |
| 494 | { |
| 495 | G4String ofileName = CreateFileName(pathName); |
| 496 | std::ofstream oF(ofileName, std::ios::out); |
| 497 | |
| 498 | oF << "<html><head><title>Commands in " << ModStr(pathName) << "</title></head>" << G4endl; |
| 499 | oF << "<style> \ |
| 500 | table,table td,table th { \ |
| 501 | border:1px solid #eee \ |
| 502 | } \ |
| 503 | table td,table th { \ |
| 504 | padding:5px 20px; \ |
| 505 | line-height:1.3; \ |
| 506 | text-align:inherit \ |
| 507 | } \ |
| 508 | a { \ |
| 509 | color:#17a81a; \ |
| 510 | text-decoration:none; \ |
| 511 | transition-duration:0.3s \ |
| 512 | } \ |
| 513 | a:hover { \ |
| 514 | color:#17a81a \ |
| 515 | } \ |
| 516 | table { \ |
| 517 | border-collapse:collapse; \ |
| 518 | border-spacing:0; \ |
| 519 | margin-bottom:5px; \ |
| 520 | } \ |
| 521 | h1 { \ |
| 522 | font-size:2.25em; \ |
| 523 | font-weight:300; \ |
| 524 | letter-spacing:-1px; \ |
| 525 | line-height:1.15em; \ |
| 526 | margin-bottom:0.5em; \ |
| 527 | word-wrap:break-word \ |
| 528 | } \ |
| 529 | h2 { \ |
| 530 | font-size:1.5em; \ |
| 531 | font-weight:300; \ |
| 532 | letter-spacing:-1px; \ |
| 533 | line-height:1.15em; \ |
| 534 | margin-bottom:0.5em; \ |
| 535 | word-wrap:break-word \ |
| 536 | } \ |
| 537 | h3 { \ |
| 538 | color:#26282a; \ |
| 539 | font-weight:300; \ |
| 540 | font-size:1.3em; \ |
| 541 | padding:15px 0 15px 0; \ |
| 542 | border-bottom:2px #eee solid; \ |
| 543 | word-wrap:break-word \ |
| 544 | } \ |
| 545 | .sidebar { \ |
| 546 | display:block; \ |
| 547 | position:relative; \ |
| 548 | position:sticky; \ |
| 549 | float:left; \ |
| 550 | -webkit-box-sizing:border-box; \ |
nothing calls this directly
no test coverage detected