Skip to content

Commit b8179b9

Browse files
committed
【 fix 】方法的 params hover 时高亮,static 与方法名有间隔;review by xiongjj
1 parent 9efa2ff commit b8179b9

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

build/jsdocs/template/static/styles/jaguar.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ a:hover, a:active, a:focus{
339339
color: #fff;
340340
}
341341

342+
.main .nameContainer .attribs {
343+
margin-right: 5px;
344+
}
345+
342346
.main pre {
343347
font-size: 11px;
344348
}
@@ -434,7 +438,7 @@ a:hover, a:active, a:focus{
434438
list-style-type: none;
435439
}
436440

437-
.container-overview .params tbody>tr:hover {
441+
.params tbody>tr:hover {
438442
background-color: rgba(0,0,0,0.04);
439443
}
440444

build/jsdocs/template/tmpl/members.tmpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ if (data.type && data.type.names) {
1212
<dt>
1313
<div class="nameContainer">
1414
<h4 class="name" id="<?js= id ?>">
15-
<?js= data.attribs + name + typeSignature ?>
15+
<?js if (data.attribs) { ?>
16+
<span class="attribs"><?js= data.attribs ?></span>
17+
<?js } ?>
18+
<?js= name + typeSignature ?>
1619
</h4>
1720
<?js if (data.usage) { ?>
1821
<h5>Usage</h5>

build/jsdocs/template/tmpl/method.tmpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ var self = this;
88
<?js if (data.inherited || data.inherits) { ?>
99
<span class="inherited"><?js= this.linkto(data.inherits, 'inherited') ?></span>
1010
<?js } ?>
11-
<?js= data.attribs + (kind === 'class'&&!data.isFactoryFunction ? 'new ' : '') + name + (kind !== 'event' ? data.signature : '') ?>
11+
<?js if (data.attribs) { ?>
12+
<span class="attribs"><?js= data.attribs ?></span>
13+
<?js } ?>
14+
<?js= (kind === 'class'&&!data.isFactoryFunction ? 'new ' : '') + name + (kind !== 'event' ? data.signature : '') ?>
1215
</h4>
1316
<?js if (data.usage) { ?>
1417
<h5>Usage</h5>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy