Commit Graph

68 Commits

Author SHA1 Message Date
Conrad Hoffmann f48457a097 Revert "Fix text-decoration for <del> tag"
This reverts commit 390e609e53.

The approach was too heavy-handed. It messes with folks who use <del> in
their README. The commit that introduced the issue that the reverted
commit was trying to address has itself been reverted.
2022-12-19 13:14:10 +01:00
Conrad Hoffmann 09128ad3ad Revert "Change markup for diff insert/delete lines"
This reverts commit b75d2f0e03.

This commit has some issues:

- It uses <ins>/<del> not for the content that was actually
  added/removed (i.e. the diff), but for the line stats. I don't think
  that helps accessibility, it might actually make it worse.
- It adds some CSS to apply text decoration to <ins>/<del>, but only
  inside the `diff` class. However, the elements never occur inside the
  `diff` class (see first item). The CSS is never used.
- Instead, the place where it was used (line stats) got unintended text
  decoration applied, causing a follow-up commit which fixed this the
  wrong way, causing yet more issues (fixed in next commit).

I think the one place where it would make sense to apply <ins>/<del> is
the diff itself, but that might be a more serious operation.
2022-12-19 13:14:08 +01:00
Vlad-Stefan Harbuz a00fc083e4 add REUSE-based licenses to repo page
Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
2022-10-10 11:23:24 +02:00
Kunal Sareen 390e609e53 Fix text-decoration for <del> tag
Browsers usually render a <del> tag with a strike-through. However,
strike-through makes the number of deletions in a file unreadable as
well as the number of additions is rendered with an underline. This
commit fixes the issue by using underline for the <del> tag.
2022-05-30 13:37:47 +02:00
Joram Schrijver 470f1029fc Fix send-email helper details color in dark mode
The collapsed summary color was low contrast, and the expanded summary
color was almost invisible (black on dark gray). There currently is no
uncolored text inside a details tag, but such text would also have been
black.
2022-04-28 11:25:19 +02:00
Chris DeLuca b75d2f0e03 Change markup for diff insert/delete lines
HTML provides semantic markup for the concept of inserting and deleting
content from a document. Leveraging these tags can increase the
correctness and accessibility of the document without effecting its
presentation.

See:

- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del
2022-04-28 11:25:13 +02:00
pyxel 50c5dc14a0 adapt code-view to window height 2021-06-06 11:27:36 -04:00
pyxel 15116fa8bc when using dark mode change the ruler color 2021-05-24 09:51:30 -04:00
jack gleeson 462dcebc6d Fix breadcrumb text clipping issue
Fixing issue on low resolutions / narrow screens where the breadcrumb
menu items overlap under the reference items to the right. This is
closer to the hg.sr.ht layout which wraps on narrow screens.
2021-05-17 09:44:10 -04:00
Drew DeVault f08e762988 Fix background on commit page 2021-01-16 11:12:45 -05:00
Drew DeVault f8ed55f407 Various improvements for dark theme 2021-01-06 10:44:47 -05:00
Drew DeVault 82edbf50bb Fix issues with light theme
Apparently Chromium does not interpret "no preference" as
"prefers-color-scheme: light", in contradiction with what the docs
suggest at MDN.
2020-12-19 08:29:39 -05:00
Drew DeVault 499f7003e6 Improve selected line on dark theme 2020-12-16 10:12:04 -05:00
Drew DeVault 1f1782e39e Improve blame view on dark theme 2020-12-16 10:10:21 -05:00
Drew DeVault e53c400e45 Fix branch/tag badges on dark theme 2020-12-15 14:25:14 -05:00
Drew DeVault aaa68a0811 Dark theme updates 2020-12-15 14:06:32 -05:00
jack gleeson 550a14e3f1 Fix clipping in breadcrumb menu. 2020-11-10 12:00:09 -05:00
Drew DeVault 0cbe128a93 tree: truncate latest commit to avoid wrapping nav 2020-08-28 12:16:39 -04:00
наб c44f9d3cb7 Display (View|Tree)/Log/Blame/View raw as nav-tabs
The colours are, essentially, inverted in regards to the usual nav-tab
styling, since we're embedding them inside a nav-bar
2020-08-25 12:25:17 -04:00
наб a2ba53072f Pin highlight row to left to fix page over-width
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2020-08-25 12:06:36 -04:00
наб 342ae75e78 Add blame view
Ref: ~sircmpwn/git.sr.ht#157
2020-08-17 09:33:16 -04:00
наб 755189c421 Allow long ref names to wrap
Ref: ~sircmpwn/git.sr.ht#168
2020-08-17 09:33:16 -04:00
Drew DeVault d20b49f3ab Remove annotations
This feature has seen very little adoption and has been a source of
complexity and security issues.
2020-06-29 10:20:53 -04:00
Drew DeVault 2d52325bcc Revert "Add back gray background to pre block"
This reverts commit 933c336b15.
2020-05-07 13:09:55 -04:00
Mendel E 933c336b15 Add back gray background to pre block 2020-05-06 09:57:46 -04:00
Drew DeVault ad41e1116a Responsiveness improvements 2020-03-10 10:46:10 -04:00
Drew DeVault 963825d107 Attach annotations to a specific commit sha
See git.sr.ht#267

