aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/templates/dashboard
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2026-09-18 19:18:30 +0300
committergrm <grm@eyesin.space>2026-09-18 19:18:30 +0300
commit0a248d9a0e6ef6439fca25aa854968b6b5dac2ef (patch)
tree54c770cfb8dd8c26d0fa128f584be6a8211d7181 /internal/web/templates/dashboard
parentb88a7d22c8d79b30de3403c631dd2c5f67669537 (diff)
downloadblogspace-0a248d9a0e6ef6439fca25aa854968b6b5dac2ef.tar.gz
blogspace-0a248d9a0e6ef6439fca25aa854968b6b5dac2ef.tar.bz2
blogspace-0a248d9a0e6ef6439fca25aa854968b6b5dac2ef.zip
Add menu link size, spacing, a current-page mark and a spread alignment
Size and spacing selects, a choice of how the current page's link is marked (underlined as before, bold, boxed or not at all) and a fourth alignment that spreads the header's links across the bar. Alignment joins the other menu classes on the body, so the theme CSS no longer sets it; spread is justified text with a full-width last line, which old browsers lay out too, and stays out of the column menus. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
Diffstat (limited to 'internal/web/templates/dashboard')
-rw-r--r--internal/web/templates/dashboard/design.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/web/templates/dashboard/design.html b/internal/web/templates/dashboard/design.html
index 7b11e44..ec4f70d 100644
--- a/internal/web/templates/dashboard/design.html
+++ b/internal/web/templates/dashboard/design.html
@@ -154,12 +154,29 @@
<option value="left"{{if eq $t.NavAlign "left"}} selected{{end}}>{{t "Left"}}</option>
<option value="center"{{if eq $t.NavAlign "center"}} selected{{end}}>{{t "Centred"}}</option>
<option value="right"{{if eq $t.NavAlign "right"}} selected{{end}}>{{t "Right"}}</option>
+ <option value="spread"{{if eq $t.NavAlign "spread"}} selected{{end}}>{{t "Spread out"}}</option>
+ </select></label>
+ <label>{{t "Size"}}<br><select name="nav_size">
+ <option value="small"{{if eq $t.NavSize "small"}} selected{{end}}>{{t "Small"}}</option>
+ <option value="normal"{{if eq $t.NavSize "normal"}} selected{{end}}>{{t "Normal"}}</option>
+ <option value="large"{{if eq $t.NavSize "large"}} selected{{end}}>{{t "Large"}}</option>
+ </select></label>
+ <label>{{t "Spacing"}}<br><select name="nav_gap">
+ <option value="tight"{{if eq $t.NavGap "tight"}} selected{{end}}>{{t "Tight"}}</option>
+ <option value="normal"{{if eq $t.NavGap "normal"}} selected{{end}}>{{t "Normal"}}</option>
+ <option value="wide"{{if eq $t.NavGap "wide"}} selected{{end}}>{{t "Wide"}}</option>
</select></label>
<label>{{t "Underline"}}<br><select name="nav_underline">
<option value="never"{{if eq $t.NavUnderline "never"}} selected{{end}}>{{t "Never"}}</option>
<option value="hover"{{if eq $t.NavUnderline "hover"}} selected{{end}}>{{t "Only on hover"}}</option>
<option value="always"{{if eq $t.NavUnderline "always"}} selected{{end}}>{{t "Always"}}</option>
</select></label>
+ <label>{{t "Current page"}}<br><select name="nav_active">
+ <option value="underline"{{if eq $t.NavActive "underline"}} selected{{end}}>{{t "Underlined"}}</option>
+ <option value="bold"{{if eq $t.NavActive "bold"}} selected{{end}}>{{t "Bold"}}</option>
+ <option value="box"{{if eq $t.NavActive "box"}} selected{{end}}>{{t "Boxed"}}</option>
+ <option value="none"{{if eq $t.NavActive "none"}} selected{{end}}>{{t "Not marked"}}</option>
+ </select></label>
<label>{{t "Background"}}<br><input type="color" name="nav_bg" value="{{$t.NavBg}}"></label>
<label>{{t "Text"}}<br><input type="color" name="nav_text" value="{{$t.NavText}}"></label>
</div>