Header/footer polish, fix dead link, add focus rings
- Dashboard header shortened to match every other page (was notably taller than the rest). - Files moved before Settings in the bottom nav. - Removed the header's course-name badge - purely redundant with the page's own heading directly below it. - Fixed a dead link: "Progress" pointed to #stats, but no element with that id existed anywhere on the page. - Added a visible :focus-visible ring across all pages - tabbing through the site previously gave no indication of what was focused. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+10
-3
@@ -139,6 +139,13 @@
|
||||
.card li {
|
||||
padding: 6px 0;
|
||||
}
|
||||
/* Visible keyboard-focus ring - see course_dashboard.html for why
|
||||
:focus-visible (keyboard/switch only, not mouse clicks). */
|
||||
a:focus-visible, button:focus-visible, input:focus-visible,
|
||||
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -239,12 +246,12 @@
|
||||
<a href="/help" class="tab-item {% if active_tab == 'help' %}active{% endif %}">
|
||||
<span class="tab-icon">{{ icons.icon('help', 20) }}</span><span class="tab-label">Help</span>
|
||||
</a>
|
||||
<a href="/settings" class="tab-item {% if active_tab == 'settings' %}active{% endif %}">
|
||||
<span class="tab-icon">{{ icons.icon('settings', 20) }}</span><span class="tab-label">Settings</span>
|
||||
</a>
|
||||
<a href="/unsorted" class="tab-item {% if active_tab == 'files' %}active{% endif %}">
|
||||
<span class="tab-icon">{{ icons.icon('folder', 20) }}</span><span class="tab-label">Files</span>
|
||||
</a>
|
||||
<a href="/settings" class="tab-item {% if active_tab == 'settings' %}active{% endif %}">
|
||||
<span class="tab-icon">{{ icons.icon('settings', 20) }}</span><span class="tab-label">Settings</span>
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
<script src="/static/theme.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user