File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed
packages/doxdox-renderer-bootstrap/src Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ const renderFileNav = (file: File) => `<p><a href="#${
72
72
${ file . methods
73
73
. map (
74
74
method =>
75
- `<li><a href="#${ method . slug } " class="${
75
+ `<li class="method-name" ><a href="#${ method . slug } " class="${
76
76
method . private ? 'text-muted' : ''
77
77
} ">${ method . name } </a></li>`
78
78
)
@@ -107,25 +107,33 @@ export default async (doc: Doc): Promise<string> => `<!DOCTYPE html>
107
107
font-size: 3.5rem;
108
108
}
109
109
110
+ .pkg-name a {
111
+ text-decoration: none;
112
+ }
113
+
110
114
.pkg-description {
111
115
font-size: 1.5rem;
112
116
font-weight: 200;
113
117
}
114
118
115
- .file-name {
119
+ nav .file-name {
116
120
color: #E54D89;
117
121
}
118
122
119
- .method-name {
123
+ nav .method-name {
124
+ margin: 0.25rem 0;
125
+ }
126
+
127
+ main .method-name {
120
128
position: relative;
121
129
}
122
130
123
- .method-scope {
131
+ main .method-scope {
124
132
font-size: 1.5rem;
125
133
color: #999;
126
134
}
127
135
128
- .method-permalink {
136
+ main .method-permalink {
129
137
position: absolute;
130
138
margin-left: -1em;
131
139
font-weight: normal;
@@ -153,19 +161,19 @@ export default async (doc: Doc): Promise<string> => `<!DOCTYPE html>
153
161
154
162
<div class="container">
155
163
<div class="row">
156
- <div class="p-5 col-md-3">
164
+ <nav class="p-5 col-md-3">
157
165
${ doc . files
158
166
. filter ( file => file . methods . length )
159
167
. map ( file => renderFileNav ( file ) )
160
168
. join ( '' ) }
161
- </div >
169
+ </nav >
162
170
163
- <div class="p-5 col-md-9">
171
+ <main class="p-5 col-md-9">
164
172
${ doc . files
165
173
. filter ( file => file . methods . length )
166
174
. map ( file => renderFile ( file ) )
167
175
. join ( '' ) }
168
- </div >
176
+ </main >
169
177
</div>
170
178
</div>
171
179
You can’t perform that action at this time.
0 commit comments