Skip to content

Commit c938dba

Browse files
committed
Updated Java Style Guide to reflect current internal version.
1 parent 70d6b7d commit c938dba

File tree

3 files changed

+969
-586
lines changed

3 files changed

+969
-586
lines changed

include/styleguide.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ function hasClass(element, cls) {
245245
function LinkifyHeader(header, fileName, sizePixels) {
246246
var link = document.createElement('a');
247247
link.href = '#' + header.id;
248-
link.alt = 'link to ' + header.id;
248+
link.setAttribute('alt', 'link to ' + header.id);
249249
link.innerHTML =
250250
'<img src="include/' + fileName + '"' +
251251
' width=' + sizePixels +

javaguide.css

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,3 +513,60 @@ code {
513513
padding: 0.25em 0.5em;
514514
white-space: nowrap
515515
}
516+
517+
518+
/* TOC CSS */
519+
520+
table.columns {
521+
border: none;
522+
}
523+
524+
td.two_columns {
525+
-webkit-column-count: 2;
526+
column-count: 2;
527+
}
528+
529+
.toc_category {
530+
font-size: 10pt;
531+
padding-top: 1em;
532+
padding-bottom: 1em;
533+
border-left-width: 2px;
534+
border-right-width: 2px;
535+
border-color: grey;
536+
}
537+
538+
.toc_stylepoint {
539+
font-size: 10pt;
540+
padding-top: 1em;
541+
padding-bottom: 1em;
542+
}
543+
544+
li.toc_entry {
545+
padding-right: 1em;
546+
display: inline;
547+
list-style-type: none;
548+
}
549+
550+
/*
551+
* This space is required to trigger the linewrap on the links
552+
* at href boundaries
553+
*/
554+
li.toc_entry::after {
555+
content: " ";
556+
}
557+
558+
li.toc_entry a {
559+
white-space: nowrap;
560+
}
561+
562+
/* Horizontal TOC */
563+
.toc td, .toc th {
564+
border-width: 1px 5px;
565+
overflow: hidden;
566+
}
567+
568+
/* Vertical TOC */
569+
570+
.toc td.two_columns {
571+
border-width: 0px;
572+
}

0 commit comments

Comments
 (0)