Skip to content

Commit aa9b939

Browse files
committed
fix: polish menu to more ordered
1 parent 2dccb89 commit aa9b939

File tree

1 file changed

+49
-36
lines changed

1 file changed

+49
-36
lines changed

darkstat/front/docs.templ

Lines changed: 49 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -164,40 +164,27 @@ templ DocsT(mode2 tab.ShowEmpty, shared *types.SharedData) {
164164
display: block;
165165
max-width: 100px;
166166
}
167+
menu {
168+
font-size: 1.3em;
169+
}
170+
menu .section {
171+
font-size: 1.5em;
172+
}
173+
menu a {
174+
text-decoration: none;
175+
}
167176
</style>
168177
<returntotop>
169178
<a href="#top">Back to top</a>
170179
</returntotop>
171180
<textbody>
172181
<h1>Documentation to <a href={ templ.SafeURL(types.GetCtx(ctx).SiteRoot + urls.Index.ToString()) }>darkstat</a></h1>
173182
<menu>
183+
<span class="section">Vanilla features:</span>
174184
<ul>
175185
<li>
176186
@SectionLink(HeaderAvailableTags)
177187
</li>
178-
if shared.ShowDisco {
179-
<li>
180-
@SectionLink(HeaderDiscoCoordsForWaypoints)
181-
</li>
182-
<li>
183-
@SectionLink(HeaderDiscoTechCompat)
184-
</li>
185-
}
186-
if shared.ShowDisco {
187-
<li>
188-
@SectionLink(HeaderAutoUpdate)
189-
</li>
190-
}
191-
if shared.ShowDisco {
192-
<li>
193-
@SectionLink(HeaderDiscoCommodityVolumes)
194-
</li>
195-
}
196-
if shared.ShowDisco|| shared.ShowFLSR {
197-
<li>
198-
@SectionLink(shared.CraftableBaseName)
199-
</li>
200-
}
201188
<li>
202189
@SectionLink(HeaderLootable)
203190
</li>
@@ -222,19 +209,6 @@ templ DocsT(mode2 tab.ShowEmpty, shared *types.SharedData) {
222209
<li>
223210
@SectionLink(HeaderLegendExtra)
224211
</li>
225-
if shared.ShowDisco {
226-
<li>
227-
@SectionLink(HeaderPOBs)
228-
</li>
229-
<li>
230-
<a href="#how_to_turn_pob_feature_on">
231-
{ HeaderPoBsHowToTurnOn }
232-
</a>
233-
</li>
234-
<li>
235-
@SectionLink(HeaderDiscoKiloVolumes)
236-
</li>
237-
}
238212
<li>
239213
@SectionLink(HeaderDifferentThemes)
240214
</li>
@@ -248,6 +222,45 @@ templ DocsT(mode2 tab.ShowEmpty, shared *types.SharedData) {
248222
@SectionLink(HeadersContributeToDocs)
249223
</li>
250224
</ul>
225+
if shared.ShowDisco {
226+
<span class="section">Disco features:</span>
227+
<ul>
228+
<li>
229+
@SectionLink(HeaderDiscoCoordsForWaypoints)
230+
</li>
231+
<li>
232+
@SectionLink(HeaderDiscoTechCompat)
233+
</li>
234+
<li>
235+
@SectionLink(HeaderAutoUpdate)
236+
</li>
237+
<li>
238+
@SectionLink(HeaderDiscoCommodityVolumes)
239+
</li>
240+
<li>
241+
@SectionLink(HeaderDiscoKiloVolumes)
242+
</li>
243+
<li>
244+
@SectionLink(shared.CraftableBaseName)
245+
</li>
246+
<li>
247+
@SectionLink(HeaderPOBs)
248+
</li>
249+
<li>
250+
<a href="#how_to_turn_pob_feature_on">
251+
{ HeaderPoBsHowToTurnOn }
252+
</a>
253+
</li>
254+
</ul>
255+
}
256+
if shared.ShowFLSR {
257+
FLSR features
258+
<ul>
259+
<li>
260+
@SectionLink(shared.CraftableBaseName)
261+
</li>
262+
</ul>
263+
}
251264
</menu>
252265
@SectionHeader(HeaderAvailableTags)
253266
<p>

0 commit comments

Comments
 (0)