Website Summary Files Commits Branches @commit @diff @stats
path: root / cgit.css
Commit message (Collapse)AuthorAgeLinesSHA
* css: use correct size in annotated decoration
 Jason A. Donenfeld
2018-07-08-0/+1089b29a
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui-log: highlight annotated tags in different color
 Christian Hesse
2018-06-27-0/+80bb34ef
| | | | | | | | | Annotated tags have some extra information... Descriptive text or signature. Highlighting annotated tags in a different color show what tag may be worth clicking for extra information. Signed-off-by: Christian Hesse <mail@eworm.de> Reviewed-by: John Keeping <john@keeping.me.uk>
* ui-blame: Allow syntax highlighting
 Jeff Smith
2018-01-19-0/+10dbaee26
| | | | | | | | | | Place file contents into a single block so that syntax highlighting can be applied in the usual fashion. Place the alternating color bars behind the file contents. Force the default syntax highlighting background to transparent. Signed-off-by: Jeff Smith <whydoubt@gmail.com> Reviewed-by: John Keeping <john@keeping.me.uk>
* ui-blame: Make each column into a single table cell
 Jeff Smith
2018-01-19-2/+17aafc42d
| | | | | Signed-off-by: Jeff Smith <whydoubt@gmail.com> Reviewed-by: John Keeping <john@keeping.me.uk>
* ui-blame: Distinguish hashes column from lines column
 Jeff Smith
2018-01-19-0/+16b5b655
| | | | | Signed-off-by: Jeff Smith <whydoubt@gmail.com> Reviewed-by: John Keeping <john@keeping.me.uk>
* ui-blame: add blame UI
 Jeff Smith
2017-10-03-0/+8c1cd290
| | | | | | | | | | Implement a page which provides the blame view of a specified file. This feature is controlled by a new config variable, "enable-blame", which is disabled by default. Signed-off-by: Jeff Smith <whydoubt@gmail.com> Reviewed-by: John Keeping <john@keeping.me.uk>
* css: highlight even table rows and skip empty rows
 Christian Hesse
2016-11-23-0/+2081509a2
| | | | | | This is stolen from kernel.org css [0]. [0] https://git.kernel.org/cgit-korg-0.10.1.css
* css: consistent use of empty lines
 Christian Hesse
2016-07-05-0/+6c19d983
| | | | Signed-off-by: Christian Hesse <mail@eworm.de>
* ui-log: color line changes
 Christian Hesse
2016-07-05-0/+94fb4986
| | | | Signed-off-by: Christian Hesse <mail@eworm.de>
* css: fix indentation
 Jason A. Donenfeld
2016-02-23-4/+446ff6e1
|
* css: use less blurry icon for external link
 Christian Hesse
2016-02-23-1/+2a0d22c3
| | | | | | | | Your mileage may vary, but for me the old icon looks blurry. The new one is character 0xf08e from OTF font awsome in size 10. The icon color is black, gray level is adjusted via opacity. Signed-off-by: Christian Hesse <mail@eworm.de>
* ui-shared: add homepage to tabs
 Jason A. Donenfeld
2016-02-22-0/+55f2664f
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Remove no-op link from submodule entries
 Lukas Fleischer
2015-03-13-1/+1db021a1
| | | | | | | Instead of linking to the current page ("href='#'"), do not add a link to a submodule entry at all if the module-link setting is not used. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
* footer: link back to cgit home page
 Jason A. Donenfeld
2014-12-23-0/+72159414
| | | | | The footer has always been overrideable using the footer= in cgitrc, so this won't anger anybody who cares about their footer.
* Reduce line number bloat, fix hover effect
 Peter Wu
2014-01-08-2/+44468ec1
| | | | | | | | | | | | | | | | | | | | | Currently line numbers look like (for blob view and sdiff respectively): <a class='no' id='n68' name='n68' href='#n68'>68</a> <td class='lineno'><a class='no' href='...#n1' id='n1' name='n1'>1</a></td> name=".." is unnecessary if the id attribute is set (this even applies to IE6), so drop it. (aside, in HTML5, the name attribute is gone.) The line number links can be selected through their parent classes, no need for another class "no", so drop it too. For a file with 2000 lines, this yields a saving of 40% (29% gzipped). While at it, fix the hover effect of line numbers: now the line number get a black background as was intended. Signed-off-by: Peter Wu <lekensteyn@gmail.com> Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
* filters: import more modern scripts
 Jason A. Donenfeld
2013-05-27-14/+08149be2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Convert pager navigation into a unordered list
 Lukas Fleischer
