style also section horizontal rulers

This commit is contained in:
Riccardo Mottola 2024-10-18 11:35:47 +02:00
parent fc23434727
commit 4a506cb048
2 changed files with 14 additions and 7 deletions

View file

@ -959,7 +959,7 @@ static NSMutableSet *textNodes = nil;
unsigned l = 0; unsigned l = 0;
[buf appendString: indent]; [buf appendString: indent];
[buf appendString: @"<hr width=\"50%\" align=\"left\">\n"]; [buf appendString: @"<hr class=\"section-separator\">\n"];
[buf appendString: indent]; [buf appendString: indent];
[buf appendString: @"<h3>Contents -</h3>\n"]; [buf appendString: @"<h3>Contents -</h3>\n"];
@ -1036,7 +1036,7 @@ static NSMutableSet *textNodes = nil;
l--; l--;
} }
[buf appendString: indent]; [buf appendString: indent];
[buf appendString: @"<hr width=\"50%\" align=\"left\">\n"]; [buf appendString: @"<hr class=\"section-separator\">\n"];
} }
} }
else if ([name isEqual: @"declared"] == YES) else if ([name isEqual: @"declared"] == YES)
@ -2835,7 +2835,7 @@ static NSMutableSet *textNodes = nil;
{ {
ibuf = ivarBuf; ibuf = ivarBuf;
[buf appendString: indent]; [buf appendString: indent];
[buf appendString: @"<hr width=\"50%\" align=\"left\">\n"]; [buf appendString: @"<hr class=\"section-separator\">\n"];
[buf appendString: indent]; [buf appendString: indent];
[buf appendFormat: @"<a href=\"#_%@_ivars\">Instance Variables</a>\n", [buf appendFormat: @"<a href=\"#_%@_ivars\">Instance Variables</a>\n",
classname]; classname];
@ -2844,7 +2844,7 @@ static NSMutableSet *textNodes = nil;
[ibuf appendFormat: @"<a name=\"_%@_ivars\"/>", classname]; [ibuf appendFormat: @"<a name=\"_%@_ivars\"/>", classname];
} }
[ibuf appendString: indent]; [ibuf appendString: indent];
[ibuf appendString: @"<br><hr width=\"50%\" align=\"left\">\n"]; [ibuf appendString: @"<br><hr class=\"section-separator\">\n"];
[ibuf appendString: indent]; [ibuf appendString: indent];
[ibuf appendFormat: @"<h2>Instance Variables for %@ Class</h2>\n", [ibuf appendFormat: @"<h2>Instance Variables for %@ Class</h2>\n",
classname]; classname];
@ -2854,7 +2854,7 @@ static NSMutableSet *textNodes = nil;
node = [node nextElement]; node = [node nextElement];
} }
[ibuf appendString: indent]; [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]; a = [localRefs methodsInUnit: unit];
@ -2867,7 +2867,7 @@ static NSMutableSet *textNodes = nil;
target: nil target: nil
to: buf]; to: buf];
[buf appendString: indent]; [buf appendString: indent];
[buf appendString: @"<hr width=\"50%\" align=\"left\">\n"]; [buf appendString: @"<hr class=\"section-separator\">\n"];
while (node != nil) while (node != nil)
{ {
if ([[node name] isEqual: @"method"] == YES) if ([[node name] isEqual: @"method"] == YES)

View file

@ -1,5 +1,4 @@
.content-bar { .content-bar {
background-color: ;
float: left; float: left;
position: fixed; position: fixed;
top: 0px; top: 0px;
@ -59,7 +58,15 @@
padding-left: 10px; padding-left: 10px;
} }
hr.section-separator {
width:50%;
margin-left:0;
text-align:left;
}
hr.method-separator { hr.method-separator {
width:25%; width:25%;
margin-left:0; margin-left:0;
text-align:left;
} }