Skip to content

Commit

Permalink
style also section horizontal rulers
Browse files Browse the repository at this point in the history
  • Loading branch information
rmottola committed Oct 18, 2024
1 parent fc23434 commit 4a506cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Tools/AGSHtml.m
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ - (void) outputNode: (GSXMLNode*)node to: (NSMutableString*)buf
unsigned l = 0;

[buf appendString: indent];
[buf appendString: @"<hr width=\"50%\" align=\"left\">\n"];
[buf appendString: @"<hr class=\"section-separator\">\n"];
[buf appendString: indent];
[buf appendString: @"<h3>Contents -</h3>\n"];

Expand Down Expand Up @@ -1036,7 +1036,7 @@ - (void) outputNode: (GSXMLNode*)node to: (NSMutableString*)buf
l--;
}
[buf appendString: indent];
[buf appendString: @"<hr width=\"50%\" align=\"left\">\n"];
[buf appendString: @"<hr class=\"section-separator\">\n"];
}
}
else if ([name isEqual: @"declared"] == YES)
Expand Down Expand Up @@ -2835,7 +2835,7 @@ - (void) outputUnit: (GSXMLNode*)node to: (NSMutableString*)buf
{
ibuf = ivarBuf;
[buf appendString: indent];
[buf appendString: @"<hr width=\"50%\" align=\"left\">\n"];
[buf appendString: @"<hr class=\"section-separator\">\n"];
[buf appendString: indent];
[buf appendFormat: @"<a href=\"#_%@_ivars\">Instance Variables</a>\n",
classname];
Expand All @@ -2844,7 +2844,7 @@ - (void) outputUnit: (GSXMLNode*)node to: (NSMutableString*)buf
[ibuf appendFormat: @"<a name=\"_%@_ivars\"/>", classname];
}
[ibuf appendString: indent];
[ibuf appendString: @"<br><hr width=\"50%\" align=\"left\">\n"];
[ibuf appendString: @"<br><hr class=\"section-separator\">\n"];
[ibuf appendString: indent];
[ibuf appendFormat: @"<h2>Instance Variables for %@ Class</h2>\n",
classname];
Expand All @@ -2854,7 +2854,7 @@ - (void) outputUnit: (GSXMLNode*)node to: (NSMutableString*)buf
node = [node nextElement];
}
[ibuf appendString: indent];
[ibuf appendString: @"<br><hr width=\"50%\" align=\"left\"><br>\n"];
[ibuf appendString: @"<br><hr class=\"section-separator\"><br>\n"];
}

a = [localRefs methodsInUnit: unit];
Expand All @@ -2867,7 +2867,7 @@ - (void) outputUnit: (GSXMLNode*)node to: (NSMutableString*)buf
target: nil
to: buf];
[buf appendString: indent];
[buf appendString: @"<hr width=\"50%\" align=\"left\">\n"];
[buf appendString: @"<hr class=\"section-separator\">\n"];
while (node != nil)
{
if ([[node name] isEqual: @"method"] == YES)
Expand Down
9 changes: 8 additions & 1 deletion Tools/default-styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.content-bar {
background-color: ;
float: left;
position: fixed;
top: 0px;
Expand Down Expand Up @@ -59,7 +58,15 @@
padding-left: 10px;
}

hr.section-separator {
width:50%;
margin-left:0;
text-align:left;
}


hr.method-separator {
width:25%;
margin-left:0;
text-align:left;
}

0 comments on commit 4a506cb

Please sign in to comment.