2013-03-20-4/+10b60e6bf
| | | | | | | | | | It is common practice and semantically appropriate to use unordered lists for long navigation lists. This also fixes the layout of very long pager navigations in Webkit-based browsers. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
* ui-repolist: Bold the currently viewed page.
 Jamie Couture
2012-10-08-0/+44675b91
| | | | Signed-off-by: Jamie Couture <jamie.couture@gmail.com>
* css: only use div#cgit
 Ferry Huberts
2012-03-20-4/+14555551
| | | | | | | | Don't bother with 'body' and 'div#cgit form', since everything is wrapped in 'div#cgit' already. Removing these two types makes embedding even easier. Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
* css: force text color to black on decorations
 Ferry Huberts
2012-03-18-0/+46e63ebf
| | | | | | | improves readability when embedding into a page that has the text color set to a different color Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
* css: vertically align the cgit logo image
 Ferry Huberts
2012-03-18-0/+1fac65a7
| | | | | | | | When embedding cgit in other pages, the logo alignment needs to be specified to avoid any css rules from the embedding page to make the page look bad. Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
* css: prefix all styles with div#cgit
 Ferry Huberts
2012-03-18-169/+169add1ccb
| | | | | | to facilitate easier embedding Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
* Merge branch 'stable'
 Lars Hjemli
2012-01-03-2/+2aa25ff3
|\
| * fix css color value and vertical-align value
 Norberto Lopes
2012-01-03-2/+2dad620e
| |
* | ui-diff.c: create a control panel for diff options
 Lars Hjemli
2011-03-06-0/+27962a248
|/ | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Merge branch 'br/misc'
 Lars Hjemli
2011-02-19-1/+1979c460
|\ | | | | | | | | | | | | * br/misc: Use transparent background for the cgit logo ssdiff: anchors for ssdiff implement repo.logo and repo.logo-link
| * ssdiff: anchors for ssdiff
 Bernhard Reutner-Fischer
2011-02-19-1/+1e52040b
| | | | | | | | | | | | | | Emit anchors to the respective revisions in side-by-side diff view Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | Merge branch 'jh/graph'
 Lars Hjemli
2011-02-19-11/+2931e1f9a
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | * jh/graph: ui-log: Move 'Age' column when commit graph is present ui-log: Line-wrap long commit subjects when showmsg is enabled ui-log: Colorize commit graph ui-log: Implement support for commit graphs ui-log: Change display of full commit messages (and notes) Conflicts: cgit.css
| * ui-log: Colorize commit graph
 Johan Herland
2010-11-16-0/+24268b34a
| | | | | | | | | | | | | | | | | | | | | | | | | | Use the existing coloring logic in Git's graph code to color the lines between commits in the commit graph. Whereas Git normally uses ANSI color escapes to produce colors, we here use graph_set_column_colors() to replace those with HTML color escapes, that embed the graph lines in <span> tags that apply the desired color using CSS. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * ui-log: Implement support for commit graphs
 Johan Herland
2010-11-16-1/+69a8d39c
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach CGit to print an ASCII art commit graph to the left of the commit message, similar to 'git log --graph'. The graph adds extra lines (table rows) to the log when needed to add/remove/shuffle edges in the graph. When 'showmsg' is enabled, the graph is automatically padded to account for the extra lines added by the commit message/notes. This feature is controlled by a new config variable: "enable-commit-graph" (disabled by default), and individual repos can control it by setting "repo.enable-commit-graph". Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * ui-log: Change display of full commit messages (and notes)
 Johan Herland
2010-11-16-12/+15a36c2a
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When showmsg is enabled, ui-log (in addition to the table row containing the details of the current commit) adds a second table row containing the remainder of the commit message, and yet another table row containing the commit notes (if any). The vertical margins between commit subject, commit message and commit notes are controlled by CSS. In preparation for the commit graph (which will be printed to the left of the commit message/notes) we need to eliminate these vertical margins (as they would produce ugly gaps in the commit graph) and instead achieve them by adding newlines to the commit message/notes. Furthermore, we can no longer print the "Notes:" header in the "Age" column, since the graph will be drawn between the "Age" column and the "Commit message" column. This patch therefore prepares the commit message and commit notes in a single buffer (properly formatting the notes using the NOTES_SHOW_HEADER and NOTES_INDENT flags to format_note()), and then prints the entire buffer into a single table row. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | cgit.css: Add syntax highlighting entries
 Todd Zullinger
