mirror of
https://github.com/rickbarrette/stopwatch.git
synced 2026-11-17 19:50:36 -05:00
Readable Start/Stop colours, exact selectors, fork notes
- 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
This commit is contained in:
6 files changed
+37
-18
No files matched your search
@@ -1,22 +1,27 @@
|
||||
a.stopwatch_issue_timer[href*="stop"] {
|
||||
color: red;
|
||||
/* 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*="start"] {
|
||||
color: limegreen;
|
||||
a.stopwatch_issue_timer[href$="/timer/start"] {
|
||||
color: #2e7d32;
|
||||
}
|
||||
|
||||
/* Mobile only */
|
||||
@media (max-width: 899px) {
|
||||
a.stopwatch_issue_timer[href*="stop"] {
|
||||
color: red;
|
||||
a.stopwatch_issue_timer[href$="/timer/stop"] {
|
||||
color: #c62828;
|
||||
background-color: #ffe5e5;
|
||||
border: 1px solid red;
|
||||
border: 1px solid #c62828;
|
||||
}
|
||||
|
||||
a.stopwatch_issue_timer[href*="start"] {
|
||||
color: limegreen;
|
||||
background-color: #eaffea;
|
||||
border: 1px solid limegreen;
|
||||
a.stopwatch_issue_timer[href$="/timer/start"] {
|
||||
color: #2e7d32;
|
||||
background-color: #eaffea;
|
||||
border: 1px solid #2e7d32;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user