mirror of
https://github.com/rickbarrette/stopwatch.git
synced 2026-11-17 19:50:36 -05:00
- Colour-coded Start/Stop links use #2e7d32 / #c62828, which meet the 4.5:1 text contrast ratio on white and on the mobile backgrounds (limegreen was ~2:1, red ~4:1) - Selectors match the end of the link address (/timer/start, /timer/stop), exactly what stopwatch.js rewrites, instead of any address containing "start"/"stop" - highlighted_links setting uses a string key like default_activity, has a default, and the form sends 0 when unticked - Context-menu hook uses the calling view (hook_caller) instead of building a new view context - README: "Changes in this fork" section (GPLv3 modification notice) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
28 lines
834 B
CSS
28 lines
834 B
CSS
/* Colour-codes the issue Start/Stop tracking links (enabled in the plugin settings).
|
|
Matches the end of the link address, which stopwatch.js rewrites between ".../timer/start" and
|
|
".../timer/stop" when a timer starts or stops, so the colour always follows the link.
|
|
Colours meet the 4.5:1 contrast ratio for readable text, on white and on the mobile backgrounds. */
|
|
|
|
a.stopwatch_issue_timer[href$="/timer/stop"] {
|
|
color: #c62828;
|
|
}
|
|
|
|
a.stopwatch_issue_timer[href$="/timer/start"] {
|
|
color: #2e7d32;
|
|
}
|
|
|
|
/* Mobile only */
|
|
@media (max-width: 899px) {
|
|
a.stopwatch_issue_timer[href$="/timer/stop"] {
|
|
color: #c62828;
|
|
background-color: #ffe5e5;
|
|
border: 1px solid #c62828;
|
|
}
|
|
|
|
a.stopwatch_issue_timer[href$="/timer/start"] {
|
|
color: #2e7d32;
|
|
background-color: #eaffea;
|
|
border: 1px solid #2e7d32;
|
|
}
|
|
}
|