When a new commit is pushed which updates some blobs, but not others,
cross-references between them will be broken.

We could technically associate this with the top-level tree sha, but
this would be wrong for subtrees and it's not obvious how to avoid this.
Since one commit is guaranteed to be associated with a toplevel tree,
attaching it to the commit solves this without much compromise.
2020-02-21 10:31:59 -05:00
Drew DeVault 0d1762f16b blob view: add rendered markdown view 2020-02-18 09:36:03 -05:00
Drew DeVault da5c399552 accessibility: improve contrast of diffs 2020-01-22 18:37:57 -05:00
Drew DeVault 142b8fd172 accessibility improvements following core changes 2020-01-22 18:31:42 -05:00
Honza Pokorny 963dbf6e31 Display git trees using a monospace font 2019-11-10 13:40:54 -05:00
Drew DeVault deb64cee2b Adjust the same number further up 2019-11-03 09:00:58 -05:00
Drew DeVault 11c097b5fa Increase height of selected lines 2019-11-03 08:56:16 -05:00
Drew DeVault 7c1d43a641 Implement send-email helper UI 2019-10-14 15:01:38 -04:00
Drew DeVault 452ebe908c Implement annotations 2019-07-06 13:56:30 -04:00
Ignas Kiela 3f95a6e189 Clip filename and commit message in tree view 2019-06-16 11:26:49 -04:00
Ivan Habunek c848f499b8 Fix block selection styles for Firefox
On Firefox, when multiple lines are selected, 2px is not enough to
connect adjacent lines which leaves a 1px white gap between them.
Increasing the selection height by 1px fixes that.
2019-01-29 10:16:53 -05:00
Ivan Habunek 84cb142b80 Highlight line of code indicated by fragment 2019-01-23 21:09:01 -05:00
Drew DeVault 67c208b7f5 Limit max width of images in readmes to 100% 2018-12-12 20:54:13 -05:00
Drew DeVault c6533c216a Implement commit view 2018-10-01 15:21:59 -04:00
Drew DeVault d40fe4e8f0 Flesh out log view a bit
Fixes and adds style for tags, annotations, etc
2018-10-01 09:56:32 -04:00
Drew DeVault 7195c5c458 Set pointer-events: none on ruler 2018-09-22 13:51:56 -04:00
Drew DeVault 11432af556 Right-align line numbers 2018-09-22 13:39:31 -04:00
Drew DeVault 8616f09c97 Add blob view 2018-09-22 13:15:41 -04:00
Drew DeVault bea00bb3db Improve grid alignment 2018-09-21 18:35:29 -04:00
Drew DeVault 57ed00505a Split up columns more, gray stuff out 2018-09-21 18:26:22 -04:00
Drew DeVault f992ceccbf Mock up tree page 2018-09-21 15:32:22 -04:00
Drew DeVault a9d6125f0b Remove cgit support 2018-09-19 21:53:16 -04:00
Thomas Bracht Laumann Jespersen 66c833f9ab Add back tag-deco for non-annotated tags
In 1caa76776e the a.tag-deco class was
removed in favour of a.tag-annotated-deco. However, it seems that cgit
has just added a distinction between annotated and non-annotated tags.

See

    https://git.sr.ht/~laumann/redshift-rs/

for an example (specifically the v0.1.1 tag).
2018-09-08 15:50:45 -04:00
Drew DeVault ca5e526a1e Remove font-awesome 4 import 2018-09-01 14:10:36 -04:00