2010-09-19-1/+15d7765df
|/ | | | | Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* ui-log: Display git notes when present
 Jeff Smith
2010-08-04-0/+1139c2e22
| | | | | Signed-off-by: Jeff Smith <whydoubt@yahoo.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* ui-commit: Display git notes when present
 Jeff Smith
2010-08-04-0/+18059b393
| | | | | Signed-off-by: Jeff Smith <whydoubt@yahoo.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Merge branch 'jh/path-limit'
 Lars Hjemli
2010-06-22-2/+837a24e4
|\ | | | | | | | | | | Conflicts: cgit.h ui-commit.c
| * ui-shared.c: path-limit style nitpick
 Lars Hjemli
2010-06-19-4/+2a2cbd3c
| | | | | | | | | | | | This subjectively makes the path-limit bar less visually intrusive. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * ui-shared: Display path limit directly beneath tab bar in relevant pages
 Johan Herland
2010-06-19-0/+8c93ef96
| | | | | | | | | | | | | | | | | | | | | | Design-wise, the path is shown by "expanding" the grey border between the tab bar and the content area of the page to house the current path limit. This is only displayed on pages where the path limit is relevant, and only when a path limit is in effect. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | Fix style of commit-filter links in commit-subject.
 Johan Herland
2010-06-19-1/+447187b3
|/ | | | | | | | | | | | When using the commit-filter functionality to add e.g. bug tracker links to commit messages, the style of those links is mangled by a CSS directive that is meant to only apply to decorations that are listed on the commit-subject line. Fix this directive to only apply to the decorations. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Merge branch 'ro/ssdiff'
 Lars Hjemli
2009-12-08-0/+99f4f6210
|\
| * In side-by-side diff, add support for marking individual characters.
 Ragnar Ouchterlony
2009-11-07-0/+10735e15e
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Refuses to do so if the left hand side of the diff has different amount of differing lines to the right hand side to avoid confusion. Note that I use the naive dynamic programming approach for calculating the longest common subsequence. We could probably be more efficient by using a better algorithm. The LCS calculating function is O(n*m) and uses up n*m amount of memory too (so if we we compare two strings of length 100, I use an array of 10000 for calculating the LCS). Might want to not calculate LCS if the length of the line is too large. Signed-off-by: Ragnar Ouchterlony <ragnar@lysator.liu.se>
| * Polishing of how the side-by-side diff looks.
 Ragnar Ouchterlony
2009-09-16-6/+60207cc34
| | | | | | | | | | | | | | | | | | | | | | Aligned all different files, so that all side-by-side tables look the same. Also made sure that the tables take up the whole browser width. Also various changes to the css to make things easier on the eye. Signed-off-by: Ragnar Ouchterlony <ragnar@lysator.liu.se> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * First version of side-by-side diff.
 Ragnar Ouchterlony
2009-09-16-0/+3540e174d
| | | | | | | | | | | | | | | | | | This constitutes the first prototype of a side-by-side diff. It is not possible to switch between unidiff and side-by-side diff at all at this stage. Signed-off-by: Ragnar Ouchterlony <ragnar@lysator.liu.se> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | cgit.css: highlight directories in tree
 Georg Lukas
2009-11-28-0/+5545b5a5
|/
* Merge branch 'lh/repo-scan'
 Lars Hjemli
2009-09-13-1/+192f6940
|\
| * Introduce 'section' as canonical spelling for 'repo.group'
 Lars Hjemli
2009-08-24-1/+1e7af002
| | | | | | | | | | | | | | | | The 'repo.' prefix should be reserved for repo-specific options, but the option 'repo.group' must still be honored to stay backwards compatible. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | cgit.css: make the blob display in tree view a bit prettier
 Lars Hjemli
2009-08-21-3/+36638f40
|/ | | | | | | Adding some padding to the linenumbers while right-aligning them and removing the background color makes the page more readable. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* cgit.css: align commit message with subject in expanded log listing
 Lars Hjemli
2009-08-10-1/+14c228e3
| | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* ui-tree: show hexdump of binary blobs
 Lars Hjemli
2009-01-31-0/+19ae1d4d7
| | | | | | | This teaches ui-tree to detect binary blobs and display them similar to `hexdump -C` (only wider). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Merge branch 'jw/commit-decorations'
 Lars Hjemli
2009-01-27-0/+6dfc4c82
|\ | | | | | | | | | | | | Conflicts: cgit.css Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * cgit.css: minor adjustment of commit decorations
 Lars Hjemli
2009-01-27-0/+5236665d
| | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>